Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
36
     */
3430 rajveer 37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 38
 
2779 chandransh 39
    /**
40
     * Retreives all the emails pending for dispatch
41
     */
3430 rajveer 42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 43
 
2779 chandransh 44
    /**
45
     * Marks email as sent after successful dispatch
46
     * 
47
     * @param emailId
48
     */
3430 rajveer 49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 50
 
3430 rajveer 51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 52
 
3430 rajveer 53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 64
 
3430 rajveer 65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
750 chandransh 67
    /**
2443 chandransh 68
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
69
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 70
     * 
71
     * @param username
72
     * @param password
73
     */
3430 rajveer 74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 75
 
2443 chandransh 76
    /**
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
78
     * 
79
     * @param username
80
     * @param oldPassword
81
     * @param newPassword
82
     */
3430 rajveer 83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 84
 
750 chandransh 85
    /**
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
87
     * Throws an exception otherwise.
88
     * 
89
     * @param username
90
     * @param password
91
     */
3430 rajveer 92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 93
 
1611 ankur.sing 94
    /**
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
96
     * Throws an exception otherwise.
97
     * 
98
     * @param username
99
     * @param password
100
     */
3430 rajveer 101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 102
 
1891 ankur.sing 103
    /**
104
     * Returns the ReportUser struct associated with the given username and password if they match.
105
     * Throws an exception otherwise.
106
     * 
107
     * @param username
108
     * @param password
109
     */
3430 rajveer 110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 111
 
112
    /**
113
     * Returns list of reports which are configured for the given role.
114
     * 
115
     * @param role
116
     */
3430 rajveer 117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 118
 
2024 ankur.sing 119
    /**
2357 ankur.sing 120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 121
     * Throws an exception otherwise.
122
     * 
123
     * @param username
124
     * @param password
2357 ankur.sing 125
     * @param role
2024 ankur.sing 126
     */
3430 rajveer 127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 128
 
4544 varun.gupt 129
    /**
130
     * Saves the list of entity Ids to be shared with an email address
131
     * 
132
     * @param entityIds
133
     * @param email
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
4693 mandeep.dh 137
    public List<Agent> getAgents() throws org.apache.thrift.TException;
138
 
139
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
140
 
141
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
142
 
143
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
144
 
145
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
146
 
4806 varun.gupt 147
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
148
 
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
150
 
352 ashish 151
  }
152
 
3430 rajveer 153
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
154
 
155
    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;
156
 
157
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
190
 
4544 varun.gupt 191
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
192
 
4693 mandeep.dh 193
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
202
 
4806 varun.gupt 203
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
206
 
3430 rajveer 207
  }
208
 
3374 rajveer 209
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 210
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
211
      public Factory() {}
212
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
213
        return new Client(prot);
214
      }
215
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
216
        return new Client(iprot, oprot);
217
      }
218
    }
219
 
220
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 221
    {
3430 rajveer 222
      super(prot, prot);
352 ashish 223
    }
224
 
3430 rajveer 225
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 226
      super(iprot, oprot);
352 ashish 227
    }
228
 
3430 rajveer 229
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 230
    {
231
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 232
      return recv_saveUserEmailForSending();
1395 varun.gupt 233
    }
234
 
3430 rajveer 235
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 236
    {
237
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 238
      args.setEmailTo(emailTo);
239
      args.setEmailFrom(emailFrom);
240
      args.setSubject(subject);
241
      args.setBody(body);
242
      args.setSource(source);
243
      args.setEmailType(emailType);
244
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 245
    }
246
 
3430 rajveer 247
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 248
    {
249
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 250
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 251
      if (result.isSetSuccess()) {
252
        return result.success;
253
      }
1395 varun.gupt 254
      if (result.se != null) {
255
        throw result.se;
256
      }
3430 rajveer 257
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 258
    }
259
 
3430 rajveer 260
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 261
    {
3086 rajveer 262
      send_getEmailsToBeSent();
1422 varun.gupt 263
      return recv_getEmailsToBeSent();
264
    }
265
 
3430 rajveer 266
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 267
    {
268
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 269
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 270
    }
271
 
3430 rajveer 272
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 273
    {
274
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 275
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 276
      if (result.isSetSuccess()) {
277
        return result.success;
278
      }
279
      if (result.se != null) {
280
        throw result.se;
281
      }
3430 rajveer 282
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 283
    }
284
 
3430 rajveer 285
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 286
    {
287
      send_markEmailAsSent(emailId);
288
      recv_markEmailAsSent();
289
    }
290
 
3430 rajveer 291
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 292
    {
293
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 294
      args.setEmailId(emailId);
295
      sendBase("markEmailAsSent", args);
1422 varun.gupt 296
    }
297
 
3430 rajveer 298
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 299
    {
300
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 301
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 302
      if (result.se != null) {
303
        throw result.se;
304
      }
305
      return;
306
    }
307
 
3430 rajveer 308
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 309
    {
310
      send_sendMail(mail);
311
      recv_sendMail();
312
    }
313
 
3430 rajveer 314
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 315
    {
316
      sendMail_args args = new sendMail_args();
3430 rajveer 317
      args.setMail(mail);
318
      sendBase("sendMail", args);
352 ashish 319
    }
320
 
3430 rajveer 321
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 322
    {
323
      sendMail_result result = new sendMail_result();
3430 rajveer 324
      receiveBase(result, "sendMail");
352 ashish 325
      if (result.se != null) {
326
        throw result.se;
327
      }
328
      return;
329
    }
330
 
3430 rajveer 331
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 332
    {
333
      send_sendText(message);
334
      recv_sendText();
335
    }
336
 
3430 rajveer 337
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 338
    {
339
      sendText_args args = new sendText_args();
3430 rajveer 340
      args.setMessage(message);
341
      sendBase("sendText", args);
352 ashish 342
    }
343
 
3430 rajveer 344
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 345
    {
346
      sendText_result result = new sendText_result();
3430 rajveer 347
      receiveBase(result, "sendText");
352 ashish 348
      if (result.se != null) {
349
        throw result.se;
350
      }
351
      return;
352
    }
353
 
3430 rajveer 354
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 355
    {
356
      send_addMessage(message);
357
      recv_addMessage();
358
    }
359
 
3430 rajveer 360
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 361
    {
362
      addMessage_args args = new addMessage_args();
3430 rajveer 363
      args.setMessage(message);
364
      sendBase("addMessage", args);
352 ashish 365
    }
366
 
3430 rajveer 367
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 368
    {
369
      addMessage_result result = new addMessage_result();
3430 rajveer 370
      receiveBase(result, "addMessage");
352 ashish 371
      if (result.se != null) {
372
        throw result.se;
373
      }
374
      return;
375
    }
376
 
3430 rajveer 377
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 378
    {
379
      send_updateMessage(id, message);
380
      recv_updateMessage();
381
    }
382
 
3430 rajveer 383
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 384
    {
385
      updateMessage_args args = new updateMessage_args();
3430 rajveer 386
      args.setId(id);
387
      args.setMessage(message);
388
      sendBase("updateMessage", args);
352 ashish 389
    }
390
 
3430 rajveer 391
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 392
    {
393
      updateMessage_result result = new updateMessage_result();
3430 rajveer 394
      receiveBase(result, "updateMessage");
352 ashish 395
      if (result.se != null) {
396
        throw result.se;
397
      }
398
      return;
399
    }
400
 
3430 rajveer 401
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 402
    {
403
      send_getMessage(id);
404
      return recv_getMessage();
405
    }
406
 
3430 rajveer 407
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 408
    {
409
      getMessage_args args = new getMessage_args();
3430 rajveer 410
      args.setId(id);
411
      sendBase("getMessage", args);
352 ashish 412
    }
413
 
3430 rajveer 414
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 415
    {
416
      getMessage_result result = new getMessage_result();
3430 rajveer 417
      receiveBase(result, "getMessage");
352 ashish 418
      if (result.isSetSuccess()) {
419
        return result.success;
420
      }
421
      if (result.se != null) {
422
        throw result.se;
423
      }
3430 rajveer 424
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 425
    }
426
 
3430 rajveer 427
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 428
    {
429
      send_getSubstitutedMessage(id, params);
430
      return recv_getSubstitutedMessage();
431
    }
432
 
3430 rajveer 433
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 434
    {
435
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 436
      args.setId(id);
437
      args.setParams(params);
438
      sendBase("getSubstitutedMessage", args);
352 ashish 439
    }
440
 
3430 rajveer 441
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 442
    {
443
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 444
      receiveBase(result, "getSubstitutedMessage");
352 ashish 445
      if (result.isSetSuccess()) {
446
        return result.success;
447
      }
448
      if (result.se != null) {
449
        throw result.se;
450
      }
3430 rajveer 451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 452
    }
453
 
3430 rajveer 454
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 455
    {
456
      send_addUser(username, password, warehouseId);
457
      return recv_addUser();
458
    }
459
 
3430 rajveer 460
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 461
    {
462
      addUser_args args = new addUser_args();
3430 rajveer 463
      args.setUsername(username);
464
      args.setPassword(password);
465
      args.setWarehouseId(warehouseId);
466
      sendBase("addUser", args);
495 rajveer 467
    }
468
 
3430 rajveer 469
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 470
    {
471
      addUser_result result = new addUser_result();
3430 rajveer 472
      receiveBase(result, "addUser");
495 rajveer 473
      if (result.isSetSuccess()) {
474
        return result.success;
475
      }
476
      if (result.se != null) {
477
        throw result.se;
478
      }
3430 rajveer 479
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 480
    }
481
 
3430 rajveer 482
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 483
    {
484
      send_deleteUser(username);
485
      return recv_deleteUser();
486
    }
487
 
3430 rajveer 488
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 489
    {
490
      deleteUser_args args = new deleteUser_args();
3430 rajveer 491
      args.setUsername(username);
492
      sendBase("deleteUser", args);
495 rajveer 493
    }
494
 
3430 rajveer 495
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 496
    {
497
      deleteUser_result result = new deleteUser_result();
3430 rajveer 498
      receiveBase(result, "deleteUser");
495 rajveer 499
      if (result.isSetSuccess()) {
500
        return result.success;
501
      }
502
      if (result.se != null) {
503
        throw result.se;
504
      }
3430 rajveer 505
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 506
    }
507
 
3430 rajveer 508
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 509
    {
2443 chandransh 510
      send_authenticateDashboardUser(username, password);
511
      return recv_authenticateDashboardUser();
495 rajveer 512
    }
513
 
3430 rajveer 514
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 515
    {
2443 chandransh 516
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 517
      args.setUsername(username);
518
      args.setPassword(password);
519
      sendBase("authenticateDashboardUser", args);
495 rajveer 520
    }
521
 
3430 rajveer 522
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 523
    {
2443 chandransh 524
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 525
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 526
      if (result.isSetSuccess()) {
527
        return result.success;
528
      }
529
      if (result.se != null) {
530
        throw result.se;
531
      }
3430 rajveer 532
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 533
    }
534
 
3430 rajveer 535
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 536
    {
537
      send_updatePassword(username, oldPassword, newPassword);
538
      return recv_updatePassword();
539
    }
540
 
3430 rajveer 541
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 542
    {
543
      updatePassword_args args = new updatePassword_args();
3430 rajveer 544
      args.setUsername(username);
545
      args.setOldPassword(oldPassword);
546
      args.setNewPassword(newPassword);
547
      sendBase("updatePassword", args);
495 rajveer 548
    }
549
 
3430 rajveer 550
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 551
    {
552
      updatePassword_result result = new updatePassword_result();
3430 rajveer 553
      receiveBase(result, "updatePassword");
495 rajveer 554
      if (result.isSetSuccess()) {
555
        return result.success;
556
      }
557
      if (result.se != null) {
558
        throw result.se;
559
      }
3430 rajveer 560
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 561
    }
562
 
3430 rajveer 563
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 564
    {
565
      send_authenticateLogisticsUser(username, password);
566
      return recv_authenticateLogisticsUser();
567
    }
568
 
3430 rajveer 569
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 570
    {
571
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 572
      args.setUsername(username);
573
      args.setPassword(password);
574
      sendBase("authenticateLogisticsUser", args);
750 chandransh 575
    }
576
 
3430 rajveer 577
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 578
    {
579
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 580
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 581
      if (result.isSetSuccess()) {
582
        return result.success;
583
      }
584
      if (result.hse != null) {
585
        throw result.hse;
586
      }
3430 rajveer 587
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 588
    }
589
 
3430 rajveer 590
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 591
    {
592
      send_authenticateStatisticsUser(username, password);
593
      return recv_authenticateStatisticsUser();
594
    }
595
 
3430 rajveer 596
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 597
    {
598
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 599
      args.setUsername(username);
600
      args.setPassword(password);
601
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 602
    }
603
 
3430 rajveer 604
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 605
    {
606
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 607
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 608
      if (result.isSetSuccess()) {
609
        return result.success;
610
      }
611
      if (result.hse != null) {
612
        throw result.hse;
613
      }
3430 rajveer 614
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 615
    }
616
 
3430 rajveer 617
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 618
    {
619
      send_authenticateReportUser(username, password);
620
      return recv_authenticateReportUser();
621
    }
622
 
3430 rajveer 623
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 624
    {
625
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 626
      args.setUsername(username);
627
      args.setPassword(password);
628
      sendBase("authenticateReportUser", args);
1891 ankur.sing 629
    }
630
 
3430 rajveer 631
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 632
    {
633
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 634
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 635
      if (result.isSetSuccess()) {
636
        return result.success;
637
      }
638
      if (result.hse != null) {
639
        throw result.hse;
640
      }
3430 rajveer 641
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 642
    }
643
 
3430 rajveer 644
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 645
    {
646
      send_getReports(role);
647
      return recv_getReports();
648
    }
649
 
3430 rajveer 650
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 651
    {
652
      getReports_args args = new getReports_args();
3430 rajveer 653
      args.setRole(role);
654
      sendBase("getReports", args);
1891 ankur.sing 655
    }
656
 
3430 rajveer 657
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 658
    {
659
      getReports_result result = new getReports_result();
3430 rajveer 660
      receiveBase(result, "getReports");
1891 ankur.sing 661
      if (result.isSetSuccess()) {
662
        return result.success;
663
      }
3430 rajveer 664
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 665
    }
666
 
3430 rajveer 667
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 668
    {
2357 ankur.sing 669
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 670
      return recv_authenticateCatalogUser();
671
    }
672
 
3430 rajveer 673
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 674
    {
675
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 676
      args.setUsername(username);
677
      args.setPassword(password);
678
      args.setRole(role);
679
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 680
    }
681
 
3430 rajveer 682
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 683
    {
684
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 685
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 686
      if (result.isSetSuccess()) {
687
        return result.success;
688
      }
689
      if (result.hse != null) {
690
        throw result.hse;
691
      }
3430 rajveer 692
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 693
    }
694
 
4544 varun.gupt 695
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
696
    {
697
      send_shareEntities(entityIds, email);
698
      recv_shareEntities();
699
    }
700
 
701
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
702
    {
703
      shareEntities_args args = new shareEntities_args();
704
      args.setEntityIds(entityIds);
705
      args.setEmail(email);
706
      sendBase("shareEntities", args);
707
    }
708
 
709
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
710
    {
711
      shareEntities_result result = new shareEntities_result();
712
      receiveBase(result, "shareEntities");
713
      if (result.hse != null) {
714
        throw result.hse;
715
      }
716
      return;
717
    }
718
 
4693 mandeep.dh 719
    public List<Agent> getAgents() throws org.apache.thrift.TException
720
    {
721
      send_getAgents();
722
      return recv_getAgents();
723
    }
724
 
725
    public void send_getAgents() throws org.apache.thrift.TException
726
    {
727
      getAgents_args args = new getAgents_args();
728
      sendBase("getAgents", args);
729
    }
730
 
731
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
732
    {
733
      getAgents_result result = new getAgents_result();
734
      receiveBase(result, "getAgents");
735
      if (result.isSetSuccess()) {
736
        return result.success;
737
      }
738
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
739
    }
740
 
741
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
742
    {
743
      send_validateLogIn(emailId, password);
744
      return recv_validateLogIn();
745
    }
746
 
747
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
748
    {
749
      validateLogIn_args args = new validateLogIn_args();
750
      args.setEmailId(emailId);
751
      args.setPassword(password);
752
      sendBase("validateLogIn", args);
753
    }
754
 
755
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
756
    {
757
      validateLogIn_result result = new validateLogIn_result();
758
      receiveBase(result, "validateLogIn");
759
      if (result.isSetSuccess()) {
760
        return result.success;
761
      }
762
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
763
    }
764
 
765
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
766
    {
767
      send_updatePasswordForAgent(agentEmailId, password);
768
      recv_updatePasswordForAgent();
769
    }
770
 
771
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
772
    {
773
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
774
      args.setAgentEmailId(agentEmailId);
775
      args.setPassword(password);
776
      sendBase("updatePasswordForAgent", args);
777
    }
778
 
779
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
780
    {
781
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
782
      receiveBase(result, "updatePasswordForAgent");
783
      return;
784
    }
785
 
786
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
787
    {
788
      send_getRoleNamesForAgent(agentEmailId);
789
      return recv_getRoleNamesForAgent();
790
    }
791
 
792
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
793
    {
794
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
795
      args.setAgentEmailId(agentEmailId);
796
      sendBase("getRoleNamesForAgent", args);
797
    }
798
 
799
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
800
    {
801
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
802
      receiveBase(result, "getRoleNamesForAgent");
803
      if (result.isSetSuccess()) {
804
        return result.success;
805
      }
806
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
807
    }
808
 
809
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
810
    {
811
      send_getPermissionsForRoleName(roleName);
812
      return recv_getPermissionsForRoleName();
813
    }
814
 
815
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
816
    {
817
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
818
      args.setRoleName(roleName);
819
      sendBase("getPermissionsForRoleName", args);
820
    }
821
 
822
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
823
    {
824
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
825
      receiveBase(result, "getPermissionsForRoleName");
826
      if (result.isSetSuccess()) {
827
        return result.success;
828
      }
829
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
830
    }
831
 
4806 varun.gupt 832
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
833
    {
834
      send_saveQuickLink(url, text);
835
      recv_saveQuickLink();
836
    }
837
 
838
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
839
    {
840
      saveQuickLink_args args = new saveQuickLink_args();
841
      args.setUrl(url);
842
      args.setText(text);
843
      sendBase("saveQuickLink", args);
844
    }
845
 
846
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
847
    {
848
      saveQuickLink_result result = new saveQuickLink_result();
849
      receiveBase(result, "saveQuickLink");
850
      if (result.hse != null) {
851
        throw result.hse;
852
      }
853
      return;
854
    }
855
 
856
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
857
    {
858
      send_getQuickLinks();
859
      return recv_getQuickLinks();
860
    }
861
 
862
    public void send_getQuickLinks() throws org.apache.thrift.TException
863
    {
864
      getQuickLinks_args args = new getQuickLinks_args();
865
      sendBase("getQuickLinks", args);
866
    }
867
 
868
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
869
    {
870
      getQuickLinks_result result = new getQuickLinks_result();
871
      receiveBase(result, "getQuickLinks");
872
      if (result.isSetSuccess()) {
873
        return result.success;
874
      }
875
      if (result.hse != null) {
876
        throw result.hse;
877
      }
878
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
879
    }
880
 
352 ashish 881
  }
3430 rajveer 882
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
883
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
884
      private org.apache.thrift.async.TAsyncClientManager clientManager;
885
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
886
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
887
        this.clientManager = clientManager;
888
        this.protocolFactory = protocolFactory;
889
      }
890
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
891
        return new AsyncClient(protocolFactory, clientManager, transport);
892
      }
352 ashish 893
    }
894
 
3430 rajveer 895
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
896
      super(protocolFactory, clientManager, transport);
897
    }
352 ashish 898
 
3430 rajveer 899
    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 {
900
      checkReady();
901
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
902
      this.___currentMethod = method_call;
903
      ___manager.call(method_call);
904
    }
905
 
906
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
907
      private String emailTo;
908
      private String emailFrom;
909
      private String subject;
910
      private String body;
911
      private String source;
912
      private String emailType;
913
      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 {
914
        super(client, protocolFactory, transport, resultHandler, false);
915
        this.emailTo = emailTo;
916
        this.emailFrom = emailFrom;
917
        this.subject = subject;
918
        this.body = body;
919
        this.source = source;
920
        this.emailType = emailType;
352 ashish 921
      }
3430 rajveer 922
 
923
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
924
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
925
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
926
        args.setEmailTo(emailTo);
927
        args.setEmailFrom(emailFrom);
928
        args.setSubject(subject);
929
        args.setBody(body);
930
        args.setSource(source);
931
        args.setEmailType(emailType);
932
        args.write(prot);
933
        prot.writeMessageEnd();
934
      }
935
 
936
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
938
          throw new IllegalStateException("Method call not finished!");
939
        }
940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
942
        return (new Client(prot)).recv_saveUserEmailForSending();
943
      }
352 ashish 944
    }
945
 
3430 rajveer 946
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
947
      checkReady();
948
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
949
      this.___currentMethod = method_call;
950
      ___manager.call(method_call);
951
    }
952
 
953
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
954
      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 {
955
        super(client, protocolFactory, transport, resultHandler, false);
956
      }
957
 
958
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
959
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
960
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
961
        args.write(prot);
962
        prot.writeMessageEnd();
963
      }
964
 
965
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
967
          throw new IllegalStateException("Method call not finished!");
968
        }
969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
971
        return (new Client(prot)).recv_getEmailsToBeSent();
972
      }
973
    }
974
 
975
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
976
      checkReady();
977
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
978
      this.___currentMethod = method_call;
979
      ___manager.call(method_call);
980
    }
981
 
982
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
983
      private long emailId;
984
      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 {
985
        super(client, protocolFactory, transport, resultHandler, false);
986
        this.emailId = emailId;
987
      }
988
 
989
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
990
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
991
        markEmailAsSent_args args = new markEmailAsSent_args();
992
        args.setEmailId(emailId);
993
        args.write(prot);
994
        prot.writeMessageEnd();
995
      }
996
 
997
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
998
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
999
          throw new IllegalStateException("Method call not finished!");
1000
        }
1001
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1002
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1003
        (new Client(prot)).recv_markEmailAsSent();
1004
      }
1005
    }
1006
 
1007
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1008
      checkReady();
1009
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1010
      this.___currentMethod = method_call;
1011
      ___manager.call(method_call);
1012
    }
1013
 
1014
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1015
      private Mail mail;
1016
      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 {
1017
        super(client, protocolFactory, transport, resultHandler, false);
1018
        this.mail = mail;
1019
      }
1020
 
1021
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1022
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1023
        sendMail_args args = new sendMail_args();
1024
        args.setMail(mail);
1025
        args.write(prot);
1026
        prot.writeMessageEnd();
1027
      }
1028
 
1029
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1030
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1031
          throw new IllegalStateException("Method call not finished!");
1032
        }
1033
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1034
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1035
        (new Client(prot)).recv_sendMail();
1036
      }
1037
    }
1038
 
1039
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1040
      checkReady();
1041
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1042
      this.___currentMethod = method_call;
1043
      ___manager.call(method_call);
1044
    }
1045
 
1046
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1047
      private TextMessage message;
1048
      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 {
1049
        super(client, protocolFactory, transport, resultHandler, false);
1050
        this.message = message;
1051
      }
1052
 
1053
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1054
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1055
        sendText_args args = new sendText_args();
1056
        args.setMessage(message);
1057
        args.write(prot);
1058
        prot.writeMessageEnd();
1059
      }
1060
 
1061
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1062
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1063
          throw new IllegalStateException("Method call not finished!");
1064
        }
1065
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1066
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1067
        (new Client(prot)).recv_sendText();
1068
      }
1069
    }
1070
 
1071
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1072
      checkReady();
1073
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1074
      this.___currentMethod = method_call;
1075
      ___manager.call(method_call);
1076
    }
1077
 
1078
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1079
      private Message message;
1080
      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 {
1081
        super(client, protocolFactory, transport, resultHandler, false);
1082
        this.message = message;
1083
      }
1084
 
1085
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1086
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1087
        addMessage_args args = new addMessage_args();
1088
        args.setMessage(message);
1089
        args.write(prot);
1090
        prot.writeMessageEnd();
1091
      }
1092
 
1093
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1094
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1095
          throw new IllegalStateException("Method call not finished!");
1096
        }
1097
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1098
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1099
        (new Client(prot)).recv_addMessage();
1100
      }
1101
    }
1102
 
1103
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1104
      checkReady();
1105
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1106
      this.___currentMethod = method_call;
1107
      ___manager.call(method_call);
1108
    }
1109
 
1110
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1111
      private long id;
1112
      private String message;
1113
      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 {
1114
        super(client, protocolFactory, transport, resultHandler, false);
1115
        this.id = id;
1116
        this.message = message;
1117
      }
1118
 
1119
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1120
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1121
        updateMessage_args args = new updateMessage_args();
1122
        args.setId(id);
1123
        args.setMessage(message);
1124
        args.write(prot);
1125
        prot.writeMessageEnd();
1126
      }
1127
 
1128
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1129
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1130
          throw new IllegalStateException("Method call not finished!");
1131
        }
1132
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1133
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1134
        (new Client(prot)).recv_updateMessage();
1135
      }
1136
    }
1137
 
1138
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1139
      checkReady();
1140
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1141
      this.___currentMethod = method_call;
1142
      ___manager.call(method_call);
1143
    }
1144
 
1145
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1146
      private long id;
1147
      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 {
1148
        super(client, protocolFactory, transport, resultHandler, false);
1149
        this.id = id;
1150
      }
1151
 
1152
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1153
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1154
        getMessage_args args = new getMessage_args();
1155
        args.setId(id);
1156
        args.write(prot);
1157
        prot.writeMessageEnd();
1158
      }
1159
 
1160
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1161
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1162
          throw new IllegalStateException("Method call not finished!");
1163
        }
1164
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1165
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1166
        return (new Client(prot)).recv_getMessage();
1167
      }
1168
    }
1169
 
1170
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1171
      checkReady();
1172
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1173
      this.___currentMethod = method_call;
1174
      ___manager.call(method_call);
1175
    }
1176
 
1177
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1178
      private long id;
1179
      private Map<String,String> params;
1180
      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 {
1181
        super(client, protocolFactory, transport, resultHandler, false);
1182
        this.id = id;
1183
        this.params = params;
1184
      }
1185
 
1186
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1187
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1188
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1189
        args.setId(id);
1190
        args.setParams(params);
1191
        args.write(prot);
1192
        prot.writeMessageEnd();
1193
      }
1194
 
1195
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1196
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1197
          throw new IllegalStateException("Method call not finished!");
1198
        }
1199
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1200
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1201
        return (new Client(prot)).recv_getSubstitutedMessage();
1202
      }
1203
    }
1204
 
1205
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1206
      checkReady();
1207
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1208
      this.___currentMethod = method_call;
1209
      ___manager.call(method_call);
1210
    }
1211
 
1212
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1213
      private String username;
1214
      private String password;
1215
      private long warehouseId;
1216
      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 {
1217
        super(client, protocolFactory, transport, resultHandler, false);
1218
        this.username = username;
1219
        this.password = password;
1220
        this.warehouseId = warehouseId;
1221
      }
1222
 
1223
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1224
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1225
        addUser_args args = new addUser_args();
1226
        args.setUsername(username);
1227
        args.setPassword(password);
1228
        args.setWarehouseId(warehouseId);
1229
        args.write(prot);
1230
        prot.writeMessageEnd();
1231
      }
1232
 
1233
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1235
          throw new IllegalStateException("Method call not finished!");
1236
        }
1237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1239
        return (new Client(prot)).recv_addUser();
1240
      }
1241
    }
1242
 
1243
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1244
      checkReady();
1245
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1246
      this.___currentMethod = method_call;
1247
      ___manager.call(method_call);
1248
    }
1249
 
1250
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1251
      private String username;
1252
      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 {
1253
        super(client, protocolFactory, transport, resultHandler, false);
1254
        this.username = username;
1255
      }
1256
 
1257
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1258
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1259
        deleteUser_args args = new deleteUser_args();
1260
        args.setUsername(username);
1261
        args.write(prot);
1262
        prot.writeMessageEnd();
1263
      }
1264
 
1265
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1266
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1267
          throw new IllegalStateException("Method call not finished!");
1268
        }
1269
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1270
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1271
        return (new Client(prot)).recv_deleteUser();
1272
      }
1273
    }
1274
 
1275
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1276
      checkReady();
1277
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1278
      this.___currentMethod = method_call;
1279
      ___manager.call(method_call);
1280
    }
1281
 
1282
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1283
      private String username;
1284
      private String password;
1285
      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 {
1286
        super(client, protocolFactory, transport, resultHandler, false);
1287
        this.username = username;
1288
        this.password = password;
1289
      }
1290
 
1291
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1292
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1293
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1294
        args.setUsername(username);
1295
        args.setPassword(password);
1296
        args.write(prot);
1297
        prot.writeMessageEnd();
1298
      }
1299
 
1300
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1301
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1302
          throw new IllegalStateException("Method call not finished!");
1303
        }
1304
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1305
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1306
        return (new Client(prot)).recv_authenticateDashboardUser();
1307
      }
1308
    }
1309
 
1310
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1311
      checkReady();
1312
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1313
      this.___currentMethod = method_call;
1314
      ___manager.call(method_call);
1315
    }
1316
 
1317
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1318
      private String username;
1319
      private String oldPassword;
1320
      private String newPassword;
1321
      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 {
1322
        super(client, protocolFactory, transport, resultHandler, false);
1323
        this.username = username;
1324
        this.oldPassword = oldPassword;
1325
        this.newPassword = newPassword;
1326
      }
1327
 
1328
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1329
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1330
        updatePassword_args args = new updatePassword_args();
1331
        args.setUsername(username);
1332
        args.setOldPassword(oldPassword);
1333
        args.setNewPassword(newPassword);
1334
        args.write(prot);
1335
        prot.writeMessageEnd();
1336
      }
1337
 
1338
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1339
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1340
          throw new IllegalStateException("Method call not finished!");
1341
        }
1342
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1343
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1344
        return (new Client(prot)).recv_updatePassword();
1345
      }
1346
    }
1347
 
1348
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1349
      checkReady();
1350
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1351
      this.___currentMethod = method_call;
1352
      ___manager.call(method_call);
1353
    }
1354
 
1355
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1356
      private String username;
1357
      private String password;
1358
      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 {
1359
        super(client, protocolFactory, transport, resultHandler, false);
1360
        this.username = username;
1361
        this.password = password;
1362
      }
1363
 
1364
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1365
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1366
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1367
        args.setUsername(username);
1368
        args.setPassword(password);
1369
        args.write(prot);
1370
        prot.writeMessageEnd();
1371
      }
1372
 
1373
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1374
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1375
          throw new IllegalStateException("Method call not finished!");
1376
        }
1377
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1378
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1379
        return (new Client(prot)).recv_authenticateLogisticsUser();
1380
      }
1381
    }
1382
 
1383
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1384
      checkReady();
1385
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1386
      this.___currentMethod = method_call;
1387
      ___manager.call(method_call);
1388
    }
1389
 
1390
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1391
      private String username;
1392
      private String password;
1393
      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 {
1394
        super(client, protocolFactory, transport, resultHandler, false);
1395
        this.username = username;
1396
        this.password = password;
1397
      }
1398
 
1399
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1400
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1401
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1402
        args.setUsername(username);
1403
        args.setPassword(password);
1404
        args.write(prot);
1405
        prot.writeMessageEnd();
1406
      }
1407
 
1408
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1409
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1410
          throw new IllegalStateException("Method call not finished!");
1411
        }
1412
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1413
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1414
        return (new Client(prot)).recv_authenticateStatisticsUser();
1415
      }
1416
    }
1417
 
1418
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1419
      checkReady();
1420
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1421
      this.___currentMethod = method_call;
1422
      ___manager.call(method_call);
1423
    }
1424
 
1425
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1426
      private String username;
1427
      private String password;
1428
      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 {
1429
        super(client, protocolFactory, transport, resultHandler, false);
1430
        this.username = username;
1431
        this.password = password;
1432
      }
1433
 
1434
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1435
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1436
        authenticateReportUser_args args = new authenticateReportUser_args();
1437
        args.setUsername(username);
1438
        args.setPassword(password);
1439
        args.write(prot);
1440
        prot.writeMessageEnd();
1441
      }
1442
 
1443
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1444
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1445
          throw new IllegalStateException("Method call not finished!");
1446
        }
1447
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1448
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1449
        return (new Client(prot)).recv_authenticateReportUser();
1450
      }
1451
    }
1452
 
1453
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1454
      checkReady();
1455
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1456
      this.___currentMethod = method_call;
1457
      ___manager.call(method_call);
1458
    }
1459
 
1460
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1461
      private long role;
1462
      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 {
1463
        super(client, protocolFactory, transport, resultHandler, false);
1464
        this.role = role;
1465
      }
1466
 
1467
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1468
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1469
        getReports_args args = new getReports_args();
1470
        args.setRole(role);
1471
        args.write(prot);
1472
        prot.writeMessageEnd();
1473
      }
1474
 
1475
      public List<Report> getResult() throws org.apache.thrift.TException {
1476
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1477
          throw new IllegalStateException("Method call not finished!");
1478
        }
1479
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1480
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1481
        return (new Client(prot)).recv_getReports();
1482
      }
1483
    }
1484
 
1485
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1486
      checkReady();
1487
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1488
      this.___currentMethod = method_call;
1489
      ___manager.call(method_call);
1490
    }
1491
 
1492
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1493
      private String username;
1494
      private String password;
1495
      private long role;
1496
      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 {
1497
        super(client, protocolFactory, transport, resultHandler, false);
1498
        this.username = username;
1499
        this.password = password;
1500
        this.role = role;
1501
      }
1502
 
1503
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1504
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1505
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1506
        args.setUsername(username);
1507
        args.setPassword(password);
1508
        args.setRole(role);
1509
        args.write(prot);
1510
        prot.writeMessageEnd();
1511
      }
1512
 
1513
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1514
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1515
          throw new IllegalStateException("Method call not finished!");
1516
        }
1517
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1518
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1519
        return (new Client(prot)).recv_authenticateCatalogUser();
1520
      }
1521
    }
1522
 
4544 varun.gupt 1523
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1524
      checkReady();
1525
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1526
      this.___currentMethod = method_call;
1527
      ___manager.call(method_call);
1528
    }
1529
 
1530
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1531
      private List<Long> entityIds;
1532
      private String email;
1533
      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 {
1534
        super(client, protocolFactory, transport, resultHandler, false);
1535
        this.entityIds = entityIds;
1536
        this.email = email;
1537
      }
1538
 
1539
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1540
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1541
        shareEntities_args args = new shareEntities_args();
1542
        args.setEntityIds(entityIds);
1543
        args.setEmail(email);
1544
        args.write(prot);
1545
        prot.writeMessageEnd();
1546
      }
1547
 
1548
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1549
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1550
          throw new IllegalStateException("Method call not finished!");
1551
        }
1552
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1553
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1554
        (new Client(prot)).recv_shareEntities();
1555
      }
1556
    }
1557
 
4693 mandeep.dh 1558
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1559
      checkReady();
1560
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1561
      this.___currentMethod = method_call;
1562
      ___manager.call(method_call);
1563
    }
1564
 
1565
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1566
      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 {
1567
        super(client, protocolFactory, transport, resultHandler, false);
1568
      }
1569
 
1570
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1571
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1572
        getAgents_args args = new getAgents_args();
1573
        args.write(prot);
1574
        prot.writeMessageEnd();
1575
      }
1576
 
1577
      public List<Agent> getResult() throws org.apache.thrift.TException {
1578
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1579
          throw new IllegalStateException("Method call not finished!");
1580
        }
1581
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1582
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1583
        return (new Client(prot)).recv_getAgents();
1584
      }
1585
    }
1586
 
1587
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1588
      checkReady();
1589
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1590
      this.___currentMethod = method_call;
1591
      ___manager.call(method_call);
1592
    }
1593
 
1594
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1595
      private String emailId;
1596
      private String password;
1597
      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 {
1598
        super(client, protocolFactory, transport, resultHandler, false);
1599
        this.emailId = emailId;
1600
        this.password = password;
1601
      }
1602
 
1603
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1604
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1605
        validateLogIn_args args = new validateLogIn_args();
1606
        args.setEmailId(emailId);
1607
        args.setPassword(password);
1608
        args.write(prot);
1609
        prot.writeMessageEnd();
1610
      }
1611
 
1612
      public boolean getResult() throws org.apache.thrift.TException {
1613
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1614
          throw new IllegalStateException("Method call not finished!");
1615
        }
1616
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1617
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1618
        return (new Client(prot)).recv_validateLogIn();
1619
      }
1620
    }
1621
 
1622
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1623
      checkReady();
1624
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1625
      this.___currentMethod = method_call;
1626
      ___manager.call(method_call);
1627
    }
1628
 
1629
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1630
      private String agentEmailId;
1631
      private String password;
1632
      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 {
1633
        super(client, protocolFactory, transport, resultHandler, false);
1634
        this.agentEmailId = agentEmailId;
1635
        this.password = password;
1636
      }
1637
 
1638
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1639
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1640
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1641
        args.setAgentEmailId(agentEmailId);
1642
        args.setPassword(password);
1643
        args.write(prot);
1644
        prot.writeMessageEnd();
1645
      }
1646
 
1647
      public void getResult() throws org.apache.thrift.TException {
1648
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1649
          throw new IllegalStateException("Method call not finished!");
1650
        }
1651
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1652
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1653
        (new Client(prot)).recv_updatePasswordForAgent();
1654
      }
1655
    }
1656
 
1657
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1658
      checkReady();
1659
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1660
      this.___currentMethod = method_call;
1661
      ___manager.call(method_call);
1662
    }
1663
 
1664
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1665
      private String agentEmailId;
1666
      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 {
1667
        super(client, protocolFactory, transport, resultHandler, false);
1668
        this.agentEmailId = agentEmailId;
1669
      }
1670
 
1671
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1672
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1673
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1674
        args.setAgentEmailId(agentEmailId);
1675
        args.write(prot);
1676
        prot.writeMessageEnd();
1677
      }
1678
 
1679
      public List<String> getResult() throws org.apache.thrift.TException {
1680
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1681
          throw new IllegalStateException("Method call not finished!");
1682
        }
1683
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1684
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1685
        return (new Client(prot)).recv_getRoleNamesForAgent();
1686
      }
1687
    }
1688
 
1689
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1690
      checkReady();
1691
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1692
      this.___currentMethod = method_call;
1693
      ___manager.call(method_call);
1694
    }
1695
 
1696
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1697
      private String roleName;
1698
      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 {
1699
        super(client, protocolFactory, transport, resultHandler, false);
1700
        this.roleName = roleName;
1701
      }
1702
 
1703
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1704
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1705
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1706
        args.setRoleName(roleName);
1707
        args.write(prot);
1708
        prot.writeMessageEnd();
1709
      }
1710
 
1711
      public List<String> getResult() throws org.apache.thrift.TException {
1712
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1713
          throw new IllegalStateException("Method call not finished!");
1714
        }
1715
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1716
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1717
        return (new Client(prot)).recv_getPermissionsForRoleName();
1718
      }
1719
    }
1720
 
4806 varun.gupt 1721
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1722
      checkReady();
1723
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1724
      this.___currentMethod = method_call;
1725
      ___manager.call(method_call);
1726
    }
1727
 
1728
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1729
      private String url;
1730
      private String text;
1731
      public saveQuickLink_call(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1732
        super(client, protocolFactory, transport, resultHandler, false);
1733
        this.url = url;
1734
        this.text = text;
1735
      }
1736
 
1737
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1738
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1739
        saveQuickLink_args args = new saveQuickLink_args();
1740
        args.setUrl(url);
1741
        args.setText(text);
1742
        args.write(prot);
1743
        prot.writeMessageEnd();
1744
      }
1745
 
1746
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1747
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1748
          throw new IllegalStateException("Method call not finished!");
1749
        }
1750
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1751
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1752
        (new Client(prot)).recv_saveQuickLink();
1753
      }
1754
    }
1755
 
1756
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1757
      checkReady();
1758
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1759
      this.___currentMethod = method_call;
1760
      ___manager.call(method_call);
1761
    }
1762
 
1763
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1764
      public getQuickLinks_call(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1765
        super(client, protocolFactory, transport, resultHandler, false);
1766
      }
1767
 
1768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1770
        getQuickLinks_args args = new getQuickLinks_args();
1771
        args.write(prot);
1772
        prot.writeMessageEnd();
1773
      }
1774
 
1775
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1776
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1777
          throw new IllegalStateException("Method call not finished!");
1778
        }
1779
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1780
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1781
        return (new Client(prot)).recv_getQuickLinks();
1782
      }
1783
    }
1784
 
3430 rajveer 1785
  }
1786
 
1787
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1788
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1789
    public Processor(I iface) {
1790
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1791
    }
1792
 
1793
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1794
      super(iface, getProcessMap(processMap));
1795
    }
1796
 
1797
    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) {
1798
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1799
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1800
      processMap.put("markEmailAsSent", new markEmailAsSent());
1801
      processMap.put("sendMail", new sendMail());
1802
      processMap.put("sendText", new sendText());
1803
      processMap.put("addMessage", new addMessage());
1804
      processMap.put("updateMessage", new updateMessage());
1805
      processMap.put("getMessage", new getMessage());
1806
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1807
      processMap.put("addUser", new addUser());
1808
      processMap.put("deleteUser", new deleteUser());
1809
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1810
      processMap.put("updatePassword", new updatePassword());
1811
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1812
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1813
      processMap.put("authenticateReportUser", new authenticateReportUser());
1814
      processMap.put("getReports", new getReports());
1815
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1816
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 1817
      processMap.put("getAgents", new getAgents());
1818
      processMap.put("validateLogIn", new validateLogIn());
1819
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1820
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1821
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 1822
      processMap.put("saveQuickLink", new saveQuickLink());
1823
      processMap.put("getQuickLinks", new getQuickLinks());
3430 rajveer 1824
      return processMap;
1825
    }
1826
 
1827
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1828
      public saveUserEmailForSending() {
1829
        super("saveUserEmailForSending");
1830
      }
1831
 
1832
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1833
        return new saveUserEmailForSending_args();
1834
      }
1835
 
1836
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1837
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1838
        try {
3430 rajveer 1839
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1840
          result.setSuccessIsSet(true);
1395 varun.gupt 1841
        } catch (HelperServiceException se) {
1842
          result.se = se;
1843
        }
3430 rajveer 1844
        return result;
1395 varun.gupt 1845
      }
1846
    }
1847
 
3430 rajveer 1848
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1849
      public getEmailsToBeSent() {
1850
        super("getEmailsToBeSent");
1851
      }
1852
 
1853
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1854
        return new getEmailsToBeSent_args();
1855
      }
1856
 
1857
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1858
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1859
        try {
3430 rajveer 1860
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 1861
        } catch (HelperServiceException se) {
1862
          result.se = se;
1863
        }
3430 rajveer 1864
        return result;
1422 varun.gupt 1865
      }
1866
    }
1867
 
3430 rajveer 1868
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
1869
      public markEmailAsSent() {
1870
        super("markEmailAsSent");
1871
      }
1872
 
1873
      protected markEmailAsSent_args getEmptyArgsInstance() {
1874
        return new markEmailAsSent_args();
1875
      }
1876
 
1877
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1878
        markEmailAsSent_result result = new markEmailAsSent_result();
1879
        try {
3430 rajveer 1880
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 1881
        } catch (HelperServiceException se) {
1882
          result.se = se;
1883
        }
3430 rajveer 1884
        return result;
1422 varun.gupt 1885
      }
1886
    }
1887
 
3430 rajveer 1888
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
1889
      public sendMail() {
1890
        super("sendMail");
1891
      }
1892
 
1893
      protected sendMail_args getEmptyArgsInstance() {
1894
        return new sendMail_args();
1895
      }
1896
 
1897
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 1898
        sendMail_result result = new sendMail_result();
1899
        try {
3430 rajveer 1900
          iface.sendMail(args.mail);
352 ashish 1901
        } catch (HelperServiceException se) {
1902
          result.se = se;
1903
        }
3430 rajveer 1904
        return result;
352 ashish 1905
      }
1906
    }
1907
 
3430 rajveer 1908
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
1909
      public sendText() {
1910
        super("sendText");
1911
      }
1912
 
1913
      protected sendText_args getEmptyArgsInstance() {
1914
        return new sendText_args();
1915
      }
1916
 
1917
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 1918
        sendText_result result = new sendText_result();
1919
        try {
3430 rajveer 1920
          iface.sendText(args.message);
352 ashish 1921
        } catch (HelperServiceException se) {
1922
          result.se = se;
1923
        }
3430 rajveer 1924
        return result;
352 ashish 1925
      }
1926
    }
1927
 
3430 rajveer 1928
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
1929
      public addMessage() {
1930
        super("addMessage");
1931
      }
1932
 
1933
      protected addMessage_args getEmptyArgsInstance() {
1934
        return new addMessage_args();
1935
      }
1936
 
1937
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 1938
        addMessage_result result = new addMessage_result();
1939
        try {
3430 rajveer 1940
          iface.addMessage(args.message);
352 ashish 1941
        } catch (HelperServiceException se) {
1942
          result.se = se;
1943
        }
3430 rajveer 1944
        return result;
352 ashish 1945
      }
1946
    }
1947
 
3430 rajveer 1948
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
1949
      public updateMessage() {
1950
        super("updateMessage");
1951
      }
1952
 
1953
      protected updateMessage_args getEmptyArgsInstance() {
1954
        return new updateMessage_args();
1955
      }
1956
 
1957
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 1958
        updateMessage_result result = new updateMessage_result();
1959
        try {
3430 rajveer 1960
          iface.updateMessage(args.id, args.message);
352 ashish 1961
        } catch (HelperServiceException se) {
1962
          result.se = se;
1963
        }
3430 rajveer 1964
        return result;
352 ashish 1965
      }
1966
    }
1967
 
3430 rajveer 1968
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
1969
      public getMessage() {
1970
        super("getMessage");
1971
      }
1972
 
1973
      protected getMessage_args getEmptyArgsInstance() {
1974
        return new getMessage_args();
1975
      }
1976
 
1977
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 1978
        getMessage_result result = new getMessage_result();
1979
        try {
3430 rajveer 1980
          result.success = iface.getMessage(args.id);
352 ashish 1981
        } catch (HelperServiceException se) {
1982
          result.se = se;
1983
        }
3430 rajveer 1984
        return result;
352 ashish 1985
      }
1986
    }
1987
 
3430 rajveer 1988
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
1989
      public getSubstitutedMessage() {
1990
        super("getSubstitutedMessage");
1991
      }
1992
 
1993
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
1994
        return new getSubstitutedMessage_args();
1995
      }
1996
 
1997
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 1998
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1999
        try {
3430 rajveer 2000
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2001
        } catch (HelperServiceException se) {
2002
          result.se = se;
2003
        }
3430 rajveer 2004
        return result;
352 ashish 2005
      }
2006
    }
2007
 
3430 rajveer 2008
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2009
      public addUser() {
2010
        super("addUser");
2011
      }
2012
 
2013
      protected addUser_args getEmptyArgsInstance() {
2014
        return new addUser_args();
2015
      }
2016
 
2017
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2018
        addUser_result result = new addUser_result();
2019
        try {
3430 rajveer 2020
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2021
          result.setSuccessIsSet(true);
2022
        } catch (HelperServiceException se) {
2023
          result.se = se;
2024
        }
3430 rajveer 2025
        return result;
495 rajveer 2026
      }
2027
    }
2028
 
3430 rajveer 2029
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2030
      public deleteUser() {
2031
        super("deleteUser");
2032
      }
2033
 
2034
      protected deleteUser_args getEmptyArgsInstance() {
2035
        return new deleteUser_args();
2036
      }
2037
 
2038
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2039
        deleteUser_result result = new deleteUser_result();
2040
        try {
3430 rajveer 2041
          result.success = iface.deleteUser(args.username);
495 rajveer 2042
          result.setSuccessIsSet(true);
2043
        } catch (HelperServiceException se) {
2044
          result.se = se;
2045
        }
3430 rajveer 2046
        return result;
495 rajveer 2047
      }
2048
    }
2049
 
3430 rajveer 2050
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2051
      public authenticateDashboardUser() {
2052
        super("authenticateDashboardUser");
2053
      }
2054
 
2055
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2056
        return new authenticateDashboardUser_args();
2057
      }
2058
 
2059
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2060
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2061
        try {
3430 rajveer 2062
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2063
        } catch (HelperServiceException se) {
2064
          result.se = se;
2065
        }
3430 rajveer 2066
        return result;
495 rajveer 2067
      }
2068
    }
2069
 
3430 rajveer 2070
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2071
      public updatePassword() {
2072
        super("updatePassword");
2073
      }
2074
 
2075
      protected updatePassword_args getEmptyArgsInstance() {
2076
        return new updatePassword_args();
2077
      }
2078
 
2079
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2080
        updatePassword_result result = new updatePassword_result();
2081
        try {
3430 rajveer 2082
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2083
          result.setSuccessIsSet(true);
2084
        } catch (HelperServiceException se) {
2085
          result.se = se;
2086
        }
3430 rajveer 2087
        return result;
495 rajveer 2088
      }
2089
    }
2090
 
3430 rajveer 2091
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2092
      public authenticateLogisticsUser() {
2093
        super("authenticateLogisticsUser");
2094
      }
2095
 
2096
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2097
        return new authenticateLogisticsUser_args();
2098
      }
2099
 
2100
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2101
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2102
        try {
3430 rajveer 2103
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2104
        } catch (HelperServiceException hse) {
2105
          result.hse = hse;
2106
        }
3430 rajveer 2107
        return result;
750 chandransh 2108
      }
2109
    }
2110
 
3430 rajveer 2111
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2112
      public authenticateStatisticsUser() {
2113
        super("authenticateStatisticsUser");
2114
      }
2115
 
2116
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2117
        return new authenticateStatisticsUser_args();
2118
      }
2119
 
2120
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2121
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2122
        try {
3430 rajveer 2123
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2124
        } catch (HelperServiceException hse) {
2125
          result.hse = hse;
2126
        }
3430 rajveer 2127
        return result;
1611 ankur.sing 2128
      }
2129
    }
2130
 
3430 rajveer 2131
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2132
      public authenticateReportUser() {
2133
        super("authenticateReportUser");
2134
      }
2135
 
2136
      protected authenticateReportUser_args getEmptyArgsInstance() {
2137
        return new authenticateReportUser_args();
2138
      }
2139
 
2140
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2141
        authenticateReportUser_result result = new authenticateReportUser_result();
2142
        try {
3430 rajveer 2143
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2144
        } catch (HelperServiceException hse) {
2145
          result.hse = hse;
2146
        }
3430 rajveer 2147
        return result;
1891 ankur.sing 2148
      }
2149
    }
2150
 
3430 rajveer 2151
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2152
      public getReports() {
2153
        super("getReports");
2154
      }
2155
 
2156
      protected getReports_args getEmptyArgsInstance() {
2157
        return new getReports_args();
2158
      }
2159
 
2160
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2161
        getReports_result result = new getReports_result();
3430 rajveer 2162
        result.success = iface.getReports(args.role);
2163
        return result;
1891 ankur.sing 2164
      }
2165
    }
2166
 
3430 rajveer 2167
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2168
      public authenticateCatalogUser() {
2169
        super("authenticateCatalogUser");
2170
      }
2171
 
2172
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2173
        return new authenticateCatalogUser_args();
2174
      }
2175
 
2176
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2177
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2178
        try {
3430 rajveer 2179
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2180
        } catch (HelperServiceException hse) {
2181
          result.hse = hse;
2182
        }
3430 rajveer 2183
        return result;
2024 ankur.sing 2184
      }
2185
    }
2186
 
4544 varun.gupt 2187
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2188
      public shareEntities() {
2189
        super("shareEntities");
2190
      }
2191
 
2192
      protected shareEntities_args getEmptyArgsInstance() {
2193
        return new shareEntities_args();
2194
      }
2195
 
2196
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2197
        shareEntities_result result = new shareEntities_result();
2198
        try {
2199
          iface.shareEntities(args.entityIds, args.email);
2200
        } catch (HelperServiceException hse) {
2201
          result.hse = hse;
2202
        }
2203
        return result;
2204
      }
2205
    }
2206
 
4693 mandeep.dh 2207
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2208
      public getAgents() {
2209
        super("getAgents");
2210
      }
2211
 
2212
      protected getAgents_args getEmptyArgsInstance() {
2213
        return new getAgents_args();
2214
      }
2215
 
2216
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2217
        getAgents_result result = new getAgents_result();
2218
        result.success = iface.getAgents();
2219
        return result;
2220
      }
2221
    }
2222
 
2223
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2224
      public validateLogIn() {
2225
        super("validateLogIn");
2226
      }
2227
 
2228
      protected validateLogIn_args getEmptyArgsInstance() {
2229
        return new validateLogIn_args();
2230
      }
2231
 
2232
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2233
        validateLogIn_result result = new validateLogIn_result();
2234
        result.success = iface.validateLogIn(args.emailId, args.password);
2235
        result.setSuccessIsSet(true);
2236
        return result;
2237
      }
2238
    }
2239
 
2240
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2241
      public updatePasswordForAgent() {
2242
        super("updatePasswordForAgent");
2243
      }
2244
 
2245
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2246
        return new updatePasswordForAgent_args();
2247
      }
2248
 
2249
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2250
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2251
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2252
        return result;
2253
      }
2254
    }
2255
 
2256
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2257
      public getRoleNamesForAgent() {
2258
        super("getRoleNamesForAgent");
2259
      }
2260
 
2261
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2262
        return new getRoleNamesForAgent_args();
2263
      }
2264
 
2265
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2266
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2267
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2268
        return result;
2269
      }
2270
    }
2271
 
2272
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2273
      public getPermissionsForRoleName() {
2274
        super("getPermissionsForRoleName");
2275
      }
2276
 
2277
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2278
        return new getPermissionsForRoleName_args();
2279
      }
2280
 
2281
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2282
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2283
        result.success = iface.getPermissionsForRoleName(args.roleName);
2284
        return result;
2285
      }
2286
    }
2287
 
4806 varun.gupt 2288
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2289
      public saveQuickLink() {
2290
        super("saveQuickLink");
2291
      }
2292
 
2293
      protected saveQuickLink_args getEmptyArgsInstance() {
2294
        return new saveQuickLink_args();
2295
      }
2296
 
2297
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2298
        saveQuickLink_result result = new saveQuickLink_result();
2299
        try {
2300
          iface.saveQuickLink(args.url, args.text);
2301
        } catch (HelperServiceException hse) {
2302
          result.hse = hse;
2303
        }
2304
        return result;
2305
      }
2306
    }
2307
 
2308
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2309
      public getQuickLinks() {
2310
        super("getQuickLinks");
2311
      }
2312
 
2313
      protected getQuickLinks_args getEmptyArgsInstance() {
2314
        return new getQuickLinks_args();
2315
      }
2316
 
2317
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2318
        getQuickLinks_result result = new getQuickLinks_result();
2319
        try {
2320
          result.success = iface.getQuickLinks();
2321
        } catch (HelperServiceException hse) {
2322
          result.hse = hse;
2323
        }
2324
        return result;
2325
      }
2326
    }
2327
 
352 ashish 2328
  }
2329
 
3430 rajveer 2330
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2332
 
3430 rajveer 2333
    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);
2334
    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);
2335
    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);
2336
    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);
2337
    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);
2338
    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 2339
 
3430 rajveer 2340
    private String emailTo; // required
2341
    private String emailFrom; // required
2342
    private String subject; // required
2343
    private String body; // required
2344
    private String source; // required
2345
    private String emailType; // required
1395 varun.gupt 2346
 
2347
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2348
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2349
      EMAIL_TO((short)1, "emailTo"),
2350
      EMAIL_FROM((short)2, "emailFrom"),
2351
      SUBJECT((short)3, "subject"),
2352
      BODY((short)4, "body"),
2353
      SOURCE((short)5, "source"),
2354
      EMAIL_TYPE((short)6, "emailType");
2355
 
2356
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2357
 
2358
      static {
2359
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2360
          byName.put(field.getFieldName(), field);
2361
        }
2362
      }
2363
 
2364
      /**
2365
       * Find the _Fields constant that matches fieldId, or null if its not found.
2366
       */
2367
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2368
        switch(fieldId) {
2369
          case 1: // EMAIL_TO
2370
            return EMAIL_TO;
2371
          case 2: // EMAIL_FROM
2372
            return EMAIL_FROM;
2373
          case 3: // SUBJECT
2374
            return SUBJECT;
2375
          case 4: // BODY
2376
            return BODY;
2377
          case 5: // SOURCE
2378
            return SOURCE;
2379
          case 6: // EMAIL_TYPE
2380
            return EMAIL_TYPE;
2381
          default:
2382
            return null;
2383
        }
1395 varun.gupt 2384
      }
2385
 
2386
      /**
2387
       * Find the _Fields constant that matches fieldId, throwing an exception
2388
       * if it is not found.
2389
       */
2390
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2391
        _Fields fields = findByThriftId(fieldId);
2392
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2393
        return fields;
2394
      }
2395
 
2396
      /**
2397
       * Find the _Fields constant that matches name, or null if its not found.
2398
       */
2399
      public static _Fields findByName(String name) {
2400
        return byName.get(name);
2401
      }
2402
 
2403
      private final short _thriftId;
2404
      private final String _fieldName;
2405
 
2406
      _Fields(short thriftId, String fieldName) {
2407
        _thriftId = thriftId;
2408
        _fieldName = fieldName;
2409
      }
2410
 
2411
      public short getThriftFieldId() {
2412
        return _thriftId;
2413
      }
2414
 
2415
      public String getFieldName() {
2416
        return _fieldName;
2417
      }
2418
    }
2419
 
2420
    // isset id assignments
2421
 
3430 rajveer 2422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2423
    static {
3430 rajveer 2424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2425
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2427
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2428
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2429
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2430
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2431
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2432
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2433
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2434
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2435
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2436
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2437
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2438
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2439
    }
2440
 
2441
    public saveUserEmailForSending_args() {
2442
    }
2443
 
2444
    public saveUserEmailForSending_args(
2445
      String emailTo,
2446
      String emailFrom,
2447
      String subject,
2448
      String body,
2449
      String source,
2450
      String emailType)
2451
    {
2452
      this();
2453
      this.emailTo = emailTo;
2454
      this.emailFrom = emailFrom;
2455
      this.subject = subject;
2456
      this.body = body;
2457
      this.source = source;
2458
      this.emailType = emailType;
2459
    }
2460
 
2461
    /**
2462
     * Performs a deep copy on <i>other</i>.
2463
     */
2464
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2465
      if (other.isSetEmailTo()) {
2466
        this.emailTo = other.emailTo;
2467
      }
2468
      if (other.isSetEmailFrom()) {
2469
        this.emailFrom = other.emailFrom;
2470
      }
2471
      if (other.isSetSubject()) {
2472
        this.subject = other.subject;
2473
      }
2474
      if (other.isSetBody()) {
2475
        this.body = other.body;
2476
      }
2477
      if (other.isSetSource()) {
2478
        this.source = other.source;
2479
      }
2480
      if (other.isSetEmailType()) {
2481
        this.emailType = other.emailType;
2482
      }
2483
    }
2484
 
2485
    public saveUserEmailForSending_args deepCopy() {
2486
      return new saveUserEmailForSending_args(this);
2487
    }
2488
 
3430 rajveer 2489
    @Override
2490
    public void clear() {
2491
      this.emailTo = null;
2492
      this.emailFrom = null;
2493
      this.subject = null;
2494
      this.body = null;
2495
      this.source = null;
2496
      this.emailType = null;
1395 varun.gupt 2497
    }
2498
 
2499
    public String getEmailTo() {
2500
      return this.emailTo;
2501
    }
2502
 
3430 rajveer 2503
    public void setEmailTo(String emailTo) {
1395 varun.gupt 2504
      this.emailTo = emailTo;
2505
    }
2506
 
2507
    public void unsetEmailTo() {
2508
      this.emailTo = null;
2509
    }
2510
 
3430 rajveer 2511
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2512
    public boolean isSetEmailTo() {
2513
      return this.emailTo != null;
2514
    }
2515
 
2516
    public void setEmailToIsSet(boolean value) {
2517
      if (!value) {
2518
        this.emailTo = null;
2519
      }
2520
    }
2521
 
2522
    public String getEmailFrom() {
2523
      return this.emailFrom;
2524
    }
2525
 
3430 rajveer 2526
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2527
      this.emailFrom = emailFrom;
2528
    }
2529
 
2530
    public void unsetEmailFrom() {
2531
      this.emailFrom = null;
2532
    }
2533
 
3430 rajveer 2534
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2535
    public boolean isSetEmailFrom() {
2536
      return this.emailFrom != null;
2537
    }
2538
 
2539
    public void setEmailFromIsSet(boolean value) {
2540
      if (!value) {
2541
        this.emailFrom = null;
2542
      }
2543
    }
2544
 
2545
    public String getSubject() {
2546
      return this.subject;
2547
    }
2548
 
3430 rajveer 2549
    public void setSubject(String subject) {
1395 varun.gupt 2550
      this.subject = subject;
2551
    }
2552
 
2553
    public void unsetSubject() {
2554
      this.subject = null;
2555
    }
2556
 
3430 rajveer 2557
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2558
    public boolean isSetSubject() {
2559
      return this.subject != null;
2560
    }
2561
 
2562
    public void setSubjectIsSet(boolean value) {
2563
      if (!value) {
2564
        this.subject = null;
2565
      }
2566
    }
2567
 
2568
    public String getBody() {
2569
      return this.body;
2570
    }
2571
 
3430 rajveer 2572
    public void setBody(String body) {
1395 varun.gupt 2573
      this.body = body;
2574
    }
2575
 
2576
    public void unsetBody() {
2577
      this.body = null;
2578
    }
2579
 
3430 rajveer 2580
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2581
    public boolean isSetBody() {
2582
      return this.body != null;
2583
    }
2584
 
2585
    public void setBodyIsSet(boolean value) {
2586
      if (!value) {
2587
        this.body = null;
2588
      }
2589
    }
2590
 
2591
    public String getSource() {
2592
      return this.source;
2593
    }
2594
 
3430 rajveer 2595
    public void setSource(String source) {
1395 varun.gupt 2596
      this.source = source;
2597
    }
2598
 
2599
    public void unsetSource() {
2600
      this.source = null;
2601
    }
2602
 
3430 rajveer 2603
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2604
    public boolean isSetSource() {
2605
      return this.source != null;
2606
    }
2607
 
2608
    public void setSourceIsSet(boolean value) {
2609
      if (!value) {
2610
        this.source = null;
2611
      }
2612
    }
2613
 
2614
    public String getEmailType() {
2615
      return this.emailType;
2616
    }
2617
 
3430 rajveer 2618
    public void setEmailType(String emailType) {
1395 varun.gupt 2619
      this.emailType = emailType;
2620
    }
2621
 
2622
    public void unsetEmailType() {
2623
      this.emailType = null;
2624
    }
2625
 
3430 rajveer 2626
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2627
    public boolean isSetEmailType() {
2628
      return this.emailType != null;
2629
    }
2630
 
2631
    public void setEmailTypeIsSet(boolean value) {
2632
      if (!value) {
2633
        this.emailType = null;
2634
      }
2635
    }
2636
 
2637
    public void setFieldValue(_Fields field, Object value) {
2638
      switch (field) {
2639
      case EMAIL_TO:
2640
        if (value == null) {
2641
          unsetEmailTo();
2642
        } else {
2643
          setEmailTo((String)value);
2644
        }
2645
        break;
2646
 
2647
      case EMAIL_FROM:
2648
        if (value == null) {
2649
          unsetEmailFrom();
2650
        } else {
2651
          setEmailFrom((String)value);
2652
        }
2653
        break;
2654
 
2655
      case SUBJECT:
2656
        if (value == null) {
2657
          unsetSubject();
2658
        } else {
2659
          setSubject((String)value);
2660
        }
2661
        break;
2662
 
2663
      case BODY:
2664
        if (value == null) {
2665
          unsetBody();
2666
        } else {
2667
          setBody((String)value);
2668
        }
2669
        break;
2670
 
2671
      case SOURCE:
2672
        if (value == null) {
2673
          unsetSource();
2674
        } else {
2675
          setSource((String)value);
2676
        }
2677
        break;
2678
 
2679
      case EMAIL_TYPE:
2680
        if (value == null) {
2681
          unsetEmailType();
2682
        } else {
2683
          setEmailType((String)value);
2684
        }
2685
        break;
2686
 
2687
      }
2688
    }
2689
 
2690
    public Object getFieldValue(_Fields field) {
2691
      switch (field) {
2692
      case EMAIL_TO:
2693
        return getEmailTo();
2694
 
2695
      case EMAIL_FROM:
2696
        return getEmailFrom();
2697
 
2698
      case SUBJECT:
2699
        return getSubject();
2700
 
2701
      case BODY:
2702
        return getBody();
2703
 
2704
      case SOURCE:
2705
        return getSource();
2706
 
2707
      case EMAIL_TYPE:
2708
        return getEmailType();
2709
 
2710
      }
2711
      throw new IllegalStateException();
2712
    }
2713
 
3430 rajveer 2714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2715
    public boolean isSet(_Fields field) {
2716
      if (field == null) {
2717
        throw new IllegalArgumentException();
2718
      }
1395 varun.gupt 2719
 
2720
      switch (field) {
2721
      case EMAIL_TO:
2722
        return isSetEmailTo();
2723
      case EMAIL_FROM:
2724
        return isSetEmailFrom();
2725
      case SUBJECT:
2726
        return isSetSubject();
2727
      case BODY:
2728
        return isSetBody();
2729
      case SOURCE:
2730
        return isSetSource();
2731
      case EMAIL_TYPE:
2732
        return isSetEmailType();
2733
      }
2734
      throw new IllegalStateException();
2735
    }
2736
 
2737
    @Override
2738
    public boolean equals(Object that) {
2739
      if (that == null)
2740
        return false;
2741
      if (that instanceof saveUserEmailForSending_args)
2742
        return this.equals((saveUserEmailForSending_args)that);
2743
      return false;
2744
    }
2745
 
2746
    public boolean equals(saveUserEmailForSending_args that) {
2747
      if (that == null)
2748
        return false;
2749
 
2750
      boolean this_present_emailTo = true && this.isSetEmailTo();
2751
      boolean that_present_emailTo = true && that.isSetEmailTo();
2752
      if (this_present_emailTo || that_present_emailTo) {
2753
        if (!(this_present_emailTo && that_present_emailTo))
2754
          return false;
2755
        if (!this.emailTo.equals(that.emailTo))
2756
          return false;
2757
      }
2758
 
2759
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2760
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2761
      if (this_present_emailFrom || that_present_emailFrom) {
2762
        if (!(this_present_emailFrom && that_present_emailFrom))
2763
          return false;
2764
        if (!this.emailFrom.equals(that.emailFrom))
2765
          return false;
2766
      }
2767
 
2768
      boolean this_present_subject = true && this.isSetSubject();
2769
      boolean that_present_subject = true && that.isSetSubject();
2770
      if (this_present_subject || that_present_subject) {
2771
        if (!(this_present_subject && that_present_subject))
2772
          return false;
2773
        if (!this.subject.equals(that.subject))
2774
          return false;
2775
      }
2776
 
2777
      boolean this_present_body = true && this.isSetBody();
2778
      boolean that_present_body = true && that.isSetBody();
2779
      if (this_present_body || that_present_body) {
2780
        if (!(this_present_body && that_present_body))
2781
          return false;
2782
        if (!this.body.equals(that.body))
2783
          return false;
2784
      }
2785
 
2786
      boolean this_present_source = true && this.isSetSource();
2787
      boolean that_present_source = true && that.isSetSource();
2788
      if (this_present_source || that_present_source) {
2789
        if (!(this_present_source && that_present_source))
2790
          return false;
2791
        if (!this.source.equals(that.source))
2792
          return false;
2793
      }
2794
 
2795
      boolean this_present_emailType = true && this.isSetEmailType();
2796
      boolean that_present_emailType = true && that.isSetEmailType();
2797
      if (this_present_emailType || that_present_emailType) {
2798
        if (!(this_present_emailType && that_present_emailType))
2799
          return false;
2800
        if (!this.emailType.equals(that.emailType))
2801
          return false;
2802
      }
2803
 
2804
      return true;
2805
    }
2806
 
2807
    @Override
2808
    public int hashCode() {
2809
      return 0;
2810
    }
2811
 
2812
    public int compareTo(saveUserEmailForSending_args other) {
2813
      if (!getClass().equals(other.getClass())) {
2814
        return getClass().getName().compareTo(other.getClass().getName());
2815
      }
2816
 
2817
      int lastComparison = 0;
2818
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2819
 
3430 rajveer 2820
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 2821
      if (lastComparison != 0) {
2822
        return lastComparison;
2823
      }
3430 rajveer 2824
      if (isSetEmailTo()) {
2825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
2826
        if (lastComparison != 0) {
2827
          return lastComparison;
2828
        }
1395 varun.gupt 2829
      }
3430 rajveer 2830
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 2831
      if (lastComparison != 0) {
2832
        return lastComparison;
2833
      }
3430 rajveer 2834
      if (isSetEmailFrom()) {
2835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
2836
        if (lastComparison != 0) {
2837
          return lastComparison;
2838
        }
1395 varun.gupt 2839
      }
3430 rajveer 2840
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 2841
      if (lastComparison != 0) {
2842
        return lastComparison;
2843
      }
3430 rajveer 2844
      if (isSetSubject()) {
2845
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
2846
        if (lastComparison != 0) {
2847
          return lastComparison;
2848
        }
1395 varun.gupt 2849
      }
3430 rajveer 2850
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 2851
      if (lastComparison != 0) {
2852
        return lastComparison;
2853
      }
3430 rajveer 2854
      if (isSetBody()) {
2855
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
2856
        if (lastComparison != 0) {
2857
          return lastComparison;
2858
        }
1395 varun.gupt 2859
      }
3430 rajveer 2860
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 2861
      if (lastComparison != 0) {
2862
        return lastComparison;
2863
      }
3430 rajveer 2864
      if (isSetSource()) {
2865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2866
        if (lastComparison != 0) {
2867
          return lastComparison;
2868
        }
1395 varun.gupt 2869
      }
3430 rajveer 2870
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 2871
      if (lastComparison != 0) {
2872
        return lastComparison;
2873
      }
3430 rajveer 2874
      if (isSetEmailType()) {
2875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
2876
        if (lastComparison != 0) {
2877
          return lastComparison;
2878
        }
1395 varun.gupt 2879
      }
2880
      return 0;
2881
    }
2882
 
3430 rajveer 2883
    public _Fields fieldForId(int fieldId) {
2884
      return _Fields.findByThriftId(fieldId);
2885
    }
2886
 
2887
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2888
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2889
      iprot.readStructBegin();
2890
      while (true)
2891
      {
2892
        field = iprot.readFieldBegin();
3430 rajveer 2893
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2894
          break;
2895
        }
3430 rajveer 2896
        switch (field.id) {
2897
          case 1: // EMAIL_TO
2898
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2899
              this.emailTo = iprot.readString();
2900
            } else { 
2901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2902
            }
2903
            break;
2904
          case 2: // EMAIL_FROM
2905
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2906
              this.emailFrom = iprot.readString();
2907
            } else { 
2908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2909
            }
2910
            break;
2911
          case 3: // SUBJECT
2912
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2913
              this.subject = iprot.readString();
2914
            } else { 
2915
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2916
            }
2917
            break;
2918
          case 4: // BODY
2919
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2920
              this.body = iprot.readString();
2921
            } else { 
2922
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2923
            }
2924
            break;
2925
          case 5: // SOURCE
2926
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2927
              this.source = iprot.readString();
2928
            } else { 
2929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2930
            }
2931
            break;
2932
          case 6: // EMAIL_TYPE
2933
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2934
              this.emailType = iprot.readString();
2935
            } else { 
2936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2937
            }
2938
            break;
2939
          default:
2940
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2941
        }
3430 rajveer 2942
        iprot.readFieldEnd();
1395 varun.gupt 2943
      }
2944
      iprot.readStructEnd();
2945
      validate();
2946
    }
2947
 
3430 rajveer 2948
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2949
      validate();
2950
 
2951
      oprot.writeStructBegin(STRUCT_DESC);
2952
      if (this.emailTo != null) {
2953
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
2954
        oprot.writeString(this.emailTo);
2955
        oprot.writeFieldEnd();
2956
      }
2957
      if (this.emailFrom != null) {
2958
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
2959
        oprot.writeString(this.emailFrom);
2960
        oprot.writeFieldEnd();
2961
      }
2962
      if (this.subject != null) {
2963
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
2964
        oprot.writeString(this.subject);
2965
        oprot.writeFieldEnd();
2966
      }
2967
      if (this.body != null) {
2968
        oprot.writeFieldBegin(BODY_FIELD_DESC);
2969
        oprot.writeString(this.body);
2970
        oprot.writeFieldEnd();
2971
      }
2972
      if (this.source != null) {
2973
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
2974
        oprot.writeString(this.source);
2975
        oprot.writeFieldEnd();
2976
      }
2977
      if (this.emailType != null) {
2978
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
2979
        oprot.writeString(this.emailType);
2980
        oprot.writeFieldEnd();
2981
      }
2982
      oprot.writeFieldStop();
2983
      oprot.writeStructEnd();
2984
    }
2985
 
2986
    @Override
2987
    public String toString() {
2988
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
2989
      boolean first = true;
2990
 
2991
      sb.append("emailTo:");
2992
      if (this.emailTo == null) {
2993
        sb.append("null");
2994
      } else {
2995
        sb.append(this.emailTo);
2996
      }
2997
      first = false;
2998
      if (!first) sb.append(", ");
2999
      sb.append("emailFrom:");
3000
      if (this.emailFrom == null) {
3001
        sb.append("null");
3002
      } else {
3003
        sb.append(this.emailFrom);
3004
      }
3005
      first = false;
3006
      if (!first) sb.append(", ");
3007
      sb.append("subject:");
3008
      if (this.subject == null) {
3009
        sb.append("null");
3010
      } else {
3011
        sb.append(this.subject);
3012
      }
3013
      first = false;
3014
      if (!first) sb.append(", ");
3015
      sb.append("body:");
3016
      if (this.body == null) {
3017
        sb.append("null");
3018
      } else {
3019
        sb.append(this.body);
3020
      }
3021
      first = false;
3022
      if (!first) sb.append(", ");
3023
      sb.append("source:");
3024
      if (this.source == null) {
3025
        sb.append("null");
3026
      } else {
3027
        sb.append(this.source);
3028
      }
3029
      first = false;
3030
      if (!first) sb.append(", ");
3031
      sb.append("emailType:");
3032
      if (this.emailType == null) {
3033
        sb.append("null");
3034
      } else {
3035
        sb.append(this.emailType);
3036
      }
3037
      first = false;
3038
      sb.append(")");
3039
      return sb.toString();
3040
    }
3041
 
3430 rajveer 3042
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3043
      // check for required fields
3044
    }
3045
 
3430 rajveer 3046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3047
      try {
3048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3049
      } catch (org.apache.thrift.TException te) {
3050
        throw new java.io.IOException(te);
3051
      }
3052
    }
3053
 
3054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3055
      try {
3056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3057
      } catch (org.apache.thrift.TException te) {
3058
        throw new java.io.IOException(te);
3059
      }
3060
    }
3061
 
1395 varun.gupt 3062
  }
3063
 
3430 rajveer 3064
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3066
 
3430 rajveer 3067
    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);
3068
    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 3069
 
3430 rajveer 3070
    private long success; // required
3071
    private HelperServiceException se; // required
1395 varun.gupt 3072
 
3073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3075
      SUCCESS((short)0, "success"),
1395 varun.gupt 3076
      SE((short)1, "se");
3077
 
3078
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3079
 
3080
      static {
3081
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3082
          byName.put(field.getFieldName(), field);
3083
        }
3084
      }
3085
 
3086
      /**
3087
       * Find the _Fields constant that matches fieldId, or null if its not found.
3088
       */
3089
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3090
        switch(fieldId) {
3091
          case 0: // SUCCESS
3092
            return SUCCESS;
3093
          case 1: // SE
3094
            return SE;
3095
          default:
3096
            return null;
3097
        }
1395 varun.gupt 3098
      }
3099
 
3100
      /**
3101
       * Find the _Fields constant that matches fieldId, throwing an exception
3102
       * if it is not found.
3103
       */
3104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3105
        _Fields fields = findByThriftId(fieldId);
3106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3107
        return fields;
3108
      }
3109
 
3110
      /**
3111
       * Find the _Fields constant that matches name, or null if its not found.
3112
       */
3113
      public static _Fields findByName(String name) {
3114
        return byName.get(name);
3115
      }
3116
 
3117
      private final short _thriftId;
3118
      private final String _fieldName;
3119
 
3120
      _Fields(short thriftId, String fieldName) {
3121
        _thriftId = thriftId;
3122
        _fieldName = fieldName;
3123
      }
3124
 
3125
      public short getThriftFieldId() {
3126
        return _thriftId;
3127
      }
3128
 
3129
      public String getFieldName() {
3130
        return _fieldName;
3131
      }
3132
    }
3133
 
3134
    // isset id assignments
3206 mandeep.dh 3135
    private static final int __SUCCESS_ISSET_ID = 0;
3136
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3137
 
3430 rajveer 3138
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3139
    static {
3430 rajveer 3140
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3141
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3142
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3143
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3144
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3145
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3146
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3147
    }
3148
 
3149
    public saveUserEmailForSending_result() {
3150
    }
3151
 
3152
    public saveUserEmailForSending_result(
3206 mandeep.dh 3153
      long success,
1395 varun.gupt 3154
      HelperServiceException se)
3155
    {
3156
      this();
3206 mandeep.dh 3157
      this.success = success;
3158
      setSuccessIsSet(true);
1395 varun.gupt 3159
      this.se = se;
3160
    }
3161
 
3162
    /**
3163
     * Performs a deep copy on <i>other</i>.
3164
     */
3165
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3166
      __isset_bit_vector.clear();
3167
      __isset_bit_vector.or(other.__isset_bit_vector);
3168
      this.success = other.success;
1395 varun.gupt 3169
      if (other.isSetSe()) {
3170
        this.se = new HelperServiceException(other.se);
3171
      }
3172
    }
3173
 
3174
    public saveUserEmailForSending_result deepCopy() {
3175
      return new saveUserEmailForSending_result(this);
3176
    }
3177
 
3430 rajveer 3178
    @Override
3179
    public void clear() {
3180
      setSuccessIsSet(false);
3181
      this.success = 0;
3182
      this.se = null;
1395 varun.gupt 3183
    }
3184
 
3206 mandeep.dh 3185
    public long getSuccess() {
3186
      return this.success;
3187
    }
3188
 
3430 rajveer 3189
    public void setSuccess(long success) {
3206 mandeep.dh 3190
      this.success = success;
3191
      setSuccessIsSet(true);
3192
    }
3193
 
3194
    public void unsetSuccess() {
3195
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3196
    }
3197
 
3430 rajveer 3198
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3199
    public boolean isSetSuccess() {
3200
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3201
    }
3202
 
3203
    public void setSuccessIsSet(boolean value) {
3204
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3205
    }
3206
 
1395 varun.gupt 3207
    public HelperServiceException getSe() {
3208
      return this.se;
3209
    }
3210
 
3430 rajveer 3211
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3212
      this.se = se;
3213
    }
3214
 
3215
    public void unsetSe() {
3216
      this.se = null;
3217
    }
3218
 
3430 rajveer 3219
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3220
    public boolean isSetSe() {
3221
      return this.se != null;
3222
    }
3223
 
3224
    public void setSeIsSet(boolean value) {
3225
      if (!value) {
3226
        this.se = null;
3227
      }
3228
    }
3229
 
3230
    public void setFieldValue(_Fields field, Object value) {
3231
      switch (field) {
3206 mandeep.dh 3232
      case SUCCESS:
3233
        if (value == null) {
3234
          unsetSuccess();
3235
        } else {
3236
          setSuccess((Long)value);
3237
        }
3238
        break;
3239
 
1395 varun.gupt 3240
      case SE:
3241
        if (value == null) {
3242
          unsetSe();
3243
        } else {
3244
          setSe((HelperServiceException)value);
3245
        }
3246
        break;
3247
 
3248
      }
3249
    }
3250
 
3251
    public Object getFieldValue(_Fields field) {
3252
      switch (field) {
3206 mandeep.dh 3253
      case SUCCESS:
3430 rajveer 3254
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3255
 
1395 varun.gupt 3256
      case SE:
3257
        return getSe();
3258
 
3259
      }
3260
      throw new IllegalStateException();
3261
    }
3262
 
3430 rajveer 3263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3264
    public boolean isSet(_Fields field) {
3265
      if (field == null) {
3266
        throw new IllegalArgumentException();
3267
      }
1395 varun.gupt 3268
 
3269
      switch (field) {
3206 mandeep.dh 3270
      case SUCCESS:
3271
        return isSetSuccess();
1395 varun.gupt 3272
      case SE:
3273
        return isSetSe();
3274
      }
3275
      throw new IllegalStateException();
3276
    }
3277
 
3278
    @Override
3279
    public boolean equals(Object that) {
3280
      if (that == null)
3281
        return false;
3282
      if (that instanceof saveUserEmailForSending_result)
3283
        return this.equals((saveUserEmailForSending_result)that);
3284
      return false;
3285
    }
3286
 
3287
    public boolean equals(saveUserEmailForSending_result that) {
3288
      if (that == null)
3289
        return false;
3290
 
3206 mandeep.dh 3291
      boolean this_present_success = true;
3292
      boolean that_present_success = true;
3293
      if (this_present_success || that_present_success) {
3294
        if (!(this_present_success && that_present_success))
3295
          return false;
3296
        if (this.success != that.success)
3297
          return false;
3298
      }
3299
 
1395 varun.gupt 3300
      boolean this_present_se = true && this.isSetSe();
3301
      boolean that_present_se = true && that.isSetSe();
3302
      if (this_present_se || that_present_se) {
3303
        if (!(this_present_se && that_present_se))
3304
          return false;
3305
        if (!this.se.equals(that.se))
3306
          return false;
3307
      }
3308
 
3309
      return true;
3310
    }
3311
 
3312
    @Override
3313
    public int hashCode() {
3314
      return 0;
3315
    }
3316
 
3317
    public int compareTo(saveUserEmailForSending_result other) {
3318
      if (!getClass().equals(other.getClass())) {
3319
        return getClass().getName().compareTo(other.getClass().getName());
3320
      }
3321
 
3322
      int lastComparison = 0;
3323
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3324
 
3430 rajveer 3325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3326
      if (lastComparison != 0) {
3327
        return lastComparison;
3328
      }
3430 rajveer 3329
      if (isSetSuccess()) {
3330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3331
        if (lastComparison != 0) {
3332
          return lastComparison;
3333
        }
3206 mandeep.dh 3334
      }
3430 rajveer 3335
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3336
      if (lastComparison != 0) {
3337
        return lastComparison;
3338
      }
3430 rajveer 3339
      if (isSetSe()) {
3340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3341
        if (lastComparison != 0) {
3342
          return lastComparison;
3343
        }
1395 varun.gupt 3344
      }
3345
      return 0;
3346
    }
3347
 
3430 rajveer 3348
    public _Fields fieldForId(int fieldId) {
3349
      return _Fields.findByThriftId(fieldId);
3350
    }
3351
 
3352
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3353
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3354
      iprot.readStructBegin();
3355
      while (true)
3356
      {
3357
        field = iprot.readFieldBegin();
3430 rajveer 3358
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3359
          break;
3360
        }
3430 rajveer 3361
        switch (field.id) {
3362
          case 0: // SUCCESS
3363
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3364
              this.success = iprot.readI64();
3365
              setSuccessIsSet(true);
3366
            } else { 
3367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3368
            }
3369
            break;
3370
          case 1: // SE
3371
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3372
              this.se = new HelperServiceException();
3373
              this.se.read(iprot);
3374
            } else { 
3375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3376
            }
3377
            break;
3378
          default:
3379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3380
        }
3430 rajveer 3381
        iprot.readFieldEnd();
1395 varun.gupt 3382
      }
3383
      iprot.readStructEnd();
3384
      validate();
3385
    }
3386
 
3430 rajveer 3387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3388
      oprot.writeStructBegin(STRUCT_DESC);
3389
 
3206 mandeep.dh 3390
      if (this.isSetSuccess()) {
3391
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3392
        oprot.writeI64(this.success);
3393
        oprot.writeFieldEnd();
3394
      } else if (this.isSetSe()) {
1395 varun.gupt 3395
        oprot.writeFieldBegin(SE_FIELD_DESC);
3396
        this.se.write(oprot);
3397
        oprot.writeFieldEnd();
3398
      }
3399
      oprot.writeFieldStop();
3400
      oprot.writeStructEnd();
3401
    }
3402
 
3403
    @Override
3404
    public String toString() {
3405
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3406
      boolean first = true;
3407
 
3206 mandeep.dh 3408
      sb.append("success:");
3409
      sb.append(this.success);
3410
      first = false;
3411
      if (!first) sb.append(", ");
1395 varun.gupt 3412
      sb.append("se:");
3413
      if (this.se == null) {
3414
        sb.append("null");
3415
      } else {
3416
        sb.append(this.se);
3417
      }
3418
      first = false;
3419
      sb.append(")");
3420
      return sb.toString();
3421
    }
3422
 
3430 rajveer 3423
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3424
      // check for required fields
3425
    }
3426
 
3430 rajveer 3427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3428
      try {
3429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3430
      } catch (org.apache.thrift.TException te) {
3431
        throw new java.io.IOException(te);
3432
      }
3433
    }
3434
 
3435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3436
      try {
3437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3438
      } catch (org.apache.thrift.TException te) {
3439
        throw new java.io.IOException(te);
3440
      }
3441
    }
3442
 
1395 varun.gupt 3443
  }
3444
 
3430 rajveer 3445
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3447
 
3448
 
3449
 
3450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 3452
;
1422 varun.gupt 3453
 
3454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3455
 
3456
      static {
3457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3458
          byName.put(field.getFieldName(), field);
3459
        }
3460
      }
3461
 
3462
      /**
3463
       * Find the _Fields constant that matches fieldId, or null if its not found.
3464
       */
3465
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3466
        switch(fieldId) {
3467
          default:
3468
            return null;
3469
        }
1422 varun.gupt 3470
      }
3471
 
3472
      /**
3473
       * Find the _Fields constant that matches fieldId, throwing an exception
3474
       * if it is not found.
3475
       */
3476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3477
        _Fields fields = findByThriftId(fieldId);
3478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3479
        return fields;
3480
      }
3481
 
3482
      /**
3483
       * Find the _Fields constant that matches name, or null if its not found.
3484
       */
3485
      public static _Fields findByName(String name) {
3486
        return byName.get(name);
3487
      }
3488
 
3489
      private final short _thriftId;
3490
      private final String _fieldName;
3491
 
3492
      _Fields(short thriftId, String fieldName) {
3493
        _thriftId = thriftId;
3494
        _fieldName = fieldName;
3495
      }
3496
 
3497
      public short getThriftFieldId() {
3498
        return _thriftId;
3499
      }
3500
 
3501
      public String getFieldName() {
3502
        return _fieldName;
3503
      }
3504
    }
3430 rajveer 3505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3506
    static {
3430 rajveer 3507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 3510
    }
3511
 
3512
    public getEmailsToBeSent_args() {
3513
    }
3514
 
3515
    /**
3516
     * Performs a deep copy on <i>other</i>.
3517
     */
3518
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
3519
    }
3520
 
3521
    public getEmailsToBeSent_args deepCopy() {
3522
      return new getEmailsToBeSent_args(this);
3523
    }
3524
 
3430 rajveer 3525
    @Override
3526
    public void clear() {
1422 varun.gupt 3527
    }
3528
 
3529
    public void setFieldValue(_Fields field, Object value) {
3530
      switch (field) {
3531
      }
3532
    }
3533
 
3534
    public Object getFieldValue(_Fields field) {
3535
      switch (field) {
3536
      }
3537
      throw new IllegalStateException();
3538
    }
3539
 
3430 rajveer 3540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3541
    public boolean isSet(_Fields field) {
3542
      if (field == null) {
3543
        throw new IllegalArgumentException();
3544
      }
1422 varun.gupt 3545
 
3546
      switch (field) {
3547
      }
3548
      throw new IllegalStateException();
3549
    }
3550
 
3551
    @Override
3552
    public boolean equals(Object that) {
3553
      if (that == null)
3554
        return false;
3555
      if (that instanceof getEmailsToBeSent_args)
3556
        return this.equals((getEmailsToBeSent_args)that);
3557
      return false;
3558
    }
3559
 
3560
    public boolean equals(getEmailsToBeSent_args that) {
3561
      if (that == null)
3562
        return false;
3563
 
3564
      return true;
3565
    }
3566
 
3567
    @Override
3568
    public int hashCode() {
3569
      return 0;
3570
    }
3571
 
3572
    public int compareTo(getEmailsToBeSent_args other) {
3573
      if (!getClass().equals(other.getClass())) {
3574
        return getClass().getName().compareTo(other.getClass().getName());
3575
      }
3576
 
3577
      int lastComparison = 0;
3578
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
3579
 
3580
      return 0;
3581
    }
3582
 
3430 rajveer 3583
    public _Fields fieldForId(int fieldId) {
3584
      return _Fields.findByThriftId(fieldId);
3585
    }
3586
 
3587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3588
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3589
      iprot.readStructBegin();
3590
      while (true)
3591
      {
3592
        field = iprot.readFieldBegin();
3430 rajveer 3593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3594
          break;
3595
        }
3430 rajveer 3596
        switch (field.id) {
3597
          default:
3598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3599
        }
3430 rajveer 3600
        iprot.readFieldEnd();
1422 varun.gupt 3601
      }
3602
      iprot.readStructEnd();
3603
      validate();
3604
    }
3605
 
3430 rajveer 3606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3607
      validate();
3608
 
3609
      oprot.writeStructBegin(STRUCT_DESC);
3610
      oprot.writeFieldStop();
3611
      oprot.writeStructEnd();
3612
    }
3613
 
3614
    @Override
3615
    public String toString() {
3616
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
3617
      boolean first = true;
3618
 
3619
      sb.append(")");
3620
      return sb.toString();
3621
    }
3622
 
3430 rajveer 3623
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3624
      // check for required fields
3625
    }
3626
 
3430 rajveer 3627
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3628
      try {
3629
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3630
      } catch (org.apache.thrift.TException te) {
3631
        throw new java.io.IOException(te);
3632
      }
3633
    }
3634
 
3635
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3636
      try {
3637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3638
      } catch (org.apache.thrift.TException te) {
3639
        throw new java.io.IOException(te);
3640
      }
3641
    }
3642
 
1422 varun.gupt 3643
  }
3644
 
3430 rajveer 3645
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3647
 
3430 rajveer 3648
    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);
3649
    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 3650
 
3430 rajveer 3651
    private List<UserEmail> success; // required
3652
    private HelperServiceException se; // required
1422 varun.gupt 3653
 
3654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3656
      SUCCESS((short)0, "success"),
3657
      SE((short)1, "se");
3658
 
3659
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3660
 
3661
      static {
3662
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3663
          byName.put(field.getFieldName(), field);
3664
        }
3665
      }
3666
 
3667
      /**
3668
       * Find the _Fields constant that matches fieldId, or null if its not found.
3669
       */
3670
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3671
        switch(fieldId) {
3672
          case 0: // SUCCESS
3673
            return SUCCESS;
3674
          case 1: // SE
3675
            return SE;
3676
          default:
3677
            return null;
3678
        }
1422 varun.gupt 3679
      }
3680
 
3681
      /**
3682
       * Find the _Fields constant that matches fieldId, throwing an exception
3683
       * if it is not found.
3684
       */
3685
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3686
        _Fields fields = findByThriftId(fieldId);
3687
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3688
        return fields;
3689
      }
3690
 
3691
      /**
3692
       * Find the _Fields constant that matches name, or null if its not found.
3693
       */
3694
      public static _Fields findByName(String name) {
3695
        return byName.get(name);
3696
      }
3697
 
3698
      private final short _thriftId;
3699
      private final String _fieldName;
3700
 
3701
      _Fields(short thriftId, String fieldName) {
3702
        _thriftId = thriftId;
3703
        _fieldName = fieldName;
3704
      }
3705
 
3706
      public short getThriftFieldId() {
3707
        return _thriftId;
3708
      }
3709
 
3710
      public String getFieldName() {
3711
        return _fieldName;
3712
      }
3713
    }
3714
 
3715
    // isset id assignments
3716
 
3430 rajveer 3717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3718
    static {
3430 rajveer 3719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3720
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3721
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3722
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3723
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3727
    }
3728
 
3729
    public getEmailsToBeSent_result() {
3730
    }
3731
 
3732
    public getEmailsToBeSent_result(
3733
      List<UserEmail> success,
3734
      HelperServiceException se)
3735
    {
3736
      this();
3737
      this.success = success;
3738
      this.se = se;
3739
    }
3740
 
3741
    /**
3742
     * Performs a deep copy on <i>other</i>.
3743
     */
3744
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3745
      if (other.isSetSuccess()) {
3746
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3747
        for (UserEmail other_element : other.success) {
3748
          __this__success.add(new UserEmail(other_element));
3749
        }
3750
        this.success = __this__success;
3751
      }
3752
      if (other.isSetSe()) {
3753
        this.se = new HelperServiceException(other.se);
3754
      }
3755
    }
3756
 
3757
    public getEmailsToBeSent_result deepCopy() {
3758
      return new getEmailsToBeSent_result(this);
3759
    }
3760
 
3430 rajveer 3761
    @Override
3762
    public void clear() {
3763
      this.success = null;
3764
      this.se = null;
1422 varun.gupt 3765
    }
3766
 
3767
    public int getSuccessSize() {
3768
      return (this.success == null) ? 0 : this.success.size();
3769
    }
3770
 
3771
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3772
      return (this.success == null) ? null : this.success.iterator();
3773
    }
3774
 
3775
    public void addToSuccess(UserEmail elem) {
3776
      if (this.success == null) {
3777
        this.success = new ArrayList<UserEmail>();
3778
      }
3779
      this.success.add(elem);
3780
    }
3781
 
3782
    public List<UserEmail> getSuccess() {
3783
      return this.success;
3784
    }
3785
 
3430 rajveer 3786
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3787
      this.success = success;
3788
    }
3789
 
3790
    public void unsetSuccess() {
3791
      this.success = null;
3792
    }
3793
 
3430 rajveer 3794
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3795
    public boolean isSetSuccess() {
3796
      return this.success != null;
3797
    }
3798
 
3799
    public void setSuccessIsSet(boolean value) {
3800
      if (!value) {
3801
        this.success = null;
3802
      }
3803
    }
3804
 
3805
    public HelperServiceException getSe() {
3806
      return this.se;
3807
    }
3808
 
3430 rajveer 3809
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3810
      this.se = se;
3811
    }
3812
 
3813
    public void unsetSe() {
3814
      this.se = null;
3815
    }
3816
 
3430 rajveer 3817
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3818
    public boolean isSetSe() {
3819
      return this.se != null;
3820
    }
3821
 
3822
    public void setSeIsSet(boolean value) {
3823
      if (!value) {
3824
        this.se = null;
3825
      }
3826
    }
3827
 
3828
    public void setFieldValue(_Fields field, Object value) {
3829
      switch (field) {
3830
      case SUCCESS:
3831
        if (value == null) {
3832
          unsetSuccess();
3833
        } else {
3834
          setSuccess((List<UserEmail>)value);
3835
        }
3836
        break;
3837
 
3838
      case SE:
3839
        if (value == null) {
3840
          unsetSe();
3841
        } else {
3842
          setSe((HelperServiceException)value);
3843
        }
3844
        break;
3845
 
3846
      }
3847
    }
3848
 
3849
    public Object getFieldValue(_Fields field) {
3850
      switch (field) {
3851
      case SUCCESS:
3852
        return getSuccess();
3853
 
3854
      case SE:
3855
        return getSe();
3856
 
3857
      }
3858
      throw new IllegalStateException();
3859
    }
3860
 
3430 rajveer 3861
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3862
    public boolean isSet(_Fields field) {
3863
      if (field == null) {
3864
        throw new IllegalArgumentException();
3865
      }
1422 varun.gupt 3866
 
3867
      switch (field) {
3868
      case SUCCESS:
3869
        return isSetSuccess();
3870
      case SE:
3871
        return isSetSe();
3872
      }
3873
      throw new IllegalStateException();
3874
    }
3875
 
3876
    @Override
3877
    public boolean equals(Object that) {
3878
      if (that == null)
3879
        return false;
3880
      if (that instanceof getEmailsToBeSent_result)
3881
        return this.equals((getEmailsToBeSent_result)that);
3882
      return false;
3883
    }
3884
 
3885
    public boolean equals(getEmailsToBeSent_result that) {
3886
      if (that == null)
3887
        return false;
3888
 
3889
      boolean this_present_success = true && this.isSetSuccess();
3890
      boolean that_present_success = true && that.isSetSuccess();
3891
      if (this_present_success || that_present_success) {
3892
        if (!(this_present_success && that_present_success))
3893
          return false;
3894
        if (!this.success.equals(that.success))
3895
          return false;
3896
      }
3897
 
3898
      boolean this_present_se = true && this.isSetSe();
3899
      boolean that_present_se = true && that.isSetSe();
3900
      if (this_present_se || that_present_se) {
3901
        if (!(this_present_se && that_present_se))
3902
          return false;
3903
        if (!this.se.equals(that.se))
3904
          return false;
3905
      }
3906
 
3907
      return true;
3908
    }
3909
 
3910
    @Override
3911
    public int hashCode() {
3912
      return 0;
3913
    }
3914
 
3915
    public int compareTo(getEmailsToBeSent_result other) {
3916
      if (!getClass().equals(other.getClass())) {
3917
        return getClass().getName().compareTo(other.getClass().getName());
3918
      }
3919
 
3920
      int lastComparison = 0;
3921
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
3922
 
3430 rajveer 3923
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 3924
      if (lastComparison != 0) {
3925
        return lastComparison;
3926
      }
3430 rajveer 3927
      if (isSetSuccess()) {
3928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3929
        if (lastComparison != 0) {
3930
          return lastComparison;
3931
        }
1422 varun.gupt 3932
      }
3430 rajveer 3933
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 3934
      if (lastComparison != 0) {
3935
        return lastComparison;
3936
      }
3430 rajveer 3937
      if (isSetSe()) {
3938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3939
        if (lastComparison != 0) {
3940
          return lastComparison;
3941
        }
1422 varun.gupt 3942
      }
3943
      return 0;
3944
    }
3945
 
3430 rajveer 3946
    public _Fields fieldForId(int fieldId) {
3947
      return _Fields.findByThriftId(fieldId);
3948
    }
3949
 
3950
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3951
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3952
      iprot.readStructBegin();
3953
      while (true)
3954
      {
3955
        field = iprot.readFieldBegin();
3430 rajveer 3956
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3957
          break;
3958
        }
3430 rajveer 3959
        switch (field.id) {
3960
          case 0: // SUCCESS
3961
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3962
              {
3963
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
3964
                this.success = new ArrayList<UserEmail>(_list8.size);
3965
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 3966
                {
3430 rajveer 3967
                  UserEmail _elem10; // required
3968
                  _elem10 = new UserEmail();
3969
                  _elem10.read(iprot);
3970
                  this.success.add(_elem10);
1422 varun.gupt 3971
                }
3430 rajveer 3972
                iprot.readListEnd();
1422 varun.gupt 3973
              }
3430 rajveer 3974
            } else { 
3975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3976
            }
3977
            break;
3978
          case 1: // SE
3979
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3980
              this.se = new HelperServiceException();
3981
              this.se.read(iprot);
3982
            } else { 
3983
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3984
            }
3985
            break;
3986
          default:
3987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3988
        }
3430 rajveer 3989
        iprot.readFieldEnd();
1422 varun.gupt 3990
      }
3991
      iprot.readStructEnd();
3992
      validate();
3993
    }
3994
 
3430 rajveer 3995
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3996
      oprot.writeStructBegin(STRUCT_DESC);
3997
 
3998
      if (this.isSetSuccess()) {
3999
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4000
        {
3430 rajveer 4001
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 4002
          for (UserEmail _iter11 : this.success)
4003
          {
4004
            _iter11.write(oprot);
4005
          }
4006
          oprot.writeListEnd();
4007
        }
4008
        oprot.writeFieldEnd();
4009
      } else if (this.isSetSe()) {
4010
        oprot.writeFieldBegin(SE_FIELD_DESC);
4011
        this.se.write(oprot);
4012
        oprot.writeFieldEnd();
4013
      }
4014
      oprot.writeFieldStop();
4015
      oprot.writeStructEnd();
4016
    }
4017
 
4018
    @Override
4019
    public String toString() {
4020
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4021
      boolean first = true;
4022
 
4023
      sb.append("success:");
4024
      if (this.success == null) {
4025
        sb.append("null");
4026
      } else {
4027
        sb.append(this.success);
4028
      }
4029
      first = false;
4030
      if (!first) sb.append(", ");
4031
      sb.append("se:");
4032
      if (this.se == null) {
4033
        sb.append("null");
4034
      } else {
4035
        sb.append(this.se);
4036
      }
4037
      first = false;
4038
      sb.append(")");
4039
      return sb.toString();
4040
    }
4041
 
3430 rajveer 4042
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4043
      // check for required fields
4044
    }
4045
 
3430 rajveer 4046
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4047
      try {
4048
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4049
      } catch (org.apache.thrift.TException te) {
4050
        throw new java.io.IOException(te);
4051
      }
4052
    }
4053
 
4054
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4055
      try {
4056
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4057
      } catch (org.apache.thrift.TException te) {
4058
        throw new java.io.IOException(te);
4059
      }
4060
    }
4061
 
1422 varun.gupt 4062
  }
4063
 
3430 rajveer 4064
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4065
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4066
 
3430 rajveer 4067
    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 4068
 
3430 rajveer 4069
    private long emailId; // required
1422 varun.gupt 4070
 
4071
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4072
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4073
      EMAIL_ID((short)1, "emailId");
4074
 
4075
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4076
 
4077
      static {
4078
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4079
          byName.put(field.getFieldName(), field);
4080
        }
4081
      }
4082
 
4083
      /**
4084
       * Find the _Fields constant that matches fieldId, or null if its not found.
4085
       */
4086
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4087
        switch(fieldId) {
4088
          case 1: // EMAIL_ID
4089
            return EMAIL_ID;
4090
          default:
4091
            return null;
4092
        }
1422 varun.gupt 4093
      }
4094
 
4095
      /**
4096
       * Find the _Fields constant that matches fieldId, throwing an exception
4097
       * if it is not found.
4098
       */
4099
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4100
        _Fields fields = findByThriftId(fieldId);
4101
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4102
        return fields;
4103
      }
4104
 
4105
      /**
4106
       * Find the _Fields constant that matches name, or null if its not found.
4107
       */
4108
      public static _Fields findByName(String name) {
4109
        return byName.get(name);
4110
      }
4111
 
4112
      private final short _thriftId;
4113
      private final String _fieldName;
4114
 
4115
      _Fields(short thriftId, String fieldName) {
4116
        _thriftId = thriftId;
4117
        _fieldName = fieldName;
4118
      }
4119
 
4120
      public short getThriftFieldId() {
4121
        return _thriftId;
4122
      }
4123
 
4124
      public String getFieldName() {
4125
        return _fieldName;
4126
      }
4127
    }
4128
 
4129
    // isset id assignments
4130
    private static final int __EMAILID_ISSET_ID = 0;
4131
    private BitSet __isset_bit_vector = new BitSet(1);
4132
 
3430 rajveer 4133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4134
    static {
3430 rajveer 4135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4136
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4140
    }
4141
 
4142
    public markEmailAsSent_args() {
4143
    }
4144
 
4145
    public markEmailAsSent_args(
4146
      long emailId)
4147
    {
4148
      this();
4149
      this.emailId = emailId;
4150
      setEmailIdIsSet(true);
4151
    }
4152
 
4153
    /**
4154
     * Performs a deep copy on <i>other</i>.
4155
     */
4156
    public markEmailAsSent_args(markEmailAsSent_args other) {
4157
      __isset_bit_vector.clear();
4158
      __isset_bit_vector.or(other.__isset_bit_vector);
4159
      this.emailId = other.emailId;
4160
    }
4161
 
4162
    public markEmailAsSent_args deepCopy() {
4163
      return new markEmailAsSent_args(this);
4164
    }
4165
 
3430 rajveer 4166
    @Override
4167
    public void clear() {
4168
      setEmailIdIsSet(false);
4169
      this.emailId = 0;
1422 varun.gupt 4170
    }
4171
 
4172
    public long getEmailId() {
4173
      return this.emailId;
4174
    }
4175
 
3430 rajveer 4176
    public void setEmailId(long emailId) {
1422 varun.gupt 4177
      this.emailId = emailId;
4178
      setEmailIdIsSet(true);
4179
    }
4180
 
4181
    public void unsetEmailId() {
4182
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4183
    }
4184
 
3430 rajveer 4185
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4186
    public boolean isSetEmailId() {
4187
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4188
    }
4189
 
4190
    public void setEmailIdIsSet(boolean value) {
4191
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4192
    }
4193
 
4194
    public void setFieldValue(_Fields field, Object value) {
4195
      switch (field) {
4196
      case EMAIL_ID:
4197
        if (value == null) {
4198
          unsetEmailId();
4199
        } else {
4200
          setEmailId((Long)value);
4201
        }
4202
        break;
4203
 
4204
      }
4205
    }
4206
 
4207
    public Object getFieldValue(_Fields field) {
4208
      switch (field) {
4209
      case EMAIL_ID:
3430 rajveer 4210
        return Long.valueOf(getEmailId());
1422 varun.gupt 4211
 
4212
      }
4213
      throw new IllegalStateException();
4214
    }
4215
 
3430 rajveer 4216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4217
    public boolean isSet(_Fields field) {
4218
      if (field == null) {
4219
        throw new IllegalArgumentException();
4220
      }
1422 varun.gupt 4221
 
4222
      switch (field) {
4223
      case EMAIL_ID:
4224
        return isSetEmailId();
4225
      }
4226
      throw new IllegalStateException();
4227
    }
4228
 
4229
    @Override
4230
    public boolean equals(Object that) {
4231
      if (that == null)
4232
        return false;
4233
      if (that instanceof markEmailAsSent_args)
4234
        return this.equals((markEmailAsSent_args)that);
4235
      return false;
4236
    }
4237
 
4238
    public boolean equals(markEmailAsSent_args that) {
4239
      if (that == null)
4240
        return false;
4241
 
4242
      boolean this_present_emailId = true;
4243
      boolean that_present_emailId = true;
4244
      if (this_present_emailId || that_present_emailId) {
4245
        if (!(this_present_emailId && that_present_emailId))
4246
          return false;
4247
        if (this.emailId != that.emailId)
4248
          return false;
4249
      }
4250
 
4251
      return true;
4252
    }
4253
 
4254
    @Override
4255
    public int hashCode() {
4256
      return 0;
4257
    }
4258
 
4259
    public int compareTo(markEmailAsSent_args other) {
4260
      if (!getClass().equals(other.getClass())) {
4261
        return getClass().getName().compareTo(other.getClass().getName());
4262
      }
4263
 
4264
      int lastComparison = 0;
4265
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4266
 
3430 rajveer 4267
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4268
      if (lastComparison != 0) {
4269
        return lastComparison;
4270
      }
3430 rajveer 4271
      if (isSetEmailId()) {
4272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4273
        if (lastComparison != 0) {
4274
          return lastComparison;
4275
        }
1422 varun.gupt 4276
      }
4277
      return 0;
4278
    }
4279
 
3430 rajveer 4280
    public _Fields fieldForId(int fieldId) {
4281
      return _Fields.findByThriftId(fieldId);
4282
    }
4283
 
4284
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4285
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4286
      iprot.readStructBegin();
4287
      while (true)
4288
      {
4289
        field = iprot.readFieldBegin();
3430 rajveer 4290
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4291
          break;
4292
        }
3430 rajveer 4293
        switch (field.id) {
4294
          case 1: // EMAIL_ID
4295
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4296
              this.emailId = iprot.readI64();
4297
              setEmailIdIsSet(true);
4298
            } else { 
4299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4300
            }
4301
            break;
4302
          default:
4303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4304
        }
3430 rajveer 4305
        iprot.readFieldEnd();
1422 varun.gupt 4306
      }
4307
      iprot.readStructEnd();
4308
      validate();
4309
    }
4310
 
3430 rajveer 4311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4312
      validate();
4313
 
4314
      oprot.writeStructBegin(STRUCT_DESC);
4315
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4316
      oprot.writeI64(this.emailId);
4317
      oprot.writeFieldEnd();
4318
      oprot.writeFieldStop();
4319
      oprot.writeStructEnd();
4320
    }
4321
 
4322
    @Override
4323
    public String toString() {
4324
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4325
      boolean first = true;
4326
 
4327
      sb.append("emailId:");
4328
      sb.append(this.emailId);
4329
      first = false;
4330
      sb.append(")");
4331
      return sb.toString();
4332
    }
4333
 
3430 rajveer 4334
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4335
      // check for required fields
4336
    }
4337
 
3430 rajveer 4338
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4339
      try {
4340
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4341
      } catch (org.apache.thrift.TException te) {
4342
        throw new java.io.IOException(te);
4343
      }
4344
    }
4345
 
4346
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4347
      try {
4348
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4349
        __isset_bit_vector = new BitSet(1);
4350
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4351
      } catch (org.apache.thrift.TException te) {
4352
        throw new java.io.IOException(te);
4353
      }
4354
    }
4355
 
1422 varun.gupt 4356
  }
4357
 
3430 rajveer 4358
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4359
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4360
 
3430 rajveer 4361
    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 4362
 
3430 rajveer 4363
    private HelperServiceException se; // required
1422 varun.gupt 4364
 
4365
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4366
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4367
      SE((short)1, "se");
4368
 
4369
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4370
 
4371
      static {
4372
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4373
          byName.put(field.getFieldName(), field);
4374
        }
4375
      }
4376
 
4377
      /**
4378
       * Find the _Fields constant that matches fieldId, or null if its not found.
4379
       */
4380
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4381
        switch(fieldId) {
4382
          case 1: // SE
4383
            return SE;
4384
          default:
4385
            return null;
4386
        }
1422 varun.gupt 4387
      }
4388
 
4389
      /**
4390
       * Find the _Fields constant that matches fieldId, throwing an exception
4391
       * if it is not found.
4392
       */
4393
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4394
        _Fields fields = findByThriftId(fieldId);
4395
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4396
        return fields;
4397
      }
4398
 
4399
      /**
4400
       * Find the _Fields constant that matches name, or null if its not found.
4401
       */
4402
      public static _Fields findByName(String name) {
4403
        return byName.get(name);
4404
      }
4405
 
4406
      private final short _thriftId;
4407
      private final String _fieldName;
4408
 
4409
      _Fields(short thriftId, String fieldName) {
4410
        _thriftId = thriftId;
4411
        _fieldName = fieldName;
4412
      }
4413
 
4414
      public short getThriftFieldId() {
4415
        return _thriftId;
4416
      }
4417
 
4418
      public String getFieldName() {
4419
        return _fieldName;
4420
      }
4421
    }
4422
 
4423
    // isset id assignments
4424
 
3430 rajveer 4425
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4426
    static {
3430 rajveer 4427
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4428
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4432
    }
4433
 
4434
    public markEmailAsSent_result() {
4435
    }
4436
 
4437
    public markEmailAsSent_result(
4438
      HelperServiceException se)
4439
    {
4440
      this();
4441
      this.se = se;
4442
    }
4443
 
4444
    /**
4445
     * Performs a deep copy on <i>other</i>.
4446
     */
4447
    public markEmailAsSent_result(markEmailAsSent_result other) {
4448
      if (other.isSetSe()) {
4449
        this.se = new HelperServiceException(other.se);
4450
      }
4451
    }
4452
 
4453
    public markEmailAsSent_result deepCopy() {
4454
      return new markEmailAsSent_result(this);
4455
    }
4456
 
3430 rajveer 4457
    @Override
4458
    public void clear() {
4459
      this.se = null;
1422 varun.gupt 4460
    }
4461
 
4462
    public HelperServiceException getSe() {
4463
      return this.se;
4464
    }
4465
 
3430 rajveer 4466
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4467
      this.se = se;
4468
    }
4469
 
4470
    public void unsetSe() {
4471
      this.se = null;
4472
    }
4473
 
3430 rajveer 4474
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4475
    public boolean isSetSe() {
4476
      return this.se != null;
4477
    }
4478
 
4479
    public void setSeIsSet(boolean value) {
4480
      if (!value) {
4481
        this.se = null;
4482
      }
4483
    }
4484
 
4485
    public void setFieldValue(_Fields field, Object value) {
4486
      switch (field) {
4487
      case SE:
4488
        if (value == null) {
4489
          unsetSe();
4490
        } else {
4491
          setSe((HelperServiceException)value);
4492
        }
4493
        break;
4494
 
4495
      }
4496
    }
4497
 
4498
    public Object getFieldValue(_Fields field) {
4499
      switch (field) {
4500
      case SE:
4501
        return getSe();
4502
 
4503
      }
4504
      throw new IllegalStateException();
4505
    }
4506
 
3430 rajveer 4507
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4508
    public boolean isSet(_Fields field) {
4509
      if (field == null) {
4510
        throw new IllegalArgumentException();
4511
      }
1422 varun.gupt 4512
 
4513
      switch (field) {
4514
      case SE:
4515
        return isSetSe();
4516
      }
4517
      throw new IllegalStateException();
4518
    }
4519
 
4520
    @Override
4521
    public boolean equals(Object that) {
4522
      if (that == null)
4523
        return false;
4524
      if (that instanceof markEmailAsSent_result)
4525
        return this.equals((markEmailAsSent_result)that);
4526
      return false;
4527
    }
4528
 
4529
    public boolean equals(markEmailAsSent_result that) {
4530
      if (that == null)
4531
        return false;
4532
 
4533
      boolean this_present_se = true && this.isSetSe();
4534
      boolean that_present_se = true && that.isSetSe();
4535
      if (this_present_se || that_present_se) {
4536
        if (!(this_present_se && that_present_se))
4537
          return false;
4538
        if (!this.se.equals(that.se))
4539
          return false;
4540
      }
4541
 
4542
      return true;
4543
    }
4544
 
4545
    @Override
4546
    public int hashCode() {
4547
      return 0;
4548
    }
4549
 
4550
    public int compareTo(markEmailAsSent_result other) {
4551
      if (!getClass().equals(other.getClass())) {
4552
        return getClass().getName().compareTo(other.getClass().getName());
4553
      }
4554
 
4555
      int lastComparison = 0;
4556
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
4557
 
3430 rajveer 4558
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4559
      if (lastComparison != 0) {
4560
        return lastComparison;
4561
      }
3430 rajveer 4562
      if (isSetSe()) {
4563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4564
        if (lastComparison != 0) {
4565
          return lastComparison;
4566
        }
1422 varun.gupt 4567
      }
4568
      return 0;
4569
    }
4570
 
3430 rajveer 4571
    public _Fields fieldForId(int fieldId) {
4572
      return _Fields.findByThriftId(fieldId);
4573
    }
4574
 
4575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4576
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4577
      iprot.readStructBegin();
4578
      while (true)
4579
      {
4580
        field = iprot.readFieldBegin();
3430 rajveer 4581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4582
          break;
4583
        }
3430 rajveer 4584
        switch (field.id) {
4585
          case 1: // SE
4586
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4587
              this.se = new HelperServiceException();
4588
              this.se.read(iprot);
4589
            } else { 
4590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4591
            }
4592
            break;
4593
          default:
4594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4595
        }
3430 rajveer 4596
        iprot.readFieldEnd();
1422 varun.gupt 4597
      }
4598
      iprot.readStructEnd();
4599
      validate();
4600
    }
4601
 
3430 rajveer 4602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4603
      oprot.writeStructBegin(STRUCT_DESC);
4604
 
4605
      if (this.isSetSe()) {
4606
        oprot.writeFieldBegin(SE_FIELD_DESC);
4607
        this.se.write(oprot);
4608
        oprot.writeFieldEnd();
4609
      }
4610
      oprot.writeFieldStop();
4611
      oprot.writeStructEnd();
4612
    }
4613
 
4614
    @Override
4615
    public String toString() {
4616
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
4617
      boolean first = true;
4618
 
4619
      sb.append("se:");
4620
      if (this.se == null) {
4621
        sb.append("null");
4622
      } else {
4623
        sb.append(this.se);
4624
      }
4625
      first = false;
4626
      sb.append(")");
4627
      return sb.toString();
4628
    }
4629
 
3430 rajveer 4630
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4631
      // check for required fields
4632
    }
4633
 
3430 rajveer 4634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4635
      try {
4636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4637
      } catch (org.apache.thrift.TException te) {
4638
        throw new java.io.IOException(te);
4639
      }
4640
    }
4641
 
4642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4643
      try {
4644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4645
      } catch (org.apache.thrift.TException te) {
4646
        throw new java.io.IOException(te);
4647
      }
4648
    }
4649
 
1422 varun.gupt 4650
  }
4651
 
3430 rajveer 4652
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4654
 
3430 rajveer 4655
    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 4656
 
3430 rajveer 4657
    private Mail mail; // required
352 ashish 4658
 
4659
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4660
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4661
      MAIL((short)1, "mail");
4662
 
4663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4664
 
4665
      static {
4666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4667
          byName.put(field.getFieldName(), field);
4668
        }
4669
      }
4670
 
4671
      /**
4672
       * Find the _Fields constant that matches fieldId, or null if its not found.
4673
       */
4674
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4675
        switch(fieldId) {
4676
          case 1: // MAIL
4677
            return MAIL;
4678
          default:
4679
            return null;
4680
        }
352 ashish 4681
      }
4682
 
4683
      /**
4684
       * Find the _Fields constant that matches fieldId, throwing an exception
4685
       * if it is not found.
4686
       */
4687
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4688
        _Fields fields = findByThriftId(fieldId);
4689
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4690
        return fields;
4691
      }
4692
 
4693
      /**
4694
       * Find the _Fields constant that matches name, or null if its not found.
4695
       */
4696
      public static _Fields findByName(String name) {
4697
        return byName.get(name);
4698
      }
4699
 
4700
      private final short _thriftId;
4701
      private final String _fieldName;
4702
 
4703
      _Fields(short thriftId, String fieldName) {
4704
        _thriftId = thriftId;
4705
        _fieldName = fieldName;
4706
      }
4707
 
4708
      public short getThriftFieldId() {
4709
        return _thriftId;
4710
      }
4711
 
4712
      public String getFieldName() {
4713
        return _fieldName;
4714
      }
4715
    }
4716
 
4717
    // isset id assignments
4718
 
3430 rajveer 4719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4720
    static {
3430 rajveer 4721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4722
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4723
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4724
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4725
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4726
    }
4727
 
4728
    public sendMail_args() {
4729
    }
4730
 
4731
    public sendMail_args(
4732
      Mail mail)
4733
    {
4734
      this();
4735
      this.mail = mail;
4736
    }
4737
 
4738
    /**
4739
     * Performs a deep copy on <i>other</i>.
4740
     */
4741
    public sendMail_args(sendMail_args other) {
4742
      if (other.isSetMail()) {
4743
        this.mail = new Mail(other.mail);
4744
      }
4745
    }
4746
 
4747
    public sendMail_args deepCopy() {
4748
      return new sendMail_args(this);
4749
    }
4750
 
3430 rajveer 4751
    @Override
4752
    public void clear() {
4753
      this.mail = null;
352 ashish 4754
    }
4755
 
4756
    public Mail getMail() {
4757
      return this.mail;
4758
    }
4759
 
3430 rajveer 4760
    public void setMail(Mail mail) {
352 ashish 4761
      this.mail = mail;
4762
    }
4763
 
4764
    public void unsetMail() {
4765
      this.mail = null;
4766
    }
4767
 
3430 rajveer 4768
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4769
    public boolean isSetMail() {
4770
      return this.mail != null;
4771
    }
4772
 
4773
    public void setMailIsSet(boolean value) {
4774
      if (!value) {
4775
        this.mail = null;
4776
      }
4777
    }
4778
 
4779
    public void setFieldValue(_Fields field, Object value) {
4780
      switch (field) {
4781
      case MAIL:
4782
        if (value == null) {
4783
          unsetMail();
4784
        } else {
4785
          setMail((Mail)value);
4786
        }
4787
        break;
4788
 
4789
      }
4790
    }
4791
 
4792
    public Object getFieldValue(_Fields field) {
4793
      switch (field) {
4794
      case MAIL:
4795
        return getMail();
4796
 
4797
      }
4798
      throw new IllegalStateException();
4799
    }
4800
 
3430 rajveer 4801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4802
    public boolean isSet(_Fields field) {
4803
      if (field == null) {
4804
        throw new IllegalArgumentException();
4805
      }
352 ashish 4806
 
4807
      switch (field) {
4808
      case MAIL:
4809
        return isSetMail();
4810
      }
4811
      throw new IllegalStateException();
4812
    }
4813
 
4814
    @Override
4815
    public boolean equals(Object that) {
4816
      if (that == null)
4817
        return false;
4818
      if (that instanceof sendMail_args)
4819
        return this.equals((sendMail_args)that);
4820
      return false;
4821
    }
4822
 
4823
    public boolean equals(sendMail_args that) {
4824
      if (that == null)
4825
        return false;
4826
 
4827
      boolean this_present_mail = true && this.isSetMail();
4828
      boolean that_present_mail = true && that.isSetMail();
4829
      if (this_present_mail || that_present_mail) {
4830
        if (!(this_present_mail && that_present_mail))
4831
          return false;
4832
        if (!this.mail.equals(that.mail))
4833
          return false;
4834
      }
4835
 
4836
      return true;
4837
    }
4838
 
4839
    @Override
4840
    public int hashCode() {
4841
      return 0;
4842
    }
4843
 
4844
    public int compareTo(sendMail_args other) {
4845
      if (!getClass().equals(other.getClass())) {
4846
        return getClass().getName().compareTo(other.getClass().getName());
4847
      }
4848
 
4849
      int lastComparison = 0;
4850
      sendMail_args typedOther = (sendMail_args)other;
4851
 
3430 rajveer 4852
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 4853
      if (lastComparison != 0) {
4854
        return lastComparison;
4855
      }
3430 rajveer 4856
      if (isSetMail()) {
4857
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
4858
        if (lastComparison != 0) {
4859
          return lastComparison;
4860
        }
352 ashish 4861
      }
4862
      return 0;
4863
    }
4864
 
3430 rajveer 4865
    public _Fields fieldForId(int fieldId) {
4866
      return _Fields.findByThriftId(fieldId);
4867
    }
4868
 
4869
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4870
      org.apache.thrift.protocol.TField field;
352 ashish 4871
      iprot.readStructBegin();
4872
      while (true)
4873
      {
4874
        field = iprot.readFieldBegin();
3430 rajveer 4875
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4876
          break;
4877
        }
3430 rajveer 4878
        switch (field.id) {
4879
          case 1: // MAIL
4880
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4881
              this.mail = new Mail();
4882
              this.mail.read(iprot);
4883
            } else { 
4884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4885
            }
4886
            break;
4887
          default:
4888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4889
        }
3430 rajveer 4890
        iprot.readFieldEnd();
352 ashish 4891
      }
4892
      iprot.readStructEnd();
4893
      validate();
4894
    }
4895
 
3430 rajveer 4896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4897
      validate();
4898
 
4899
      oprot.writeStructBegin(STRUCT_DESC);
4900
      if (this.mail != null) {
4901
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4902
        this.mail.write(oprot);
4903
        oprot.writeFieldEnd();
4904
      }
4905
      oprot.writeFieldStop();
4906
      oprot.writeStructEnd();
4907
    }
4908
 
4909
    @Override
4910
    public String toString() {
4911
      StringBuilder sb = new StringBuilder("sendMail_args(");
4912
      boolean first = true;
4913
 
4914
      sb.append("mail:");
4915
      if (this.mail == null) {
4916
        sb.append("null");
4917
      } else {
4918
        sb.append(this.mail);
4919
      }
4920
      first = false;
4921
      sb.append(")");
4922
      return sb.toString();
4923
    }
4924
 
3430 rajveer 4925
    public void validate() throws org.apache.thrift.TException {
352 ashish 4926
      // check for required fields
4927
    }
4928
 
3430 rajveer 4929
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4930
      try {
4931
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4932
      } catch (org.apache.thrift.TException te) {
4933
        throw new java.io.IOException(te);
4934
      }
4935
    }
4936
 
4937
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4938
      try {
4939
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4940
      } catch (org.apache.thrift.TException te) {
4941
        throw new java.io.IOException(te);
4942
      }
4943
    }
4944
 
352 ashish 4945
  }
4946
 
3430 rajveer 4947
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
4948
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 4949
 
3430 rajveer 4950
    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 4951
 
3430 rajveer 4952
    private HelperServiceException se; // required
352 ashish 4953
 
4954
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4955
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4956
      SE((short)1, "se");
4957
 
4958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4959
 
4960
      static {
4961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4962
          byName.put(field.getFieldName(), field);
4963
        }
4964
      }
4965
 
4966
      /**
4967
       * Find the _Fields constant that matches fieldId, or null if its not found.
4968
       */
4969
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4970
        switch(fieldId) {
4971
          case 1: // SE
4972
            return SE;
4973
          default:
4974
            return null;
4975
        }
352 ashish 4976
      }
4977
 
4978
      /**
4979
       * Find the _Fields constant that matches fieldId, throwing an exception
4980
       * if it is not found.
4981
       */
4982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4983
        _Fields fields = findByThriftId(fieldId);
4984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4985
        return fields;
4986
      }
4987
 
4988
      /**
4989
       * Find the _Fields constant that matches name, or null if its not found.
4990
       */
4991
      public static _Fields findByName(String name) {
4992
        return byName.get(name);
4993
      }
4994
 
4995
      private final short _thriftId;
4996
      private final String _fieldName;
4997
 
4998
      _Fields(short thriftId, String fieldName) {
4999
        _thriftId = thriftId;
5000
        _fieldName = fieldName;
5001
      }
5002
 
5003
      public short getThriftFieldId() {
5004
        return _thriftId;
5005
      }
5006
 
5007
      public String getFieldName() {
5008
        return _fieldName;
5009
      }
5010
    }
5011
 
5012
    // isset id assignments
5013
 
3430 rajveer 5014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5015
    static {
3430 rajveer 5016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5017
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5021
    }
5022
 
5023
    public sendMail_result() {
5024
    }
5025
 
5026
    public sendMail_result(
5027
      HelperServiceException se)
5028
    {
5029
      this();
5030
      this.se = se;
5031
    }
5032
 
5033
    /**
5034
     * Performs a deep copy on <i>other</i>.
5035
     */
5036
    public sendMail_result(sendMail_result other) {
5037
      if (other.isSetSe()) {
5038
        this.se = new HelperServiceException(other.se);
5039
      }
5040
    }
5041
 
5042
    public sendMail_result deepCopy() {
5043
      return new sendMail_result(this);
5044
    }
5045
 
3430 rajveer 5046
    @Override
5047
    public void clear() {
5048
      this.se = null;
352 ashish 5049
    }
5050
 
5051
    public HelperServiceException getSe() {
5052
      return this.se;
5053
    }
5054
 
3430 rajveer 5055
    public void setSe(HelperServiceException se) {
352 ashish 5056
      this.se = se;
5057
    }
5058
 
5059
    public void unsetSe() {
5060
      this.se = null;
5061
    }
5062
 
3430 rajveer 5063
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5064
    public boolean isSetSe() {
5065
      return this.se != null;
5066
    }
5067
 
5068
    public void setSeIsSet(boolean value) {
5069
      if (!value) {
5070
        this.se = null;
5071
      }
5072
    }
5073
 
5074
    public void setFieldValue(_Fields field, Object value) {
5075
      switch (field) {
5076
      case SE:
5077
        if (value == null) {
5078
          unsetSe();
5079
        } else {
5080
          setSe((HelperServiceException)value);
5081
        }
5082
        break;
5083
 
5084
      }
5085
    }
5086
 
5087
    public Object getFieldValue(_Fields field) {
5088
      switch (field) {
5089
      case SE:
5090
        return getSe();
5091
 
5092
      }
5093
      throw new IllegalStateException();
5094
    }
5095
 
3430 rajveer 5096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5097
    public boolean isSet(_Fields field) {
5098
      if (field == null) {
5099
        throw new IllegalArgumentException();
5100
      }
352 ashish 5101
 
5102
      switch (field) {
5103
      case SE:
5104
        return isSetSe();
5105
      }
5106
      throw new IllegalStateException();
5107
    }
5108
 
5109
    @Override
5110
    public boolean equals(Object that) {
5111
      if (that == null)
5112
        return false;
5113
      if (that instanceof sendMail_result)
5114
        return this.equals((sendMail_result)that);
5115
      return false;
5116
    }
5117
 
5118
    public boolean equals(sendMail_result that) {
5119
      if (that == null)
5120
        return false;
5121
 
5122
      boolean this_present_se = true && this.isSetSe();
5123
      boolean that_present_se = true && that.isSetSe();
5124
      if (this_present_se || that_present_se) {
5125
        if (!(this_present_se && that_present_se))
5126
          return false;
5127
        if (!this.se.equals(that.se))
5128
          return false;
5129
      }
5130
 
5131
      return true;
5132
    }
5133
 
5134
    @Override
5135
    public int hashCode() {
5136
      return 0;
5137
    }
5138
 
5139
    public int compareTo(sendMail_result other) {
5140
      if (!getClass().equals(other.getClass())) {
5141
        return getClass().getName().compareTo(other.getClass().getName());
5142
      }
5143
 
5144
      int lastComparison = 0;
5145
      sendMail_result typedOther = (sendMail_result)other;
5146
 
3430 rajveer 5147
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5148
      if (lastComparison != 0) {
5149
        return lastComparison;
5150
      }
3430 rajveer 5151
      if (isSetSe()) {
5152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5153
        if (lastComparison != 0) {
5154
          return lastComparison;
5155
        }
352 ashish 5156
      }
5157
      return 0;
5158
    }
5159
 
3430 rajveer 5160
    public _Fields fieldForId(int fieldId) {
5161
      return _Fields.findByThriftId(fieldId);
5162
    }
5163
 
5164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5165
      org.apache.thrift.protocol.TField field;
352 ashish 5166
      iprot.readStructBegin();
5167
      while (true)
5168
      {
5169
        field = iprot.readFieldBegin();
3430 rajveer 5170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5171
          break;
5172
        }
3430 rajveer 5173
        switch (field.id) {
5174
          case 1: // SE
5175
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5176
              this.se = new HelperServiceException();
5177
              this.se.read(iprot);
5178
            } else { 
5179
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5180
            }
5181
            break;
5182
          default:
5183
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5184
        }
3430 rajveer 5185
        iprot.readFieldEnd();
352 ashish 5186
      }
5187
      iprot.readStructEnd();
5188
      validate();
5189
    }
5190
 
3430 rajveer 5191
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5192
      oprot.writeStructBegin(STRUCT_DESC);
5193
 
5194
      if (this.isSetSe()) {
5195
        oprot.writeFieldBegin(SE_FIELD_DESC);
5196
        this.se.write(oprot);
5197
        oprot.writeFieldEnd();
5198
      }
5199
      oprot.writeFieldStop();
5200
      oprot.writeStructEnd();
5201
    }
5202
 
5203
    @Override
5204
    public String toString() {
5205
      StringBuilder sb = new StringBuilder("sendMail_result(");
5206
      boolean first = true;
5207
 
5208
      sb.append("se:");
5209
      if (this.se == null) {
5210
        sb.append("null");
5211
      } else {
5212
        sb.append(this.se);
5213
      }
5214
      first = false;
5215
      sb.append(")");
5216
      return sb.toString();
5217
    }
5218
 
3430 rajveer 5219
    public void validate() throws org.apache.thrift.TException {
352 ashish 5220
      // check for required fields
5221
    }
5222
 
3430 rajveer 5223
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5224
      try {
5225
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5226
      } catch (org.apache.thrift.TException te) {
5227
        throw new java.io.IOException(te);
5228
      }
5229
    }
5230
 
5231
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5232
      try {
5233
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5234
      } catch (org.apache.thrift.TException te) {
5235
        throw new java.io.IOException(te);
5236
      }
5237
    }
5238
 
352 ashish 5239
  }
5240
 
3430 rajveer 5241
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5242
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5243
 
3430 rajveer 5244
    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 5245
 
3430 rajveer 5246
    private TextMessage message; // required
352 ashish 5247
 
5248
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5249
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5250
      MESSAGE((short)1, "message");
5251
 
5252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5253
 
5254
      static {
5255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5256
          byName.put(field.getFieldName(), field);
5257
        }
5258
      }
5259
 
5260
      /**
5261
       * Find the _Fields constant that matches fieldId, or null if its not found.
5262
       */
5263
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5264
        switch(fieldId) {
5265
          case 1: // MESSAGE
5266
            return MESSAGE;
5267
          default:
5268
            return null;
5269
        }
352 ashish 5270
      }
5271
 
5272
      /**
5273
       * Find the _Fields constant that matches fieldId, throwing an exception
5274
       * if it is not found.
5275
       */
5276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5277
        _Fields fields = findByThriftId(fieldId);
5278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5279
        return fields;
5280
      }
5281
 
5282
      /**
5283
       * Find the _Fields constant that matches name, or null if its not found.
5284
       */
5285
      public static _Fields findByName(String name) {
5286
        return byName.get(name);
5287
      }
5288
 
5289
      private final short _thriftId;
5290
      private final String _fieldName;
5291
 
5292
      _Fields(short thriftId, String fieldName) {
5293
        _thriftId = thriftId;
5294
        _fieldName = fieldName;
5295
      }
5296
 
5297
      public short getThriftFieldId() {
5298
        return _thriftId;
5299
      }
5300
 
5301
      public String getFieldName() {
5302
        return _fieldName;
5303
      }
5304
    }
5305
 
5306
    // isset id assignments
5307
 
3430 rajveer 5308
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5309
    static {
3430 rajveer 5310
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5311
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5312
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5313
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5314
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5315
    }
5316
 
5317
    public sendText_args() {
5318
    }
5319
 
5320
    public sendText_args(
5321
      TextMessage message)
5322
    {
5323
      this();
5324
      this.message = message;
5325
    }
5326
 
5327
    /**
5328
     * Performs a deep copy on <i>other</i>.
5329
     */
5330
    public sendText_args(sendText_args other) {
5331
      if (other.isSetMessage()) {
5332
        this.message = new TextMessage(other.message);
5333
      }
5334
    }
5335
 
5336
    public sendText_args deepCopy() {
5337
      return new sendText_args(this);
5338
    }
5339
 
3430 rajveer 5340
    @Override
5341
    public void clear() {
5342
      this.message = null;
352 ashish 5343
    }
5344
 
5345
    public TextMessage getMessage() {
5346
      return this.message;
5347
    }
5348
 
3430 rajveer 5349
    public void setMessage(TextMessage message) {
352 ashish 5350
      this.message = message;
5351
    }
5352
 
5353
    public void unsetMessage() {
5354
      this.message = null;
5355
    }
5356
 
3430 rajveer 5357
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5358
    public boolean isSetMessage() {
5359
      return this.message != null;
5360
    }
5361
 
5362
    public void setMessageIsSet(boolean value) {
5363
      if (!value) {
5364
        this.message = null;
5365
      }
5366
    }
5367
 
5368
    public void setFieldValue(_Fields field, Object value) {
5369
      switch (field) {
5370
      case MESSAGE:
5371
        if (value == null) {
5372
          unsetMessage();
5373
        } else {
5374
          setMessage((TextMessage)value);
5375
        }
5376
        break;
5377
 
5378
      }
5379
    }
5380
 
5381
    public Object getFieldValue(_Fields field) {
5382
      switch (field) {
5383
      case MESSAGE:
5384
        return getMessage();
5385
 
5386
      }
5387
      throw new IllegalStateException();
5388
    }
5389
 
3430 rajveer 5390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5391
    public boolean isSet(_Fields field) {
5392
      if (field == null) {
5393
        throw new IllegalArgumentException();
5394
      }
352 ashish 5395
 
5396
      switch (field) {
5397
      case MESSAGE:
5398
        return isSetMessage();
5399
      }
5400
      throw new IllegalStateException();
5401
    }
5402
 
5403
    @Override
5404
    public boolean equals(Object that) {
5405
      if (that == null)
5406
        return false;
5407
      if (that instanceof sendText_args)
5408
        return this.equals((sendText_args)that);
5409
      return false;
5410
    }
5411
 
5412
    public boolean equals(sendText_args that) {
5413
      if (that == null)
5414
        return false;
5415
 
5416
      boolean this_present_message = true && this.isSetMessage();
5417
      boolean that_present_message = true && that.isSetMessage();
5418
      if (this_present_message || that_present_message) {
5419
        if (!(this_present_message && that_present_message))
5420
          return false;
5421
        if (!this.message.equals(that.message))
5422
          return false;
5423
      }
5424
 
5425
      return true;
5426
    }
5427
 
5428
    @Override
5429
    public int hashCode() {
5430
      return 0;
5431
    }
5432
 
5433
    public int compareTo(sendText_args other) {
5434
      if (!getClass().equals(other.getClass())) {
5435
        return getClass().getName().compareTo(other.getClass().getName());
5436
      }
5437
 
5438
      int lastComparison = 0;
5439
      sendText_args typedOther = (sendText_args)other;
5440
 
3430 rajveer 5441
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5442
      if (lastComparison != 0) {
5443
        return lastComparison;
5444
      }
3430 rajveer 5445
      if (isSetMessage()) {
5446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5447
        if (lastComparison != 0) {
5448
          return lastComparison;
5449
        }
352 ashish 5450
      }
5451
      return 0;
5452
    }
5453
 
3430 rajveer 5454
    public _Fields fieldForId(int fieldId) {
5455
      return _Fields.findByThriftId(fieldId);
5456
    }
5457
 
5458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5459
      org.apache.thrift.protocol.TField field;
352 ashish 5460
      iprot.readStructBegin();
5461
      while (true)
5462
      {
5463
        field = iprot.readFieldBegin();
3430 rajveer 5464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5465
          break;
5466
        }
3430 rajveer 5467
        switch (field.id) {
5468
          case 1: // MESSAGE
5469
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5470
              this.message = new TextMessage();
5471
              this.message.read(iprot);
5472
            } else { 
5473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5474
            }
5475
            break;
5476
          default:
5477
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5478
        }
3430 rajveer 5479
        iprot.readFieldEnd();
352 ashish 5480
      }
5481
      iprot.readStructEnd();
5482
      validate();
5483
    }
5484
 
3430 rajveer 5485
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5486
      validate();
5487
 
5488
      oprot.writeStructBegin(STRUCT_DESC);
5489
      if (this.message != null) {
5490
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5491
        this.message.write(oprot);
5492
        oprot.writeFieldEnd();
5493
      }
5494
      oprot.writeFieldStop();
5495
      oprot.writeStructEnd();
5496
    }
5497
 
5498
    @Override
5499
    public String toString() {
5500
      StringBuilder sb = new StringBuilder("sendText_args(");
5501
      boolean first = true;
5502
 
5503
      sb.append("message:");
5504
      if (this.message == null) {
5505
        sb.append("null");
5506
      } else {
5507
        sb.append(this.message);
5508
      }
5509
      first = false;
5510
      sb.append(")");
5511
      return sb.toString();
5512
    }
5513
 
3430 rajveer 5514
    public void validate() throws org.apache.thrift.TException {
352 ashish 5515
      // check for required fields
5516
    }
5517
 
3430 rajveer 5518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5519
      try {
5520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5521
      } catch (org.apache.thrift.TException te) {
5522
        throw new java.io.IOException(te);
5523
      }
5524
    }
5525
 
5526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5527
      try {
5528
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5529
      } catch (org.apache.thrift.TException te) {
5530
        throw new java.io.IOException(te);
5531
      }
5532
    }
5533
 
352 ashish 5534
  }
5535
 
3430 rajveer 5536
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
5537
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 5538
 
3430 rajveer 5539
    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 5540
 
3430 rajveer 5541
    private HelperServiceException se; // required
352 ashish 5542
 
5543
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5544
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5545
      SE((short)1, "se");
5546
 
5547
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5548
 
5549
      static {
5550
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5551
          byName.put(field.getFieldName(), field);
5552
        }
5553
      }
5554
 
5555
      /**
5556
       * Find the _Fields constant that matches fieldId, or null if its not found.
5557
       */
5558
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5559
        switch(fieldId) {
5560
          case 1: // SE
5561
            return SE;
5562
          default:
5563
            return null;
5564
        }
352 ashish 5565
      }
5566
 
5567
      /**
5568
       * Find the _Fields constant that matches fieldId, throwing an exception
5569
       * if it is not found.
5570
       */
5571
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5572
        _Fields fields = findByThriftId(fieldId);
5573
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5574
        return fields;
5575
      }
5576
 
5577
      /**
5578
       * Find the _Fields constant that matches name, or null if its not found.
5579
       */
5580
      public static _Fields findByName(String name) {
5581
        return byName.get(name);
5582
      }
5583
 
5584
      private final short _thriftId;
5585
      private final String _fieldName;
5586
 
5587
      _Fields(short thriftId, String fieldName) {
5588
        _thriftId = thriftId;
5589
        _fieldName = fieldName;
5590
      }
5591
 
5592
      public short getThriftFieldId() {
5593
        return _thriftId;
5594
      }
5595
 
5596
      public String getFieldName() {
5597
        return _fieldName;
5598
      }
5599
    }
5600
 
5601
    // isset id assignments
5602
 
3430 rajveer 5603
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5604
    static {
3430 rajveer 5605
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5606
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5607
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5608
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5609
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 5610
    }
5611
 
5612
    public sendText_result() {
5613
    }
5614
 
5615
    public sendText_result(
5616
      HelperServiceException se)
5617
    {
5618
      this();
5619
      this.se = se;
5620
    }
5621
 
5622
    /**
5623
     * Performs a deep copy on <i>other</i>.
5624
     */
5625
    public sendText_result(sendText_result other) {
5626
      if (other.isSetSe()) {
5627
        this.se = new HelperServiceException(other.se);
5628
      }
5629
    }
5630
 
5631
    public sendText_result deepCopy() {
5632
      return new sendText_result(this);
5633
    }
5634
 
3430 rajveer 5635
    @Override
5636
    public void clear() {
5637
      this.se = null;
352 ashish 5638
    }
5639
 
5640
    public HelperServiceException getSe() {
5641
      return this.se;
5642
    }
5643
 
3430 rajveer 5644
    public void setSe(HelperServiceException se) {
352 ashish 5645
      this.se = se;
5646
    }
5647
 
5648
    public void unsetSe() {
5649
      this.se = null;
5650
    }
5651
 
3430 rajveer 5652
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5653
    public boolean isSetSe() {
5654
      return this.se != null;
5655
    }
5656
 
5657
    public void setSeIsSet(boolean value) {
5658
      if (!value) {
5659
        this.se = null;
5660
      }
5661
    }
5662
 
5663
    public void setFieldValue(_Fields field, Object value) {
5664
      switch (field) {
5665
      case SE:
5666
        if (value == null) {
5667
          unsetSe();
5668
        } else {
5669
          setSe((HelperServiceException)value);
5670
        }
5671
        break;
5672
 
5673
      }
5674
    }
5675
 
5676
    public Object getFieldValue(_Fields field) {
5677
      switch (field) {
5678
      case SE:
5679
        return getSe();
5680
 
5681
      }
5682
      throw new IllegalStateException();
5683
    }
5684
 
3430 rajveer 5685
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5686
    public boolean isSet(_Fields field) {
5687
      if (field == null) {
5688
        throw new IllegalArgumentException();
5689
      }
352 ashish 5690
 
5691
      switch (field) {
5692
      case SE:
5693
        return isSetSe();
5694
      }
5695
      throw new IllegalStateException();
5696
    }
5697
 
5698
    @Override
5699
    public boolean equals(Object that) {
5700
      if (that == null)
5701
        return false;
5702
      if (that instanceof sendText_result)
5703
        return this.equals((sendText_result)that);
5704
      return false;
5705
    }
5706
 
5707
    public boolean equals(sendText_result that) {
5708
      if (that == null)
5709
        return false;
5710
 
5711
      boolean this_present_se = true && this.isSetSe();
5712
      boolean that_present_se = true && that.isSetSe();
5713
      if (this_present_se || that_present_se) {
5714
        if (!(this_present_se && that_present_se))
5715
          return false;
5716
        if (!this.se.equals(that.se))
5717
          return false;
5718
      }
5719
 
5720
      return true;
5721
    }
5722
 
5723
    @Override
5724
    public int hashCode() {
5725
      return 0;
5726
    }
5727
 
5728
    public int compareTo(sendText_result other) {
5729
      if (!getClass().equals(other.getClass())) {
5730
        return getClass().getName().compareTo(other.getClass().getName());
5731
      }
5732
 
5733
      int lastComparison = 0;
5734
      sendText_result typedOther = (sendText_result)other;
5735
 
3430 rajveer 5736
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5737
      if (lastComparison != 0) {
5738
        return lastComparison;
5739
      }
3430 rajveer 5740
      if (isSetSe()) {
5741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5742
        if (lastComparison != 0) {
5743
          return lastComparison;
5744
        }
352 ashish 5745
      }
5746
      return 0;
5747
    }
5748
 
3430 rajveer 5749
    public _Fields fieldForId(int fieldId) {
5750
      return _Fields.findByThriftId(fieldId);
5751
    }
5752
 
5753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5754
      org.apache.thrift.protocol.TField field;
352 ashish 5755
      iprot.readStructBegin();
5756
      while (true)
5757
      {
5758
        field = iprot.readFieldBegin();
3430 rajveer 5759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5760
          break;
5761
        }
3430 rajveer 5762
        switch (field.id) {
5763
          case 1: // SE
5764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5765
              this.se = new HelperServiceException();
5766
              this.se.read(iprot);
5767
            } else { 
5768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5769
            }
5770
            break;
5771
          default:
5772
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5773
        }
3430 rajveer 5774
        iprot.readFieldEnd();
352 ashish 5775
      }
5776
      iprot.readStructEnd();
5777
      validate();
5778
    }
5779
 
3430 rajveer 5780
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5781
      oprot.writeStructBegin(STRUCT_DESC);
5782
 
5783
      if (this.isSetSe()) {
5784
        oprot.writeFieldBegin(SE_FIELD_DESC);
5785
        this.se.write(oprot);
5786
        oprot.writeFieldEnd();
5787
      }
5788
      oprot.writeFieldStop();
5789
      oprot.writeStructEnd();
5790
    }
5791
 
5792
    @Override
5793
    public String toString() {
5794
      StringBuilder sb = new StringBuilder("sendText_result(");
5795
      boolean first = true;
5796
 
5797
      sb.append("se:");
5798
      if (this.se == null) {
5799
        sb.append("null");
5800
      } else {
5801
        sb.append(this.se);
5802
      }
5803
      first = false;
5804
      sb.append(")");
5805
      return sb.toString();
5806
    }
5807
 
3430 rajveer 5808
    public void validate() throws org.apache.thrift.TException {
352 ashish 5809
      // check for required fields
5810
    }
5811
 
3430 rajveer 5812
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5813
      try {
5814
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5815
      } catch (org.apache.thrift.TException te) {
5816
        throw new java.io.IOException(te);
5817
      }
5818
    }
5819
 
5820
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5821
      try {
5822
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5823
      } catch (org.apache.thrift.TException te) {
5824
        throw new java.io.IOException(te);
5825
      }
5826
    }
5827
 
352 ashish 5828
  }
5829
 
3430 rajveer 5830
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
5831
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 5832
 
3430 rajveer 5833
    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 5834
 
3430 rajveer 5835
    private Message message; // required
352 ashish 5836
 
5837
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5838
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5839
      MESSAGE((short)1, "message");
5840
 
5841
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5842
 
5843
      static {
5844
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5845
          byName.put(field.getFieldName(), field);
5846
        }
5847
      }
5848
 
5849
      /**
5850
       * Find the _Fields constant that matches fieldId, or null if its not found.
5851
       */
5852
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5853
        switch(fieldId) {
5854
          case 1: // MESSAGE
5855
            return MESSAGE;
5856
          default:
5857
            return null;
5858
        }
352 ashish 5859
      }
5860
 
5861
      /**
5862
       * Find the _Fields constant that matches fieldId, throwing an exception
5863
       * if it is not found.
5864
       */
5865
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5866
        _Fields fields = findByThriftId(fieldId);
5867
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5868
        return fields;
5869
      }
5870
 
5871
      /**
5872
       * Find the _Fields constant that matches name, or null if its not found.
5873
       */
5874
      public static _Fields findByName(String name) {
5875
        return byName.get(name);
5876
      }
5877
 
5878
      private final short _thriftId;
5879
      private final String _fieldName;
5880
 
5881
      _Fields(short thriftId, String fieldName) {
5882
        _thriftId = thriftId;
5883
        _fieldName = fieldName;
5884
      }
5885
 
5886
      public short getThriftFieldId() {
5887
        return _thriftId;
5888
      }
5889
 
5890
      public String getFieldName() {
5891
        return _fieldName;
5892
      }
5893
    }
5894
 
5895
    // isset id assignments
5896
 
3430 rajveer 5897
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5898
    static {
3430 rajveer 5899
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5900
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5901
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
5902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 5904
    }
5905
 
5906
    public addMessage_args() {
5907
    }
5908
 
5909
    public addMessage_args(
5910
      Message message)
5911
    {
5912
      this();
5913
      this.message = message;
5914
    }
5915
 
5916
    /**
5917
     * Performs a deep copy on <i>other</i>.
5918
     */
5919
    public addMessage_args(addMessage_args other) {
5920
      if (other.isSetMessage()) {
5921
        this.message = new Message(other.message);
5922
      }
5923
    }
5924
 
5925
    public addMessage_args deepCopy() {
5926
      return new addMessage_args(this);
5927
    }
5928
 
3430 rajveer 5929
    @Override
5930
    public void clear() {
5931
      this.message = null;
352 ashish 5932
    }
5933
 
5934
    public Message getMessage() {
5935
      return this.message;
5936
    }
5937
 
3430 rajveer 5938
    public void setMessage(Message message) {
352 ashish 5939
      this.message = message;
5940
    }
5941
 
5942
    public void unsetMessage() {
5943
      this.message = null;
5944
    }
5945
 
3430 rajveer 5946
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5947
    public boolean isSetMessage() {
5948
      return this.message != null;
5949
    }
5950
 
5951
    public void setMessageIsSet(boolean value) {
5952
      if (!value) {
5953
        this.message = null;
5954
      }
5955
    }
5956
 
5957
    public void setFieldValue(_Fields field, Object value) {
5958
      switch (field) {
5959
      case MESSAGE:
5960
        if (value == null) {
5961
          unsetMessage();
5962
        } else {
5963
          setMessage((Message)value);
5964
        }
5965
        break;
5966
 
5967
      }
5968
    }
5969
 
5970
    public Object getFieldValue(_Fields field) {
5971
      switch (field) {
5972
      case MESSAGE:
5973
        return getMessage();
5974
 
5975
      }
5976
      throw new IllegalStateException();
5977
    }
5978
 
3430 rajveer 5979
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5980
    public boolean isSet(_Fields field) {
5981
      if (field == null) {
5982
        throw new IllegalArgumentException();
5983
      }
352 ashish 5984
 
5985
      switch (field) {
5986
      case MESSAGE:
5987
        return isSetMessage();
5988
      }
5989
      throw new IllegalStateException();
5990
    }
5991
 
5992
    @Override
5993
    public boolean equals(Object that) {
5994
      if (that == null)
5995
        return false;
5996
      if (that instanceof addMessage_args)
5997
        return this.equals((addMessage_args)that);
5998
      return false;
5999
    }
6000
 
6001
    public boolean equals(addMessage_args that) {
6002
      if (that == null)
6003
        return false;
6004
 
6005
      boolean this_present_message = true && this.isSetMessage();
6006
      boolean that_present_message = true && that.isSetMessage();
6007
      if (this_present_message || that_present_message) {
6008
        if (!(this_present_message && that_present_message))
6009
          return false;
6010
        if (!this.message.equals(that.message))
6011
          return false;
6012
      }
6013
 
6014
      return true;
6015
    }
6016
 
6017
    @Override
6018
    public int hashCode() {
6019
      return 0;
6020
    }
6021
 
6022
    public int compareTo(addMessage_args other) {
6023
      if (!getClass().equals(other.getClass())) {
6024
        return getClass().getName().compareTo(other.getClass().getName());
6025
      }
6026
 
6027
      int lastComparison = 0;
6028
      addMessage_args typedOther = (addMessage_args)other;
6029
 
3430 rajveer 6030
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6031
      if (lastComparison != 0) {
6032
        return lastComparison;
6033
      }
3430 rajveer 6034
      if (isSetMessage()) {
6035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6036
        if (lastComparison != 0) {
6037
          return lastComparison;
6038
        }
352 ashish 6039
      }
6040
      return 0;
6041
    }
6042
 
3430 rajveer 6043
    public _Fields fieldForId(int fieldId) {
6044
      return _Fields.findByThriftId(fieldId);
6045
    }
6046
 
6047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6048
      org.apache.thrift.protocol.TField field;
352 ashish 6049
      iprot.readStructBegin();
6050
      while (true)
6051
      {
6052
        field = iprot.readFieldBegin();
3430 rajveer 6053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6054
          break;
6055
        }
3430 rajveer 6056
        switch (field.id) {
6057
          case 1: // MESSAGE
6058
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6059
              this.message = new Message();
6060
              this.message.read(iprot);
6061
            } else { 
6062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6063
            }
6064
            break;
6065
          default:
6066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6067
        }
3430 rajveer 6068
        iprot.readFieldEnd();
352 ashish 6069
      }
6070
      iprot.readStructEnd();
6071
      validate();
6072
    }
6073
 
3430 rajveer 6074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6075
      validate();
6076
 
6077
      oprot.writeStructBegin(STRUCT_DESC);
6078
      if (this.message != null) {
6079
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6080
        this.message.write(oprot);
6081
        oprot.writeFieldEnd();
6082
      }
6083
      oprot.writeFieldStop();
6084
      oprot.writeStructEnd();
6085
    }
6086
 
6087
    @Override
6088
    public String toString() {
6089
      StringBuilder sb = new StringBuilder("addMessage_args(");
6090
      boolean first = true;
6091
 
6092
      sb.append("message:");
6093
      if (this.message == null) {
6094
        sb.append("null");
6095
      } else {
6096
        sb.append(this.message);
6097
      }
6098
      first = false;
6099
      sb.append(")");
6100
      return sb.toString();
6101
    }
6102
 
3430 rajveer 6103
    public void validate() throws org.apache.thrift.TException {
352 ashish 6104
      // check for required fields
6105
    }
6106
 
3430 rajveer 6107
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6108
      try {
6109
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6110
      } catch (org.apache.thrift.TException te) {
6111
        throw new java.io.IOException(te);
6112
      }
6113
    }
6114
 
6115
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6116
      try {
6117
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6118
      } catch (org.apache.thrift.TException te) {
6119
        throw new java.io.IOException(te);
6120
      }
6121
    }
6122
 
352 ashish 6123
  }
6124
 
3430 rajveer 6125
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6126
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6127
 
3430 rajveer 6128
    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 6129
 
3430 rajveer 6130
    private HelperServiceException se; // required
352 ashish 6131
 
6132
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6133
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6134
      SE((short)1, "se");
6135
 
6136
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6137
 
6138
      static {
6139
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6140
          byName.put(field.getFieldName(), field);
6141
        }
6142
      }
6143
 
6144
      /**
6145
       * Find the _Fields constant that matches fieldId, or null if its not found.
6146
       */
6147
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6148
        switch(fieldId) {
6149
          case 1: // SE
6150
            return SE;
6151
          default:
6152
            return null;
6153
        }
352 ashish 6154
      }
6155
 
6156
      /**
6157
       * Find the _Fields constant that matches fieldId, throwing an exception
6158
       * if it is not found.
6159
       */
6160
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6161
        _Fields fields = findByThriftId(fieldId);
6162
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6163
        return fields;
6164
      }
6165
 
6166
      /**
6167
       * Find the _Fields constant that matches name, or null if its not found.
6168
       */
6169
      public static _Fields findByName(String name) {
6170
        return byName.get(name);
6171
      }
6172
 
6173
      private final short _thriftId;
6174
      private final String _fieldName;
6175
 
6176
      _Fields(short thriftId, String fieldName) {
6177
        _thriftId = thriftId;
6178
        _fieldName = fieldName;
6179
      }
6180
 
6181
      public short getThriftFieldId() {
6182
        return _thriftId;
6183
      }
6184
 
6185
      public String getFieldName() {
6186
        return _fieldName;
6187
      }
6188
    }
6189
 
6190
    // isset id assignments
6191
 
3430 rajveer 6192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6193
    static {
3430 rajveer 6194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6195
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6197
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6198
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6199
    }
6200
 
6201
    public addMessage_result() {
6202
    }
6203
 
6204
    public addMessage_result(
6205
      HelperServiceException se)
6206
    {
6207
      this();
6208
      this.se = se;
6209
    }
6210
 
6211
    /**
6212
     * Performs a deep copy on <i>other</i>.
6213
     */
6214
    public addMessage_result(addMessage_result other) {
6215
      if (other.isSetSe()) {
6216
        this.se = new HelperServiceException(other.se);
6217
      }
6218
    }
6219
 
6220
    public addMessage_result deepCopy() {
6221
      return new addMessage_result(this);
6222
    }
6223
 
3430 rajveer 6224
    @Override
6225
    public void clear() {
6226
      this.se = null;
352 ashish 6227
    }
6228
 
6229
    public HelperServiceException getSe() {
6230
      return this.se;
6231
    }
6232
 
3430 rajveer 6233
    public void setSe(HelperServiceException se) {
352 ashish 6234
      this.se = se;
6235
    }
6236
 
6237
    public void unsetSe() {
6238
      this.se = null;
6239
    }
6240
 
3430 rajveer 6241
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6242
    public boolean isSetSe() {
6243
      return this.se != null;
6244
    }
6245
 
6246
    public void setSeIsSet(boolean value) {
6247
      if (!value) {
6248
        this.se = null;
6249
      }
6250
    }
6251
 
6252
    public void setFieldValue(_Fields field, Object value) {
6253
      switch (field) {
6254
      case SE:
6255
        if (value == null) {
6256
          unsetSe();
6257
        } else {
6258
          setSe((HelperServiceException)value);
6259
        }
6260
        break;
6261
 
6262
      }
6263
    }
6264
 
6265
    public Object getFieldValue(_Fields field) {
6266
      switch (field) {
6267
      case SE:
6268
        return getSe();
6269
 
6270
      }
6271
      throw new IllegalStateException();
6272
    }
6273
 
3430 rajveer 6274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6275
    public boolean isSet(_Fields field) {
6276
      if (field == null) {
6277
        throw new IllegalArgumentException();
6278
      }
352 ashish 6279
 
6280
      switch (field) {
6281
      case SE:
6282
        return isSetSe();
6283
      }
6284
      throw new IllegalStateException();
6285
    }
6286
 
6287
    @Override
6288
    public boolean equals(Object that) {
6289
      if (that == null)
6290
        return false;
6291
      if (that instanceof addMessage_result)
6292
        return this.equals((addMessage_result)that);
6293
      return false;
6294
    }
6295
 
6296
    public boolean equals(addMessage_result that) {
6297
      if (that == null)
6298
        return false;
6299
 
6300
      boolean this_present_se = true && this.isSetSe();
6301
      boolean that_present_se = true && that.isSetSe();
6302
      if (this_present_se || that_present_se) {
6303
        if (!(this_present_se && that_present_se))
6304
          return false;
6305
        if (!this.se.equals(that.se))
6306
          return false;
6307
      }
6308
 
6309
      return true;
6310
    }
6311
 
6312
    @Override
6313
    public int hashCode() {
6314
      return 0;
6315
    }
6316
 
6317
    public int compareTo(addMessage_result other) {
6318
      if (!getClass().equals(other.getClass())) {
6319
        return getClass().getName().compareTo(other.getClass().getName());
6320
      }
6321
 
6322
      int lastComparison = 0;
6323
      addMessage_result typedOther = (addMessage_result)other;
6324
 
3430 rajveer 6325
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6326
      if (lastComparison != 0) {
6327
        return lastComparison;
6328
      }
3430 rajveer 6329
      if (isSetSe()) {
6330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6331
        if (lastComparison != 0) {
6332
          return lastComparison;
6333
        }
352 ashish 6334
      }
6335
      return 0;
6336
    }
6337
 
3430 rajveer 6338
    public _Fields fieldForId(int fieldId) {
6339
      return _Fields.findByThriftId(fieldId);
6340
    }
6341
 
6342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6343
      org.apache.thrift.protocol.TField field;
352 ashish 6344
      iprot.readStructBegin();
6345
      while (true)
6346
      {
6347
        field = iprot.readFieldBegin();
3430 rajveer 6348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6349
          break;
6350
        }
3430 rajveer 6351
        switch (field.id) {
6352
          case 1: // SE
6353
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6354
              this.se = new HelperServiceException();
6355
              this.se.read(iprot);
6356
            } else { 
6357
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6358
            }
6359
            break;
6360
          default:
6361
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6362
        }
3430 rajveer 6363
        iprot.readFieldEnd();
352 ashish 6364
      }
6365
      iprot.readStructEnd();
6366
      validate();
6367
    }
6368
 
3430 rajveer 6369
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6370
      oprot.writeStructBegin(STRUCT_DESC);
6371
 
6372
      if (this.isSetSe()) {
6373
        oprot.writeFieldBegin(SE_FIELD_DESC);
6374
        this.se.write(oprot);
6375
        oprot.writeFieldEnd();
6376
      }
6377
      oprot.writeFieldStop();
6378
      oprot.writeStructEnd();
6379
    }
6380
 
6381
    @Override
6382
    public String toString() {
6383
      StringBuilder sb = new StringBuilder("addMessage_result(");
6384
      boolean first = true;
6385
 
6386
      sb.append("se:");
6387
      if (this.se == null) {
6388
        sb.append("null");
6389
      } else {
6390
        sb.append(this.se);
6391
      }
6392
      first = false;
6393
      sb.append(")");
6394
      return sb.toString();
6395
    }
6396
 
3430 rajveer 6397
    public void validate() throws org.apache.thrift.TException {
352 ashish 6398
      // check for required fields
6399
    }
6400
 
3430 rajveer 6401
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6402
      try {
6403
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6404
      } catch (org.apache.thrift.TException te) {
6405
        throw new java.io.IOException(te);
6406
      }
6407
    }
6408
 
6409
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6410
      try {
6411
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6412
      } catch (org.apache.thrift.TException te) {
6413
        throw new java.io.IOException(te);
6414
      }
6415
    }
6416
 
352 ashish 6417
  }
6418
 
3430 rajveer 6419
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6420
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6421
 
3430 rajveer 6422
    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);
6423
    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 6424
 
3430 rajveer 6425
    private long id; // required
6426
    private String message; // required
352 ashish 6427
 
6428
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6429
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6430
      ID((short)1, "id"),
6431
      MESSAGE((short)2, "message");
6432
 
6433
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6434
 
6435
      static {
6436
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6437
          byName.put(field.getFieldName(), field);
6438
        }
6439
      }
6440
 
6441
      /**
6442
       * Find the _Fields constant that matches fieldId, or null if its not found.
6443
       */
6444
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6445
        switch(fieldId) {
6446
          case 1: // ID
6447
            return ID;
6448
          case 2: // MESSAGE
6449
            return MESSAGE;
6450
          default:
6451
            return null;
6452
        }
352 ashish 6453
      }
6454
 
6455
      /**
6456
       * Find the _Fields constant that matches fieldId, throwing an exception
6457
       * if it is not found.
6458
       */
6459
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6460
        _Fields fields = findByThriftId(fieldId);
6461
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6462
        return fields;
6463
      }
6464
 
6465
      /**
6466
       * Find the _Fields constant that matches name, or null if its not found.
6467
       */
6468
      public static _Fields findByName(String name) {
6469
        return byName.get(name);
6470
      }
6471
 
6472
      private final short _thriftId;
6473
      private final String _fieldName;
6474
 
6475
      _Fields(short thriftId, String fieldName) {
6476
        _thriftId = thriftId;
6477
        _fieldName = fieldName;
6478
      }
6479
 
6480
      public short getThriftFieldId() {
6481
        return _thriftId;
6482
      }
6483
 
6484
      public String getFieldName() {
6485
        return _fieldName;
6486
      }
6487
    }
6488
 
6489
    // isset id assignments
6490
    private static final int __ID_ISSET_ID = 0;
6491
    private BitSet __isset_bit_vector = new BitSet(1);
6492
 
3430 rajveer 6493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6494
    static {
3430 rajveer 6495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6496
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6497
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6498
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 6502
    }
6503
 
6504
    public updateMessage_args() {
6505
    }
6506
 
6507
    public updateMessage_args(
6508
      long id,
6509
      String message)
6510
    {
6511
      this();
6512
      this.id = id;
6513
      setIdIsSet(true);
6514
      this.message = message;
6515
    }
6516
 
6517
    /**
6518
     * Performs a deep copy on <i>other</i>.
6519
     */
6520
    public updateMessage_args(updateMessage_args other) {
6521
      __isset_bit_vector.clear();
6522
      __isset_bit_vector.or(other.__isset_bit_vector);
6523
      this.id = other.id;
6524
      if (other.isSetMessage()) {
6525
        this.message = other.message;
6526
      }
6527
    }
6528
 
6529
    public updateMessage_args deepCopy() {
6530
      return new updateMessage_args(this);
6531
    }
6532
 
3430 rajveer 6533
    @Override
6534
    public void clear() {
6535
      setIdIsSet(false);
6536
      this.id = 0;
6537
      this.message = null;
352 ashish 6538
    }
6539
 
6540
    public long getId() {
6541
      return this.id;
6542
    }
6543
 
3430 rajveer 6544
    public void setId(long id) {
352 ashish 6545
      this.id = id;
6546
      setIdIsSet(true);
6547
    }
6548
 
6549
    public void unsetId() {
6550
      __isset_bit_vector.clear(__ID_ISSET_ID);
6551
    }
6552
 
3430 rajveer 6553
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6554
    public boolean isSetId() {
6555
      return __isset_bit_vector.get(__ID_ISSET_ID);
6556
    }
6557
 
6558
    public void setIdIsSet(boolean value) {
6559
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6560
    }
6561
 
6562
    public String getMessage() {
6563
      return this.message;
6564
    }
6565
 
3430 rajveer 6566
    public void setMessage(String message) {
352 ashish 6567
      this.message = message;
6568
    }
6569
 
6570
    public void unsetMessage() {
6571
      this.message = null;
6572
    }
6573
 
3430 rajveer 6574
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6575
    public boolean isSetMessage() {
6576
      return this.message != null;
6577
    }
6578
 
6579
    public void setMessageIsSet(boolean value) {
6580
      if (!value) {
6581
        this.message = null;
6582
      }
6583
    }
6584
 
6585
    public void setFieldValue(_Fields field, Object value) {
6586
      switch (field) {
6587
      case ID:
6588
        if (value == null) {
6589
          unsetId();
6590
        } else {
6591
          setId((Long)value);
6592
        }
6593
        break;
6594
 
6595
      case MESSAGE:
6596
        if (value == null) {
6597
          unsetMessage();
6598
        } else {
6599
          setMessage((String)value);
6600
        }
6601
        break;
6602
 
6603
      }
6604
    }
6605
 
6606
    public Object getFieldValue(_Fields field) {
6607
      switch (field) {
6608
      case ID:
3430 rajveer 6609
        return Long.valueOf(getId());
352 ashish 6610
 
6611
      case MESSAGE:
6612
        return getMessage();
6613
 
6614
      }
6615
      throw new IllegalStateException();
6616
    }
6617
 
3430 rajveer 6618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6619
    public boolean isSet(_Fields field) {
6620
      if (field == null) {
6621
        throw new IllegalArgumentException();
6622
      }
352 ashish 6623
 
6624
      switch (field) {
6625
      case ID:
6626
        return isSetId();
6627
      case MESSAGE:
6628
        return isSetMessage();
6629
      }
6630
      throw new IllegalStateException();
6631
    }
6632
 
6633
    @Override
6634
    public boolean equals(Object that) {
6635
      if (that == null)
6636
        return false;
6637
      if (that instanceof updateMessage_args)
6638
        return this.equals((updateMessage_args)that);
6639
      return false;
6640
    }
6641
 
6642
    public boolean equals(updateMessage_args that) {
6643
      if (that == null)
6644
        return false;
6645
 
6646
      boolean this_present_id = true;
6647
      boolean that_present_id = true;
6648
      if (this_present_id || that_present_id) {
6649
        if (!(this_present_id && that_present_id))
6650
          return false;
6651
        if (this.id != that.id)
6652
          return false;
6653
      }
6654
 
6655
      boolean this_present_message = true && this.isSetMessage();
6656
      boolean that_present_message = true && that.isSetMessage();
6657
      if (this_present_message || that_present_message) {
6658
        if (!(this_present_message && that_present_message))
6659
          return false;
6660
        if (!this.message.equals(that.message))
6661
          return false;
6662
      }
6663
 
6664
      return true;
6665
    }
6666
 
6667
    @Override
6668
    public int hashCode() {
6669
      return 0;
6670
    }
6671
 
6672
    public int compareTo(updateMessage_args other) {
6673
      if (!getClass().equals(other.getClass())) {
6674
        return getClass().getName().compareTo(other.getClass().getName());
6675
      }
6676
 
6677
      int lastComparison = 0;
6678
      updateMessage_args typedOther = (updateMessage_args)other;
6679
 
3430 rajveer 6680
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6681
      if (lastComparison != 0) {
6682
        return lastComparison;
6683
      }
3430 rajveer 6684
      if (isSetId()) {
6685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6686
        if (lastComparison != 0) {
6687
          return lastComparison;
6688
        }
352 ashish 6689
      }
3430 rajveer 6690
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6691
      if (lastComparison != 0) {
6692
        return lastComparison;
6693
      }
3430 rajveer 6694
      if (isSetMessage()) {
6695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6696
        if (lastComparison != 0) {
6697
          return lastComparison;
6698
        }
352 ashish 6699
      }
6700
      return 0;
6701
    }
6702
 
3430 rajveer 6703
    public _Fields fieldForId(int fieldId) {
6704
      return _Fields.findByThriftId(fieldId);
6705
    }
6706
 
6707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6708
      org.apache.thrift.protocol.TField field;
352 ashish 6709
      iprot.readStructBegin();
6710
      while (true)
6711
      {
6712
        field = iprot.readFieldBegin();
3430 rajveer 6713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6714
          break;
6715
        }
3430 rajveer 6716
        switch (field.id) {
6717
          case 1: // ID
6718
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6719
              this.id = iprot.readI64();
6720
              setIdIsSet(true);
6721
            } else { 
6722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6723
            }
6724
            break;
6725
          case 2: // MESSAGE
6726
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6727
              this.message = iprot.readString();
6728
            } else { 
6729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6730
            }
6731
            break;
6732
          default:
6733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6734
        }
3430 rajveer 6735
        iprot.readFieldEnd();
352 ashish 6736
      }
6737
      iprot.readStructEnd();
6738
      validate();
6739
    }
6740
 
3430 rajveer 6741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6742
      validate();
6743
 
6744
      oprot.writeStructBegin(STRUCT_DESC);
6745
      oprot.writeFieldBegin(ID_FIELD_DESC);
6746
      oprot.writeI64(this.id);
6747
      oprot.writeFieldEnd();
6748
      if (this.message != null) {
6749
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6750
        oprot.writeString(this.message);
6751
        oprot.writeFieldEnd();
6752
      }
6753
      oprot.writeFieldStop();
6754
      oprot.writeStructEnd();
6755
    }
6756
 
6757
    @Override
6758
    public String toString() {
6759
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6760
      boolean first = true;
6761
 
6762
      sb.append("id:");
6763
      sb.append(this.id);
6764
      first = false;
6765
      if (!first) sb.append(", ");
6766
      sb.append("message:");
6767
      if (this.message == null) {
6768
        sb.append("null");
6769
      } else {
6770
        sb.append(this.message);
6771
      }
6772
      first = false;
6773
      sb.append(")");
6774
      return sb.toString();
6775
    }
6776
 
3430 rajveer 6777
    public void validate() throws org.apache.thrift.TException {
352 ashish 6778
      // check for required fields
6779
    }
6780
 
3430 rajveer 6781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6782
      try {
6783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6784
      } catch (org.apache.thrift.TException te) {
6785
        throw new java.io.IOException(te);
6786
      }
6787
    }
6788
 
6789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6790
      try {
6791
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6792
        __isset_bit_vector = new BitSet(1);
6793
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6794
      } catch (org.apache.thrift.TException te) {
6795
        throw new java.io.IOException(te);
6796
      }
6797
    }
6798
 
352 ashish 6799
  }
6800
 
3430 rajveer 6801
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6802
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6803
 
3430 rajveer 6804
    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 6805
 
3430 rajveer 6806
    private HelperServiceException se; // required
352 ashish 6807
 
6808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6810
      SE((short)1, "se");
6811
 
6812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6813
 
6814
      static {
6815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6816
          byName.put(field.getFieldName(), field);
6817
        }
6818
      }
6819
 
6820
      /**
6821
       * Find the _Fields constant that matches fieldId, or null if its not found.
6822
       */
6823
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6824
        switch(fieldId) {
6825
          case 1: // SE
6826
            return SE;
6827
          default:
6828
            return null;
6829
        }
352 ashish 6830
      }
6831
 
6832
      /**
6833
       * Find the _Fields constant that matches fieldId, throwing an exception
6834
       * if it is not found.
6835
       */
6836
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6837
        _Fields fields = findByThriftId(fieldId);
6838
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6839
        return fields;
6840
      }
6841
 
6842
      /**
6843
       * Find the _Fields constant that matches name, or null if its not found.
6844
       */
6845
      public static _Fields findByName(String name) {
6846
        return byName.get(name);
6847
      }
6848
 
6849
      private final short _thriftId;
6850
      private final String _fieldName;
6851
 
6852
      _Fields(short thriftId, String fieldName) {
6853
        _thriftId = thriftId;
6854
        _fieldName = fieldName;
6855
      }
6856
 
6857
      public short getThriftFieldId() {
6858
        return _thriftId;
6859
      }
6860
 
6861
      public String getFieldName() {
6862
        return _fieldName;
6863
      }
6864
    }
6865
 
6866
    // isset id assignments
6867
 
3430 rajveer 6868
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6869
    static {
3430 rajveer 6870
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6871
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6872
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 6875
    }
6876
 
6877
    public updateMessage_result() {
6878
    }
6879
 
6880
    public updateMessage_result(
6881
      HelperServiceException se)
6882
    {
6883
      this();
6884
      this.se = se;
6885
    }
6886
 
6887
    /**
6888
     * Performs a deep copy on <i>other</i>.
6889
     */
6890
    public updateMessage_result(updateMessage_result other) {
6891
      if (other.isSetSe()) {
6892
        this.se = new HelperServiceException(other.se);
6893
      }
6894
    }
6895
 
6896
    public updateMessage_result deepCopy() {
6897
      return new updateMessage_result(this);
6898
    }
6899
 
3430 rajveer 6900
    @Override
6901
    public void clear() {
6902
      this.se = null;
352 ashish 6903
    }
6904
 
6905
    public HelperServiceException getSe() {
6906
      return this.se;
6907
    }
6908
 
3430 rajveer 6909
    public void setSe(HelperServiceException se) {
352 ashish 6910
      this.se = se;
6911
    }
6912
 
6913
    public void unsetSe() {
6914
      this.se = null;
6915
    }
6916
 
3430 rajveer 6917
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6918
    public boolean isSetSe() {
6919
      return this.se != null;
6920
    }
6921
 
6922
    public void setSeIsSet(boolean value) {
6923
      if (!value) {
6924
        this.se = null;
6925
      }
6926
    }
6927
 
6928
    public void setFieldValue(_Fields field, Object value) {
6929
      switch (field) {
6930
      case SE:
6931
        if (value == null) {
6932
          unsetSe();
6933
        } else {
6934
          setSe((HelperServiceException)value);
6935
        }
6936
        break;
6937
 
6938
      }
6939
    }
6940
 
6941
    public Object getFieldValue(_Fields field) {
6942
      switch (field) {
6943
      case SE:
6944
        return getSe();
6945
 
6946
      }
6947
      throw new IllegalStateException();
6948
    }
6949
 
3430 rajveer 6950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6951
    public boolean isSet(_Fields field) {
6952
      if (field == null) {
6953
        throw new IllegalArgumentException();
6954
      }
352 ashish 6955
 
6956
      switch (field) {
6957
      case SE:
6958
        return isSetSe();
6959
      }
6960
      throw new IllegalStateException();
6961
    }
6962
 
6963
    @Override
6964
    public boolean equals(Object that) {
6965
      if (that == null)
6966
        return false;
6967
      if (that instanceof updateMessage_result)
6968
        return this.equals((updateMessage_result)that);
6969
      return false;
6970
    }
6971
 
6972
    public boolean equals(updateMessage_result that) {
6973
      if (that == null)
6974
        return false;
6975
 
6976
      boolean this_present_se = true && this.isSetSe();
6977
      boolean that_present_se = true && that.isSetSe();
6978
      if (this_present_se || that_present_se) {
6979
        if (!(this_present_se && that_present_se))
6980
          return false;
6981
        if (!this.se.equals(that.se))
6982
          return false;
6983
      }
6984
 
6985
      return true;
6986
    }
6987
 
6988
    @Override
6989
    public int hashCode() {
6990
      return 0;
6991
    }
6992
 
6993
    public int compareTo(updateMessage_result other) {
6994
      if (!getClass().equals(other.getClass())) {
6995
        return getClass().getName().compareTo(other.getClass().getName());
6996
      }
6997
 
6998
      int lastComparison = 0;
6999
      updateMessage_result typedOther = (updateMessage_result)other;
7000
 
3430 rajveer 7001
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7002
      if (lastComparison != 0) {
7003
        return lastComparison;
7004
      }
3430 rajveer 7005
      if (isSetSe()) {
7006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7007
        if (lastComparison != 0) {
7008
          return lastComparison;
7009
        }
352 ashish 7010
      }
7011
      return 0;
7012
    }
7013
 
3430 rajveer 7014
    public _Fields fieldForId(int fieldId) {
7015
      return _Fields.findByThriftId(fieldId);
7016
    }
7017
 
7018
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7019
      org.apache.thrift.protocol.TField field;
352 ashish 7020
      iprot.readStructBegin();
7021
      while (true)
7022
      {
7023
        field = iprot.readFieldBegin();
3430 rajveer 7024
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7025
          break;
7026
        }
3430 rajveer 7027
        switch (field.id) {
7028
          case 1: // SE
7029
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7030
              this.se = new HelperServiceException();
7031
              this.se.read(iprot);
7032
            } else { 
7033
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7034
            }
7035
            break;
7036
          default:
7037
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7038
        }
3430 rajveer 7039
        iprot.readFieldEnd();
352 ashish 7040
      }
7041
      iprot.readStructEnd();
7042
      validate();
7043
    }
7044
 
3430 rajveer 7045
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7046
      oprot.writeStructBegin(STRUCT_DESC);
7047
 
7048
      if (this.isSetSe()) {
7049
        oprot.writeFieldBegin(SE_FIELD_DESC);
7050
        this.se.write(oprot);
7051
        oprot.writeFieldEnd();
7052
      }
7053
      oprot.writeFieldStop();
7054
      oprot.writeStructEnd();
7055
    }
7056
 
7057
    @Override
7058
    public String toString() {
7059
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7060
      boolean first = true;
7061
 
7062
      sb.append("se:");
7063
      if (this.se == null) {
7064
        sb.append("null");
7065
      } else {
7066
        sb.append(this.se);
7067
      }
7068
      first = false;
7069
      sb.append(")");
7070
      return sb.toString();
7071
    }
7072
 
3430 rajveer 7073
    public void validate() throws org.apache.thrift.TException {
352 ashish 7074
      // check for required fields
7075
    }
7076
 
3430 rajveer 7077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7078
      try {
7079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7080
      } catch (org.apache.thrift.TException te) {
7081
        throw new java.io.IOException(te);
7082
      }
7083
    }
7084
 
7085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7086
      try {
7087
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7088
      } catch (org.apache.thrift.TException te) {
7089
        throw new java.io.IOException(te);
7090
      }
7091
    }
7092
 
352 ashish 7093
  }
7094
 
3430 rajveer 7095
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7096
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7097
 
3430 rajveer 7098
    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 7099
 
3430 rajveer 7100
    private long id; // required
352 ashish 7101
 
7102
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7103
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7104
      ID((short)1, "id");
7105
 
7106
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7107
 
7108
      static {
7109
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7110
          byName.put(field.getFieldName(), field);
7111
        }
7112
      }
7113
 
7114
      /**
7115
       * Find the _Fields constant that matches fieldId, or null if its not found.
7116
       */
7117
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7118
        switch(fieldId) {
7119
          case 1: // ID
7120
            return ID;
7121
          default:
7122
            return null;
7123
        }
352 ashish 7124
      }
7125
 
7126
      /**
7127
       * Find the _Fields constant that matches fieldId, throwing an exception
7128
       * if it is not found.
7129
       */
7130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7131
        _Fields fields = findByThriftId(fieldId);
7132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7133
        return fields;
7134
      }
7135
 
7136
      /**
7137
       * Find the _Fields constant that matches name, or null if its not found.
7138
       */
7139
      public static _Fields findByName(String name) {
7140
        return byName.get(name);
7141
      }
7142
 
7143
      private final short _thriftId;
7144
      private final String _fieldName;
7145
 
7146
      _Fields(short thriftId, String fieldName) {
7147
        _thriftId = thriftId;
7148
        _fieldName = fieldName;
7149
      }
7150
 
7151
      public short getThriftFieldId() {
7152
        return _thriftId;
7153
      }
7154
 
7155
      public String getFieldName() {
7156
        return _fieldName;
7157
      }
7158
    }
7159
 
7160
    // isset id assignments
7161
    private static final int __ID_ISSET_ID = 0;
7162
    private BitSet __isset_bit_vector = new BitSet(1);
7163
 
3430 rajveer 7164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7165
    static {
3430 rajveer 7166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7167
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7171
    }
7172
 
7173
    public getMessage_args() {
7174
    }
7175
 
7176
    public getMessage_args(
7177
      long id)
7178
    {
7179
      this();
7180
      this.id = id;
7181
      setIdIsSet(true);
7182
    }
7183
 
7184
    /**
7185
     * Performs a deep copy on <i>other</i>.
7186
     */
7187
    public getMessage_args(getMessage_args other) {
7188
      __isset_bit_vector.clear();
7189
      __isset_bit_vector.or(other.__isset_bit_vector);
7190
      this.id = other.id;
7191
    }
7192
 
7193
    public getMessage_args deepCopy() {
7194
      return new getMessage_args(this);
7195
    }
7196
 
3430 rajveer 7197
    @Override
7198
    public void clear() {
7199
      setIdIsSet(false);
7200
      this.id = 0;
352 ashish 7201
    }
7202
 
7203
    public long getId() {
7204
      return this.id;
7205
    }
7206
 
3430 rajveer 7207
    public void setId(long id) {
352 ashish 7208
      this.id = id;
7209
      setIdIsSet(true);
7210
    }
7211
 
7212
    public void unsetId() {
7213
      __isset_bit_vector.clear(__ID_ISSET_ID);
7214
    }
7215
 
3430 rajveer 7216
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7217
    public boolean isSetId() {
7218
      return __isset_bit_vector.get(__ID_ISSET_ID);
7219
    }
7220
 
7221
    public void setIdIsSet(boolean value) {
7222
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7223
    }
7224
 
7225
    public void setFieldValue(_Fields field, Object value) {
7226
      switch (field) {
7227
      case ID:
7228
        if (value == null) {
7229
          unsetId();
7230
        } else {
7231
          setId((Long)value);
7232
        }
7233
        break;
7234
 
7235
      }
7236
    }
7237
 
7238
    public Object getFieldValue(_Fields field) {
7239
      switch (field) {
7240
      case ID:
3430 rajveer 7241
        return Long.valueOf(getId());
352 ashish 7242
 
7243
      }
7244
      throw new IllegalStateException();
7245
    }
7246
 
3430 rajveer 7247
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7248
    public boolean isSet(_Fields field) {
7249
      if (field == null) {
7250
        throw new IllegalArgumentException();
7251
      }
352 ashish 7252
 
7253
      switch (field) {
7254
      case ID:
7255
        return isSetId();
7256
      }
7257
      throw new IllegalStateException();
7258
    }
7259
 
7260
    @Override
7261
    public boolean equals(Object that) {
7262
      if (that == null)
7263
        return false;
7264
      if (that instanceof getMessage_args)
7265
        return this.equals((getMessage_args)that);
7266
      return false;
7267
    }
7268
 
7269
    public boolean equals(getMessage_args that) {
7270
      if (that == null)
7271
        return false;
7272
 
7273
      boolean this_present_id = true;
7274
      boolean that_present_id = true;
7275
      if (this_present_id || that_present_id) {
7276
        if (!(this_present_id && that_present_id))
7277
          return false;
7278
        if (this.id != that.id)
7279
          return false;
7280
      }
7281
 
7282
      return true;
7283
    }
7284
 
7285
    @Override
7286
    public int hashCode() {
7287
      return 0;
7288
    }
7289
 
7290
    public int compareTo(getMessage_args other) {
7291
      if (!getClass().equals(other.getClass())) {
7292
        return getClass().getName().compareTo(other.getClass().getName());
7293
      }
7294
 
7295
      int lastComparison = 0;
7296
      getMessage_args typedOther = (getMessage_args)other;
7297
 
3430 rajveer 7298
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7299
      if (lastComparison != 0) {
7300
        return lastComparison;
7301
      }
3430 rajveer 7302
      if (isSetId()) {
7303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7304
        if (lastComparison != 0) {
7305
          return lastComparison;
7306
        }
352 ashish 7307
      }
7308
      return 0;
7309
    }
7310
 
3430 rajveer 7311
    public _Fields fieldForId(int fieldId) {
7312
      return _Fields.findByThriftId(fieldId);
7313
    }
7314
 
7315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7316
      org.apache.thrift.protocol.TField field;
352 ashish 7317
      iprot.readStructBegin();
7318
      while (true)
7319
      {
7320
        field = iprot.readFieldBegin();
3430 rajveer 7321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7322
          break;
7323
        }
3430 rajveer 7324
        switch (field.id) {
7325
          case 1: // ID
7326
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7327
              this.id = iprot.readI64();
7328
              setIdIsSet(true);
7329
            } else { 
7330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7331
            }
7332
            break;
7333
          default:
7334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7335
        }
3430 rajveer 7336
        iprot.readFieldEnd();
352 ashish 7337
      }
7338
      iprot.readStructEnd();
7339
      validate();
7340
    }
7341
 
3430 rajveer 7342
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7343
      validate();
7344
 
7345
      oprot.writeStructBegin(STRUCT_DESC);
7346
      oprot.writeFieldBegin(ID_FIELD_DESC);
7347
      oprot.writeI64(this.id);
7348
      oprot.writeFieldEnd();
7349
      oprot.writeFieldStop();
7350
      oprot.writeStructEnd();
7351
    }
7352
 
7353
    @Override
7354
    public String toString() {
7355
      StringBuilder sb = new StringBuilder("getMessage_args(");
7356
      boolean first = true;
7357
 
7358
      sb.append("id:");
7359
      sb.append(this.id);
7360
      first = false;
7361
      sb.append(")");
7362
      return sb.toString();
7363
    }
7364
 
3430 rajveer 7365
    public void validate() throws org.apache.thrift.TException {
352 ashish 7366
      // check for required fields
7367
    }
7368
 
3430 rajveer 7369
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7370
      try {
7371
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7372
      } catch (org.apache.thrift.TException te) {
7373
        throw new java.io.IOException(te);
7374
      }
7375
    }
7376
 
7377
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7378
      try {
7379
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7380
        __isset_bit_vector = new BitSet(1);
7381
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7382
      } catch (org.apache.thrift.TException te) {
7383
        throw new java.io.IOException(te);
7384
      }
7385
    }
7386
 
352 ashish 7387
  }
7388
 
3430 rajveer 7389
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7390
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7391
 
3430 rajveer 7392
    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);
7393
    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 7394
 
3430 rajveer 7395
    private Message success; // required
7396
    private HelperServiceException se; // required
352 ashish 7397
 
7398
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7399
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7400
      SUCCESS((short)0, "success"),
7401
      SE((short)1, "se");
7402
 
7403
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7404
 
7405
      static {
7406
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7407
          byName.put(field.getFieldName(), field);
7408
        }
7409
      }
7410
 
7411
      /**
7412
       * Find the _Fields constant that matches fieldId, or null if its not found.
7413
       */
7414
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7415
        switch(fieldId) {
7416
          case 0: // SUCCESS
7417
            return SUCCESS;
7418
          case 1: // SE
7419
            return SE;
7420
          default:
7421
            return null;
7422
        }
352 ashish 7423
      }
7424
 
7425
      /**
7426
       * Find the _Fields constant that matches fieldId, throwing an exception
7427
       * if it is not found.
7428
       */
7429
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7430
        _Fields fields = findByThriftId(fieldId);
7431
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7432
        return fields;
7433
      }
7434
 
7435
      /**
7436
       * Find the _Fields constant that matches name, or null if its not found.
7437
       */
7438
      public static _Fields findByName(String name) {
7439
        return byName.get(name);
7440
      }
7441
 
7442
      private final short _thriftId;
7443
      private final String _fieldName;
7444
 
7445
      _Fields(short thriftId, String fieldName) {
7446
        _thriftId = thriftId;
7447
        _fieldName = fieldName;
7448
      }
7449
 
7450
      public short getThriftFieldId() {
7451
        return _thriftId;
7452
      }
7453
 
7454
      public String getFieldName() {
7455
        return _fieldName;
7456
      }
7457
    }
7458
 
7459
    // isset id assignments
7460
 
3430 rajveer 7461
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7462
    static {
3430 rajveer 7463
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7464
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7465
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7466
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7467
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7468
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7469
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 7470
    }
7471
 
7472
    public getMessage_result() {
7473
    }
7474
 
7475
    public getMessage_result(
7476
      Message success,
7477
      HelperServiceException se)
7478
    {
7479
      this();
7480
      this.success = success;
7481
      this.se = se;
7482
    }
7483
 
7484
    /**
7485
     * Performs a deep copy on <i>other</i>.
7486
     */
7487
    public getMessage_result(getMessage_result other) {
7488
      if (other.isSetSuccess()) {
7489
        this.success = new Message(other.success);
7490
      }
7491
      if (other.isSetSe()) {
7492
        this.se = new HelperServiceException(other.se);
7493
      }
7494
    }
7495
 
7496
    public getMessage_result deepCopy() {
7497
      return new getMessage_result(this);
7498
    }
7499
 
3430 rajveer 7500
    @Override
7501
    public void clear() {
7502
      this.success = null;
7503
      this.se = null;
352 ashish 7504
    }
7505
 
7506
    public Message getSuccess() {
7507
      return this.success;
7508
    }
7509
 
3430 rajveer 7510
    public void setSuccess(Message success) {
352 ashish 7511
      this.success = success;
7512
    }
7513
 
7514
    public void unsetSuccess() {
7515
      this.success = null;
7516
    }
7517
 
3430 rajveer 7518
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7519
    public boolean isSetSuccess() {
7520
      return this.success != null;
7521
    }
7522
 
7523
    public void setSuccessIsSet(boolean value) {
7524
      if (!value) {
7525
        this.success = null;
7526
      }
7527
    }
7528
 
7529
    public HelperServiceException getSe() {
7530
      return this.se;
7531
    }
7532
 
3430 rajveer 7533
    public void setSe(HelperServiceException se) {
352 ashish 7534
      this.se = se;
7535
    }
7536
 
7537
    public void unsetSe() {
7538
      this.se = null;
7539
    }
7540
 
3430 rajveer 7541
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7542
    public boolean isSetSe() {
7543
      return this.se != null;
7544
    }
7545
 
7546
    public void setSeIsSet(boolean value) {
7547
      if (!value) {
7548
        this.se = null;
7549
      }
7550
    }
7551
 
7552
    public void setFieldValue(_Fields field, Object value) {
7553
      switch (field) {
7554
      case SUCCESS:
7555
        if (value == null) {
7556
          unsetSuccess();
7557
        } else {
7558
          setSuccess((Message)value);
7559
        }
7560
        break;
7561
 
7562
      case SE:
7563
        if (value == null) {
7564
          unsetSe();
7565
        } else {
7566
          setSe((HelperServiceException)value);
7567
        }
7568
        break;
7569
 
7570
      }
7571
    }
7572
 
7573
    public Object getFieldValue(_Fields field) {
7574
      switch (field) {
7575
      case SUCCESS:
7576
        return getSuccess();
7577
 
7578
      case SE:
7579
        return getSe();
7580
 
7581
      }
7582
      throw new IllegalStateException();
7583
    }
7584
 
3430 rajveer 7585
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7586
    public boolean isSet(_Fields field) {
7587
      if (field == null) {
7588
        throw new IllegalArgumentException();
7589
      }
352 ashish 7590
 
7591
      switch (field) {
7592
      case SUCCESS:
7593
        return isSetSuccess();
7594
      case SE:
7595
        return isSetSe();
7596
      }
7597
      throw new IllegalStateException();
7598
    }
7599
 
7600
    @Override
7601
    public boolean equals(Object that) {
7602
      if (that == null)
7603
        return false;
7604
      if (that instanceof getMessage_result)
7605
        return this.equals((getMessage_result)that);
7606
      return false;
7607
    }
7608
 
7609
    public boolean equals(getMessage_result that) {
7610
      if (that == null)
7611
        return false;
7612
 
7613
      boolean this_present_success = true && this.isSetSuccess();
7614
      boolean that_present_success = true && that.isSetSuccess();
7615
      if (this_present_success || that_present_success) {
7616
        if (!(this_present_success && that_present_success))
7617
          return false;
7618
        if (!this.success.equals(that.success))
7619
          return false;
7620
      }
7621
 
7622
      boolean this_present_se = true && this.isSetSe();
7623
      boolean that_present_se = true && that.isSetSe();
7624
      if (this_present_se || that_present_se) {
7625
        if (!(this_present_se && that_present_se))
7626
          return false;
7627
        if (!this.se.equals(that.se))
7628
          return false;
7629
      }
7630
 
7631
      return true;
7632
    }
7633
 
7634
    @Override
7635
    public int hashCode() {
7636
      return 0;
7637
    }
7638
 
7639
    public int compareTo(getMessage_result other) {
7640
      if (!getClass().equals(other.getClass())) {
7641
        return getClass().getName().compareTo(other.getClass().getName());
7642
      }
7643
 
7644
      int lastComparison = 0;
7645
      getMessage_result typedOther = (getMessage_result)other;
7646
 
3430 rajveer 7647
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7648
      if (lastComparison != 0) {
7649
        return lastComparison;
7650
      }
3430 rajveer 7651
      if (isSetSuccess()) {
7652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7653
        if (lastComparison != 0) {
7654
          return lastComparison;
7655
        }
352 ashish 7656
      }
3430 rajveer 7657
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7658
      if (lastComparison != 0) {
7659
        return lastComparison;
7660
      }
3430 rajveer 7661
      if (isSetSe()) {
7662
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7663
        if (lastComparison != 0) {
7664
          return lastComparison;
7665
        }
352 ashish 7666
      }
7667
      return 0;
7668
    }
7669
 
3430 rajveer 7670
    public _Fields fieldForId(int fieldId) {
7671
      return _Fields.findByThriftId(fieldId);
7672
    }
7673
 
7674
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7675
      org.apache.thrift.protocol.TField field;
352 ashish 7676
      iprot.readStructBegin();
7677
      while (true)
7678
      {
7679
        field = iprot.readFieldBegin();
3430 rajveer 7680
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7681
          break;
7682
        }
3430 rajveer 7683
        switch (field.id) {
7684
          case 0: // SUCCESS
7685
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7686
              this.success = new Message();
7687
              this.success.read(iprot);
7688
            } else { 
7689
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7690
            }
7691
            break;
7692
          case 1: // SE
7693
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7694
              this.se = new HelperServiceException();
7695
              this.se.read(iprot);
7696
            } else { 
7697
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7698
            }
7699
            break;
7700
          default:
7701
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7702
        }
3430 rajveer 7703
        iprot.readFieldEnd();
352 ashish 7704
      }
7705
      iprot.readStructEnd();
7706
      validate();
7707
    }
7708
 
3430 rajveer 7709
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7710
      oprot.writeStructBegin(STRUCT_DESC);
7711
 
7712
      if (this.isSetSuccess()) {
7713
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7714
        this.success.write(oprot);
7715
        oprot.writeFieldEnd();
7716
      } else if (this.isSetSe()) {
7717
        oprot.writeFieldBegin(SE_FIELD_DESC);
7718
        this.se.write(oprot);
7719
        oprot.writeFieldEnd();
7720
      }
7721
      oprot.writeFieldStop();
7722
      oprot.writeStructEnd();
7723
    }
7724
 
7725
    @Override
7726
    public String toString() {
7727
      StringBuilder sb = new StringBuilder("getMessage_result(");
7728
      boolean first = true;
7729
 
7730
      sb.append("success:");
7731
      if (this.success == null) {
7732
        sb.append("null");
7733
      } else {
7734
        sb.append(this.success);
7735
      }
7736
      first = false;
7737
      if (!first) sb.append(", ");
7738
      sb.append("se:");
7739
      if (this.se == null) {
7740
        sb.append("null");
7741
      } else {
7742
        sb.append(this.se);
7743
      }
7744
      first = false;
7745
      sb.append(")");
7746
      return sb.toString();
7747
    }
7748
 
3430 rajveer 7749
    public void validate() throws org.apache.thrift.TException {
352 ashish 7750
      // check for required fields
7751
    }
7752
 
3430 rajveer 7753
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7754
      try {
7755
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7756
      } catch (org.apache.thrift.TException te) {
7757
        throw new java.io.IOException(te);
7758
      }
7759
    }
7760
 
7761
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7762
      try {
7763
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7764
      } catch (org.apache.thrift.TException te) {
7765
        throw new java.io.IOException(te);
7766
      }
7767
    }
7768
 
352 ashish 7769
  }
7770
 
3430 rajveer 7771
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7772
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7773
 
3430 rajveer 7774
    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);
7775
    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 7776
 
3430 rajveer 7777
    private long id; // required
7778
    private Map<String,String> params; // required
352 ashish 7779
 
7780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7781
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7782
      ID((short)1, "id"),
7783
      PARAMS((short)2, "params");
7784
 
7785
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7786
 
7787
      static {
7788
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7789
          byName.put(field.getFieldName(), field);
7790
        }
7791
      }
7792
 
7793
      /**
7794
       * Find the _Fields constant that matches fieldId, or null if its not found.
7795
       */
7796
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7797
        switch(fieldId) {
7798
          case 1: // ID
7799
            return ID;
7800
          case 2: // PARAMS
7801
            return PARAMS;
7802
          default:
7803
            return null;
7804
        }
352 ashish 7805
      }
7806
 
7807
      /**
7808
       * Find the _Fields constant that matches fieldId, throwing an exception
7809
       * if it is not found.
7810
       */
7811
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7812
        _Fields fields = findByThriftId(fieldId);
7813
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7814
        return fields;
7815
      }
7816
 
7817
      /**
7818
       * Find the _Fields constant that matches name, or null if its not found.
7819
       */
7820
      public static _Fields findByName(String name) {
7821
        return byName.get(name);
7822
      }
7823
 
7824
      private final short _thriftId;
7825
      private final String _fieldName;
7826
 
7827
      _Fields(short thriftId, String fieldName) {
7828
        _thriftId = thriftId;
7829
        _fieldName = fieldName;
7830
      }
7831
 
7832
      public short getThriftFieldId() {
7833
        return _thriftId;
7834
      }
7835
 
7836
      public String getFieldName() {
7837
        return _fieldName;
7838
      }
7839
    }
7840
 
7841
    // isset id assignments
7842
    private static final int __ID_ISSET_ID = 0;
7843
    private BitSet __isset_bit_vector = new BitSet(1);
7844
 
3430 rajveer 7845
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7846
    static {
3430 rajveer 7847
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7848
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7849
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7850
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7851
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7852
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7853
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 7856
    }
7857
 
7858
    public getSubstitutedMessage_args() {
7859
    }
7860
 
7861
    public getSubstitutedMessage_args(
7862
      long id,
7863
      Map<String,String> params)
7864
    {
7865
      this();
7866
      this.id = id;
7867
      setIdIsSet(true);
7868
      this.params = params;
7869
    }
7870
 
7871
    /**
7872
     * Performs a deep copy on <i>other</i>.
7873
     */
7874
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
7875
      __isset_bit_vector.clear();
7876
      __isset_bit_vector.or(other.__isset_bit_vector);
7877
      this.id = other.id;
7878
      if (other.isSetParams()) {
7879
        Map<String,String> __this__params = new HashMap<String,String>();
7880
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
7881
 
7882
          String other_element_key = other_element.getKey();
7883
          String other_element_value = other_element.getValue();
7884
 
7885
          String __this__params_copy_key = other_element_key;
7886
 
7887
          String __this__params_copy_value = other_element_value;
7888
 
7889
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
7890
        }
7891
        this.params = __this__params;
7892
      }
7893
    }
7894
 
7895
    public getSubstitutedMessage_args deepCopy() {
7896
      return new getSubstitutedMessage_args(this);
7897
    }
7898
 
3430 rajveer 7899
    @Override
7900
    public void clear() {
7901
      setIdIsSet(false);
7902
      this.id = 0;
7903
      this.params = null;
352 ashish 7904
    }
7905
 
7906
    public long getId() {
7907
      return this.id;
7908
    }
7909
 
3430 rajveer 7910
    public void setId(long id) {
352 ashish 7911
      this.id = id;
7912
      setIdIsSet(true);
7913
    }
7914
 
7915
    public void unsetId() {
7916
      __isset_bit_vector.clear(__ID_ISSET_ID);
7917
    }
7918
 
3430 rajveer 7919
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7920
    public boolean isSetId() {
7921
      return __isset_bit_vector.get(__ID_ISSET_ID);
7922
    }
7923
 
7924
    public void setIdIsSet(boolean value) {
7925
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7926
    }
7927
 
7928
    public int getParamsSize() {
7929
      return (this.params == null) ? 0 : this.params.size();
7930
    }
7931
 
7932
    public void putToParams(String key, String val) {
7933
      if (this.params == null) {
7934
        this.params = new HashMap<String,String>();
7935
      }
7936
      this.params.put(key, val);
7937
    }
7938
 
7939
    public Map<String,String> getParams() {
7940
      return this.params;
7941
    }
7942
 
3430 rajveer 7943
    public void setParams(Map<String,String> params) {
352 ashish 7944
      this.params = params;
7945
    }
7946
 
7947
    public void unsetParams() {
7948
      this.params = null;
7949
    }
7950
 
3430 rajveer 7951
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 7952
    public boolean isSetParams() {
7953
      return this.params != null;
7954
    }
7955
 
7956
    public void setParamsIsSet(boolean value) {
7957
      if (!value) {
7958
        this.params = null;
7959
      }
7960
    }
7961
 
7962
    public void setFieldValue(_Fields field, Object value) {
7963
      switch (field) {
7964
      case ID:
7965
        if (value == null) {
7966
          unsetId();
7967
        } else {
7968
          setId((Long)value);
7969
        }
7970
        break;
7971
 
7972
      case PARAMS:
7973
        if (value == null) {
7974
          unsetParams();
7975
        } else {
7976
          setParams((Map<String,String>)value);
7977
        }
7978
        break;
7979
 
7980
      }
7981
    }
7982
 
7983
    public Object getFieldValue(_Fields field) {
7984
      switch (field) {
7985
      case ID:
3430 rajveer 7986
        return Long.valueOf(getId());
352 ashish 7987
 
7988
      case PARAMS:
7989
        return getParams();
7990
 
7991
      }
7992
      throw new IllegalStateException();
7993
    }
7994
 
3430 rajveer 7995
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7996
    public boolean isSet(_Fields field) {
7997
      if (field == null) {
7998
        throw new IllegalArgumentException();
7999
      }
352 ashish 8000
 
8001
      switch (field) {
8002
      case ID:
8003
        return isSetId();
8004
      case PARAMS:
8005
        return isSetParams();
8006
      }
8007
      throw new IllegalStateException();
8008
    }
8009
 
8010
    @Override
8011
    public boolean equals(Object that) {
8012
      if (that == null)
8013
        return false;
8014
      if (that instanceof getSubstitutedMessage_args)
8015
        return this.equals((getSubstitutedMessage_args)that);
8016
      return false;
8017
    }
8018
 
8019
    public boolean equals(getSubstitutedMessage_args that) {
8020
      if (that == null)
8021
        return false;
8022
 
8023
      boolean this_present_id = true;
8024
      boolean that_present_id = true;
8025
      if (this_present_id || that_present_id) {
8026
        if (!(this_present_id && that_present_id))
8027
          return false;
8028
        if (this.id != that.id)
8029
          return false;
8030
      }
8031
 
8032
      boolean this_present_params = true && this.isSetParams();
8033
      boolean that_present_params = true && that.isSetParams();
8034
      if (this_present_params || that_present_params) {
8035
        if (!(this_present_params && that_present_params))
8036
          return false;
8037
        if (!this.params.equals(that.params))
8038
          return false;
8039
      }
8040
 
8041
      return true;
8042
    }
8043
 
8044
    @Override
8045
    public int hashCode() {
8046
      return 0;
8047
    }
8048
 
3430 rajveer 8049
    public int compareTo(getSubstitutedMessage_args other) {
8050
      if (!getClass().equals(other.getClass())) {
8051
        return getClass().getName().compareTo(other.getClass().getName());
8052
      }
8053
 
8054
      int lastComparison = 0;
8055
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8056
 
8057
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8058
      if (lastComparison != 0) {
8059
        return lastComparison;
8060
      }
8061
      if (isSetId()) {
8062
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8063
        if (lastComparison != 0) {
8064
          return lastComparison;
8065
        }
8066
      }
8067
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8068
      if (lastComparison != 0) {
8069
        return lastComparison;
8070
      }
8071
      if (isSetParams()) {
8072
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8073
        if (lastComparison != 0) {
8074
          return lastComparison;
8075
        }
8076
      }
8077
      return 0;
8078
    }
8079
 
8080
    public _Fields fieldForId(int fieldId) {
8081
      return _Fields.findByThriftId(fieldId);
8082
    }
8083
 
8084
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8085
      org.apache.thrift.protocol.TField field;
352 ashish 8086
      iprot.readStructBegin();
8087
      while (true)
8088
      {
8089
        field = iprot.readFieldBegin();
3430 rajveer 8090
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8091
          break;
8092
        }
3430 rajveer 8093
        switch (field.id) {
8094
          case 1: // ID
8095
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8096
              this.id = iprot.readI64();
8097
              setIdIsSet(true);
8098
            } else { 
8099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8100
            }
8101
            break;
8102
          case 2: // PARAMS
8103
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8104
              {
8105
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
8106
                this.params = new HashMap<String,String>(2*_map12.size);
8107
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 8108
                {
3430 rajveer 8109
                  String _key14; // required
8110
                  String _val15; // required
8111
                  _key14 = iprot.readString();
8112
                  _val15 = iprot.readString();
8113
                  this.params.put(_key14, _val15);
352 ashish 8114
                }
3430 rajveer 8115
                iprot.readMapEnd();
352 ashish 8116
              }
3430 rajveer 8117
            } else { 
8118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8119
            }
8120
            break;
8121
          default:
8122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8123
        }
3430 rajveer 8124
        iprot.readFieldEnd();
352 ashish 8125
      }
8126
      iprot.readStructEnd();
8127
      validate();
8128
    }
8129
 
3430 rajveer 8130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8131
      validate();
8132
 
8133
      oprot.writeStructBegin(STRUCT_DESC);
8134
      oprot.writeFieldBegin(ID_FIELD_DESC);
8135
      oprot.writeI64(this.id);
8136
      oprot.writeFieldEnd();
8137
      if (this.params != null) {
8138
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8139
        {
3430 rajveer 8140
          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 8141
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 8142
          {
1422 varun.gupt 8143
            oprot.writeString(_iter16.getKey());
8144
            oprot.writeString(_iter16.getValue());
352 ashish 8145
          }
8146
          oprot.writeMapEnd();
8147
        }
8148
        oprot.writeFieldEnd();
8149
      }
8150
      oprot.writeFieldStop();
8151
      oprot.writeStructEnd();
8152
    }
8153
 
8154
    @Override
8155
    public String toString() {
8156
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8157
      boolean first = true;
8158
 
8159
      sb.append("id:");
8160
      sb.append(this.id);
8161
      first = false;
8162
      if (!first) sb.append(", ");
8163
      sb.append("params:");
8164
      if (this.params == null) {
8165
        sb.append("null");
8166
      } else {
8167
        sb.append(this.params);
8168
      }
8169
      first = false;
8170
      sb.append(")");
8171
      return sb.toString();
8172
    }
8173
 
3430 rajveer 8174
    public void validate() throws org.apache.thrift.TException {
352 ashish 8175
      // check for required fields
8176
    }
8177
 
3430 rajveer 8178
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8179
      try {
8180
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8181
      } catch (org.apache.thrift.TException te) {
8182
        throw new java.io.IOException(te);
8183
      }
8184
    }
8185
 
8186
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8187
      try {
8188
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8189
        __isset_bit_vector = new BitSet(1);
8190
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8191
      } catch (org.apache.thrift.TException te) {
8192
        throw new java.io.IOException(te);
8193
      }
8194
    }
8195
 
352 ashish 8196
  }
8197
 
3430 rajveer 8198
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8199
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8200
 
3430 rajveer 8201
    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);
8202
    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 8203
 
3430 rajveer 8204
    private Message success; // required
8205
    private HelperServiceException se; // required
352 ashish 8206
 
8207
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8208
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8209
      SUCCESS((short)0, "success"),
8210
      SE((short)1, "se");
8211
 
8212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8213
 
8214
      static {
8215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8216
          byName.put(field.getFieldName(), field);
8217
        }
8218
      }
8219
 
8220
      /**
8221
       * Find the _Fields constant that matches fieldId, or null if its not found.
8222
       */
8223
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8224
        switch(fieldId) {
8225
          case 0: // SUCCESS
8226
            return SUCCESS;
8227
          case 1: // SE
8228
            return SE;
8229
          default:
8230
            return null;
8231
        }
352 ashish 8232
      }
8233
 
8234
      /**
8235
       * Find the _Fields constant that matches fieldId, throwing an exception
8236
       * if it is not found.
8237
       */
8238
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8239
        _Fields fields = findByThriftId(fieldId);
8240
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8241
        return fields;
8242
      }
8243
 
8244
      /**
8245
       * Find the _Fields constant that matches name, or null if its not found.
8246
       */
8247
      public static _Fields findByName(String name) {
8248
        return byName.get(name);
8249
      }
8250
 
8251
      private final short _thriftId;
8252
      private final String _fieldName;
8253
 
8254
      _Fields(short thriftId, String fieldName) {
8255
        _thriftId = thriftId;
8256
        _fieldName = fieldName;
8257
      }
8258
 
8259
      public short getThriftFieldId() {
8260
        return _thriftId;
8261
      }
8262
 
8263
      public String getFieldName() {
8264
        return _fieldName;
8265
      }
8266
    }
8267
 
8268
    // isset id assignments
8269
 
3430 rajveer 8270
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8271
    static {
3430 rajveer 8272
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8273
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8274
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8275
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8276
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8277
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8278
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8279
    }
8280
 
8281
    public getSubstitutedMessage_result() {
8282
    }
8283
 
8284
    public getSubstitutedMessage_result(
8285
      Message success,
8286
      HelperServiceException se)
8287
    {
8288
      this();
8289
      this.success = success;
8290
      this.se = se;
8291
    }
8292
 
8293
    /**
8294
     * Performs a deep copy on <i>other</i>.
8295
     */
8296
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8297
      if (other.isSetSuccess()) {
8298
        this.success = new Message(other.success);
8299
      }
8300
      if (other.isSetSe()) {
8301
        this.se = new HelperServiceException(other.se);
8302
      }
8303
    }
8304
 
8305
    public getSubstitutedMessage_result deepCopy() {
8306
      return new getSubstitutedMessage_result(this);
8307
    }
8308
 
3430 rajveer 8309
    @Override
8310
    public void clear() {
8311
      this.success = null;
8312
      this.se = null;
352 ashish 8313
    }
8314
 
8315
    public Message getSuccess() {
8316
      return this.success;
8317
    }
8318
 
3430 rajveer 8319
    public void setSuccess(Message success) {
352 ashish 8320
      this.success = success;
8321
    }
8322
 
8323
    public void unsetSuccess() {
8324
      this.success = null;
8325
    }
8326
 
3430 rajveer 8327
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8328
    public boolean isSetSuccess() {
8329
      return this.success != null;
8330
    }
8331
 
8332
    public void setSuccessIsSet(boolean value) {
8333
      if (!value) {
8334
        this.success = null;
8335
      }
8336
    }
8337
 
8338
    public HelperServiceException getSe() {
8339
      return this.se;
8340
    }
8341
 
3430 rajveer 8342
    public void setSe(HelperServiceException se) {
352 ashish 8343
      this.se = se;
8344
    }
8345
 
8346
    public void unsetSe() {
8347
      this.se = null;
8348
    }
8349
 
3430 rajveer 8350
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8351
    public boolean isSetSe() {
8352
      return this.se != null;
8353
    }
8354
 
8355
    public void setSeIsSet(boolean value) {
8356
      if (!value) {
8357
        this.se = null;
8358
      }
8359
    }
8360
 
8361
    public void setFieldValue(_Fields field, Object value) {
8362
      switch (field) {
8363
      case SUCCESS:
8364
        if (value == null) {
8365
          unsetSuccess();
8366
        } else {
8367
          setSuccess((Message)value);
8368
        }
8369
        break;
8370
 
8371
      case SE:
8372
        if (value == null) {
8373
          unsetSe();
8374
        } else {
8375
          setSe((HelperServiceException)value);
8376
        }
8377
        break;
8378
 
8379
      }
8380
    }
8381
 
8382
    public Object getFieldValue(_Fields field) {
8383
      switch (field) {
8384
      case SUCCESS:
8385
        return getSuccess();
8386
 
8387
      case SE:
8388
        return getSe();
8389
 
8390
      }
8391
      throw new IllegalStateException();
8392
    }
8393
 
3430 rajveer 8394
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8395
    public boolean isSet(_Fields field) {
8396
      if (field == null) {
8397
        throw new IllegalArgumentException();
8398
      }
352 ashish 8399
 
8400
      switch (field) {
8401
      case SUCCESS:
8402
        return isSetSuccess();
8403
      case SE:
8404
        return isSetSe();
8405
      }
8406
      throw new IllegalStateException();
8407
    }
8408
 
8409
    @Override
8410
    public boolean equals(Object that) {
8411
      if (that == null)
8412
        return false;
8413
      if (that instanceof getSubstitutedMessage_result)
8414
        return this.equals((getSubstitutedMessage_result)that);
8415
      return false;
8416
    }
8417
 
8418
    public boolean equals(getSubstitutedMessage_result that) {
8419
      if (that == null)
8420
        return false;
8421
 
8422
      boolean this_present_success = true && this.isSetSuccess();
8423
      boolean that_present_success = true && that.isSetSuccess();
8424
      if (this_present_success || that_present_success) {
8425
        if (!(this_present_success && that_present_success))
8426
          return false;
8427
        if (!this.success.equals(that.success))
8428
          return false;
8429
      }
8430
 
8431
      boolean this_present_se = true && this.isSetSe();
8432
      boolean that_present_se = true && that.isSetSe();
8433
      if (this_present_se || that_present_se) {
8434
        if (!(this_present_se && that_present_se))
8435
          return false;
8436
        if (!this.se.equals(that.se))
8437
          return false;
8438
      }
8439
 
8440
      return true;
8441
    }
8442
 
8443
    @Override
8444
    public int hashCode() {
8445
      return 0;
8446
    }
8447
 
8448
    public int compareTo(getSubstitutedMessage_result other) {
8449
      if (!getClass().equals(other.getClass())) {
8450
        return getClass().getName().compareTo(other.getClass().getName());
8451
      }
8452
 
8453
      int lastComparison = 0;
8454
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
8455
 
3430 rajveer 8456
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8457
      if (lastComparison != 0) {
8458
        return lastComparison;
8459
      }
3430 rajveer 8460
      if (isSetSuccess()) {
8461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8462
        if (lastComparison != 0) {
8463
          return lastComparison;
8464
        }
352 ashish 8465
      }
3430 rajveer 8466
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8467
      if (lastComparison != 0) {
8468
        return lastComparison;
8469
      }
3430 rajveer 8470
      if (isSetSe()) {
8471
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8472
        if (lastComparison != 0) {
8473
          return lastComparison;
8474
        }
352 ashish 8475
      }
8476
      return 0;
8477
    }
8478
 
3430 rajveer 8479
    public _Fields fieldForId(int fieldId) {
8480
      return _Fields.findByThriftId(fieldId);
8481
    }
8482
 
8483
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8484
      org.apache.thrift.protocol.TField field;
352 ashish 8485
      iprot.readStructBegin();
8486
      while (true)
8487
      {
8488
        field = iprot.readFieldBegin();
3430 rajveer 8489
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8490
          break;
8491
        }
3430 rajveer 8492
        switch (field.id) {
8493
          case 0: // SUCCESS
8494
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8495
              this.success = new Message();
8496
              this.success.read(iprot);
8497
            } else { 
8498
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8499
            }
8500
            break;
8501
          case 1: // SE
8502
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8503
              this.se = new HelperServiceException();
8504
              this.se.read(iprot);
8505
            } else { 
8506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8507
            }
8508
            break;
8509
          default:
8510
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8511
        }
3430 rajveer 8512
        iprot.readFieldEnd();
352 ashish 8513
      }
8514
      iprot.readStructEnd();
8515
      validate();
8516
    }
8517
 
3430 rajveer 8518
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8519
      oprot.writeStructBegin(STRUCT_DESC);
8520
 
8521
      if (this.isSetSuccess()) {
8522
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8523
        this.success.write(oprot);
8524
        oprot.writeFieldEnd();
8525
      } else if (this.isSetSe()) {
8526
        oprot.writeFieldBegin(SE_FIELD_DESC);
8527
        this.se.write(oprot);
8528
        oprot.writeFieldEnd();
8529
      }
8530
      oprot.writeFieldStop();
8531
      oprot.writeStructEnd();
8532
    }
8533
 
8534
    @Override
8535
    public String toString() {
8536
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
8537
      boolean first = true;
8538
 
8539
      sb.append("success:");
8540
      if (this.success == null) {
8541
        sb.append("null");
8542
      } else {
8543
        sb.append(this.success);
8544
      }
8545
      first = false;
8546
      if (!first) sb.append(", ");
8547
      sb.append("se:");
8548
      if (this.se == null) {
8549
        sb.append("null");
8550
      } else {
8551
        sb.append(this.se);
8552
      }
8553
      first = false;
8554
      sb.append(")");
8555
      return sb.toString();
8556
    }
8557
 
3430 rajveer 8558
    public void validate() throws org.apache.thrift.TException {
352 ashish 8559
      // check for required fields
8560
    }
8561
 
3430 rajveer 8562
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8563
      try {
8564
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8565
      } catch (org.apache.thrift.TException te) {
8566
        throw new java.io.IOException(te);
8567
      }
8568
    }
8569
 
8570
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8571
      try {
8572
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8573
      } catch (org.apache.thrift.TException te) {
8574
        throw new java.io.IOException(te);
8575
      }
8576
    }
8577
 
352 ashish 8578
  }
8579
 
3430 rajveer 8580
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
8581
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 8582
 
3430 rajveer 8583
    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);
8584
    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);
8585
    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 8586
 
3430 rajveer 8587
    private String username; // required
8588
    private String password; // required
8589
    private long warehouseId; // required
495 rajveer 8590
 
8591
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8592
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8593
      USERNAME((short)1, "username"),
8594
      PASSWORD((short)2, "password"),
8595
      WAREHOUSE_ID((short)3, "warehouseId");
8596
 
8597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8598
 
8599
      static {
8600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8601
          byName.put(field.getFieldName(), field);
8602
        }
8603
      }
8604
 
8605
      /**
8606
       * Find the _Fields constant that matches fieldId, or null if its not found.
8607
       */
8608
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8609
        switch(fieldId) {
8610
          case 1: // USERNAME
8611
            return USERNAME;
8612
          case 2: // PASSWORD
8613
            return PASSWORD;
8614
          case 3: // WAREHOUSE_ID
8615
            return WAREHOUSE_ID;
8616
          default:
8617
            return null;
8618
        }
495 rajveer 8619
      }
8620
 
8621
      /**
8622
       * Find the _Fields constant that matches fieldId, throwing an exception
8623
       * if it is not found.
8624
       */
8625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8626
        _Fields fields = findByThriftId(fieldId);
8627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8628
        return fields;
8629
      }
8630
 
8631
      /**
8632
       * Find the _Fields constant that matches name, or null if its not found.
8633
       */
8634
      public static _Fields findByName(String name) {
8635
        return byName.get(name);
8636
      }
8637
 
8638
      private final short _thriftId;
8639
      private final String _fieldName;
8640
 
8641
      _Fields(short thriftId, String fieldName) {
8642
        _thriftId = thriftId;
8643
        _fieldName = fieldName;
8644
      }
8645
 
8646
      public short getThriftFieldId() {
8647
        return _thriftId;
8648
      }
8649
 
8650
      public String getFieldName() {
8651
        return _fieldName;
8652
      }
8653
    }
8654
 
8655
    // isset id assignments
8656
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8657
    private BitSet __isset_bit_vector = new BitSet(1);
8658
 
3430 rajveer 8659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8660
    static {
3430 rajveer 8661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8662
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8663
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8664
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8665
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8666
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8667
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8670
    }
8671
 
8672
    public addUser_args() {
8673
    }
8674
 
8675
    public addUser_args(
8676
      String username,
8677
      String password,
8678
      long warehouseId)
8679
    {
8680
      this();
8681
      this.username = username;
8682
      this.password = password;
8683
      this.warehouseId = warehouseId;
8684
      setWarehouseIdIsSet(true);
8685
    }
8686
 
8687
    /**
8688
     * Performs a deep copy on <i>other</i>.
8689
     */
8690
    public addUser_args(addUser_args other) {
8691
      __isset_bit_vector.clear();
8692
      __isset_bit_vector.or(other.__isset_bit_vector);
8693
      if (other.isSetUsername()) {
8694
        this.username = other.username;
8695
      }
8696
      if (other.isSetPassword()) {
8697
        this.password = other.password;
8698
      }
8699
      this.warehouseId = other.warehouseId;
8700
    }
8701
 
8702
    public addUser_args deepCopy() {
8703
      return new addUser_args(this);
8704
    }
8705
 
3430 rajveer 8706
    @Override
8707
    public void clear() {
8708
      this.username = null;
8709
      this.password = null;
8710
      setWarehouseIdIsSet(false);
8711
      this.warehouseId = 0;
495 rajveer 8712
    }
8713
 
8714
    public String getUsername() {
8715
      return this.username;
8716
    }
8717
 
3430 rajveer 8718
    public void setUsername(String username) {
495 rajveer 8719
      this.username = username;
8720
    }
8721
 
8722
    public void unsetUsername() {
8723
      this.username = null;
8724
    }
8725
 
3430 rajveer 8726
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8727
    public boolean isSetUsername() {
8728
      return this.username != null;
8729
    }
8730
 
8731
    public void setUsernameIsSet(boolean value) {
8732
      if (!value) {
8733
        this.username = null;
8734
      }
8735
    }
8736
 
8737
    public String getPassword() {
8738
      return this.password;
8739
    }
8740
 
3430 rajveer 8741
    public void setPassword(String password) {
495 rajveer 8742
      this.password = password;
8743
    }
8744
 
8745
    public void unsetPassword() {
8746
      this.password = null;
8747
    }
8748
 
3430 rajveer 8749
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8750
    public boolean isSetPassword() {
8751
      return this.password != null;
8752
    }
8753
 
8754
    public void setPasswordIsSet(boolean value) {
8755
      if (!value) {
8756
        this.password = null;
8757
      }
8758
    }
8759
 
8760
    public long getWarehouseId() {
8761
      return this.warehouseId;
8762
    }
8763
 
3430 rajveer 8764
    public void setWarehouseId(long warehouseId) {
495 rajveer 8765
      this.warehouseId = warehouseId;
8766
      setWarehouseIdIsSet(true);
8767
    }
8768
 
8769
    public void unsetWarehouseId() {
8770
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8771
    }
8772
 
3430 rajveer 8773
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8774
    public boolean isSetWarehouseId() {
8775
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8776
    }
8777
 
8778
    public void setWarehouseIdIsSet(boolean value) {
8779
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8780
    }
8781
 
8782
    public void setFieldValue(_Fields field, Object value) {
8783
      switch (field) {
8784
      case USERNAME:
8785
        if (value == null) {
8786
          unsetUsername();
8787
        } else {
8788
          setUsername((String)value);
8789
        }
8790
        break;
8791
 
8792
      case PASSWORD:
8793
        if (value == null) {
8794
          unsetPassword();
8795
        } else {
8796
          setPassword((String)value);
8797
        }
8798
        break;
8799
 
8800
      case WAREHOUSE_ID:
8801
        if (value == null) {
8802
          unsetWarehouseId();
8803
        } else {
8804
          setWarehouseId((Long)value);
8805
        }
8806
        break;
8807
 
8808
      }
8809
    }
8810
 
8811
    public Object getFieldValue(_Fields field) {
8812
      switch (field) {
8813
      case USERNAME:
8814
        return getUsername();
8815
 
8816
      case PASSWORD:
8817
        return getPassword();
8818
 
8819
      case WAREHOUSE_ID:
3430 rajveer 8820
        return Long.valueOf(getWarehouseId());
495 rajveer 8821
 
8822
      }
8823
      throw new IllegalStateException();
8824
    }
8825
 
3430 rajveer 8826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8827
    public boolean isSet(_Fields field) {
8828
      if (field == null) {
8829
        throw new IllegalArgumentException();
8830
      }
495 rajveer 8831
 
8832
      switch (field) {
8833
      case USERNAME:
8834
        return isSetUsername();
8835
      case PASSWORD:
8836
        return isSetPassword();
8837
      case WAREHOUSE_ID:
8838
        return isSetWarehouseId();
8839
      }
8840
      throw new IllegalStateException();
8841
    }
8842
 
8843
    @Override
8844
    public boolean equals(Object that) {
8845
      if (that == null)
8846
        return false;
8847
      if (that instanceof addUser_args)
8848
        return this.equals((addUser_args)that);
8849
      return false;
8850
    }
8851
 
8852
    public boolean equals(addUser_args that) {
8853
      if (that == null)
8854
        return false;
8855
 
8856
      boolean this_present_username = true && this.isSetUsername();
8857
      boolean that_present_username = true && that.isSetUsername();
8858
      if (this_present_username || that_present_username) {
8859
        if (!(this_present_username && that_present_username))
8860
          return false;
8861
        if (!this.username.equals(that.username))
8862
          return false;
8863
      }
8864
 
8865
      boolean this_present_password = true && this.isSetPassword();
8866
      boolean that_present_password = true && that.isSetPassword();
8867
      if (this_present_password || that_present_password) {
8868
        if (!(this_present_password && that_present_password))
8869
          return false;
8870
        if (!this.password.equals(that.password))
8871
          return false;
8872
      }
8873
 
8874
      boolean this_present_warehouseId = true;
8875
      boolean that_present_warehouseId = true;
8876
      if (this_present_warehouseId || that_present_warehouseId) {
8877
        if (!(this_present_warehouseId && that_present_warehouseId))
8878
          return false;
8879
        if (this.warehouseId != that.warehouseId)
8880
          return false;
8881
      }
8882
 
8883
      return true;
8884
    }
8885
 
8886
    @Override
8887
    public int hashCode() {
8888
      return 0;
8889
    }
8890
 
8891
    public int compareTo(addUser_args other) {
8892
      if (!getClass().equals(other.getClass())) {
8893
        return getClass().getName().compareTo(other.getClass().getName());
8894
      }
8895
 
8896
      int lastComparison = 0;
8897
      addUser_args typedOther = (addUser_args)other;
8898
 
3430 rajveer 8899
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8900
      if (lastComparison != 0) {
8901
        return lastComparison;
8902
      }
3430 rajveer 8903
      if (isSetUsername()) {
8904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8905
        if (lastComparison != 0) {
8906
          return lastComparison;
8907
        }
495 rajveer 8908
      }
3430 rajveer 8909
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 8910
      if (lastComparison != 0) {
8911
        return lastComparison;
8912
      }
3430 rajveer 8913
      if (isSetPassword()) {
8914
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
8915
        if (lastComparison != 0) {
8916
          return lastComparison;
8917
        }
495 rajveer 8918
      }
3430 rajveer 8919
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 8920
      if (lastComparison != 0) {
8921
        return lastComparison;
8922
      }
3430 rajveer 8923
      if (isSetWarehouseId()) {
8924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
8925
        if (lastComparison != 0) {
8926
          return lastComparison;
8927
        }
495 rajveer 8928
      }
8929
      return 0;
8930
    }
8931
 
3430 rajveer 8932
    public _Fields fieldForId(int fieldId) {
8933
      return _Fields.findByThriftId(fieldId);
8934
    }
8935
 
8936
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8937
      org.apache.thrift.protocol.TField field;
495 rajveer 8938
      iprot.readStructBegin();
8939
      while (true)
8940
      {
8941
        field = iprot.readFieldBegin();
3430 rajveer 8942
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8943
          break;
8944
        }
3430 rajveer 8945
        switch (field.id) {
8946
          case 1: // USERNAME
8947
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8948
              this.username = iprot.readString();
8949
            } else { 
8950
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8951
            }
8952
            break;
8953
          case 2: // PASSWORD
8954
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8955
              this.password = iprot.readString();
8956
            } else { 
8957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8958
            }
8959
            break;
8960
          case 3: // WAREHOUSE_ID
8961
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8962
              this.warehouseId = iprot.readI64();
8963
              setWarehouseIdIsSet(true);
8964
            } else { 
8965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8966
            }
8967
            break;
8968
          default:
8969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8970
        }
3430 rajveer 8971
        iprot.readFieldEnd();
495 rajveer 8972
      }
8973
      iprot.readStructEnd();
8974
      validate();
8975
    }
8976
 
3430 rajveer 8977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8978
      validate();
8979
 
8980
      oprot.writeStructBegin(STRUCT_DESC);
8981
      if (this.username != null) {
8982
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
8983
        oprot.writeString(this.username);
8984
        oprot.writeFieldEnd();
8985
      }
8986
      if (this.password != null) {
8987
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
8988
        oprot.writeString(this.password);
8989
        oprot.writeFieldEnd();
8990
      }
8991
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8992
      oprot.writeI64(this.warehouseId);
8993
      oprot.writeFieldEnd();
8994
      oprot.writeFieldStop();
8995
      oprot.writeStructEnd();
8996
    }
8997
 
8998
    @Override
8999
    public String toString() {
9000
      StringBuilder sb = new StringBuilder("addUser_args(");
9001
      boolean first = true;
9002
 
9003
      sb.append("username:");
9004
      if (this.username == null) {
9005
        sb.append("null");
9006
      } else {
9007
        sb.append(this.username);
9008
      }
9009
      first = false;
9010
      if (!first) sb.append(", ");
9011
      sb.append("password:");
9012
      if (this.password == null) {
9013
        sb.append("null");
9014
      } else {
9015
        sb.append(this.password);
9016
      }
9017
      first = false;
9018
      if (!first) sb.append(", ");
9019
      sb.append("warehouseId:");
9020
      sb.append(this.warehouseId);
9021
      first = false;
9022
      sb.append(")");
9023
      return sb.toString();
9024
    }
9025
 
3430 rajveer 9026
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9027
      // check for required fields
9028
    }
9029
 
3430 rajveer 9030
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9031
      try {
9032
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9033
      } catch (org.apache.thrift.TException te) {
9034
        throw new java.io.IOException(te);
9035
      }
9036
    }
9037
 
9038
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9039
      try {
9040
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9041
        __isset_bit_vector = new BitSet(1);
9042
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9043
      } catch (org.apache.thrift.TException te) {
9044
        throw new java.io.IOException(te);
9045
      }
9046
    }
9047
 
495 rajveer 9048
  }
9049
 
3430 rajveer 9050
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9051
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9052
 
3430 rajveer 9053
    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);
9054
    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 9055
 
3430 rajveer 9056
    private boolean success; // required
9057
    private HelperServiceException se; // required
495 rajveer 9058
 
9059
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9060
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9061
      SUCCESS((short)0, "success"),
9062
      SE((short)1, "se");
9063
 
9064
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9065
 
9066
      static {
9067
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9068
          byName.put(field.getFieldName(), field);
9069
        }
9070
      }
9071
 
9072
      /**
9073
       * Find the _Fields constant that matches fieldId, or null if its not found.
9074
       */
9075
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9076
        switch(fieldId) {
9077
          case 0: // SUCCESS
9078
            return SUCCESS;
9079
          case 1: // SE
9080
            return SE;
9081
          default:
9082
            return null;
9083
        }
495 rajveer 9084
      }
9085
 
9086
      /**
9087
       * Find the _Fields constant that matches fieldId, throwing an exception
9088
       * if it is not found.
9089
       */
9090
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9091
        _Fields fields = findByThriftId(fieldId);
9092
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9093
        return fields;
9094
      }
9095
 
9096
      /**
9097
       * Find the _Fields constant that matches name, or null if its not found.
9098
       */
9099
      public static _Fields findByName(String name) {
9100
        return byName.get(name);
9101
      }
9102
 
9103
      private final short _thriftId;
9104
      private final String _fieldName;
9105
 
9106
      _Fields(short thriftId, String fieldName) {
9107
        _thriftId = thriftId;
9108
        _fieldName = fieldName;
9109
      }
9110
 
9111
      public short getThriftFieldId() {
9112
        return _thriftId;
9113
      }
9114
 
9115
      public String getFieldName() {
9116
        return _fieldName;
9117
      }
9118
    }
9119
 
9120
    // isset id assignments
9121
    private static final int __SUCCESS_ISSET_ID = 0;
9122
    private BitSet __isset_bit_vector = new BitSet(1);
9123
 
3430 rajveer 9124
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9125
    static {
3430 rajveer 9126
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9127
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9129
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9130
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9133
    }
9134
 
9135
    public addUser_result() {
9136
    }
9137
 
9138
    public addUser_result(
9139
      boolean success,
9140
      HelperServiceException se)
9141
    {
9142
      this();
9143
      this.success = success;
9144
      setSuccessIsSet(true);
9145
      this.se = se;
9146
    }
9147
 
9148
    /**
9149
     * Performs a deep copy on <i>other</i>.
9150
     */
9151
    public addUser_result(addUser_result other) {
9152
      __isset_bit_vector.clear();
9153
      __isset_bit_vector.or(other.__isset_bit_vector);
9154
      this.success = other.success;
9155
      if (other.isSetSe()) {
9156
        this.se = new HelperServiceException(other.se);
9157
      }
9158
    }
9159
 
9160
    public addUser_result deepCopy() {
9161
      return new addUser_result(this);
9162
    }
9163
 
3430 rajveer 9164
    @Override
9165
    public void clear() {
9166
      setSuccessIsSet(false);
9167
      this.success = false;
9168
      this.se = null;
495 rajveer 9169
    }
9170
 
9171
    public boolean isSuccess() {
9172
      return this.success;
9173
    }
9174
 
3430 rajveer 9175
    public void setSuccess(boolean success) {
495 rajveer 9176
      this.success = success;
9177
      setSuccessIsSet(true);
9178
    }
9179
 
9180
    public void unsetSuccess() {
9181
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9182
    }
9183
 
3430 rajveer 9184
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9185
    public boolean isSetSuccess() {
9186
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9187
    }
9188
 
9189
    public void setSuccessIsSet(boolean value) {
9190
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9191
    }
9192
 
9193
    public HelperServiceException getSe() {
9194
      return this.se;
9195
    }
9196
 
3430 rajveer 9197
    public void setSe(HelperServiceException se) {
495 rajveer 9198
      this.se = se;
9199
    }
9200
 
9201
    public void unsetSe() {
9202
      this.se = null;
9203
    }
9204
 
3430 rajveer 9205
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9206
    public boolean isSetSe() {
9207
      return this.se != null;
9208
    }
9209
 
9210
    public void setSeIsSet(boolean value) {
9211
      if (!value) {
9212
        this.se = null;
9213
      }
9214
    }
9215
 
9216
    public void setFieldValue(_Fields field, Object value) {
9217
      switch (field) {
9218
      case SUCCESS:
9219
        if (value == null) {
9220
          unsetSuccess();
9221
        } else {
9222
          setSuccess((Boolean)value);
9223
        }
9224
        break;
9225
 
9226
      case SE:
9227
        if (value == null) {
9228
          unsetSe();
9229
        } else {
9230
          setSe((HelperServiceException)value);
9231
        }
9232
        break;
9233
 
9234
      }
9235
    }
9236
 
9237
    public Object getFieldValue(_Fields field) {
9238
      switch (field) {
9239
      case SUCCESS:
3430 rajveer 9240
        return Boolean.valueOf(isSuccess());
495 rajveer 9241
 
9242
      case SE:
9243
        return getSe();
9244
 
9245
      }
9246
      throw new IllegalStateException();
9247
    }
9248
 
3430 rajveer 9249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9250
    public boolean isSet(_Fields field) {
9251
      if (field == null) {
9252
        throw new IllegalArgumentException();
9253
      }
495 rajveer 9254
 
9255
      switch (field) {
9256
      case SUCCESS:
9257
        return isSetSuccess();
9258
      case SE:
9259
        return isSetSe();
9260
      }
9261
      throw new IllegalStateException();
9262
    }
9263
 
9264
    @Override
9265
    public boolean equals(Object that) {
9266
      if (that == null)
9267
        return false;
9268
      if (that instanceof addUser_result)
9269
        return this.equals((addUser_result)that);
9270
      return false;
9271
    }
9272
 
9273
    public boolean equals(addUser_result that) {
9274
      if (that == null)
9275
        return false;
9276
 
9277
      boolean this_present_success = true;
9278
      boolean that_present_success = true;
9279
      if (this_present_success || that_present_success) {
9280
        if (!(this_present_success && that_present_success))
9281
          return false;
9282
        if (this.success != that.success)
9283
          return false;
9284
      }
9285
 
9286
      boolean this_present_se = true && this.isSetSe();
9287
      boolean that_present_se = true && that.isSetSe();
9288
      if (this_present_se || that_present_se) {
9289
        if (!(this_present_se && that_present_se))
9290
          return false;
9291
        if (!this.se.equals(that.se))
9292
          return false;
9293
      }
9294
 
9295
      return true;
9296
    }
9297
 
9298
    @Override
9299
    public int hashCode() {
9300
      return 0;
9301
    }
9302
 
9303
    public int compareTo(addUser_result other) {
9304
      if (!getClass().equals(other.getClass())) {
9305
        return getClass().getName().compareTo(other.getClass().getName());
9306
      }
9307
 
9308
      int lastComparison = 0;
9309
      addUser_result typedOther = (addUser_result)other;
9310
 
3430 rajveer 9311
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9312
      if (lastComparison != 0) {
9313
        return lastComparison;
9314
      }
3430 rajveer 9315
      if (isSetSuccess()) {
9316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9317
        if (lastComparison != 0) {
9318
          return lastComparison;
9319
        }
495 rajveer 9320
      }
3430 rajveer 9321
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9322
      if (lastComparison != 0) {
9323
        return lastComparison;
9324
      }
3430 rajveer 9325
      if (isSetSe()) {
9326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9327
        if (lastComparison != 0) {
9328
          return lastComparison;
9329
        }
495 rajveer 9330
      }
9331
      return 0;
9332
    }
9333
 
3430 rajveer 9334
    public _Fields fieldForId(int fieldId) {
9335
      return _Fields.findByThriftId(fieldId);
9336
    }
9337
 
9338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9339
      org.apache.thrift.protocol.TField field;
495 rajveer 9340
      iprot.readStructBegin();
9341
      while (true)
9342
      {
9343
        field = iprot.readFieldBegin();
3430 rajveer 9344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9345
          break;
9346
        }
3430 rajveer 9347
        switch (field.id) {
9348
          case 0: // SUCCESS
9349
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9350
              this.success = iprot.readBool();
9351
              setSuccessIsSet(true);
9352
            } else { 
9353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9354
            }
9355
            break;
9356
          case 1: // SE
9357
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9358
              this.se = new HelperServiceException();
9359
              this.se.read(iprot);
9360
            } else { 
9361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9362
            }
9363
            break;
9364
          default:
9365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9366
        }
3430 rajveer 9367
        iprot.readFieldEnd();
495 rajveer 9368
      }
9369
      iprot.readStructEnd();
9370
      validate();
9371
    }
9372
 
3430 rajveer 9373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9374
      oprot.writeStructBegin(STRUCT_DESC);
9375
 
9376
      if (this.isSetSuccess()) {
9377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9378
        oprot.writeBool(this.success);
9379
        oprot.writeFieldEnd();
9380
      } else if (this.isSetSe()) {
9381
        oprot.writeFieldBegin(SE_FIELD_DESC);
9382
        this.se.write(oprot);
9383
        oprot.writeFieldEnd();
9384
      }
9385
      oprot.writeFieldStop();
9386
      oprot.writeStructEnd();
9387
    }
9388
 
9389
    @Override
9390
    public String toString() {
9391
      StringBuilder sb = new StringBuilder("addUser_result(");
9392
      boolean first = true;
9393
 
9394
      sb.append("success:");
9395
      sb.append(this.success);
9396
      first = false;
9397
      if (!first) sb.append(", ");
9398
      sb.append("se:");
9399
      if (this.se == null) {
9400
        sb.append("null");
9401
      } else {
9402
        sb.append(this.se);
9403
      }
9404
      first = false;
9405
      sb.append(")");
9406
      return sb.toString();
9407
    }
9408
 
3430 rajveer 9409
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9410
      // check for required fields
9411
    }
9412
 
3430 rajveer 9413
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9414
      try {
9415
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9416
      } catch (org.apache.thrift.TException te) {
9417
        throw new java.io.IOException(te);
9418
      }
9419
    }
9420
 
9421
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9422
      try {
9423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9424
      } catch (org.apache.thrift.TException te) {
9425
        throw new java.io.IOException(te);
9426
      }
9427
    }
9428
 
495 rajveer 9429
  }
9430
 
3430 rajveer 9431
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9432
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9433
 
3430 rajveer 9434
    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 9435
 
3430 rajveer 9436
    private String username; // required
495 rajveer 9437
 
9438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9440
      USERNAME((short)1, "username");
9441
 
9442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9443
 
9444
      static {
9445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9446
          byName.put(field.getFieldName(), field);
9447
        }
9448
      }
9449
 
9450
      /**
9451
       * Find the _Fields constant that matches fieldId, or null if its not found.
9452
       */
9453
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9454
        switch(fieldId) {
9455
          case 1: // USERNAME
9456
            return USERNAME;
9457
          default:
9458
            return null;
9459
        }
495 rajveer 9460
      }
9461
 
9462
      /**
9463
       * Find the _Fields constant that matches fieldId, throwing an exception
9464
       * if it is not found.
9465
       */
9466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9467
        _Fields fields = findByThriftId(fieldId);
9468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9469
        return fields;
9470
      }
9471
 
9472
      /**
9473
       * Find the _Fields constant that matches name, or null if its not found.
9474
       */
9475
      public static _Fields findByName(String name) {
9476
        return byName.get(name);
9477
      }
9478
 
9479
      private final short _thriftId;
9480
      private final String _fieldName;
9481
 
9482
      _Fields(short thriftId, String fieldName) {
9483
        _thriftId = thriftId;
9484
        _fieldName = fieldName;
9485
      }
9486
 
9487
      public short getThriftFieldId() {
9488
        return _thriftId;
9489
      }
9490
 
9491
      public String getFieldName() {
9492
        return _fieldName;
9493
      }
9494
    }
9495
 
9496
    // isset id assignments
9497
 
3430 rajveer 9498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9499
    static {
3430 rajveer 9500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9501
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 9505
    }
9506
 
9507
    public deleteUser_args() {
9508
    }
9509
 
9510
    public deleteUser_args(
9511
      String username)
9512
    {
9513
      this();
9514
      this.username = username;
9515
    }
9516
 
9517
    /**
9518
     * Performs a deep copy on <i>other</i>.
9519
     */
9520
    public deleteUser_args(deleteUser_args other) {
9521
      if (other.isSetUsername()) {
9522
        this.username = other.username;
9523
      }
9524
    }
9525
 
9526
    public deleteUser_args deepCopy() {
9527
      return new deleteUser_args(this);
9528
    }
9529
 
3430 rajveer 9530
    @Override
9531
    public void clear() {
9532
      this.username = null;
495 rajveer 9533
    }
9534
 
9535
    public String getUsername() {
9536
      return this.username;
9537
    }
9538
 
3430 rajveer 9539
    public void setUsername(String username) {
495 rajveer 9540
      this.username = username;
9541
    }
9542
 
9543
    public void unsetUsername() {
9544
      this.username = null;
9545
    }
9546
 
3430 rajveer 9547
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9548
    public boolean isSetUsername() {
9549
      return this.username != null;
9550
    }
9551
 
9552
    public void setUsernameIsSet(boolean value) {
9553
      if (!value) {
9554
        this.username = null;
9555
      }
9556
    }
9557
 
9558
    public void setFieldValue(_Fields field, Object value) {
9559
      switch (field) {
9560
      case USERNAME:
9561
        if (value == null) {
9562
          unsetUsername();
9563
        } else {
9564
          setUsername((String)value);
9565
        }
9566
        break;
9567
 
9568
      }
9569
    }
9570
 
9571
    public Object getFieldValue(_Fields field) {
9572
      switch (field) {
9573
      case USERNAME:
9574
        return getUsername();
9575
 
9576
      }
9577
      throw new IllegalStateException();
9578
    }
9579
 
3430 rajveer 9580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9581
    public boolean isSet(_Fields field) {
9582
      if (field == null) {
9583
        throw new IllegalArgumentException();
9584
      }
495 rajveer 9585
 
9586
      switch (field) {
9587
      case USERNAME:
9588
        return isSetUsername();
9589
      }
9590
      throw new IllegalStateException();
9591
    }
9592
 
9593
    @Override
9594
    public boolean equals(Object that) {
9595
      if (that == null)
9596
        return false;
9597
      if (that instanceof deleteUser_args)
9598
        return this.equals((deleteUser_args)that);
9599
      return false;
9600
    }
9601
 
9602
    public boolean equals(deleteUser_args that) {
9603
      if (that == null)
9604
        return false;
9605
 
9606
      boolean this_present_username = true && this.isSetUsername();
9607
      boolean that_present_username = true && that.isSetUsername();
9608
      if (this_present_username || that_present_username) {
9609
        if (!(this_present_username && that_present_username))
9610
          return false;
9611
        if (!this.username.equals(that.username))
9612
          return false;
9613
      }
9614
 
9615
      return true;
9616
    }
9617
 
9618
    @Override
9619
    public int hashCode() {
9620
      return 0;
9621
    }
9622
 
9623
    public int compareTo(deleteUser_args other) {
9624
      if (!getClass().equals(other.getClass())) {
9625
        return getClass().getName().compareTo(other.getClass().getName());
9626
      }
9627
 
9628
      int lastComparison = 0;
9629
      deleteUser_args typedOther = (deleteUser_args)other;
9630
 
3430 rajveer 9631
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9632
      if (lastComparison != 0) {
9633
        return lastComparison;
9634
      }
3430 rajveer 9635
      if (isSetUsername()) {
9636
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9637
        if (lastComparison != 0) {
9638
          return lastComparison;
9639
        }
495 rajveer 9640
      }
9641
      return 0;
9642
    }
9643
 
3430 rajveer 9644
    public _Fields fieldForId(int fieldId) {
9645
      return _Fields.findByThriftId(fieldId);
9646
    }
9647
 
9648
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9649
      org.apache.thrift.protocol.TField field;
495 rajveer 9650
      iprot.readStructBegin();
9651
      while (true)
9652
      {
9653
        field = iprot.readFieldBegin();
3430 rajveer 9654
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9655
          break;
9656
        }
3430 rajveer 9657
        switch (field.id) {
9658
          case 1: // USERNAME
9659
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9660
              this.username = iprot.readString();
9661
            } else { 
9662
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9663
            }
9664
            break;
9665
          default:
9666
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9667
        }
3430 rajveer 9668
        iprot.readFieldEnd();
495 rajveer 9669
      }
9670
      iprot.readStructEnd();
9671
      validate();
9672
    }
9673
 
3430 rajveer 9674
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9675
      validate();
9676
 
9677
      oprot.writeStructBegin(STRUCT_DESC);
9678
      if (this.username != null) {
9679
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9680
        oprot.writeString(this.username);
9681
        oprot.writeFieldEnd();
9682
      }
9683
      oprot.writeFieldStop();
9684
      oprot.writeStructEnd();
9685
    }
9686
 
9687
    @Override
9688
    public String toString() {
9689
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9690
      boolean first = true;
9691
 
9692
      sb.append("username:");
9693
      if (this.username == null) {
9694
        sb.append("null");
9695
      } else {
9696
        sb.append(this.username);
9697
      }
9698
      first = false;
9699
      sb.append(")");
9700
      return sb.toString();
9701
    }
9702
 
3430 rajveer 9703
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9704
      // check for required fields
9705
    }
9706
 
3430 rajveer 9707
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9708
      try {
9709
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9710
      } catch (org.apache.thrift.TException te) {
9711
        throw new java.io.IOException(te);
9712
      }
9713
    }
9714
 
9715
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9716
      try {
9717
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9718
      } catch (org.apache.thrift.TException te) {
9719
        throw new java.io.IOException(te);
9720
      }
9721
    }
9722
 
495 rajveer 9723
  }
9724
 
3430 rajveer 9725
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9726
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9727
 
3430 rajveer 9728
    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);
9729
    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 9730
 
3430 rajveer 9731
    private boolean success; // required
9732
    private HelperServiceException se; // required
495 rajveer 9733
 
9734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9736
      SUCCESS((short)0, "success"),
9737
      SE((short)1, "se");
9738
 
9739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9740
 
9741
      static {
9742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9743
          byName.put(field.getFieldName(), field);
9744
        }
9745
      }
9746
 
9747
      /**
9748
       * Find the _Fields constant that matches fieldId, or null if its not found.
9749
       */
9750
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9751
        switch(fieldId) {
9752
          case 0: // SUCCESS
9753
            return SUCCESS;
9754
          case 1: // SE
9755
            return SE;
9756
          default:
9757
            return null;
9758
        }
495 rajveer 9759
      }
9760
 
9761
      /**
9762
       * Find the _Fields constant that matches fieldId, throwing an exception
9763
       * if it is not found.
9764
       */
9765
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9766
        _Fields fields = findByThriftId(fieldId);
9767
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9768
        return fields;
9769
      }
9770
 
9771
      /**
9772
       * Find the _Fields constant that matches name, or null if its not found.
9773
       */
9774
      public static _Fields findByName(String name) {
9775
        return byName.get(name);
9776
      }
9777
 
9778
      private final short _thriftId;
9779
      private final String _fieldName;
9780
 
9781
      _Fields(short thriftId, String fieldName) {
9782
        _thriftId = thriftId;
9783
        _fieldName = fieldName;
9784
      }
9785
 
9786
      public short getThriftFieldId() {
9787
        return _thriftId;
9788
      }
9789
 
9790
      public String getFieldName() {
9791
        return _fieldName;
9792
      }
9793
    }
9794
 
9795
    // isset id assignments
9796
    private static final int __SUCCESS_ISSET_ID = 0;
9797
    private BitSet __isset_bit_vector = new BitSet(1);
9798
 
3430 rajveer 9799
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9800
    static {
3430 rajveer 9801
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9802
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9803
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9804
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9806
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9807
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9808
    }
9809
 
9810
    public deleteUser_result() {
9811
    }
9812
 
9813
    public deleteUser_result(
9814
      boolean success,
9815
      HelperServiceException se)
9816
    {
9817
      this();
9818
      this.success = success;
9819
      setSuccessIsSet(true);
9820
      this.se = se;
9821
    }
9822
 
9823
    /**
9824
     * Performs a deep copy on <i>other</i>.
9825
     */
9826
    public deleteUser_result(deleteUser_result other) {
9827
      __isset_bit_vector.clear();
9828
      __isset_bit_vector.or(other.__isset_bit_vector);
9829
      this.success = other.success;
9830
      if (other.isSetSe()) {
9831
        this.se = new HelperServiceException(other.se);
9832
      }
9833
    }
9834
 
9835
    public deleteUser_result deepCopy() {
9836
      return new deleteUser_result(this);
9837
    }
9838
 
3430 rajveer 9839
    @Override
9840
    public void clear() {
9841
      setSuccessIsSet(false);
9842
      this.success = false;
9843
      this.se = null;
495 rajveer 9844
    }
9845
 
9846
    public boolean isSuccess() {
9847
      return this.success;
9848
    }
9849
 
3430 rajveer 9850
    public void setSuccess(boolean success) {
495 rajveer 9851
      this.success = success;
9852
      setSuccessIsSet(true);
9853
    }
9854
 
9855
    public void unsetSuccess() {
9856
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9857
    }
9858
 
3430 rajveer 9859
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9860
    public boolean isSetSuccess() {
9861
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9862
    }
9863
 
9864
    public void setSuccessIsSet(boolean value) {
9865
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9866
    }
9867
 
9868
    public HelperServiceException getSe() {
9869
      return this.se;
9870
    }
9871
 
3430 rajveer 9872
    public void setSe(HelperServiceException se) {
495 rajveer 9873
      this.se = se;
9874
    }
9875
 
9876
    public void unsetSe() {
9877
      this.se = null;
9878
    }
9879
 
3430 rajveer 9880
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9881
    public boolean isSetSe() {
9882
      return this.se != null;
9883
    }
9884
 
9885
    public void setSeIsSet(boolean value) {
9886
      if (!value) {
9887
        this.se = null;
9888
      }
9889
    }
9890
 
9891
    public void setFieldValue(_Fields field, Object value) {
9892
      switch (field) {
9893
      case SUCCESS:
9894
        if (value == null) {
9895
          unsetSuccess();
9896
        } else {
9897
          setSuccess((Boolean)value);
9898
        }
9899
        break;
9900
 
9901
      case SE:
9902
        if (value == null) {
9903
          unsetSe();
9904
        } else {
9905
          setSe((HelperServiceException)value);
9906
        }
9907
        break;
9908
 
9909
      }
9910
    }
9911
 
9912
    public Object getFieldValue(_Fields field) {
9913
      switch (field) {
9914
      case SUCCESS:
3430 rajveer 9915
        return Boolean.valueOf(isSuccess());
495 rajveer 9916
 
9917
      case SE:
9918
        return getSe();
9919
 
9920
      }
9921
      throw new IllegalStateException();
9922
    }
9923
 
3430 rajveer 9924
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9925
    public boolean isSet(_Fields field) {
9926
      if (field == null) {
9927
        throw new IllegalArgumentException();
9928
      }
495 rajveer 9929
 
9930
      switch (field) {
9931
      case SUCCESS:
9932
        return isSetSuccess();
9933
      case SE:
9934
        return isSetSe();
9935
      }
9936
      throw new IllegalStateException();
9937
    }
9938
 
9939
    @Override
9940
    public boolean equals(Object that) {
9941
      if (that == null)
9942
        return false;
9943
      if (that instanceof deleteUser_result)
9944
        return this.equals((deleteUser_result)that);
9945
      return false;
9946
    }
9947
 
9948
    public boolean equals(deleteUser_result that) {
9949
      if (that == null)
9950
        return false;
9951
 
9952
      boolean this_present_success = true;
9953
      boolean that_present_success = true;
9954
      if (this_present_success || that_present_success) {
9955
        if (!(this_present_success && that_present_success))
9956
          return false;
9957
        if (this.success != that.success)
9958
          return false;
9959
      }
9960
 
9961
      boolean this_present_se = true && this.isSetSe();
9962
      boolean that_present_se = true && that.isSetSe();
9963
      if (this_present_se || that_present_se) {
9964
        if (!(this_present_se && that_present_se))
9965
          return false;
9966
        if (!this.se.equals(that.se))
9967
          return false;
9968
      }
9969
 
9970
      return true;
9971
    }
9972
 
9973
    @Override
9974
    public int hashCode() {
9975
      return 0;
9976
    }
9977
 
9978
    public int compareTo(deleteUser_result other) {
9979
      if (!getClass().equals(other.getClass())) {
9980
        return getClass().getName().compareTo(other.getClass().getName());
9981
      }
9982
 
9983
      int lastComparison = 0;
9984
      deleteUser_result typedOther = (deleteUser_result)other;
9985
 
3430 rajveer 9986
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9987
      if (lastComparison != 0) {
9988
        return lastComparison;
9989
      }
3430 rajveer 9990
      if (isSetSuccess()) {
9991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9992
        if (lastComparison != 0) {
9993
          return lastComparison;
9994
        }
495 rajveer 9995
      }
3430 rajveer 9996
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9997
      if (lastComparison != 0) {
9998
        return lastComparison;
9999
      }
3430 rajveer 10000
      if (isSetSe()) {
10001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10002
        if (lastComparison != 0) {
10003
          return lastComparison;
10004
        }
495 rajveer 10005
      }
10006
      return 0;
10007
    }
10008
 
3430 rajveer 10009
    public _Fields fieldForId(int fieldId) {
10010
      return _Fields.findByThriftId(fieldId);
10011
    }
10012
 
10013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10014
      org.apache.thrift.protocol.TField field;
495 rajveer 10015
      iprot.readStructBegin();
10016
      while (true)
10017
      {
10018
        field = iprot.readFieldBegin();
3430 rajveer 10019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10020
          break;
10021
        }
3430 rajveer 10022
        switch (field.id) {
10023
          case 0: // SUCCESS
10024
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10025
              this.success = iprot.readBool();
10026
              setSuccessIsSet(true);
10027
            } else { 
10028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10029
            }
10030
            break;
10031
          case 1: // SE
10032
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10033
              this.se = new HelperServiceException();
10034
              this.se.read(iprot);
10035
            } else { 
10036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10037
            }
10038
            break;
10039
          default:
10040
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10041
        }
3430 rajveer 10042
        iprot.readFieldEnd();
495 rajveer 10043
      }
10044
      iprot.readStructEnd();
10045
      validate();
10046
    }
10047
 
3430 rajveer 10048
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10049
      oprot.writeStructBegin(STRUCT_DESC);
10050
 
10051
      if (this.isSetSuccess()) {
10052
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10053
        oprot.writeBool(this.success);
10054
        oprot.writeFieldEnd();
10055
      } else if (this.isSetSe()) {
10056
        oprot.writeFieldBegin(SE_FIELD_DESC);
10057
        this.se.write(oprot);
10058
        oprot.writeFieldEnd();
10059
      }
10060
      oprot.writeFieldStop();
10061
      oprot.writeStructEnd();
10062
    }
10063
 
10064
    @Override
10065
    public String toString() {
10066
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10067
      boolean first = true;
10068
 
10069
      sb.append("success:");
10070
      sb.append(this.success);
10071
      first = false;
10072
      if (!first) sb.append(", ");
10073
      sb.append("se:");
10074
      if (this.se == null) {
10075
        sb.append("null");
10076
      } else {
10077
        sb.append(this.se);
10078
      }
10079
      first = false;
10080
      sb.append(")");
10081
      return sb.toString();
10082
    }
10083
 
3430 rajveer 10084
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10085
      // check for required fields
10086
    }
10087
 
3430 rajveer 10088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10089
      try {
10090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10091
      } catch (org.apache.thrift.TException te) {
10092
        throw new java.io.IOException(te);
10093
      }
10094
    }
10095
 
10096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10097
      try {
10098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10099
      } catch (org.apache.thrift.TException te) {
10100
        throw new java.io.IOException(te);
10101
      }
10102
    }
10103
 
495 rajveer 10104
  }
10105
 
3430 rajveer 10106
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10108
 
3430 rajveer 10109
    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);
10110
    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 10111
 
3430 rajveer 10112
    private String username; // required
10113
    private String password; // required
495 rajveer 10114
 
10115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10117
      USERNAME((short)1, "username"),
10118
      PASSWORD((short)2, "password");
10119
 
10120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10121
 
10122
      static {
10123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10124
          byName.put(field.getFieldName(), field);
10125
        }
10126
      }
10127
 
10128
      /**
10129
       * Find the _Fields constant that matches fieldId, or null if its not found.
10130
       */
10131
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10132
        switch(fieldId) {
10133
          case 1: // USERNAME
10134
            return USERNAME;
10135
          case 2: // PASSWORD
10136
            return PASSWORD;
10137
          default:
10138
            return null;
10139
        }
495 rajveer 10140
      }
10141
 
10142
      /**
10143
       * Find the _Fields constant that matches fieldId, throwing an exception
10144
       * if it is not found.
10145
       */
10146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10147
        _Fields fields = findByThriftId(fieldId);
10148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10149
        return fields;
10150
      }
10151
 
10152
      /**
10153
       * Find the _Fields constant that matches name, or null if its not found.
10154
       */
10155
      public static _Fields findByName(String name) {
10156
        return byName.get(name);
10157
      }
10158
 
10159
      private final short _thriftId;
10160
      private final String _fieldName;
10161
 
10162
      _Fields(short thriftId, String fieldName) {
10163
        _thriftId = thriftId;
10164
        _fieldName = fieldName;
10165
      }
10166
 
10167
      public short getThriftFieldId() {
10168
        return _thriftId;
10169
      }
10170
 
10171
      public String getFieldName() {
10172
        return _fieldName;
10173
      }
10174
    }
10175
 
10176
    // isset id assignments
10177
 
3430 rajveer 10178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10179
    static {
3430 rajveer 10180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10181
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10183
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10187
    }
10188
 
2443 chandransh 10189
    public authenticateDashboardUser_args() {
495 rajveer 10190
    }
10191
 
2443 chandransh 10192
    public authenticateDashboardUser_args(
495 rajveer 10193
      String username,
10194
      String password)
10195
    {
10196
      this();
10197
      this.username = username;
10198
      this.password = password;
10199
    }
10200
 
10201
    /**
10202
     * Performs a deep copy on <i>other</i>.
10203
     */
2443 chandransh 10204
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10205
      if (other.isSetUsername()) {
10206
        this.username = other.username;
10207
      }
10208
      if (other.isSetPassword()) {
10209
        this.password = other.password;
10210
      }
10211
    }
10212
 
2443 chandransh 10213
    public authenticateDashboardUser_args deepCopy() {
10214
      return new authenticateDashboardUser_args(this);
495 rajveer 10215
    }
10216
 
3430 rajveer 10217
    @Override
10218
    public void clear() {
10219
      this.username = null;
10220
      this.password = null;
495 rajveer 10221
    }
10222
 
10223
    public String getUsername() {
10224
      return this.username;
10225
    }
10226
 
3430 rajveer 10227
    public void setUsername(String username) {
495 rajveer 10228
      this.username = username;
10229
    }
10230
 
10231
    public void unsetUsername() {
10232
      this.username = null;
10233
    }
10234
 
3430 rajveer 10235
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10236
    public boolean isSetUsername() {
10237
      return this.username != null;
10238
    }
10239
 
10240
    public void setUsernameIsSet(boolean value) {
10241
      if (!value) {
10242
        this.username = null;
10243
      }
10244
    }
10245
 
10246
    public String getPassword() {
10247
      return this.password;
10248
    }
10249
 
3430 rajveer 10250
    public void setPassword(String password) {
495 rajveer 10251
      this.password = password;
10252
    }
10253
 
10254
    public void unsetPassword() {
10255
      this.password = null;
10256
    }
10257
 
3430 rajveer 10258
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10259
    public boolean isSetPassword() {
10260
      return this.password != null;
10261
    }
10262
 
10263
    public void setPasswordIsSet(boolean value) {
10264
      if (!value) {
10265
        this.password = null;
10266
      }
10267
    }
10268
 
10269
    public void setFieldValue(_Fields field, Object value) {
10270
      switch (field) {
10271
      case USERNAME:
10272
        if (value == null) {
10273
          unsetUsername();
10274
        } else {
10275
          setUsername((String)value);
10276
        }
10277
        break;
10278
 
10279
      case PASSWORD:
10280
        if (value == null) {
10281
          unsetPassword();
10282
        } else {
10283
          setPassword((String)value);
10284
        }
10285
        break;
10286
 
10287
      }
10288
    }
10289
 
10290
    public Object getFieldValue(_Fields field) {
10291
      switch (field) {
10292
      case USERNAME:
10293
        return getUsername();
10294
 
10295
      case PASSWORD:
10296
        return getPassword();
10297
 
10298
      }
10299
      throw new IllegalStateException();
10300
    }
10301
 
3430 rajveer 10302
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10303
    public boolean isSet(_Fields field) {
10304
      if (field == null) {
10305
        throw new IllegalArgumentException();
10306
      }
495 rajveer 10307
 
10308
      switch (field) {
10309
      case USERNAME:
10310
        return isSetUsername();
10311
      case PASSWORD:
10312
        return isSetPassword();
10313
      }
10314
      throw new IllegalStateException();
10315
    }
10316
 
10317
    @Override
10318
    public boolean equals(Object that) {
10319
      if (that == null)
10320
        return false;
2443 chandransh 10321
      if (that instanceof authenticateDashboardUser_args)
10322
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10323
      return false;
10324
    }
10325
 
2443 chandransh 10326
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10327
      if (that == null)
10328
        return false;
10329
 
10330
      boolean this_present_username = true && this.isSetUsername();
10331
      boolean that_present_username = true && that.isSetUsername();
10332
      if (this_present_username || that_present_username) {
10333
        if (!(this_present_username && that_present_username))
10334
          return false;
10335
        if (!this.username.equals(that.username))
10336
          return false;
10337
      }
10338
 
10339
      boolean this_present_password = true && this.isSetPassword();
10340
      boolean that_present_password = true && that.isSetPassword();
10341
      if (this_present_password || that_present_password) {
10342
        if (!(this_present_password && that_present_password))
10343
          return false;
10344
        if (!this.password.equals(that.password))
10345
          return false;
10346
      }
10347
 
10348
      return true;
10349
    }
10350
 
10351
    @Override
10352
    public int hashCode() {
10353
      return 0;
10354
    }
10355
 
2443 chandransh 10356
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10357
      if (!getClass().equals(other.getClass())) {
10358
        return getClass().getName().compareTo(other.getClass().getName());
10359
      }
10360
 
10361
      int lastComparison = 0;
2443 chandransh 10362
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10363
 
3430 rajveer 10364
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10365
      if (lastComparison != 0) {
10366
        return lastComparison;
10367
      }
3430 rajveer 10368
      if (isSetUsername()) {
10369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10370
        if (lastComparison != 0) {
10371
          return lastComparison;
10372
        }
495 rajveer 10373
      }
3430 rajveer 10374
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10375
      if (lastComparison != 0) {
10376
        return lastComparison;
10377
      }
3430 rajveer 10378
      if (isSetPassword()) {
10379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10380
        if (lastComparison != 0) {
10381
          return lastComparison;
10382
        }
495 rajveer 10383
      }
10384
      return 0;
10385
    }
10386
 
3430 rajveer 10387
    public _Fields fieldForId(int fieldId) {
10388
      return _Fields.findByThriftId(fieldId);
10389
    }
10390
 
10391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10392
      org.apache.thrift.protocol.TField field;
495 rajveer 10393
      iprot.readStructBegin();
10394
      while (true)
10395
      {
10396
        field = iprot.readFieldBegin();
3430 rajveer 10397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10398
          break;
10399
        }
3430 rajveer 10400
        switch (field.id) {
10401
          case 1: // USERNAME
10402
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10403
              this.username = iprot.readString();
10404
            } else { 
10405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10406
            }
10407
            break;
10408
          case 2: // PASSWORD
10409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10410
              this.password = iprot.readString();
10411
            } else { 
10412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10413
            }
10414
            break;
10415
          default:
10416
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10417
        }
3430 rajveer 10418
        iprot.readFieldEnd();
495 rajveer 10419
      }
10420
      iprot.readStructEnd();
10421
      validate();
10422
    }
10423
 
3430 rajveer 10424
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10425
      validate();
10426
 
10427
      oprot.writeStructBegin(STRUCT_DESC);
10428
      if (this.username != null) {
10429
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10430
        oprot.writeString(this.username);
10431
        oprot.writeFieldEnd();
10432
      }
10433
      if (this.password != null) {
10434
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10435
        oprot.writeString(this.password);
10436
        oprot.writeFieldEnd();
10437
      }
10438
      oprot.writeFieldStop();
10439
      oprot.writeStructEnd();
10440
    }
10441
 
10442
    @Override
10443
    public String toString() {
2443 chandransh 10444
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10445
      boolean first = true;
10446
 
10447
      sb.append("username:");
10448
      if (this.username == null) {
10449
        sb.append("null");
10450
      } else {
10451
        sb.append(this.username);
10452
      }
10453
      first = false;
10454
      if (!first) sb.append(", ");
10455
      sb.append("password:");
10456
      if (this.password == null) {
10457
        sb.append("null");
10458
      } else {
10459
        sb.append(this.password);
10460
      }
10461
      first = false;
10462
      sb.append(")");
10463
      return sb.toString();
10464
    }
10465
 
3430 rajveer 10466
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10467
      // check for required fields
10468
    }
10469
 
3430 rajveer 10470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10471
      try {
10472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10473
      } catch (org.apache.thrift.TException te) {
10474
        throw new java.io.IOException(te);
10475
      }
10476
    }
10477
 
10478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10479
      try {
10480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10481
      } catch (org.apache.thrift.TException te) {
10482
        throw new java.io.IOException(te);
10483
      }
10484
    }
10485
 
495 rajveer 10486
  }
10487
 
3430 rajveer 10488
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
10489
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 10490
 
3430 rajveer 10491
    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);
10492
    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 10493
 
3430 rajveer 10494
    private DashboardUser success; // required
10495
    private HelperServiceException se; // required
495 rajveer 10496
 
10497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10499
      SUCCESS((short)0, "success"),
10500
      SE((short)1, "se");
10501
 
10502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10503
 
10504
      static {
10505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10506
          byName.put(field.getFieldName(), field);
10507
        }
10508
      }
10509
 
10510
      /**
10511
       * Find the _Fields constant that matches fieldId, or null if its not found.
10512
       */
10513
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10514
        switch(fieldId) {
10515
          case 0: // SUCCESS
10516
            return SUCCESS;
10517
          case 1: // SE
10518
            return SE;
10519
          default:
10520
            return null;
10521
        }
495 rajveer 10522
      }
10523
 
10524
      /**
10525
       * Find the _Fields constant that matches fieldId, throwing an exception
10526
       * if it is not found.
10527
       */
10528
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10529
        _Fields fields = findByThriftId(fieldId);
10530
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10531
        return fields;
10532
      }
10533
 
10534
      /**
10535
       * Find the _Fields constant that matches name, or null if its not found.
10536
       */
10537
      public static _Fields findByName(String name) {
10538
        return byName.get(name);
10539
      }
10540
 
10541
      private final short _thriftId;
10542
      private final String _fieldName;
10543
 
10544
      _Fields(short thriftId, String fieldName) {
10545
        _thriftId = thriftId;
10546
        _fieldName = fieldName;
10547
      }
10548
 
10549
      public short getThriftFieldId() {
10550
        return _thriftId;
10551
      }
10552
 
10553
      public String getFieldName() {
10554
        return _fieldName;
10555
      }
10556
    }
10557
 
10558
    // isset id assignments
10559
 
3430 rajveer 10560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10561
    static {
3430 rajveer 10562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10563
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10564
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
10565
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10566
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10567
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10568
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 10569
    }
10570
 
2443 chandransh 10571
    public authenticateDashboardUser_result() {
495 rajveer 10572
    }
10573
 
2443 chandransh 10574
    public authenticateDashboardUser_result(
10575
      DashboardUser success,
495 rajveer 10576
      HelperServiceException se)
10577
    {
10578
      this();
10579
      this.success = success;
10580
      this.se = se;
10581
    }
10582
 
10583
    /**
10584
     * Performs a deep copy on <i>other</i>.
10585
     */
2443 chandransh 10586
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
10587
      if (other.isSetSuccess()) {
10588
        this.success = new DashboardUser(other.success);
10589
      }
495 rajveer 10590
      if (other.isSetSe()) {
10591
        this.se = new HelperServiceException(other.se);
10592
      }
10593
    }
10594
 
2443 chandransh 10595
    public authenticateDashboardUser_result deepCopy() {
10596
      return new authenticateDashboardUser_result(this);
495 rajveer 10597
    }
10598
 
3430 rajveer 10599
    @Override
10600
    public void clear() {
10601
      this.success = null;
10602
      this.se = null;
495 rajveer 10603
    }
10604
 
2443 chandransh 10605
    public DashboardUser getSuccess() {
495 rajveer 10606
      return this.success;
10607
    }
10608
 
3430 rajveer 10609
    public void setSuccess(DashboardUser success) {
495 rajveer 10610
      this.success = success;
10611
    }
10612
 
10613
    public void unsetSuccess() {
2443 chandransh 10614
      this.success = null;
495 rajveer 10615
    }
10616
 
3430 rajveer 10617
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10618
    public boolean isSetSuccess() {
2443 chandransh 10619
      return this.success != null;
495 rajveer 10620
    }
10621
 
10622
    public void setSuccessIsSet(boolean value) {
2443 chandransh 10623
      if (!value) {
10624
        this.success = null;
10625
      }
495 rajveer 10626
    }
10627
 
10628
    public HelperServiceException getSe() {
10629
      return this.se;
10630
    }
10631
 
3430 rajveer 10632
    public void setSe(HelperServiceException se) {
495 rajveer 10633
      this.se = se;
10634
    }
10635
 
10636
    public void unsetSe() {
10637
      this.se = null;
10638
    }
10639
 
3430 rajveer 10640
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10641
    public boolean isSetSe() {
10642
      return this.se != null;
10643
    }
10644
 
10645
    public void setSeIsSet(boolean value) {
10646
      if (!value) {
10647
        this.se = null;
10648
      }
10649
    }
10650
 
10651
    public void setFieldValue(_Fields field, Object value) {
10652
      switch (field) {
10653
      case SUCCESS:
10654
        if (value == null) {
10655
          unsetSuccess();
10656
        } else {
2443 chandransh 10657
          setSuccess((DashboardUser)value);
495 rajveer 10658
        }
10659
        break;
10660
 
10661
      case SE:
10662
        if (value == null) {
10663
          unsetSe();
10664
        } else {
10665
          setSe((HelperServiceException)value);
10666
        }
10667
        break;
10668
 
10669
      }
10670
    }
10671
 
10672
    public Object getFieldValue(_Fields field) {
10673
      switch (field) {
10674
      case SUCCESS:
2443 chandransh 10675
        return getSuccess();
495 rajveer 10676
 
10677
      case SE:
10678
        return getSe();
10679
 
10680
      }
10681
      throw new IllegalStateException();
10682
    }
10683
 
3430 rajveer 10684
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10685
    public boolean isSet(_Fields field) {
10686
      if (field == null) {
10687
        throw new IllegalArgumentException();
10688
      }
495 rajveer 10689
 
10690
      switch (field) {
10691
      case SUCCESS:
10692
        return isSetSuccess();
10693
      case SE:
10694
        return isSetSe();
10695
      }
10696
      throw new IllegalStateException();
10697
    }
10698
 
10699
    @Override
10700
    public boolean equals(Object that) {
10701
      if (that == null)
10702
        return false;
2443 chandransh 10703
      if (that instanceof authenticateDashboardUser_result)
10704
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10705
      return false;
10706
    }
10707
 
2443 chandransh 10708
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10709
      if (that == null)
10710
        return false;
10711
 
2443 chandransh 10712
      boolean this_present_success = true && this.isSetSuccess();
10713
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10714
      if (this_present_success || that_present_success) {
10715
        if (!(this_present_success && that_present_success))
10716
          return false;
2443 chandransh 10717
        if (!this.success.equals(that.success))
495 rajveer 10718
          return false;
10719
      }
10720
 
10721
      boolean this_present_se = true && this.isSetSe();
10722
      boolean that_present_se = true && that.isSetSe();
10723
      if (this_present_se || that_present_se) {
10724
        if (!(this_present_se && that_present_se))
10725
          return false;
10726
        if (!this.se.equals(that.se))
10727
          return false;
10728
      }
10729
 
10730
      return true;
10731
    }
10732
 
10733
    @Override
10734
    public int hashCode() {
10735
      return 0;
10736
    }
10737
 
2443 chandransh 10738
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10739
      if (!getClass().equals(other.getClass())) {
10740
        return getClass().getName().compareTo(other.getClass().getName());
10741
      }
10742
 
10743
      int lastComparison = 0;
2443 chandransh 10744
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10745
 
3430 rajveer 10746
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10747
      if (lastComparison != 0) {
10748
        return lastComparison;
10749
      }
3430 rajveer 10750
      if (isSetSuccess()) {
10751
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10752
        if (lastComparison != 0) {
10753
          return lastComparison;
10754
        }
495 rajveer 10755
      }
3430 rajveer 10756
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10757
      if (lastComparison != 0) {
10758
        return lastComparison;
10759
      }
3430 rajveer 10760
      if (isSetSe()) {
10761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10762
        if (lastComparison != 0) {
10763
          return lastComparison;
10764
        }
495 rajveer 10765
      }
10766
      return 0;
10767
    }
10768
 
3430 rajveer 10769
    public _Fields fieldForId(int fieldId) {
10770
      return _Fields.findByThriftId(fieldId);
10771
    }
10772
 
10773
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10774
      org.apache.thrift.protocol.TField field;
495 rajveer 10775
      iprot.readStructBegin();
10776
      while (true)
10777
      {
10778
        field = iprot.readFieldBegin();
3430 rajveer 10779
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10780
          break;
10781
        }
3430 rajveer 10782
        switch (field.id) {
10783
          case 0: // SUCCESS
10784
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10785
              this.success = new DashboardUser();
10786
              this.success.read(iprot);
10787
            } else { 
10788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10789
            }
10790
            break;
10791
          case 1: // SE
10792
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10793
              this.se = new HelperServiceException();
10794
              this.se.read(iprot);
10795
            } else { 
10796
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10797
            }
10798
            break;
10799
          default:
10800
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10801
        }
3430 rajveer 10802
        iprot.readFieldEnd();
495 rajveer 10803
      }
10804
      iprot.readStructEnd();
10805
      validate();
10806
    }
10807
 
3430 rajveer 10808
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10809
      oprot.writeStructBegin(STRUCT_DESC);
10810
 
10811
      if (this.isSetSuccess()) {
10812
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10813
        this.success.write(oprot);
495 rajveer 10814
        oprot.writeFieldEnd();
10815
      } else if (this.isSetSe()) {
10816
        oprot.writeFieldBegin(SE_FIELD_DESC);
10817
        this.se.write(oprot);
10818
        oprot.writeFieldEnd();
10819
      }
10820
      oprot.writeFieldStop();
10821
      oprot.writeStructEnd();
10822
    }
10823
 
10824
    @Override
10825
    public String toString() {
2443 chandransh 10826
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 10827
      boolean first = true;
10828
 
10829
      sb.append("success:");
2443 chandransh 10830
      if (this.success == null) {
10831
        sb.append("null");
10832
      } else {
10833
        sb.append(this.success);
10834
      }
495 rajveer 10835
      first = false;
10836
      if (!first) sb.append(", ");
10837
      sb.append("se:");
10838
      if (this.se == null) {
10839
        sb.append("null");
10840
      } else {
10841
        sb.append(this.se);
10842
      }
10843
      first = false;
10844
      sb.append(")");
10845
      return sb.toString();
10846
    }
10847
 
3430 rajveer 10848
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10849
      // check for required fields
10850
    }
10851
 
3430 rajveer 10852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10853
      try {
10854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10855
      } catch (org.apache.thrift.TException te) {
10856
        throw new java.io.IOException(te);
10857
      }
10858
    }
10859
 
10860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10861
      try {
10862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10863
      } catch (org.apache.thrift.TException te) {
10864
        throw new java.io.IOException(te);
10865
      }
10866
    }
10867
 
495 rajveer 10868
  }
10869
 
3430 rajveer 10870
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
10871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 10872
 
3430 rajveer 10873
    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);
10874
    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);
10875
    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 10876
 
3430 rajveer 10877
    private String username; // required
10878
    private String oldPassword; // required
10879
    private String newPassword; // required
495 rajveer 10880
 
10881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10883
      USERNAME((short)1, "username"),
10884
      OLD_PASSWORD((short)2, "oldPassword"),
10885
      NEW_PASSWORD((short)3, "newPassword");
10886
 
10887
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10888
 
10889
      static {
10890
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10891
          byName.put(field.getFieldName(), field);
10892
        }
10893
      }
10894
 
10895
      /**
10896
       * Find the _Fields constant that matches fieldId, or null if its not found.
10897
       */
10898
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10899
        switch(fieldId) {
10900
          case 1: // USERNAME
10901
            return USERNAME;
10902
          case 2: // OLD_PASSWORD
10903
            return OLD_PASSWORD;
10904
          case 3: // NEW_PASSWORD
10905
            return NEW_PASSWORD;
10906
          default:
10907
            return null;
10908
        }
495 rajveer 10909
      }
10910
 
10911
      /**
10912
       * Find the _Fields constant that matches fieldId, throwing an exception
10913
       * if it is not found.
10914
       */
10915
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10916
        _Fields fields = findByThriftId(fieldId);
10917
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10918
        return fields;
10919
      }
10920
 
10921
      /**
10922
       * Find the _Fields constant that matches name, or null if its not found.
10923
       */
10924
      public static _Fields findByName(String name) {
10925
        return byName.get(name);
10926
      }
10927
 
10928
      private final short _thriftId;
10929
      private final String _fieldName;
10930
 
10931
      _Fields(short thriftId, String fieldName) {
10932
        _thriftId = thriftId;
10933
        _fieldName = fieldName;
10934
      }
10935
 
10936
      public short getThriftFieldId() {
10937
        return _thriftId;
10938
      }
10939
 
10940
      public String getFieldName() {
10941
        return _fieldName;
10942
      }
10943
    }
10944
 
10945
    // isset id assignments
10946
 
3430 rajveer 10947
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10948
    static {
3430 rajveer 10949
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10950
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10951
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10952
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10953
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10954
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10955
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10956
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10957
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 10958
    }
10959
 
10960
    public updatePassword_args() {
10961
    }
10962
 
10963
    public updatePassword_args(
10964
      String username,
10965
      String oldPassword,
10966
      String newPassword)
10967
    {
10968
      this();
10969
      this.username = username;
10970
      this.oldPassword = oldPassword;
10971
      this.newPassword = newPassword;
10972
    }
10973
 
10974
    /**
10975
     * Performs a deep copy on <i>other</i>.
10976
     */
10977
    public updatePassword_args(updatePassword_args other) {
10978
      if (other.isSetUsername()) {
10979
        this.username = other.username;
10980
      }
10981
      if (other.isSetOldPassword()) {
10982
        this.oldPassword = other.oldPassword;
10983
      }
10984
      if (other.isSetNewPassword()) {
10985
        this.newPassword = other.newPassword;
10986
      }
10987
    }
10988
 
10989
    public updatePassword_args deepCopy() {
10990
      return new updatePassword_args(this);
10991
    }
10992
 
3430 rajveer 10993
    @Override
10994
    public void clear() {
10995
      this.username = null;
10996
      this.oldPassword = null;
10997
      this.newPassword = null;
495 rajveer 10998
    }
10999
 
11000
    public String getUsername() {
11001
      return this.username;
11002
    }
11003
 
3430 rajveer 11004
    public void setUsername(String username) {
495 rajveer 11005
      this.username = username;
11006
    }
11007
 
11008
    public void unsetUsername() {
11009
      this.username = null;
11010
    }
11011
 
3430 rajveer 11012
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11013
    public boolean isSetUsername() {
11014
      return this.username != null;
11015
    }
11016
 
11017
    public void setUsernameIsSet(boolean value) {
11018
      if (!value) {
11019
        this.username = null;
11020
      }
11021
    }
11022
 
11023
    public String getOldPassword() {
11024
      return this.oldPassword;
11025
    }
11026
 
3430 rajveer 11027
    public void setOldPassword(String oldPassword) {
495 rajveer 11028
      this.oldPassword = oldPassword;
11029
    }
11030
 
11031
    public void unsetOldPassword() {
11032
      this.oldPassword = null;
11033
    }
11034
 
3430 rajveer 11035
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11036
    public boolean isSetOldPassword() {
11037
      return this.oldPassword != null;
11038
    }
11039
 
11040
    public void setOldPasswordIsSet(boolean value) {
11041
      if (!value) {
11042
        this.oldPassword = null;
11043
      }
11044
    }
11045
 
11046
    public String getNewPassword() {
11047
      return this.newPassword;
11048
    }
11049
 
3430 rajveer 11050
    public void setNewPassword(String newPassword) {
495 rajveer 11051
      this.newPassword = newPassword;
11052
    }
11053
 
11054
    public void unsetNewPassword() {
11055
      this.newPassword = null;
11056
    }
11057
 
3430 rajveer 11058
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11059
    public boolean isSetNewPassword() {
11060
      return this.newPassword != null;
11061
    }
11062
 
11063
    public void setNewPasswordIsSet(boolean value) {
11064
      if (!value) {
11065
        this.newPassword = null;
11066
      }
11067
    }
11068
 
11069
    public void setFieldValue(_Fields field, Object value) {
11070
      switch (field) {
11071
      case USERNAME:
11072
        if (value == null) {
11073
          unsetUsername();
11074
        } else {
11075
          setUsername((String)value);
11076
        }
11077
        break;
11078
 
11079
      case OLD_PASSWORD:
11080
        if (value == null) {
11081
          unsetOldPassword();
11082
        } else {
11083
          setOldPassword((String)value);
11084
        }
11085
        break;
11086
 
11087
      case NEW_PASSWORD:
11088
        if (value == null) {
11089
          unsetNewPassword();
11090
        } else {
11091
          setNewPassword((String)value);
11092
        }
11093
        break;
11094
 
11095
      }
11096
    }
11097
 
11098
    public Object getFieldValue(_Fields field) {
11099
      switch (field) {
11100
      case USERNAME:
11101
        return getUsername();
11102
 
11103
      case OLD_PASSWORD:
11104
        return getOldPassword();
11105
 
11106
      case NEW_PASSWORD:
11107
        return getNewPassword();
11108
 
11109
      }
11110
      throw new IllegalStateException();
11111
    }
11112
 
3430 rajveer 11113
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11114
    public boolean isSet(_Fields field) {
11115
      if (field == null) {
11116
        throw new IllegalArgumentException();
11117
      }
495 rajveer 11118
 
11119
      switch (field) {
11120
      case USERNAME:
11121
        return isSetUsername();
11122
      case OLD_PASSWORD:
11123
        return isSetOldPassword();
11124
      case NEW_PASSWORD:
11125
        return isSetNewPassword();
11126
      }
11127
      throw new IllegalStateException();
11128
    }
11129
 
11130
    @Override
11131
    public boolean equals(Object that) {
11132
      if (that == null)
11133
        return false;
11134
      if (that instanceof updatePassword_args)
11135
        return this.equals((updatePassword_args)that);
11136
      return false;
11137
    }
11138
 
11139
    public boolean equals(updatePassword_args that) {
11140
      if (that == null)
11141
        return false;
11142
 
11143
      boolean this_present_username = true && this.isSetUsername();
11144
      boolean that_present_username = true && that.isSetUsername();
11145
      if (this_present_username || that_present_username) {
11146
        if (!(this_present_username && that_present_username))
11147
          return false;
11148
        if (!this.username.equals(that.username))
11149
          return false;
11150
      }
11151
 
11152
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11153
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11154
      if (this_present_oldPassword || that_present_oldPassword) {
11155
        if (!(this_present_oldPassword && that_present_oldPassword))
11156
          return false;
11157
        if (!this.oldPassword.equals(that.oldPassword))
11158
          return false;
11159
      }
11160
 
11161
      boolean this_present_newPassword = true && this.isSetNewPassword();
11162
      boolean that_present_newPassword = true && that.isSetNewPassword();
11163
      if (this_present_newPassword || that_present_newPassword) {
11164
        if (!(this_present_newPassword && that_present_newPassword))
11165
          return false;
11166
        if (!this.newPassword.equals(that.newPassword))
11167
          return false;
11168
      }
11169
 
11170
      return true;
11171
    }
11172
 
11173
    @Override
11174
    public int hashCode() {
11175
      return 0;
11176
    }
11177
 
11178
    public int compareTo(updatePassword_args other) {
11179
      if (!getClass().equals(other.getClass())) {
11180
        return getClass().getName().compareTo(other.getClass().getName());
11181
      }
11182
 
11183
      int lastComparison = 0;
11184
      updatePassword_args typedOther = (updatePassword_args)other;
11185
 
3430 rajveer 11186
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11187
      if (lastComparison != 0) {
11188
        return lastComparison;
11189
      }
3430 rajveer 11190
      if (isSetUsername()) {
11191
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11192
        if (lastComparison != 0) {
11193
          return lastComparison;
11194
        }
495 rajveer 11195
      }
3430 rajveer 11196
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11197
      if (lastComparison != 0) {
11198
        return lastComparison;
11199
      }
3430 rajveer 11200
      if (isSetOldPassword()) {
11201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11202
        if (lastComparison != 0) {
11203
          return lastComparison;
11204
        }
495 rajveer 11205
      }
3430 rajveer 11206
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11207
      if (lastComparison != 0) {
11208
        return lastComparison;
11209
      }
3430 rajveer 11210
      if (isSetNewPassword()) {
11211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11212
        if (lastComparison != 0) {
11213
          return lastComparison;
11214
        }
495 rajveer 11215
      }
11216
      return 0;
11217
    }
11218
 
3430 rajveer 11219
    public _Fields fieldForId(int fieldId) {
11220
      return _Fields.findByThriftId(fieldId);
11221
    }
11222
 
11223
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11224
      org.apache.thrift.protocol.TField field;
495 rajveer 11225
      iprot.readStructBegin();
11226
      while (true)
11227
      {
11228
        field = iprot.readFieldBegin();
3430 rajveer 11229
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11230
          break;
11231
        }
3430 rajveer 11232
        switch (field.id) {
11233
          case 1: // USERNAME
11234
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11235
              this.username = iprot.readString();
11236
            } else { 
11237
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11238
            }
11239
            break;
11240
          case 2: // OLD_PASSWORD
11241
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11242
              this.oldPassword = iprot.readString();
11243
            } else { 
11244
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11245
            }
11246
            break;
11247
          case 3: // NEW_PASSWORD
11248
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11249
              this.newPassword = iprot.readString();
11250
            } else { 
11251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11252
            }
11253
            break;
11254
          default:
11255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11256
        }
3430 rajveer 11257
        iprot.readFieldEnd();
495 rajveer 11258
      }
11259
      iprot.readStructEnd();
11260
      validate();
11261
    }
11262
 
3430 rajveer 11263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11264
      validate();
11265
 
11266
      oprot.writeStructBegin(STRUCT_DESC);
11267
      if (this.username != null) {
11268
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11269
        oprot.writeString(this.username);
11270
        oprot.writeFieldEnd();
11271
      }
11272
      if (this.oldPassword != null) {
11273
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11274
        oprot.writeString(this.oldPassword);
11275
        oprot.writeFieldEnd();
11276
      }
11277
      if (this.newPassword != null) {
11278
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11279
        oprot.writeString(this.newPassword);
11280
        oprot.writeFieldEnd();
11281
      }
11282
      oprot.writeFieldStop();
11283
      oprot.writeStructEnd();
11284
    }
11285
 
11286
    @Override
11287
    public String toString() {
11288
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11289
      boolean first = true;
11290
 
11291
      sb.append("username:");
11292
      if (this.username == null) {
11293
        sb.append("null");
11294
      } else {
11295
        sb.append(this.username);
11296
      }
11297
      first = false;
11298
      if (!first) sb.append(", ");
11299
      sb.append("oldPassword:");
11300
      if (this.oldPassword == null) {
11301
        sb.append("null");
11302
      } else {
11303
        sb.append(this.oldPassword);
11304
      }
11305
      first = false;
11306
      if (!first) sb.append(", ");
11307
      sb.append("newPassword:");
11308
      if (this.newPassword == null) {
11309
        sb.append("null");
11310
      } else {
11311
        sb.append(this.newPassword);
11312
      }
11313
      first = false;
11314
      sb.append(")");
11315
      return sb.toString();
11316
    }
11317
 
3430 rajveer 11318
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11319
      // check for required fields
11320
    }
11321
 
3430 rajveer 11322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11323
      try {
11324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11325
      } catch (org.apache.thrift.TException te) {
11326
        throw new java.io.IOException(te);
11327
      }
11328
    }
11329
 
11330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11331
      try {
11332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11333
      } catch (org.apache.thrift.TException te) {
11334
        throw new java.io.IOException(te);
11335
      }
11336
    }
11337
 
495 rajveer 11338
  }
11339
 
3430 rajveer 11340
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11342
 
3430 rajveer 11343
    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);
11344
    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 11345
 
3430 rajveer 11346
    private boolean success; // required
11347
    private HelperServiceException se; // required
495 rajveer 11348
 
11349
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11350
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11351
      SUCCESS((short)0, "success"),
11352
      SE((short)1, "se");
11353
 
11354
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11355
 
11356
      static {
11357
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11358
          byName.put(field.getFieldName(), field);
11359
        }
11360
      }
11361
 
11362
      /**
11363
       * Find the _Fields constant that matches fieldId, or null if its not found.
11364
       */
11365
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11366
        switch(fieldId) {
11367
          case 0: // SUCCESS
11368
            return SUCCESS;
11369
          case 1: // SE
11370
            return SE;
11371
          default:
11372
            return null;
11373
        }
495 rajveer 11374
      }
11375
 
11376
      /**
11377
       * Find the _Fields constant that matches fieldId, throwing an exception
11378
       * if it is not found.
11379
       */
11380
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11381
        _Fields fields = findByThriftId(fieldId);
11382
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11383
        return fields;
11384
      }
11385
 
11386
      /**
11387
       * Find the _Fields constant that matches name, or null if its not found.
11388
       */
11389
      public static _Fields findByName(String name) {
11390
        return byName.get(name);
11391
      }
11392
 
11393
      private final short _thriftId;
11394
      private final String _fieldName;
11395
 
11396
      _Fields(short thriftId, String fieldName) {
11397
        _thriftId = thriftId;
11398
        _fieldName = fieldName;
11399
      }
11400
 
11401
      public short getThriftFieldId() {
11402
        return _thriftId;
11403
      }
11404
 
11405
      public String getFieldName() {
11406
        return _fieldName;
11407
      }
11408
    }
11409
 
11410
    // isset id assignments
11411
    private static final int __SUCCESS_ISSET_ID = 0;
11412
    private BitSet __isset_bit_vector = new BitSet(1);
11413
 
3430 rajveer 11414
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11415
    static {
3430 rajveer 11416
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11417
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11418
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11419
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11421
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11422
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11423
    }
11424
 
11425
    public updatePassword_result() {
11426
    }
11427
 
11428
    public updatePassword_result(
11429
      boolean success,
11430
      HelperServiceException se)
11431
    {
11432
      this();
11433
      this.success = success;
11434
      setSuccessIsSet(true);
11435
      this.se = se;
11436
    }
11437
 
11438
    /**
11439
     * Performs a deep copy on <i>other</i>.
11440
     */
11441
    public updatePassword_result(updatePassword_result other) {
11442
      __isset_bit_vector.clear();
11443
      __isset_bit_vector.or(other.__isset_bit_vector);
11444
      this.success = other.success;
11445
      if (other.isSetSe()) {
11446
        this.se = new HelperServiceException(other.se);
11447
      }
11448
    }
11449
 
11450
    public updatePassword_result deepCopy() {
11451
      return new updatePassword_result(this);
11452
    }
11453
 
3430 rajveer 11454
    @Override
11455
    public void clear() {
11456
      setSuccessIsSet(false);
11457
      this.success = false;
11458
      this.se = null;
495 rajveer 11459
    }
11460
 
11461
    public boolean isSuccess() {
11462
      return this.success;
11463
    }
11464
 
3430 rajveer 11465
    public void setSuccess(boolean success) {
495 rajveer 11466
      this.success = success;
11467
      setSuccessIsSet(true);
11468
    }
11469
 
11470
    public void unsetSuccess() {
11471
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11472
    }
11473
 
3430 rajveer 11474
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11475
    public boolean isSetSuccess() {
11476
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11477
    }
11478
 
11479
    public void setSuccessIsSet(boolean value) {
11480
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11481
    }
11482
 
11483
    public HelperServiceException getSe() {
11484
      return this.se;
11485
    }
11486
 
3430 rajveer 11487
    public void setSe(HelperServiceException se) {
495 rajveer 11488
      this.se = se;
11489
    }
11490
 
11491
    public void unsetSe() {
11492
      this.se = null;
11493
    }
11494
 
3430 rajveer 11495
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11496
    public boolean isSetSe() {
11497
      return this.se != null;
11498
    }
11499
 
11500
    public void setSeIsSet(boolean value) {
11501
      if (!value) {
11502
        this.se = null;
11503
      }
11504
    }
11505
 
11506
    public void setFieldValue(_Fields field, Object value) {
11507
      switch (field) {
11508
      case SUCCESS:
11509
        if (value == null) {
11510
          unsetSuccess();
11511
        } else {
11512
          setSuccess((Boolean)value);
11513
        }
11514
        break;
11515
 
11516
      case SE:
11517
        if (value == null) {
11518
          unsetSe();
11519
        } else {
11520
          setSe((HelperServiceException)value);
11521
        }
11522
        break;
11523
 
11524
      }
11525
    }
11526
 
11527
    public Object getFieldValue(_Fields field) {
11528
      switch (field) {
11529
      case SUCCESS:
3430 rajveer 11530
        return Boolean.valueOf(isSuccess());
495 rajveer 11531
 
11532
      case SE:
11533
        return getSe();
11534
 
11535
      }
11536
      throw new IllegalStateException();
11537
    }
11538
 
3430 rajveer 11539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11540
    public boolean isSet(_Fields field) {
11541
      if (field == null) {
11542
        throw new IllegalArgumentException();
11543
      }
495 rajveer 11544
 
11545
      switch (field) {
11546
      case SUCCESS:
11547
        return isSetSuccess();
11548
      case SE:
11549
        return isSetSe();
11550
      }
11551
      throw new IllegalStateException();
11552
    }
11553
 
11554
    @Override
11555
    public boolean equals(Object that) {
11556
      if (that == null)
11557
        return false;
11558
      if (that instanceof updatePassword_result)
11559
        return this.equals((updatePassword_result)that);
11560
      return false;
11561
    }
11562
 
11563
    public boolean equals(updatePassword_result that) {
11564
      if (that == null)
11565
        return false;
11566
 
11567
      boolean this_present_success = true;
11568
      boolean that_present_success = true;
11569
      if (this_present_success || that_present_success) {
11570
        if (!(this_present_success && that_present_success))
11571
          return false;
11572
        if (this.success != that.success)
11573
          return false;
11574
      }
11575
 
11576
      boolean this_present_se = true && this.isSetSe();
11577
      boolean that_present_se = true && that.isSetSe();
11578
      if (this_present_se || that_present_se) {
11579
        if (!(this_present_se && that_present_se))
11580
          return false;
11581
        if (!this.se.equals(that.se))
11582
          return false;
11583
      }
11584
 
11585
      return true;
11586
    }
11587
 
11588
    @Override
11589
    public int hashCode() {
11590
      return 0;
11591
    }
11592
 
11593
    public int compareTo(updatePassword_result other) {
11594
      if (!getClass().equals(other.getClass())) {
11595
        return getClass().getName().compareTo(other.getClass().getName());
11596
      }
11597
 
11598
      int lastComparison = 0;
11599
      updatePassword_result typedOther = (updatePassword_result)other;
11600
 
3430 rajveer 11601
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11602
      if (lastComparison != 0) {
11603
        return lastComparison;
11604
      }
3430 rajveer 11605
      if (isSetSuccess()) {
11606
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11607
        if (lastComparison != 0) {
11608
          return lastComparison;
11609
        }
495 rajveer 11610
      }
3430 rajveer 11611
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11612
      if (lastComparison != 0) {
11613
        return lastComparison;
11614
      }
3430 rajveer 11615
      if (isSetSe()) {
11616
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11617
        if (lastComparison != 0) {
11618
          return lastComparison;
11619
        }
495 rajveer 11620
      }
11621
      return 0;
11622
    }
11623
 
3430 rajveer 11624
    public _Fields fieldForId(int fieldId) {
11625
      return _Fields.findByThriftId(fieldId);
11626
    }
11627
 
11628
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11629
      org.apache.thrift.protocol.TField field;
495 rajveer 11630
      iprot.readStructBegin();
11631
      while (true)
11632
      {
11633
        field = iprot.readFieldBegin();
3430 rajveer 11634
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11635
          break;
11636
        }
3430 rajveer 11637
        switch (field.id) {
11638
          case 0: // SUCCESS
11639
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11640
              this.success = iprot.readBool();
11641
              setSuccessIsSet(true);
11642
            } else { 
11643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11644
            }
11645
            break;
11646
          case 1: // SE
11647
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11648
              this.se = new HelperServiceException();
11649
              this.se.read(iprot);
11650
            } else { 
11651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11652
            }
11653
            break;
11654
          default:
11655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11656
        }
3430 rajveer 11657
        iprot.readFieldEnd();
495 rajveer 11658
      }
11659
      iprot.readStructEnd();
11660
      validate();
11661
    }
11662
 
3430 rajveer 11663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11664
      oprot.writeStructBegin(STRUCT_DESC);
11665
 
11666
      if (this.isSetSuccess()) {
11667
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11668
        oprot.writeBool(this.success);
11669
        oprot.writeFieldEnd();
11670
      } else if (this.isSetSe()) {
11671
        oprot.writeFieldBegin(SE_FIELD_DESC);
11672
        this.se.write(oprot);
11673
        oprot.writeFieldEnd();
11674
      }
11675
      oprot.writeFieldStop();
11676
      oprot.writeStructEnd();
11677
    }
11678
 
11679
    @Override
11680
    public String toString() {
11681
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11682
      boolean first = true;
11683
 
11684
      sb.append("success:");
11685
      sb.append(this.success);
11686
      first = false;
11687
      if (!first) sb.append(", ");
11688
      sb.append("se:");
11689
      if (this.se == null) {
11690
        sb.append("null");
11691
      } else {
11692
        sb.append(this.se);
11693
      }
11694
      first = false;
11695
      sb.append(")");
11696
      return sb.toString();
11697
    }
11698
 
3430 rajveer 11699
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11700
      // check for required fields
11701
    }
11702
 
3430 rajveer 11703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11704
      try {
11705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11706
      } catch (org.apache.thrift.TException te) {
11707
        throw new java.io.IOException(te);
11708
      }
11709
    }
11710
 
11711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11712
      try {
11713
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11714
      } catch (org.apache.thrift.TException te) {
11715
        throw new java.io.IOException(te);
11716
      }
11717
    }
11718
 
495 rajveer 11719
  }
11720
 
3430 rajveer 11721
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11723
 
3430 rajveer 11724
    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);
11725
    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 11726
 
3430 rajveer 11727
    private String username; // required
11728
    private String password; // required
750 chandransh 11729
 
11730
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11731
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11732
      USERNAME((short)1, "username"),
11733
      PASSWORD((short)2, "password");
11734
 
11735
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11736
 
11737
      static {
11738
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11739
          byName.put(field.getFieldName(), field);
11740
        }
11741
      }
11742
 
11743
      /**
11744
       * Find the _Fields constant that matches fieldId, or null if its not found.
11745
       */
11746
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11747
        switch(fieldId) {
11748
          case 1: // USERNAME
11749
            return USERNAME;
11750
          case 2: // PASSWORD
11751
            return PASSWORD;
11752
          default:
11753
            return null;
11754
        }
750 chandransh 11755
      }
11756
 
11757
      /**
11758
       * Find the _Fields constant that matches fieldId, throwing an exception
11759
       * if it is not found.
11760
       */
11761
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11762
        _Fields fields = findByThriftId(fieldId);
11763
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11764
        return fields;
11765
      }
11766
 
11767
      /**
11768
       * Find the _Fields constant that matches name, or null if its not found.
11769
       */
11770
      public static _Fields findByName(String name) {
11771
        return byName.get(name);
11772
      }
11773
 
11774
      private final short _thriftId;
11775
      private final String _fieldName;
11776
 
11777
      _Fields(short thriftId, String fieldName) {
11778
        _thriftId = thriftId;
11779
        _fieldName = fieldName;
11780
      }
11781
 
11782
      public short getThriftFieldId() {
11783
        return _thriftId;
11784
      }
11785
 
11786
      public String getFieldName() {
11787
        return _fieldName;
11788
      }
11789
    }
11790
 
11791
    // isset id assignments
11792
 
3430 rajveer 11793
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11794
    static {
3430 rajveer 11795
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11796
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11798
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11800
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11801
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11802
    }
11803
 
11804
    public authenticateLogisticsUser_args() {
11805
    }
11806
 
11807
    public authenticateLogisticsUser_args(
11808
      String username,
11809
      String password)
11810
    {
11811
      this();
11812
      this.username = username;
11813
      this.password = password;
11814
    }
11815
 
11816
    /**
11817
     * Performs a deep copy on <i>other</i>.
11818
     */
11819
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
11820
      if (other.isSetUsername()) {
11821
        this.username = other.username;
11822
      }
11823
      if (other.isSetPassword()) {
11824
        this.password = other.password;
11825
      }
11826
    }
11827
 
11828
    public authenticateLogisticsUser_args deepCopy() {
11829
      return new authenticateLogisticsUser_args(this);
11830
    }
11831
 
3430 rajveer 11832
    @Override
11833
    public void clear() {
11834
      this.username = null;
11835
      this.password = null;
750 chandransh 11836
    }
11837
 
11838
    public String getUsername() {
11839
      return this.username;
11840
    }
11841
 
3430 rajveer 11842
    public void setUsername(String username) {
750 chandransh 11843
      this.username = username;
11844
    }
11845
 
11846
    public void unsetUsername() {
11847
      this.username = null;
11848
    }
11849
 
3430 rajveer 11850
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 11851
    public boolean isSetUsername() {
11852
      return this.username != null;
11853
    }
11854
 
11855
    public void setUsernameIsSet(boolean value) {
11856
      if (!value) {
11857
        this.username = null;
11858
      }
11859
    }
11860
 
11861
    public String getPassword() {
11862
      return this.password;
11863
    }
11864
 
3430 rajveer 11865
    public void setPassword(String password) {
750 chandransh 11866
      this.password = password;
11867
    }
11868
 
11869
    public void unsetPassword() {
11870
      this.password = null;
11871
    }
11872
 
3430 rajveer 11873
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 11874
    public boolean isSetPassword() {
11875
      return this.password != null;
11876
    }
11877
 
11878
    public void setPasswordIsSet(boolean value) {
11879
      if (!value) {
11880
        this.password = null;
11881
      }
11882
    }
11883
 
11884
    public void setFieldValue(_Fields field, Object value) {
11885
      switch (field) {
11886
      case USERNAME:
11887
        if (value == null) {
11888
          unsetUsername();
11889
        } else {
11890
          setUsername((String)value);
11891
        }
11892
        break;
11893
 
11894
      case PASSWORD:
11895
        if (value == null) {
11896
          unsetPassword();
11897
        } else {
11898
          setPassword((String)value);
11899
        }
11900
        break;
11901
 
11902
      }
11903
    }
11904
 
11905
    public Object getFieldValue(_Fields field) {
11906
      switch (field) {
11907
      case USERNAME:
11908
        return getUsername();
11909
 
11910
      case PASSWORD:
11911
        return getPassword();
11912
 
11913
      }
11914
      throw new IllegalStateException();
11915
    }
11916
 
3430 rajveer 11917
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11918
    public boolean isSet(_Fields field) {
11919
      if (field == null) {
11920
        throw new IllegalArgumentException();
11921
      }
750 chandransh 11922
 
11923
      switch (field) {
11924
      case USERNAME:
11925
        return isSetUsername();
11926
      case PASSWORD:
11927
        return isSetPassword();
11928
      }
11929
      throw new IllegalStateException();
11930
    }
11931
 
11932
    @Override
11933
    public boolean equals(Object that) {
11934
      if (that == null)
11935
        return false;
11936
      if (that instanceof authenticateLogisticsUser_args)
11937
        return this.equals((authenticateLogisticsUser_args)that);
11938
      return false;
11939
    }
11940
 
11941
    public boolean equals(authenticateLogisticsUser_args that) {
11942
      if (that == null)
11943
        return false;
11944
 
11945
      boolean this_present_username = true && this.isSetUsername();
11946
      boolean that_present_username = true && that.isSetUsername();
11947
      if (this_present_username || that_present_username) {
11948
        if (!(this_present_username && that_present_username))
11949
          return false;
11950
        if (!this.username.equals(that.username))
11951
          return false;
11952
      }
11953
 
11954
      boolean this_present_password = true && this.isSetPassword();
11955
      boolean that_present_password = true && that.isSetPassword();
11956
      if (this_present_password || that_present_password) {
11957
        if (!(this_present_password && that_present_password))
11958
          return false;
11959
        if (!this.password.equals(that.password))
11960
          return false;
11961
      }
11962
 
11963
      return true;
11964
    }
11965
 
11966
    @Override
11967
    public int hashCode() {
11968
      return 0;
11969
    }
11970
 
11971
    public int compareTo(authenticateLogisticsUser_args other) {
11972
      if (!getClass().equals(other.getClass())) {
11973
        return getClass().getName().compareTo(other.getClass().getName());
11974
      }
11975
 
11976
      int lastComparison = 0;
11977
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
11978
 
3430 rajveer 11979
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 11980
      if (lastComparison != 0) {
11981
        return lastComparison;
11982
      }
3430 rajveer 11983
      if (isSetUsername()) {
11984
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11985
        if (lastComparison != 0) {
11986
          return lastComparison;
11987
        }
750 chandransh 11988
      }
3430 rajveer 11989
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 11990
      if (lastComparison != 0) {
11991
        return lastComparison;
11992
      }
3430 rajveer 11993
      if (isSetPassword()) {
11994
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11995
        if (lastComparison != 0) {
11996
          return lastComparison;
11997
        }
750 chandransh 11998
      }
11999
      return 0;
12000
    }
12001
 
3430 rajveer 12002
    public _Fields fieldForId(int fieldId) {
12003
      return _Fields.findByThriftId(fieldId);
12004
    }
12005
 
12006
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12007
      org.apache.thrift.protocol.TField field;
750 chandransh 12008
      iprot.readStructBegin();
12009
      while (true)
12010
      {
12011
        field = iprot.readFieldBegin();
3430 rajveer 12012
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12013
          break;
12014
        }
3430 rajveer 12015
        switch (field.id) {
12016
          case 1: // USERNAME
12017
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12018
              this.username = iprot.readString();
12019
            } else { 
12020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12021
            }
12022
            break;
12023
          case 2: // PASSWORD
12024
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12025
              this.password = iprot.readString();
12026
            } else { 
12027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12028
            }
12029
            break;
12030
          default:
12031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12032
        }
3430 rajveer 12033
        iprot.readFieldEnd();
750 chandransh 12034
      }
12035
      iprot.readStructEnd();
12036
      validate();
12037
    }
12038
 
3430 rajveer 12039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12040
      validate();
12041
 
12042
      oprot.writeStructBegin(STRUCT_DESC);
12043
      if (this.username != null) {
12044
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12045
        oprot.writeString(this.username);
12046
        oprot.writeFieldEnd();
12047
      }
12048
      if (this.password != null) {
12049
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12050
        oprot.writeString(this.password);
12051
        oprot.writeFieldEnd();
12052
      }
12053
      oprot.writeFieldStop();
12054
      oprot.writeStructEnd();
12055
    }
12056
 
12057
    @Override
12058
    public String toString() {
12059
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12060
      boolean first = true;
12061
 
12062
      sb.append("username:");
12063
      if (this.username == null) {
12064
        sb.append("null");
12065
      } else {
12066
        sb.append(this.username);
12067
      }
12068
      first = false;
12069
      if (!first) sb.append(", ");
12070
      sb.append("password:");
12071
      if (this.password == null) {
12072
        sb.append("null");
12073
      } else {
12074
        sb.append(this.password);
12075
      }
12076
      first = false;
12077
      sb.append(")");
12078
      return sb.toString();
12079
    }
12080
 
3430 rajveer 12081
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12082
      // check for required fields
12083
    }
12084
 
3430 rajveer 12085
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12086
      try {
12087
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12088
      } catch (org.apache.thrift.TException te) {
12089
        throw new java.io.IOException(te);
12090
      }
12091
    }
12092
 
12093
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12094
      try {
12095
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12096
      } catch (org.apache.thrift.TException te) {
12097
        throw new java.io.IOException(te);
12098
      }
12099
    }
12100
 
750 chandransh 12101
  }
12102
 
3430 rajveer 12103
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12104
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12105
 
3430 rajveer 12106
    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);
12107
    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 12108
 
3430 rajveer 12109
    private LogisticsUser success; // required
12110
    private HelperServiceException hse; // required
750 chandransh 12111
 
12112
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12113
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12114
      SUCCESS((short)0, "success"),
12115
      HSE((short)1, "hse");
12116
 
12117
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12118
 
12119
      static {
12120
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12121
          byName.put(field.getFieldName(), field);
12122
        }
12123
      }
12124
 
12125
      /**
12126
       * Find the _Fields constant that matches fieldId, or null if its not found.
12127
       */
12128
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12129
        switch(fieldId) {
12130
          case 0: // SUCCESS
12131
            return SUCCESS;
12132
          case 1: // HSE
12133
            return HSE;
12134
          default:
12135
            return null;
12136
        }
750 chandransh 12137
      }
12138
 
12139
      /**
12140
       * Find the _Fields constant that matches fieldId, throwing an exception
12141
       * if it is not found.
12142
       */
12143
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12144
        _Fields fields = findByThriftId(fieldId);
12145
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12146
        return fields;
12147
      }
12148
 
12149
      /**
12150
       * Find the _Fields constant that matches name, or null if its not found.
12151
       */
12152
      public static _Fields findByName(String name) {
12153
        return byName.get(name);
12154
      }
12155
 
12156
      private final short _thriftId;
12157
      private final String _fieldName;
12158
 
12159
      _Fields(short thriftId, String fieldName) {
12160
        _thriftId = thriftId;
12161
        _fieldName = fieldName;
12162
      }
12163
 
12164
      public short getThriftFieldId() {
12165
        return _thriftId;
12166
      }
12167
 
12168
      public String getFieldName() {
12169
        return _fieldName;
12170
      }
12171
    }
12172
 
12173
    // isset id assignments
12174
 
3430 rajveer 12175
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12176
    static {
3430 rajveer 12177
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12178
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12179
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12180
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12181
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12182
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12183
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12184
    }
12185
 
12186
    public authenticateLogisticsUser_result() {
12187
    }
12188
 
12189
    public authenticateLogisticsUser_result(
12190
      LogisticsUser success,
12191
      HelperServiceException hse)
12192
    {
12193
      this();
12194
      this.success = success;
12195
      this.hse = hse;
12196
    }
12197
 
12198
    /**
12199
     * Performs a deep copy on <i>other</i>.
12200
     */
12201
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12202
      if (other.isSetSuccess()) {
12203
        this.success = new LogisticsUser(other.success);
12204
      }
12205
      if (other.isSetHse()) {
12206
        this.hse = new HelperServiceException(other.hse);
12207
      }
12208
    }
12209
 
12210
    public authenticateLogisticsUser_result deepCopy() {
12211
      return new authenticateLogisticsUser_result(this);
12212
    }
12213
 
3430 rajveer 12214
    @Override
12215
    public void clear() {
12216
      this.success = null;
12217
      this.hse = null;
750 chandransh 12218
    }
12219
 
12220
    public LogisticsUser getSuccess() {
12221
      return this.success;
12222
    }
12223
 
3430 rajveer 12224
    public void setSuccess(LogisticsUser success) {
750 chandransh 12225
      this.success = success;
12226
    }
12227
 
12228
    public void unsetSuccess() {
12229
      this.success = null;
12230
    }
12231
 
3430 rajveer 12232
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12233
    public boolean isSetSuccess() {
12234
      return this.success != null;
12235
    }
12236
 
12237
    public void setSuccessIsSet(boolean value) {
12238
      if (!value) {
12239
        this.success = null;
12240
      }
12241
    }
12242
 
12243
    public HelperServiceException getHse() {
12244
      return this.hse;
12245
    }
12246
 
3430 rajveer 12247
    public void setHse(HelperServiceException hse) {
750 chandransh 12248
      this.hse = hse;
12249
    }
12250
 
12251
    public void unsetHse() {
12252
      this.hse = null;
12253
    }
12254
 
3430 rajveer 12255
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12256
    public boolean isSetHse() {
12257
      return this.hse != null;
12258
    }
12259
 
12260
    public void setHseIsSet(boolean value) {
12261
      if (!value) {
12262
        this.hse = null;
12263
      }
12264
    }
12265
 
12266
    public void setFieldValue(_Fields field, Object value) {
12267
      switch (field) {
12268
      case SUCCESS:
12269
        if (value == null) {
12270
          unsetSuccess();
12271
        } else {
12272
          setSuccess((LogisticsUser)value);
12273
        }
12274
        break;
12275
 
12276
      case HSE:
12277
        if (value == null) {
12278
          unsetHse();
12279
        } else {
12280
          setHse((HelperServiceException)value);
12281
        }
12282
        break;
12283
 
12284
      }
12285
    }
12286
 
12287
    public Object getFieldValue(_Fields field) {
12288
      switch (field) {
12289
      case SUCCESS:
12290
        return getSuccess();
12291
 
12292
      case HSE:
12293
        return getHse();
12294
 
12295
      }
12296
      throw new IllegalStateException();
12297
    }
12298
 
3430 rajveer 12299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12300
    public boolean isSet(_Fields field) {
12301
      if (field == null) {
12302
        throw new IllegalArgumentException();
12303
      }
750 chandransh 12304
 
12305
      switch (field) {
12306
      case SUCCESS:
12307
        return isSetSuccess();
12308
      case HSE:
12309
        return isSetHse();
12310
      }
12311
      throw new IllegalStateException();
12312
    }
12313
 
12314
    @Override
12315
    public boolean equals(Object that) {
12316
      if (that == null)
12317
        return false;
12318
      if (that instanceof authenticateLogisticsUser_result)
12319
        return this.equals((authenticateLogisticsUser_result)that);
12320
      return false;
12321
    }
12322
 
12323
    public boolean equals(authenticateLogisticsUser_result that) {
12324
      if (that == null)
12325
        return false;
12326
 
12327
      boolean this_present_success = true && this.isSetSuccess();
12328
      boolean that_present_success = true && that.isSetSuccess();
12329
      if (this_present_success || that_present_success) {
12330
        if (!(this_present_success && that_present_success))
12331
          return false;
12332
        if (!this.success.equals(that.success))
12333
          return false;
12334
      }
12335
 
12336
      boolean this_present_hse = true && this.isSetHse();
12337
      boolean that_present_hse = true && that.isSetHse();
12338
      if (this_present_hse || that_present_hse) {
12339
        if (!(this_present_hse && that_present_hse))
12340
          return false;
12341
        if (!this.hse.equals(that.hse))
12342
          return false;
12343
      }
12344
 
12345
      return true;
12346
    }
12347
 
12348
    @Override
12349
    public int hashCode() {
12350
      return 0;
12351
    }
12352
 
12353
    public int compareTo(authenticateLogisticsUser_result other) {
12354
      if (!getClass().equals(other.getClass())) {
12355
        return getClass().getName().compareTo(other.getClass().getName());
12356
      }
12357
 
12358
      int lastComparison = 0;
12359
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12360
 
3430 rajveer 12361
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12362
      if (lastComparison != 0) {
12363
        return lastComparison;
12364
      }
3430 rajveer 12365
      if (isSetSuccess()) {
12366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12367
        if (lastComparison != 0) {
12368
          return lastComparison;
12369
        }
750 chandransh 12370
      }
3430 rajveer 12371
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12372
      if (lastComparison != 0) {
12373
        return lastComparison;
12374
      }
3430 rajveer 12375
      if (isSetHse()) {
12376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12377
        if (lastComparison != 0) {
12378
          return lastComparison;
12379
        }
750 chandransh 12380
      }
12381
      return 0;
12382
    }
12383
 
3430 rajveer 12384
    public _Fields fieldForId(int fieldId) {
12385
      return _Fields.findByThriftId(fieldId);
12386
    }
12387
 
12388
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12389
      org.apache.thrift.protocol.TField field;
750 chandransh 12390
      iprot.readStructBegin();
12391
      while (true)
12392
      {
12393
        field = iprot.readFieldBegin();
3430 rajveer 12394
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12395
          break;
12396
        }
3430 rajveer 12397
        switch (field.id) {
12398
          case 0: // SUCCESS
12399
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12400
              this.success = new LogisticsUser();
12401
              this.success.read(iprot);
12402
            } else { 
12403
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12404
            }
12405
            break;
12406
          case 1: // HSE
12407
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12408
              this.hse = new HelperServiceException();
12409
              this.hse.read(iprot);
12410
            } else { 
12411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12412
            }
12413
            break;
12414
          default:
12415
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12416
        }
3430 rajveer 12417
        iprot.readFieldEnd();
750 chandransh 12418
      }
12419
      iprot.readStructEnd();
12420
      validate();
12421
    }
12422
 
3430 rajveer 12423
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12424
      oprot.writeStructBegin(STRUCT_DESC);
12425
 
12426
      if (this.isSetSuccess()) {
12427
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12428
        this.success.write(oprot);
12429
        oprot.writeFieldEnd();
12430
      } else if (this.isSetHse()) {
12431
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12432
        this.hse.write(oprot);
12433
        oprot.writeFieldEnd();
12434
      }
12435
      oprot.writeFieldStop();
12436
      oprot.writeStructEnd();
12437
    }
12438
 
12439
    @Override
12440
    public String toString() {
12441
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12442
      boolean first = true;
12443
 
12444
      sb.append("success:");
12445
      if (this.success == null) {
12446
        sb.append("null");
12447
      } else {
12448
        sb.append(this.success);
12449
      }
12450
      first = false;
12451
      if (!first) sb.append(", ");
12452
      sb.append("hse:");
12453
      if (this.hse == null) {
12454
        sb.append("null");
12455
      } else {
12456
        sb.append(this.hse);
12457
      }
12458
      first = false;
12459
      sb.append(")");
12460
      return sb.toString();
12461
    }
12462
 
3430 rajveer 12463
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12464
      // check for required fields
12465
    }
12466
 
3430 rajveer 12467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12468
      try {
12469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12470
      } catch (org.apache.thrift.TException te) {
12471
        throw new java.io.IOException(te);
12472
      }
12473
    }
12474
 
12475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12476
      try {
12477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12478
      } catch (org.apache.thrift.TException te) {
12479
        throw new java.io.IOException(te);
12480
      }
12481
    }
12482
 
750 chandransh 12483
  }
12484
 
3430 rajveer 12485
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 12487
 
3430 rajveer 12488
    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);
12489
    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 12490
 
3430 rajveer 12491
    private String username; // required
12492
    private String password; // required
1611 ankur.sing 12493
 
12494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12496
      USERNAME((short)1, "username"),
12497
      PASSWORD((short)2, "password");
12498
 
12499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12500
 
12501
      static {
12502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12503
          byName.put(field.getFieldName(), field);
12504
        }
12505
      }
12506
 
12507
      /**
12508
       * Find the _Fields constant that matches fieldId, or null if its not found.
12509
       */
12510
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12511
        switch(fieldId) {
12512
          case 1: // USERNAME
12513
            return USERNAME;
12514
          case 2: // PASSWORD
12515
            return PASSWORD;
12516
          default:
12517
            return null;
12518
        }
1611 ankur.sing 12519
      }
12520
 
12521
      /**
12522
       * Find the _Fields constant that matches fieldId, throwing an exception
12523
       * if it is not found.
12524
       */
12525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12526
        _Fields fields = findByThriftId(fieldId);
12527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12528
        return fields;
12529
      }
12530
 
12531
      /**
12532
       * Find the _Fields constant that matches name, or null if its not found.
12533
       */
12534
      public static _Fields findByName(String name) {
12535
        return byName.get(name);
12536
      }
12537
 
12538
      private final short _thriftId;
12539
      private final String _fieldName;
12540
 
12541
      _Fields(short thriftId, String fieldName) {
12542
        _thriftId = thriftId;
12543
        _fieldName = fieldName;
12544
      }
12545
 
12546
      public short getThriftFieldId() {
12547
        return _thriftId;
12548
      }
12549
 
12550
      public String getFieldName() {
12551
        return _fieldName;
12552
      }
12553
    }
12554
 
12555
    // isset id assignments
12556
 
3430 rajveer 12557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12558
    static {
3430 rajveer 12559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12560
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12562
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 12566
    }
12567
 
12568
    public authenticateStatisticsUser_args() {
12569
    }
12570
 
12571
    public authenticateStatisticsUser_args(
12572
      String username,
12573
      String password)
12574
    {
12575
      this();
12576
      this.username = username;
12577
      this.password = password;
12578
    }
12579
 
12580
    /**
12581
     * Performs a deep copy on <i>other</i>.
12582
     */
12583
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
12584
      if (other.isSetUsername()) {
12585
        this.username = other.username;
12586
      }
12587
      if (other.isSetPassword()) {
12588
        this.password = other.password;
12589
      }
12590
    }
12591
 
12592
    public authenticateStatisticsUser_args deepCopy() {
12593
      return new authenticateStatisticsUser_args(this);
12594
    }
12595
 
3430 rajveer 12596
    @Override
12597
    public void clear() {
12598
      this.username = null;
12599
      this.password = null;
1611 ankur.sing 12600
    }
12601
 
12602
    public String getUsername() {
12603
      return this.username;
12604
    }
12605
 
3430 rajveer 12606
    public void setUsername(String username) {
1611 ankur.sing 12607
      this.username = username;
12608
    }
12609
 
12610
    public void unsetUsername() {
12611
      this.username = null;
12612
    }
12613
 
3430 rajveer 12614
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12615
    public boolean isSetUsername() {
12616
      return this.username != null;
12617
    }
12618
 
12619
    public void setUsernameIsSet(boolean value) {
12620
      if (!value) {
12621
        this.username = null;
12622
      }
12623
    }
12624
 
12625
    public String getPassword() {
12626
      return this.password;
12627
    }
12628
 
3430 rajveer 12629
    public void setPassword(String password) {
1611 ankur.sing 12630
      this.password = password;
12631
    }
12632
 
12633
    public void unsetPassword() {
12634
      this.password = null;
12635
    }
12636
 
3430 rajveer 12637
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12638
    public boolean isSetPassword() {
12639
      return this.password != null;
12640
    }
12641
 
12642
    public void setPasswordIsSet(boolean value) {
12643
      if (!value) {
12644
        this.password = null;
12645
      }
12646
    }
12647
 
12648
    public void setFieldValue(_Fields field, Object value) {
12649
      switch (field) {
12650
      case USERNAME:
12651
        if (value == null) {
12652
          unsetUsername();
12653
        } else {
12654
          setUsername((String)value);
12655
        }
12656
        break;
12657
 
12658
      case PASSWORD:
12659
        if (value == null) {
12660
          unsetPassword();
12661
        } else {
12662
          setPassword((String)value);
12663
        }
12664
        break;
12665
 
12666
      }
12667
    }
12668
 
12669
    public Object getFieldValue(_Fields field) {
12670
      switch (field) {
12671
      case USERNAME:
12672
        return getUsername();
12673
 
12674
      case PASSWORD:
12675
        return getPassword();
12676
 
12677
      }
12678
      throw new IllegalStateException();
12679
    }
12680
 
3430 rajveer 12681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12682
    public boolean isSet(_Fields field) {
12683
      if (field == null) {
12684
        throw new IllegalArgumentException();
12685
      }
1611 ankur.sing 12686
 
12687
      switch (field) {
12688
      case USERNAME:
12689
        return isSetUsername();
12690
      case PASSWORD:
12691
        return isSetPassword();
12692
      }
12693
      throw new IllegalStateException();
12694
    }
12695
 
12696
    @Override
12697
    public boolean equals(Object that) {
12698
      if (that == null)
12699
        return false;
12700
      if (that instanceof authenticateStatisticsUser_args)
12701
        return this.equals((authenticateStatisticsUser_args)that);
12702
      return false;
12703
    }
12704
 
12705
    public boolean equals(authenticateStatisticsUser_args that) {
12706
      if (that == null)
12707
        return false;
12708
 
12709
      boolean this_present_username = true && this.isSetUsername();
12710
      boolean that_present_username = true && that.isSetUsername();
12711
      if (this_present_username || that_present_username) {
12712
        if (!(this_present_username && that_present_username))
12713
          return false;
12714
        if (!this.username.equals(that.username))
12715
          return false;
12716
      }
12717
 
12718
      boolean this_present_password = true && this.isSetPassword();
12719
      boolean that_present_password = true && that.isSetPassword();
12720
      if (this_present_password || that_present_password) {
12721
        if (!(this_present_password && that_present_password))
12722
          return false;
12723
        if (!this.password.equals(that.password))
12724
          return false;
12725
      }
12726
 
12727
      return true;
12728
    }
12729
 
12730
    @Override
12731
    public int hashCode() {
12732
      return 0;
12733
    }
12734
 
12735
    public int compareTo(authenticateStatisticsUser_args other) {
12736
      if (!getClass().equals(other.getClass())) {
12737
        return getClass().getName().compareTo(other.getClass().getName());
12738
      }
12739
 
12740
      int lastComparison = 0;
12741
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12742
 
3430 rajveer 12743
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12744
      if (lastComparison != 0) {
12745
        return lastComparison;
12746
      }
3430 rajveer 12747
      if (isSetUsername()) {
12748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12749
        if (lastComparison != 0) {
12750
          return lastComparison;
12751
        }
1611 ankur.sing 12752
      }
3430 rajveer 12753
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12754
      if (lastComparison != 0) {
12755
        return lastComparison;
12756
      }
3430 rajveer 12757
      if (isSetPassword()) {
12758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12759
        if (lastComparison != 0) {
12760
          return lastComparison;
12761
        }
1611 ankur.sing 12762
      }
12763
      return 0;
12764
    }
12765
 
3430 rajveer 12766
    public _Fields fieldForId(int fieldId) {
12767
      return _Fields.findByThriftId(fieldId);
12768
    }
12769
 
12770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12771
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12772
      iprot.readStructBegin();
12773
      while (true)
12774
      {
12775
        field = iprot.readFieldBegin();
3430 rajveer 12776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12777
          break;
12778
        }
3430 rajveer 12779
        switch (field.id) {
12780
          case 1: // USERNAME
12781
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12782
              this.username = iprot.readString();
12783
            } else { 
12784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12785
            }
12786
            break;
12787
          case 2: // PASSWORD
12788
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12789
              this.password = iprot.readString();
12790
            } else { 
12791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12792
            }
12793
            break;
12794
          default:
12795
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12796
        }
3430 rajveer 12797
        iprot.readFieldEnd();
1611 ankur.sing 12798
      }
12799
      iprot.readStructEnd();
12800
      validate();
12801
    }
12802
 
3430 rajveer 12803
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12804
      validate();
12805
 
12806
      oprot.writeStructBegin(STRUCT_DESC);
12807
      if (this.username != null) {
12808
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12809
        oprot.writeString(this.username);
12810
        oprot.writeFieldEnd();
12811
      }
12812
      if (this.password != null) {
12813
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12814
        oprot.writeString(this.password);
12815
        oprot.writeFieldEnd();
12816
      }
12817
      oprot.writeFieldStop();
12818
      oprot.writeStructEnd();
12819
    }
12820
 
12821
    @Override
12822
    public String toString() {
12823
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
12824
      boolean first = true;
12825
 
12826
      sb.append("username:");
12827
      if (this.username == null) {
12828
        sb.append("null");
12829
      } else {
12830
        sb.append(this.username);
12831
      }
12832
      first = false;
12833
      if (!first) sb.append(", ");
12834
      sb.append("password:");
12835
      if (this.password == null) {
12836
        sb.append("null");
12837
      } else {
12838
        sb.append(this.password);
12839
      }
12840
      first = false;
12841
      sb.append(")");
12842
      return sb.toString();
12843
    }
12844
 
3430 rajveer 12845
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12846
      // check for required fields
12847
    }
12848
 
3430 rajveer 12849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12850
      try {
12851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12852
      } catch (org.apache.thrift.TException te) {
12853
        throw new java.io.IOException(te);
12854
      }
12855
    }
12856
 
12857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12858
      try {
12859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12860
      } catch (org.apache.thrift.TException te) {
12861
        throw new java.io.IOException(te);
12862
      }
12863
    }
12864
 
1611 ankur.sing 12865
  }
12866
 
3430 rajveer 12867
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 12869
 
3430 rajveer 12870
    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);
12871
    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 12872
 
3430 rajveer 12873
    private StatisticsUser success; // required
12874
    private HelperServiceException hse; // required
1611 ankur.sing 12875
 
12876
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12877
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12878
      SUCCESS((short)0, "success"),
12879
      HSE((short)1, "hse");
12880
 
12881
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12882
 
12883
      static {
12884
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12885
          byName.put(field.getFieldName(), field);
12886
        }
12887
      }
12888
 
12889
      /**
12890
       * Find the _Fields constant that matches fieldId, or null if its not found.
12891
       */
12892
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12893
        switch(fieldId) {
12894
          case 0: // SUCCESS
12895
            return SUCCESS;
12896
          case 1: // HSE
12897
            return HSE;
12898
          default:
12899
            return null;
12900
        }
1611 ankur.sing 12901
      }
12902
 
12903
      /**
12904
       * Find the _Fields constant that matches fieldId, throwing an exception
12905
       * if it is not found.
12906
       */
12907
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12908
        _Fields fields = findByThriftId(fieldId);
12909
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12910
        return fields;
12911
      }
12912
 
12913
      /**
12914
       * Find the _Fields constant that matches name, or null if its not found.
12915
       */
12916
      public static _Fields findByName(String name) {
12917
        return byName.get(name);
12918
      }
12919
 
12920
      private final short _thriftId;
12921
      private final String _fieldName;
12922
 
12923
      _Fields(short thriftId, String fieldName) {
12924
        _thriftId = thriftId;
12925
        _fieldName = fieldName;
12926
      }
12927
 
12928
      public short getThriftFieldId() {
12929
        return _thriftId;
12930
      }
12931
 
12932
      public String getFieldName() {
12933
        return _fieldName;
12934
      }
12935
    }
12936
 
12937
    // isset id assignments
12938
 
3430 rajveer 12939
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12940
    static {
3430 rajveer 12941
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12942
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12943
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
12944
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12945
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12946
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12947
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 12948
    }
12949
 
12950
    public authenticateStatisticsUser_result() {
12951
    }
12952
 
12953
    public authenticateStatisticsUser_result(
12954
      StatisticsUser success,
12955
      HelperServiceException hse)
12956
    {
12957
      this();
12958
      this.success = success;
12959
      this.hse = hse;
12960
    }
12961
 
12962
    /**
12963
     * Performs a deep copy on <i>other</i>.
12964
     */
12965
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
12966
      if (other.isSetSuccess()) {
12967
        this.success = new StatisticsUser(other.success);
12968
      }
12969
      if (other.isSetHse()) {
12970
        this.hse = new HelperServiceException(other.hse);
12971
      }
12972
    }
12973
 
12974
    public authenticateStatisticsUser_result deepCopy() {
12975
      return new authenticateStatisticsUser_result(this);
12976
    }
12977
 
3430 rajveer 12978
    @Override
12979
    public void clear() {
12980
      this.success = null;
12981
      this.hse = null;
1611 ankur.sing 12982
    }
12983
 
12984
    public StatisticsUser getSuccess() {
12985
      return this.success;
12986
    }
12987
 
3430 rajveer 12988
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 12989
      this.success = success;
12990
    }
12991
 
12992
    public void unsetSuccess() {
12993
      this.success = null;
12994
    }
12995
 
3430 rajveer 12996
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12997
    public boolean isSetSuccess() {
12998
      return this.success != null;
12999
    }
13000
 
13001
    public void setSuccessIsSet(boolean value) {
13002
      if (!value) {
13003
        this.success = null;
13004
      }
13005
    }
13006
 
13007
    public HelperServiceException getHse() {
13008
      return this.hse;
13009
    }
13010
 
3430 rajveer 13011
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13012
      this.hse = hse;
13013
    }
13014
 
13015
    public void unsetHse() {
13016
      this.hse = null;
13017
    }
13018
 
3430 rajveer 13019
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13020
    public boolean isSetHse() {
13021
      return this.hse != null;
13022
    }
13023
 
13024
    public void setHseIsSet(boolean value) {
13025
      if (!value) {
13026
        this.hse = null;
13027
      }
13028
    }
13029
 
13030
    public void setFieldValue(_Fields field, Object value) {
13031
      switch (field) {
13032
      case SUCCESS:
13033
        if (value == null) {
13034
          unsetSuccess();
13035
        } else {
13036
          setSuccess((StatisticsUser)value);
13037
        }
13038
        break;
13039
 
13040
      case HSE:
13041
        if (value == null) {
13042
          unsetHse();
13043
        } else {
13044
          setHse((HelperServiceException)value);
13045
        }
13046
        break;
13047
 
13048
      }
13049
    }
13050
 
13051
    public Object getFieldValue(_Fields field) {
13052
      switch (field) {
13053
      case SUCCESS:
13054
        return getSuccess();
13055
 
13056
      case HSE:
13057
        return getHse();
13058
 
13059
      }
13060
      throw new IllegalStateException();
13061
    }
13062
 
3430 rajveer 13063
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13064
    public boolean isSet(_Fields field) {
13065
      if (field == null) {
13066
        throw new IllegalArgumentException();
13067
      }
1611 ankur.sing 13068
 
13069
      switch (field) {
13070
      case SUCCESS:
13071
        return isSetSuccess();
13072
      case HSE:
13073
        return isSetHse();
13074
      }
13075
      throw new IllegalStateException();
13076
    }
13077
 
13078
    @Override
13079
    public boolean equals(Object that) {
13080
      if (that == null)
13081
        return false;
13082
      if (that instanceof authenticateStatisticsUser_result)
13083
        return this.equals((authenticateStatisticsUser_result)that);
13084
      return false;
13085
    }
13086
 
13087
    public boolean equals(authenticateStatisticsUser_result that) {
13088
      if (that == null)
13089
        return false;
13090
 
13091
      boolean this_present_success = true && this.isSetSuccess();
13092
      boolean that_present_success = true && that.isSetSuccess();
13093
      if (this_present_success || that_present_success) {
13094
        if (!(this_present_success && that_present_success))
13095
          return false;
13096
        if (!this.success.equals(that.success))
13097
          return false;
13098
      }
13099
 
13100
      boolean this_present_hse = true && this.isSetHse();
13101
      boolean that_present_hse = true && that.isSetHse();
13102
      if (this_present_hse || that_present_hse) {
13103
        if (!(this_present_hse && that_present_hse))
13104
          return false;
13105
        if (!this.hse.equals(that.hse))
13106
          return false;
13107
      }
13108
 
13109
      return true;
13110
    }
13111
 
13112
    @Override
13113
    public int hashCode() {
13114
      return 0;
13115
    }
13116
 
13117
    public int compareTo(authenticateStatisticsUser_result other) {
13118
      if (!getClass().equals(other.getClass())) {
13119
        return getClass().getName().compareTo(other.getClass().getName());
13120
      }
13121
 
13122
      int lastComparison = 0;
13123
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13124
 
3430 rajveer 13125
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13126
      if (lastComparison != 0) {
13127
        return lastComparison;
13128
      }
3430 rajveer 13129
      if (isSetSuccess()) {
13130
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13131
        if (lastComparison != 0) {
13132
          return lastComparison;
13133
        }
1611 ankur.sing 13134
      }
3430 rajveer 13135
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13136
      if (lastComparison != 0) {
13137
        return lastComparison;
13138
      }
3430 rajveer 13139
      if (isSetHse()) {
13140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13141
        if (lastComparison != 0) {
13142
          return lastComparison;
13143
        }
1611 ankur.sing 13144
      }
13145
      return 0;
13146
    }
13147
 
3430 rajveer 13148
    public _Fields fieldForId(int fieldId) {
13149
      return _Fields.findByThriftId(fieldId);
13150
    }
13151
 
13152
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13153
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13154
      iprot.readStructBegin();
13155
      while (true)
13156
      {
13157
        field = iprot.readFieldBegin();
3430 rajveer 13158
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13159
          break;
13160
        }
3430 rajveer 13161
        switch (field.id) {
13162
          case 0: // SUCCESS
13163
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13164
              this.success = new StatisticsUser();
13165
              this.success.read(iprot);
13166
            } else { 
13167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13168
            }
13169
            break;
13170
          case 1: // HSE
13171
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13172
              this.hse = new HelperServiceException();
13173
              this.hse.read(iprot);
13174
            } else { 
13175
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13176
            }
13177
            break;
13178
          default:
13179
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13180
        }
3430 rajveer 13181
        iprot.readFieldEnd();
1611 ankur.sing 13182
      }
13183
      iprot.readStructEnd();
13184
      validate();
13185
    }
13186
 
3430 rajveer 13187
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13188
      oprot.writeStructBegin(STRUCT_DESC);
13189
 
13190
      if (this.isSetSuccess()) {
13191
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13192
        this.success.write(oprot);
13193
        oprot.writeFieldEnd();
13194
      } else if (this.isSetHse()) {
13195
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13196
        this.hse.write(oprot);
13197
        oprot.writeFieldEnd();
13198
      }
13199
      oprot.writeFieldStop();
13200
      oprot.writeStructEnd();
13201
    }
13202
 
13203
    @Override
13204
    public String toString() {
13205
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13206
      boolean first = true;
13207
 
13208
      sb.append("success:");
13209
      if (this.success == null) {
13210
        sb.append("null");
13211
      } else {
13212
        sb.append(this.success);
13213
      }
13214
      first = false;
13215
      if (!first) sb.append(", ");
13216
      sb.append("hse:");
13217
      if (this.hse == null) {
13218
        sb.append("null");
13219
      } else {
13220
        sb.append(this.hse);
13221
      }
13222
      first = false;
13223
      sb.append(")");
13224
      return sb.toString();
13225
    }
13226
 
3430 rajveer 13227
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13228
      // check for required fields
13229
    }
13230
 
3430 rajveer 13231
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13232
      try {
13233
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13234
      } catch (org.apache.thrift.TException te) {
13235
        throw new java.io.IOException(te);
13236
      }
13237
    }
13238
 
13239
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13240
      try {
13241
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13242
      } catch (org.apache.thrift.TException te) {
13243
        throw new java.io.IOException(te);
13244
      }
13245
    }
13246
 
1611 ankur.sing 13247
  }
13248
 
3430 rajveer 13249
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13250
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13251
 
3430 rajveer 13252
    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);
13253
    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 13254
 
3430 rajveer 13255
    private String username; // required
13256
    private String password; // required
1891 ankur.sing 13257
 
13258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13260
      USERNAME((short)1, "username"),
13261
      PASSWORD((short)2, "password");
13262
 
13263
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13264
 
13265
      static {
13266
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13267
          byName.put(field.getFieldName(), field);
13268
        }
13269
      }
13270
 
13271
      /**
13272
       * Find the _Fields constant that matches fieldId, or null if its not found.
13273
       */
13274
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13275
        switch(fieldId) {
13276
          case 1: // USERNAME
13277
            return USERNAME;
13278
          case 2: // PASSWORD
13279
            return PASSWORD;
13280
          default:
13281
            return null;
13282
        }
1891 ankur.sing 13283
      }
13284
 
13285
      /**
13286
       * Find the _Fields constant that matches fieldId, throwing an exception
13287
       * if it is not found.
13288
       */
13289
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13290
        _Fields fields = findByThriftId(fieldId);
13291
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13292
        return fields;
13293
      }
13294
 
13295
      /**
13296
       * Find the _Fields constant that matches name, or null if its not found.
13297
       */
13298
      public static _Fields findByName(String name) {
13299
        return byName.get(name);
13300
      }
13301
 
13302
      private final short _thriftId;
13303
      private final String _fieldName;
13304
 
13305
      _Fields(short thriftId, String fieldName) {
13306
        _thriftId = thriftId;
13307
        _fieldName = fieldName;
13308
      }
13309
 
13310
      public short getThriftFieldId() {
13311
        return _thriftId;
13312
      }
13313
 
13314
      public String getFieldName() {
13315
        return _fieldName;
13316
      }
13317
    }
13318
 
13319
    // isset id assignments
13320
 
3430 rajveer 13321
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13322
    static {
3430 rajveer 13323
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13324
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13326
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13330
    }
13331
 
13332
    public authenticateReportUser_args() {
13333
    }
13334
 
13335
    public authenticateReportUser_args(
13336
      String username,
13337
      String password)
13338
    {
13339
      this();
13340
      this.username = username;
13341
      this.password = password;
13342
    }
13343
 
13344
    /**
13345
     * Performs a deep copy on <i>other</i>.
13346
     */
13347
    public authenticateReportUser_args(authenticateReportUser_args other) {
13348
      if (other.isSetUsername()) {
13349
        this.username = other.username;
13350
      }
13351
      if (other.isSetPassword()) {
13352
        this.password = other.password;
13353
      }
13354
    }
13355
 
13356
    public authenticateReportUser_args deepCopy() {
13357
      return new authenticateReportUser_args(this);
13358
    }
13359
 
3430 rajveer 13360
    @Override
13361
    public void clear() {
13362
      this.username = null;
13363
      this.password = null;
1891 ankur.sing 13364
    }
13365
 
13366
    public String getUsername() {
13367
      return this.username;
13368
    }
13369
 
3430 rajveer 13370
    public void setUsername(String username) {
1891 ankur.sing 13371
      this.username = username;
13372
    }
13373
 
13374
    public void unsetUsername() {
13375
      this.username = null;
13376
    }
13377
 
3430 rajveer 13378
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13379
    public boolean isSetUsername() {
13380
      return this.username != null;
13381
    }
13382
 
13383
    public void setUsernameIsSet(boolean value) {
13384
      if (!value) {
13385
        this.username = null;
13386
      }
13387
    }
13388
 
13389
    public String getPassword() {
13390
      return this.password;
13391
    }
13392
 
3430 rajveer 13393
    public void setPassword(String password) {
1891 ankur.sing 13394
      this.password = password;
13395
    }
13396
 
13397
    public void unsetPassword() {
13398
      this.password = null;
13399
    }
13400
 
3430 rajveer 13401
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13402
    public boolean isSetPassword() {
13403
      return this.password != null;
13404
    }
13405
 
13406
    public void setPasswordIsSet(boolean value) {
13407
      if (!value) {
13408
        this.password = null;
13409
      }
13410
    }
13411
 
13412
    public void setFieldValue(_Fields field, Object value) {
13413
      switch (field) {
13414
      case USERNAME:
13415
        if (value == null) {
13416
          unsetUsername();
13417
        } else {
13418
          setUsername((String)value);
13419
        }
13420
        break;
13421
 
13422
      case PASSWORD:
13423
        if (value == null) {
13424
          unsetPassword();
13425
        } else {
13426
          setPassword((String)value);
13427
        }
13428
        break;
13429
 
13430
      }
13431
    }
13432
 
13433
    public Object getFieldValue(_Fields field) {
13434
      switch (field) {
13435
      case USERNAME:
13436
        return getUsername();
13437
 
13438
      case PASSWORD:
13439
        return getPassword();
13440
 
13441
      }
13442
      throw new IllegalStateException();
13443
    }
13444
 
3430 rajveer 13445
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13446
    public boolean isSet(_Fields field) {
13447
      if (field == null) {
13448
        throw new IllegalArgumentException();
13449
      }
1891 ankur.sing 13450
 
13451
      switch (field) {
13452
      case USERNAME:
13453
        return isSetUsername();
13454
      case PASSWORD:
13455
        return isSetPassword();
13456
      }
13457
      throw new IllegalStateException();
13458
    }
13459
 
13460
    @Override
13461
    public boolean equals(Object that) {
13462
      if (that == null)
13463
        return false;
13464
      if (that instanceof authenticateReportUser_args)
13465
        return this.equals((authenticateReportUser_args)that);
13466
      return false;
13467
    }
13468
 
13469
    public boolean equals(authenticateReportUser_args that) {
13470
      if (that == null)
13471
        return false;
13472
 
13473
      boolean this_present_username = true && this.isSetUsername();
13474
      boolean that_present_username = true && that.isSetUsername();
13475
      if (this_present_username || that_present_username) {
13476
        if (!(this_present_username && that_present_username))
13477
          return false;
13478
        if (!this.username.equals(that.username))
13479
          return false;
13480
      }
13481
 
13482
      boolean this_present_password = true && this.isSetPassword();
13483
      boolean that_present_password = true && that.isSetPassword();
13484
      if (this_present_password || that_present_password) {
13485
        if (!(this_present_password && that_present_password))
13486
          return false;
13487
        if (!this.password.equals(that.password))
13488
          return false;
13489
      }
13490
 
13491
      return true;
13492
    }
13493
 
13494
    @Override
13495
    public int hashCode() {
13496
      return 0;
13497
    }
13498
 
13499
    public int compareTo(authenticateReportUser_args other) {
13500
      if (!getClass().equals(other.getClass())) {
13501
        return getClass().getName().compareTo(other.getClass().getName());
13502
      }
13503
 
13504
      int lastComparison = 0;
13505
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
13506
 
3430 rajveer 13507
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 13508
      if (lastComparison != 0) {
13509
        return lastComparison;
13510
      }
3430 rajveer 13511
      if (isSetUsername()) {
13512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13513
        if (lastComparison != 0) {
13514
          return lastComparison;
13515
        }
1891 ankur.sing 13516
      }
3430 rajveer 13517
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 13518
      if (lastComparison != 0) {
13519
        return lastComparison;
13520
      }
3430 rajveer 13521
      if (isSetPassword()) {
13522
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13523
        if (lastComparison != 0) {
13524
          return lastComparison;
13525
        }
1891 ankur.sing 13526
      }
13527
      return 0;
13528
    }
13529
 
3430 rajveer 13530
    public _Fields fieldForId(int fieldId) {
13531
      return _Fields.findByThriftId(fieldId);
13532
    }
13533
 
13534
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13535
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13536
      iprot.readStructBegin();
13537
      while (true)
13538
      {
13539
        field = iprot.readFieldBegin();
3430 rajveer 13540
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13541
          break;
13542
        }
3430 rajveer 13543
        switch (field.id) {
13544
          case 1: // USERNAME
13545
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13546
              this.username = iprot.readString();
13547
            } else { 
13548
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13549
            }
13550
            break;
13551
          case 2: // PASSWORD
13552
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13553
              this.password = iprot.readString();
13554
            } else { 
13555
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13556
            }
13557
            break;
13558
          default:
13559
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13560
        }
3430 rajveer 13561
        iprot.readFieldEnd();
1891 ankur.sing 13562
      }
13563
      iprot.readStructEnd();
13564
      validate();
13565
    }
13566
 
3430 rajveer 13567
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13568
      validate();
13569
 
13570
      oprot.writeStructBegin(STRUCT_DESC);
13571
      if (this.username != null) {
13572
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13573
        oprot.writeString(this.username);
13574
        oprot.writeFieldEnd();
13575
      }
13576
      if (this.password != null) {
13577
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13578
        oprot.writeString(this.password);
13579
        oprot.writeFieldEnd();
13580
      }
13581
      oprot.writeFieldStop();
13582
      oprot.writeStructEnd();
13583
    }
13584
 
13585
    @Override
13586
    public String toString() {
13587
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
13588
      boolean first = true;
13589
 
13590
      sb.append("username:");
13591
      if (this.username == null) {
13592
        sb.append("null");
13593
      } else {
13594
        sb.append(this.username);
13595
      }
13596
      first = false;
13597
      if (!first) sb.append(", ");
13598
      sb.append("password:");
13599
      if (this.password == null) {
13600
        sb.append("null");
13601
      } else {
13602
        sb.append(this.password);
13603
      }
13604
      first = false;
13605
      sb.append(")");
13606
      return sb.toString();
13607
    }
13608
 
3430 rajveer 13609
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13610
      // check for required fields
13611
    }
13612
 
3430 rajveer 13613
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13614
      try {
13615
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13616
      } catch (org.apache.thrift.TException te) {
13617
        throw new java.io.IOException(te);
13618
      }
13619
    }
13620
 
13621
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13622
      try {
13623
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13624
      } catch (org.apache.thrift.TException te) {
13625
        throw new java.io.IOException(te);
13626
      }
13627
    }
13628
 
1891 ankur.sing 13629
  }
13630
 
3430 rajveer 13631
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
13632
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 13633
 
3430 rajveer 13634
    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);
13635
    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 13636
 
3430 rajveer 13637
    private ReportUser success; // required
13638
    private HelperServiceException hse; // required
1891 ankur.sing 13639
 
13640
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13641
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13642
      SUCCESS((short)0, "success"),
13643
      HSE((short)1, "hse");
13644
 
13645
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13646
 
13647
      static {
13648
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13649
          byName.put(field.getFieldName(), field);
13650
        }
13651
      }
13652
 
13653
      /**
13654
       * Find the _Fields constant that matches fieldId, or null if its not found.
13655
       */
13656
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13657
        switch(fieldId) {
13658
          case 0: // SUCCESS
13659
            return SUCCESS;
13660
          case 1: // HSE
13661
            return HSE;
13662
          default:
13663
            return null;
13664
        }
1891 ankur.sing 13665
      }
13666
 
13667
      /**
13668
       * Find the _Fields constant that matches fieldId, throwing an exception
13669
       * if it is not found.
13670
       */
13671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13672
        _Fields fields = findByThriftId(fieldId);
13673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13674
        return fields;
13675
      }
13676
 
13677
      /**
13678
       * Find the _Fields constant that matches name, or null if its not found.
13679
       */
13680
      public static _Fields findByName(String name) {
13681
        return byName.get(name);
13682
      }
13683
 
13684
      private final short _thriftId;
13685
      private final String _fieldName;
13686
 
13687
      _Fields(short thriftId, String fieldName) {
13688
        _thriftId = thriftId;
13689
        _fieldName = fieldName;
13690
      }
13691
 
13692
      public short getThriftFieldId() {
13693
        return _thriftId;
13694
      }
13695
 
13696
      public String getFieldName() {
13697
        return _fieldName;
13698
      }
13699
    }
13700
 
13701
    // isset id assignments
13702
 
3430 rajveer 13703
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13704
    static {
3430 rajveer 13705
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13706
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13707
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13708
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13712
    }
13713
 
13714
    public authenticateReportUser_result() {
13715
    }
13716
 
13717
    public authenticateReportUser_result(
13718
      ReportUser success,
13719
      HelperServiceException hse)
13720
    {
13721
      this();
13722
      this.success = success;
13723
      this.hse = hse;
13724
    }
13725
 
13726
    /**
13727
     * Performs a deep copy on <i>other</i>.
13728
     */
13729
    public authenticateReportUser_result(authenticateReportUser_result other) {
13730
      if (other.isSetSuccess()) {
13731
        this.success = new ReportUser(other.success);
13732
      }
13733
      if (other.isSetHse()) {
13734
        this.hse = new HelperServiceException(other.hse);
13735
      }
13736
    }
13737
 
13738
    public authenticateReportUser_result deepCopy() {
13739
      return new authenticateReportUser_result(this);
13740
    }
13741
 
3430 rajveer 13742
    @Override
13743
    public void clear() {
13744
      this.success = null;
13745
      this.hse = null;
1891 ankur.sing 13746
    }
13747
 
13748
    public ReportUser getSuccess() {
13749
      return this.success;
13750
    }
13751
 
3430 rajveer 13752
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13753
      this.success = success;
13754
    }
13755
 
13756
    public void unsetSuccess() {
13757
      this.success = null;
13758
    }
13759
 
3430 rajveer 13760
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13761
    public boolean isSetSuccess() {
13762
      return this.success != null;
13763
    }
13764
 
13765
    public void setSuccessIsSet(boolean value) {
13766
      if (!value) {
13767
        this.success = null;
13768
      }
13769
    }
13770
 
13771
    public HelperServiceException getHse() {
13772
      return this.hse;
13773
    }
13774
 
3430 rajveer 13775
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13776
      this.hse = hse;
13777
    }
13778
 
13779
    public void unsetHse() {
13780
      this.hse = null;
13781
    }
13782
 
3430 rajveer 13783
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13784
    public boolean isSetHse() {
13785
      return this.hse != null;
13786
    }
13787
 
13788
    public void setHseIsSet(boolean value) {
13789
      if (!value) {
13790
        this.hse = null;
13791
      }
13792
    }
13793
 
13794
    public void setFieldValue(_Fields field, Object value) {
13795
      switch (field) {
13796
      case SUCCESS:
13797
        if (value == null) {
13798
          unsetSuccess();
13799
        } else {
13800
          setSuccess((ReportUser)value);
13801
        }
13802
        break;
13803
 
13804
      case HSE:
13805
        if (value == null) {
13806
          unsetHse();
13807
        } else {
13808
          setHse((HelperServiceException)value);
13809
        }
13810
        break;
13811
 
13812
      }
13813
    }
13814
 
13815
    public Object getFieldValue(_Fields field) {
13816
      switch (field) {
13817
      case SUCCESS:
13818
        return getSuccess();
13819
 
13820
      case HSE:
13821
        return getHse();
13822
 
13823
      }
13824
      throw new IllegalStateException();
13825
    }
13826
 
3430 rajveer 13827
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13828
    public boolean isSet(_Fields field) {
13829
      if (field == null) {
13830
        throw new IllegalArgumentException();
13831
      }
1891 ankur.sing 13832
 
13833
      switch (field) {
13834
      case SUCCESS:
13835
        return isSetSuccess();
13836
      case HSE:
13837
        return isSetHse();
13838
      }
13839
      throw new IllegalStateException();
13840
    }
13841
 
13842
    @Override
13843
    public boolean equals(Object that) {
13844
      if (that == null)
13845
        return false;
13846
      if (that instanceof authenticateReportUser_result)
13847
        return this.equals((authenticateReportUser_result)that);
13848
      return false;
13849
    }
13850
 
13851
    public boolean equals(authenticateReportUser_result that) {
13852
      if (that == null)
13853
        return false;
13854
 
13855
      boolean this_present_success = true && this.isSetSuccess();
13856
      boolean that_present_success = true && that.isSetSuccess();
13857
      if (this_present_success || that_present_success) {
13858
        if (!(this_present_success && that_present_success))
13859
          return false;
13860
        if (!this.success.equals(that.success))
13861
          return false;
13862
      }
13863
 
13864
      boolean this_present_hse = true && this.isSetHse();
13865
      boolean that_present_hse = true && that.isSetHse();
13866
      if (this_present_hse || that_present_hse) {
13867
        if (!(this_present_hse && that_present_hse))
13868
          return false;
13869
        if (!this.hse.equals(that.hse))
13870
          return false;
13871
      }
13872
 
13873
      return true;
13874
    }
13875
 
13876
    @Override
13877
    public int hashCode() {
13878
      return 0;
13879
    }
13880
 
13881
    public int compareTo(authenticateReportUser_result other) {
13882
      if (!getClass().equals(other.getClass())) {
13883
        return getClass().getName().compareTo(other.getClass().getName());
13884
      }
13885
 
13886
      int lastComparison = 0;
13887
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13888
 
3430 rajveer 13889
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13890
      if (lastComparison != 0) {
13891
        return lastComparison;
13892
      }
3430 rajveer 13893
      if (isSetSuccess()) {
13894
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13895
        if (lastComparison != 0) {
13896
          return lastComparison;
13897
        }
1891 ankur.sing 13898
      }
3430 rajveer 13899
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 13900
      if (lastComparison != 0) {
13901
        return lastComparison;
13902
      }
3430 rajveer 13903
      if (isSetHse()) {
13904
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13905
        if (lastComparison != 0) {
13906
          return lastComparison;
13907
        }
1891 ankur.sing 13908
      }
13909
      return 0;
13910
    }
13911
 
3430 rajveer 13912
    public _Fields fieldForId(int fieldId) {
13913
      return _Fields.findByThriftId(fieldId);
13914
    }
13915
 
13916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13917
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13918
      iprot.readStructBegin();
13919
      while (true)
13920
      {
13921
        field = iprot.readFieldBegin();
3430 rajveer 13922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13923
          break;
13924
        }
3430 rajveer 13925
        switch (field.id) {
13926
          case 0: // SUCCESS
13927
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13928
              this.success = new ReportUser();
13929
              this.success.read(iprot);
13930
            } else { 
13931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13932
            }
13933
            break;
13934
          case 1: // HSE
13935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13936
              this.hse = new HelperServiceException();
13937
              this.hse.read(iprot);
13938
            } else { 
13939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13940
            }
13941
            break;
13942
          default:
13943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13944
        }
3430 rajveer 13945
        iprot.readFieldEnd();
1891 ankur.sing 13946
      }
13947
      iprot.readStructEnd();
13948
      validate();
13949
    }
13950
 
3430 rajveer 13951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13952
      oprot.writeStructBegin(STRUCT_DESC);
13953
 
13954
      if (this.isSetSuccess()) {
13955
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13956
        this.success.write(oprot);
13957
        oprot.writeFieldEnd();
13958
      } else if (this.isSetHse()) {
13959
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13960
        this.hse.write(oprot);
13961
        oprot.writeFieldEnd();
13962
      }
13963
      oprot.writeFieldStop();
13964
      oprot.writeStructEnd();
13965
    }
13966
 
13967
    @Override
13968
    public String toString() {
13969
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
13970
      boolean first = true;
13971
 
13972
      sb.append("success:");
13973
      if (this.success == null) {
13974
        sb.append("null");
13975
      } else {
13976
        sb.append(this.success);
13977
      }
13978
      first = false;
13979
      if (!first) sb.append(", ");
13980
      sb.append("hse:");
13981
      if (this.hse == null) {
13982
        sb.append("null");
13983
      } else {
13984
        sb.append(this.hse);
13985
      }
13986
      first = false;
13987
      sb.append(")");
13988
      return sb.toString();
13989
    }
13990
 
3430 rajveer 13991
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13992
      // check for required fields
13993
    }
13994
 
3430 rajveer 13995
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13996
      try {
13997
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13998
      } catch (org.apache.thrift.TException te) {
13999
        throw new java.io.IOException(te);
14000
      }
14001
    }
14002
 
14003
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14004
      try {
14005
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14006
      } catch (org.apache.thrift.TException te) {
14007
        throw new java.io.IOException(te);
14008
      }
14009
    }
14010
 
1891 ankur.sing 14011
  }
14012
 
3430 rajveer 14013
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14014
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14015
 
3430 rajveer 14016
    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 14017
 
3430 rajveer 14018
    private long role; // required
1891 ankur.sing 14019
 
14020
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14021
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14022
      ROLE((short)1, "role");
14023
 
14024
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14025
 
14026
      static {
14027
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14028
          byName.put(field.getFieldName(), field);
14029
        }
14030
      }
14031
 
14032
      /**
14033
       * Find the _Fields constant that matches fieldId, or null if its not found.
14034
       */
14035
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14036
        switch(fieldId) {
14037
          case 1: // ROLE
14038
            return ROLE;
14039
          default:
14040
            return null;
14041
        }
1891 ankur.sing 14042
      }
14043
 
14044
      /**
14045
       * Find the _Fields constant that matches fieldId, throwing an exception
14046
       * if it is not found.
14047
       */
14048
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14049
        _Fields fields = findByThriftId(fieldId);
14050
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14051
        return fields;
14052
      }
14053
 
14054
      /**
14055
       * Find the _Fields constant that matches name, or null if its not found.
14056
       */
14057
      public static _Fields findByName(String name) {
14058
        return byName.get(name);
14059
      }
14060
 
14061
      private final short _thriftId;
14062
      private final String _fieldName;
14063
 
14064
      _Fields(short thriftId, String fieldName) {
14065
        _thriftId = thriftId;
14066
        _fieldName = fieldName;
14067
      }
14068
 
14069
      public short getThriftFieldId() {
14070
        return _thriftId;
14071
      }
14072
 
14073
      public String getFieldName() {
14074
        return _fieldName;
14075
      }
14076
    }
14077
 
14078
    // isset id assignments
14079
    private static final int __ROLE_ISSET_ID = 0;
14080
    private BitSet __isset_bit_vector = new BitSet(1);
14081
 
3430 rajveer 14082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14083
    static {
3430 rajveer 14084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14085
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14089
    }
14090
 
14091
    public getReports_args() {
14092
    }
14093
 
14094
    public getReports_args(
14095
      long role)
14096
    {
14097
      this();
14098
      this.role = role;
14099
      setRoleIsSet(true);
14100
    }
14101
 
14102
    /**
14103
     * Performs a deep copy on <i>other</i>.
14104
     */
14105
    public getReports_args(getReports_args other) {
14106
      __isset_bit_vector.clear();
14107
      __isset_bit_vector.or(other.__isset_bit_vector);
14108
      this.role = other.role;
14109
    }
14110
 
14111
    public getReports_args deepCopy() {
14112
      return new getReports_args(this);
14113
    }
14114
 
3430 rajveer 14115
    @Override
14116
    public void clear() {
14117
      setRoleIsSet(false);
14118
      this.role = 0;
1891 ankur.sing 14119
    }
14120
 
14121
    public long getRole() {
14122
      return this.role;
14123
    }
14124
 
3430 rajveer 14125
    public void setRole(long role) {
1891 ankur.sing 14126
      this.role = role;
14127
      setRoleIsSet(true);
14128
    }
14129
 
14130
    public void unsetRole() {
14131
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14132
    }
14133
 
3430 rajveer 14134
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14135
    public boolean isSetRole() {
14136
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14137
    }
14138
 
14139
    public void setRoleIsSet(boolean value) {
14140
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14141
    }
14142
 
14143
    public void setFieldValue(_Fields field, Object value) {
14144
      switch (field) {
14145
      case ROLE:
14146
        if (value == null) {
14147
          unsetRole();
14148
        } else {
14149
          setRole((Long)value);
14150
        }
14151
        break;
14152
 
14153
      }
14154
    }
14155
 
14156
    public Object getFieldValue(_Fields field) {
14157
      switch (field) {
14158
      case ROLE:
3430 rajveer 14159
        return Long.valueOf(getRole());
1891 ankur.sing 14160
 
14161
      }
14162
      throw new IllegalStateException();
14163
    }
14164
 
3430 rajveer 14165
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14166
    public boolean isSet(_Fields field) {
14167
      if (field == null) {
14168
        throw new IllegalArgumentException();
14169
      }
1891 ankur.sing 14170
 
14171
      switch (field) {
14172
      case ROLE:
14173
        return isSetRole();
14174
      }
14175
      throw new IllegalStateException();
14176
    }
14177
 
14178
    @Override
14179
    public boolean equals(Object that) {
14180
      if (that == null)
14181
        return false;
14182
      if (that instanceof getReports_args)
14183
        return this.equals((getReports_args)that);
14184
      return false;
14185
    }
14186
 
14187
    public boolean equals(getReports_args that) {
14188
      if (that == null)
14189
        return false;
14190
 
14191
      boolean this_present_role = true;
14192
      boolean that_present_role = true;
14193
      if (this_present_role || that_present_role) {
14194
        if (!(this_present_role && that_present_role))
14195
          return false;
14196
        if (this.role != that.role)
14197
          return false;
14198
      }
14199
 
14200
      return true;
14201
    }
14202
 
14203
    @Override
14204
    public int hashCode() {
14205
      return 0;
14206
    }
14207
 
14208
    public int compareTo(getReports_args other) {
14209
      if (!getClass().equals(other.getClass())) {
14210
        return getClass().getName().compareTo(other.getClass().getName());
14211
      }
14212
 
14213
      int lastComparison = 0;
14214
      getReports_args typedOther = (getReports_args)other;
14215
 
3430 rajveer 14216
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14217
      if (lastComparison != 0) {
14218
        return lastComparison;
14219
      }
3430 rajveer 14220
      if (isSetRole()) {
14221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14222
        if (lastComparison != 0) {
14223
          return lastComparison;
14224
        }
1891 ankur.sing 14225
      }
14226
      return 0;
14227
    }
14228
 
3430 rajveer 14229
    public _Fields fieldForId(int fieldId) {
14230
      return _Fields.findByThriftId(fieldId);
14231
    }
14232
 
14233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14234
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14235
      iprot.readStructBegin();
14236
      while (true)
14237
      {
14238
        field = iprot.readFieldBegin();
3430 rajveer 14239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14240
          break;
14241
        }
3430 rajveer 14242
        switch (field.id) {
14243
          case 1: // ROLE
14244
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14245
              this.role = iprot.readI64();
14246
              setRoleIsSet(true);
14247
            } else { 
14248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14249
            }
14250
            break;
14251
          default:
14252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14253
        }
3430 rajveer 14254
        iprot.readFieldEnd();
1891 ankur.sing 14255
      }
14256
      iprot.readStructEnd();
14257
      validate();
14258
    }
14259
 
3430 rajveer 14260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14261
      validate();
14262
 
14263
      oprot.writeStructBegin(STRUCT_DESC);
14264
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14265
      oprot.writeI64(this.role);
14266
      oprot.writeFieldEnd();
14267
      oprot.writeFieldStop();
14268
      oprot.writeStructEnd();
14269
    }
14270
 
14271
    @Override
14272
    public String toString() {
14273
      StringBuilder sb = new StringBuilder("getReports_args(");
14274
      boolean first = true;
14275
 
14276
      sb.append("role:");
14277
      sb.append(this.role);
14278
      first = false;
14279
      sb.append(")");
14280
      return sb.toString();
14281
    }
14282
 
3430 rajveer 14283
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14284
      // check for required fields
14285
    }
14286
 
3430 rajveer 14287
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14288
      try {
14289
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14290
      } catch (org.apache.thrift.TException te) {
14291
        throw new java.io.IOException(te);
14292
      }
14293
    }
14294
 
14295
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14296
      try {
14297
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14298
        __isset_bit_vector = new BitSet(1);
14299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14300
      } catch (org.apache.thrift.TException te) {
14301
        throw new java.io.IOException(te);
14302
      }
14303
    }
14304
 
1891 ankur.sing 14305
  }
14306
 
3430 rajveer 14307
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14309
 
3430 rajveer 14310
    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 14311
 
3430 rajveer 14312
    private List<Report> success; // required
1891 ankur.sing 14313
 
14314
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14315
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14316
      SUCCESS((short)0, "success");
14317
 
14318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14319
 
14320
      static {
14321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14322
          byName.put(field.getFieldName(), field);
14323
        }
14324
      }
14325
 
14326
      /**
14327
       * Find the _Fields constant that matches fieldId, or null if its not found.
14328
       */
14329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14330
        switch(fieldId) {
14331
          case 0: // SUCCESS
14332
            return SUCCESS;
14333
          default:
14334
            return null;
14335
        }
1891 ankur.sing 14336
      }
14337
 
14338
      /**
14339
       * Find the _Fields constant that matches fieldId, throwing an exception
14340
       * if it is not found.
14341
       */
14342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14343
        _Fields fields = findByThriftId(fieldId);
14344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14345
        return fields;
14346
      }
14347
 
14348
      /**
14349
       * Find the _Fields constant that matches name, or null if its not found.
14350
       */
14351
      public static _Fields findByName(String name) {
14352
        return byName.get(name);
14353
      }
14354
 
14355
      private final short _thriftId;
14356
      private final String _fieldName;
14357
 
14358
      _Fields(short thriftId, String fieldName) {
14359
        _thriftId = thriftId;
14360
        _fieldName = fieldName;
14361
      }
14362
 
14363
      public short getThriftFieldId() {
14364
        return _thriftId;
14365
      }
14366
 
14367
      public String getFieldName() {
14368
        return _fieldName;
14369
      }
14370
    }
14371
 
14372
    // isset id assignments
14373
 
3430 rajveer 14374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14375
    static {
3430 rajveer 14376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14377
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14378
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14379
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14380
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14381
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14382
    }
14383
 
14384
    public getReports_result() {
14385
    }
14386
 
14387
    public getReports_result(
14388
      List<Report> success)
14389
    {
14390
      this();
14391
      this.success = success;
14392
    }
14393
 
14394
    /**
14395
     * Performs a deep copy on <i>other</i>.
14396
     */
14397
    public getReports_result(getReports_result other) {
14398
      if (other.isSetSuccess()) {
14399
        List<Report> __this__success = new ArrayList<Report>();
14400
        for (Report other_element : other.success) {
14401
          __this__success.add(new Report(other_element));
14402
        }
14403
        this.success = __this__success;
14404
      }
14405
    }
14406
 
14407
    public getReports_result deepCopy() {
14408
      return new getReports_result(this);
14409
    }
14410
 
3430 rajveer 14411
    @Override
14412
    public void clear() {
14413
      this.success = null;
1891 ankur.sing 14414
    }
14415
 
14416
    public int getSuccessSize() {
14417
      return (this.success == null) ? 0 : this.success.size();
14418
    }
14419
 
14420
    public java.util.Iterator<Report> getSuccessIterator() {
14421
      return (this.success == null) ? null : this.success.iterator();
14422
    }
14423
 
14424
    public void addToSuccess(Report elem) {
14425
      if (this.success == null) {
14426
        this.success = new ArrayList<Report>();
14427
      }
14428
      this.success.add(elem);
14429
    }
14430
 
14431
    public List<Report> getSuccess() {
14432
      return this.success;
14433
    }
14434
 
3430 rajveer 14435
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14436
      this.success = success;
14437
    }
14438
 
14439
    public void unsetSuccess() {
14440
      this.success = null;
14441
    }
14442
 
3430 rajveer 14443
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14444
    public boolean isSetSuccess() {
14445
      return this.success != null;
14446
    }
14447
 
14448
    public void setSuccessIsSet(boolean value) {
14449
      if (!value) {
14450
        this.success = null;
14451
      }
14452
    }
14453
 
14454
    public void setFieldValue(_Fields field, Object value) {
14455
      switch (field) {
14456
      case SUCCESS:
14457
        if (value == null) {
14458
          unsetSuccess();
14459
        } else {
14460
          setSuccess((List<Report>)value);
14461
        }
14462
        break;
14463
 
14464
      }
14465
    }
14466
 
14467
    public Object getFieldValue(_Fields field) {
14468
      switch (field) {
14469
      case SUCCESS:
14470
        return getSuccess();
14471
 
14472
      }
14473
      throw new IllegalStateException();
14474
    }
14475
 
3430 rajveer 14476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14477
    public boolean isSet(_Fields field) {
14478
      if (field == null) {
14479
        throw new IllegalArgumentException();
14480
      }
1891 ankur.sing 14481
 
14482
      switch (field) {
14483
      case SUCCESS:
14484
        return isSetSuccess();
14485
      }
14486
      throw new IllegalStateException();
14487
    }
14488
 
14489
    @Override
14490
    public boolean equals(Object that) {
14491
      if (that == null)
14492
        return false;
14493
      if (that instanceof getReports_result)
14494
        return this.equals((getReports_result)that);
14495
      return false;
14496
    }
14497
 
14498
    public boolean equals(getReports_result that) {
14499
      if (that == null)
14500
        return false;
14501
 
14502
      boolean this_present_success = true && this.isSetSuccess();
14503
      boolean that_present_success = true && that.isSetSuccess();
14504
      if (this_present_success || that_present_success) {
14505
        if (!(this_present_success && that_present_success))
14506
          return false;
14507
        if (!this.success.equals(that.success))
14508
          return false;
14509
      }
14510
 
14511
      return true;
14512
    }
14513
 
14514
    @Override
14515
    public int hashCode() {
14516
      return 0;
14517
    }
14518
 
14519
    public int compareTo(getReports_result other) {
14520
      if (!getClass().equals(other.getClass())) {
14521
        return getClass().getName().compareTo(other.getClass().getName());
14522
      }
14523
 
14524
      int lastComparison = 0;
14525
      getReports_result typedOther = (getReports_result)other;
14526
 
3430 rajveer 14527
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14528
      if (lastComparison != 0) {
14529
        return lastComparison;
14530
      }
3430 rajveer 14531
      if (isSetSuccess()) {
14532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14533
        if (lastComparison != 0) {
14534
          return lastComparison;
14535
        }
1891 ankur.sing 14536
      }
14537
      return 0;
14538
    }
14539
 
3430 rajveer 14540
    public _Fields fieldForId(int fieldId) {
14541
      return _Fields.findByThriftId(fieldId);
14542
    }
14543
 
14544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14545
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14546
      iprot.readStructBegin();
14547
      while (true)
14548
      {
14549
        field = iprot.readFieldBegin();
3430 rajveer 14550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14551
          break;
14552
        }
3430 rajveer 14553
        switch (field.id) {
14554
          case 0: // SUCCESS
14555
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14556
              {
14557
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14558
                this.success = new ArrayList<Report>(_list17.size);
14559
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 14560
                {
3430 rajveer 14561
                  Report _elem19; // required
14562
                  _elem19 = new Report();
14563
                  _elem19.read(iprot);
14564
                  this.success.add(_elem19);
1891 ankur.sing 14565
                }
3430 rajveer 14566
                iprot.readListEnd();
1891 ankur.sing 14567
              }
3430 rajveer 14568
            } else { 
14569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14570
            }
14571
            break;
14572
          default:
14573
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14574
        }
3430 rajveer 14575
        iprot.readFieldEnd();
1891 ankur.sing 14576
      }
14577
      iprot.readStructEnd();
14578
      validate();
14579
    }
14580
 
3430 rajveer 14581
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14582
      oprot.writeStructBegin(STRUCT_DESC);
14583
 
14584
      if (this.isSetSuccess()) {
14585
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14586
        {
3430 rajveer 14587
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 14588
          for (Report _iter20 : this.success)
14589
          {
14590
            _iter20.write(oprot);
14591
          }
14592
          oprot.writeListEnd();
14593
        }
14594
        oprot.writeFieldEnd();
14595
      }
14596
      oprot.writeFieldStop();
14597
      oprot.writeStructEnd();
14598
    }
14599
 
14600
    @Override
14601
    public String toString() {
14602
      StringBuilder sb = new StringBuilder("getReports_result(");
14603
      boolean first = true;
14604
 
14605
      sb.append("success:");
14606
      if (this.success == null) {
14607
        sb.append("null");
14608
      } else {
14609
        sb.append(this.success);
14610
      }
14611
      first = false;
14612
      sb.append(")");
14613
      return sb.toString();
14614
    }
14615
 
3430 rajveer 14616
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14617
      // check for required fields
14618
    }
14619
 
3430 rajveer 14620
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14621
      try {
14622
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14623
      } catch (org.apache.thrift.TException te) {
14624
        throw new java.io.IOException(te);
14625
      }
14626
    }
14627
 
14628
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14629
      try {
14630
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14631
      } catch (org.apache.thrift.TException te) {
14632
        throw new java.io.IOException(te);
14633
      }
14634
    }
14635
 
1891 ankur.sing 14636
  }
14637
 
3430 rajveer 14638
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14639
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14640
 
3430 rajveer 14641
    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);
14642
    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);
14643
    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 14644
 
3430 rajveer 14645
    private String username; // required
14646
    private String password; // required
14647
    private long role; // required
2024 ankur.sing 14648
 
14649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14650
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14651
      USERNAME((short)1, "username"),
2357 ankur.sing 14652
      PASSWORD((short)2, "password"),
14653
      ROLE((short)3, "role");
2024 ankur.sing 14654
 
14655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14656
 
14657
      static {
14658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14659
          byName.put(field.getFieldName(), field);
14660
        }
14661
      }
14662
 
14663
      /**
14664
       * Find the _Fields constant that matches fieldId, or null if its not found.
14665
       */
14666
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14667
        switch(fieldId) {
14668
          case 1: // USERNAME
14669
            return USERNAME;
14670
          case 2: // PASSWORD
14671
            return PASSWORD;
14672
          case 3: // ROLE
14673
            return ROLE;
14674
          default:
14675
            return null;
14676
        }
2024 ankur.sing 14677
      }
14678
 
14679
      /**
14680
       * Find the _Fields constant that matches fieldId, throwing an exception
14681
       * if it is not found.
14682
       */
14683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14684
        _Fields fields = findByThriftId(fieldId);
14685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14686
        return fields;
14687
      }
14688
 
14689
      /**
14690
       * Find the _Fields constant that matches name, or null if its not found.
14691
       */
14692
      public static _Fields findByName(String name) {
14693
        return byName.get(name);
14694
      }
14695
 
14696
      private final short _thriftId;
14697
      private final String _fieldName;
14698
 
14699
      _Fields(short thriftId, String fieldName) {
14700
        _thriftId = thriftId;
14701
        _fieldName = fieldName;
14702
      }
14703
 
14704
      public short getThriftFieldId() {
14705
        return _thriftId;
14706
      }
14707
 
14708
      public String getFieldName() {
14709
        return _fieldName;
14710
      }
14711
    }
14712
 
14713
    // isset id assignments
2357 ankur.sing 14714
    private static final int __ROLE_ISSET_ID = 0;
14715
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14716
 
3430 rajveer 14717
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14718
    static {
3430 rajveer 14719
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14720
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14722
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14723
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14724
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14725
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14726
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14727
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14728
    }
14729
 
14730
    public authenticateCatalogUser_args() {
14731
    }
14732
 
14733
    public authenticateCatalogUser_args(
14734
      String username,
2357 ankur.sing 14735
      String password,
14736
      long role)
2024 ankur.sing 14737
    {
14738
      this();
14739
      this.username = username;
14740
      this.password = password;
2357 ankur.sing 14741
      this.role = role;
14742
      setRoleIsSet(true);
2024 ankur.sing 14743
    }
14744
 
14745
    /**
14746
     * Performs a deep copy on <i>other</i>.
14747
     */
14748
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14749
      __isset_bit_vector.clear();
14750
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14751
      if (other.isSetUsername()) {
14752
        this.username = other.username;
14753
      }
14754
      if (other.isSetPassword()) {
14755
        this.password = other.password;
14756
      }
2357 ankur.sing 14757
      this.role = other.role;
2024 ankur.sing 14758
    }
14759
 
14760
    public authenticateCatalogUser_args deepCopy() {
14761
      return new authenticateCatalogUser_args(this);
14762
    }
14763
 
3430 rajveer 14764
    @Override
14765
    public void clear() {
14766
      this.username = null;
14767
      this.password = null;
14768
      setRoleIsSet(false);
14769
      this.role = 0;
2024 ankur.sing 14770
    }
14771
 
14772
    public String getUsername() {
14773
      return this.username;
14774
    }
14775
 
3430 rajveer 14776
    public void setUsername(String username) {
2024 ankur.sing 14777
      this.username = username;
14778
    }
14779
 
14780
    public void unsetUsername() {
14781
      this.username = null;
14782
    }
14783
 
3430 rajveer 14784
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14785
    public boolean isSetUsername() {
14786
      return this.username != null;
14787
    }
14788
 
14789
    public void setUsernameIsSet(boolean value) {
14790
      if (!value) {
14791
        this.username = null;
14792
      }
14793
    }
14794
 
14795
    public String getPassword() {
14796
      return this.password;
14797
    }
14798
 
3430 rajveer 14799
    public void setPassword(String password) {
2024 ankur.sing 14800
      this.password = password;
14801
    }
14802
 
14803
    public void unsetPassword() {
14804
      this.password = null;
14805
    }
14806
 
3430 rajveer 14807
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14808
    public boolean isSetPassword() {
14809
      return this.password != null;
14810
    }
14811
 
14812
    public void setPasswordIsSet(boolean value) {
14813
      if (!value) {
14814
        this.password = null;
14815
      }
14816
    }
14817
 
2357 ankur.sing 14818
    public long getRole() {
14819
      return this.role;
14820
    }
14821
 
3430 rajveer 14822
    public void setRole(long role) {
2357 ankur.sing 14823
      this.role = role;
14824
      setRoleIsSet(true);
14825
    }
14826
 
14827
    public void unsetRole() {
14828
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14829
    }
14830
 
3430 rajveer 14831
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 14832
    public boolean isSetRole() {
14833
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14834
    }
14835
 
14836
    public void setRoleIsSet(boolean value) {
14837
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14838
    }
14839
 
2024 ankur.sing 14840
    public void setFieldValue(_Fields field, Object value) {
14841
      switch (field) {
14842
      case USERNAME:
14843
        if (value == null) {
14844
          unsetUsername();
14845
        } else {
14846
          setUsername((String)value);
14847
        }
14848
        break;
14849
 
14850
      case PASSWORD:
14851
        if (value == null) {
14852
          unsetPassword();
14853
        } else {
14854
          setPassword((String)value);
14855
        }
14856
        break;
14857
 
2357 ankur.sing 14858
      case ROLE:
14859
        if (value == null) {
14860
          unsetRole();
14861
        } else {
14862
          setRole((Long)value);
14863
        }
14864
        break;
14865
 
2024 ankur.sing 14866
      }
14867
    }
14868
 
14869
    public Object getFieldValue(_Fields field) {
14870
      switch (field) {
14871
      case USERNAME:
14872
        return getUsername();
14873
 
14874
      case PASSWORD:
14875
        return getPassword();
14876
 
2357 ankur.sing 14877
      case ROLE:
3430 rajveer 14878
        return Long.valueOf(getRole());
2357 ankur.sing 14879
 
2024 ankur.sing 14880
      }
14881
      throw new IllegalStateException();
14882
    }
14883
 
3430 rajveer 14884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14885
    public boolean isSet(_Fields field) {
14886
      if (field == null) {
14887
        throw new IllegalArgumentException();
14888
      }
2024 ankur.sing 14889
 
14890
      switch (field) {
14891
      case USERNAME:
14892
        return isSetUsername();
14893
      case PASSWORD:
14894
        return isSetPassword();
2357 ankur.sing 14895
      case ROLE:
14896
        return isSetRole();
2024 ankur.sing 14897
      }
14898
      throw new IllegalStateException();
14899
    }
14900
 
14901
    @Override
14902
    public boolean equals(Object that) {
14903
      if (that == null)
14904
        return false;
14905
      if (that instanceof authenticateCatalogUser_args)
14906
        return this.equals((authenticateCatalogUser_args)that);
14907
      return false;
14908
    }
14909
 
14910
    public boolean equals(authenticateCatalogUser_args that) {
14911
      if (that == null)
14912
        return false;
14913
 
14914
      boolean this_present_username = true && this.isSetUsername();
14915
      boolean that_present_username = true && that.isSetUsername();
14916
      if (this_present_username || that_present_username) {
14917
        if (!(this_present_username && that_present_username))
14918
          return false;
14919
        if (!this.username.equals(that.username))
14920
          return false;
14921
      }
14922
 
14923
      boolean this_present_password = true && this.isSetPassword();
14924
      boolean that_present_password = true && that.isSetPassword();
14925
      if (this_present_password || that_present_password) {
14926
        if (!(this_present_password && that_present_password))
14927
          return false;
14928
        if (!this.password.equals(that.password))
14929
          return false;
14930
      }
14931
 
2357 ankur.sing 14932
      boolean this_present_role = true;
14933
      boolean that_present_role = true;
14934
      if (this_present_role || that_present_role) {
14935
        if (!(this_present_role && that_present_role))
14936
          return false;
14937
        if (this.role != that.role)
14938
          return false;
14939
      }
14940
 
2024 ankur.sing 14941
      return true;
14942
    }
14943
 
14944
    @Override
14945
    public int hashCode() {
14946
      return 0;
14947
    }
14948
 
14949
    public int compareTo(authenticateCatalogUser_args other) {
14950
      if (!getClass().equals(other.getClass())) {
14951
        return getClass().getName().compareTo(other.getClass().getName());
14952
      }
14953
 
14954
      int lastComparison = 0;
14955
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
14956
 
3430 rajveer 14957
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 14958
      if (lastComparison != 0) {
14959
        return lastComparison;
14960
      }
3430 rajveer 14961
      if (isSetUsername()) {
14962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14963
        if (lastComparison != 0) {
14964
          return lastComparison;
14965
        }
2024 ankur.sing 14966
      }
3430 rajveer 14967
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 14968
      if (lastComparison != 0) {
14969
        return lastComparison;
14970
      }
3430 rajveer 14971
      if (isSetPassword()) {
14972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14973
        if (lastComparison != 0) {
14974
          return lastComparison;
14975
        }
2024 ankur.sing 14976
      }
3430 rajveer 14977
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 14978
      if (lastComparison != 0) {
14979
        return lastComparison;
14980
      }
3430 rajveer 14981
      if (isSetRole()) {
14982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14983
        if (lastComparison != 0) {
14984
          return lastComparison;
14985
        }
2357 ankur.sing 14986
      }
2024 ankur.sing 14987
      return 0;
14988
    }
14989
 
3430 rajveer 14990
    public _Fields fieldForId(int fieldId) {
14991
      return _Fields.findByThriftId(fieldId);
14992
    }
14993
 
14994
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14995
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14996
      iprot.readStructBegin();
14997
      while (true)
14998
      {
14999
        field = iprot.readFieldBegin();
3430 rajveer 15000
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15001
          break;
15002
        }
3430 rajveer 15003
        switch (field.id) {
15004
          case 1: // USERNAME
15005
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15006
              this.username = iprot.readString();
15007
            } else { 
15008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15009
            }
15010
            break;
15011
          case 2: // PASSWORD
15012
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15013
              this.password = iprot.readString();
15014
            } else { 
15015
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15016
            }
15017
            break;
15018
          case 3: // ROLE
15019
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15020
              this.role = iprot.readI64();
15021
              setRoleIsSet(true);
15022
            } else { 
15023
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15024
            }
15025
            break;
15026
          default:
15027
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15028
        }
3430 rajveer 15029
        iprot.readFieldEnd();
2024 ankur.sing 15030
      }
15031
      iprot.readStructEnd();
15032
      validate();
15033
    }
15034
 
3430 rajveer 15035
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15036
      validate();
15037
 
15038
      oprot.writeStructBegin(STRUCT_DESC);
15039
      if (this.username != null) {
15040
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15041
        oprot.writeString(this.username);
15042
        oprot.writeFieldEnd();
15043
      }
15044
      if (this.password != null) {
15045
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15046
        oprot.writeString(this.password);
15047
        oprot.writeFieldEnd();
15048
      }
2357 ankur.sing 15049
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15050
      oprot.writeI64(this.role);
15051
      oprot.writeFieldEnd();
2024 ankur.sing 15052
      oprot.writeFieldStop();
15053
      oprot.writeStructEnd();
15054
    }
15055
 
15056
    @Override
15057
    public String toString() {
15058
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15059
      boolean first = true;
15060
 
15061
      sb.append("username:");
15062
      if (this.username == null) {
15063
        sb.append("null");
15064
      } else {
15065
        sb.append(this.username);
15066
      }
15067
      first = false;
15068
      if (!first) sb.append(", ");
15069
      sb.append("password:");
15070
      if (this.password == null) {
15071
        sb.append("null");
15072
      } else {
15073
        sb.append(this.password);
15074
      }
15075
      first = false;
2357 ankur.sing 15076
      if (!first) sb.append(", ");
15077
      sb.append("role:");
15078
      sb.append(this.role);
15079
      first = false;
2024 ankur.sing 15080
      sb.append(")");
15081
      return sb.toString();
15082
    }
15083
 
3430 rajveer 15084
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15085
      // check for required fields
15086
    }
15087
 
3430 rajveer 15088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15089
      try {
15090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15091
      } catch (org.apache.thrift.TException te) {
15092
        throw new java.io.IOException(te);
15093
      }
15094
    }
15095
 
15096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15097
      try {
15098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15099
      } catch (org.apache.thrift.TException te) {
15100
        throw new java.io.IOException(te);
15101
      }
15102
    }
15103
 
2024 ankur.sing 15104
  }
15105
 
3430 rajveer 15106
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15108
 
3430 rajveer 15109
    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);
15110
    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 15111
 
3430 rajveer 15112
    private CatalogDashboardUser success; // required
15113
    private HelperServiceException hse; // required
2024 ankur.sing 15114
 
15115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15116
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15117
      SUCCESS((short)0, "success"),
15118
      HSE((short)1, "hse");
15119
 
15120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15121
 
15122
      static {
15123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15124
          byName.put(field.getFieldName(), field);
15125
        }
15126
      }
15127
 
15128
      /**
15129
       * Find the _Fields constant that matches fieldId, or null if its not found.
15130
       */
15131
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15132
        switch(fieldId) {
15133
          case 0: // SUCCESS
15134
            return SUCCESS;
15135
          case 1: // HSE
15136
            return HSE;
15137
          default:
15138
            return null;
15139
        }
2024 ankur.sing 15140
      }
15141
 
15142
      /**
15143
       * Find the _Fields constant that matches fieldId, throwing an exception
15144
       * if it is not found.
15145
       */
15146
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15147
        _Fields fields = findByThriftId(fieldId);
15148
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15149
        return fields;
15150
      }
15151
 
15152
      /**
15153
       * Find the _Fields constant that matches name, or null if its not found.
15154
       */
15155
      public static _Fields findByName(String name) {
15156
        return byName.get(name);
15157
      }
15158
 
15159
      private final short _thriftId;
15160
      private final String _fieldName;
15161
 
15162
      _Fields(short thriftId, String fieldName) {
15163
        _thriftId = thriftId;
15164
        _fieldName = fieldName;
15165
      }
15166
 
15167
      public short getThriftFieldId() {
15168
        return _thriftId;
15169
      }
15170
 
15171
      public String getFieldName() {
15172
        return _fieldName;
15173
      }
15174
    }
15175
 
15176
    // isset id assignments
15177
 
3430 rajveer 15178
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15179
    static {
3430 rajveer 15180
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15181
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15182
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15183
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15185
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15186
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15187
    }
15188
 
15189
    public authenticateCatalogUser_result() {
15190
    }
15191
 
15192
    public authenticateCatalogUser_result(
15193
      CatalogDashboardUser success,
15194
      HelperServiceException hse)
15195
    {
15196
      this();
15197
      this.success = success;
15198
      this.hse = hse;
15199
    }
15200
 
15201
    /**
15202
     * Performs a deep copy on <i>other</i>.
15203
     */
15204
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15205
      if (other.isSetSuccess()) {
15206
        this.success = new CatalogDashboardUser(other.success);
15207
      }
15208
      if (other.isSetHse()) {
15209
        this.hse = new HelperServiceException(other.hse);
15210
      }
15211
    }
15212
 
15213
    public authenticateCatalogUser_result deepCopy() {
15214
      return new authenticateCatalogUser_result(this);
15215
    }
15216
 
3430 rajveer 15217
    @Override
15218
    public void clear() {
15219
      this.success = null;
15220
      this.hse = null;
2024 ankur.sing 15221
    }
15222
 
15223
    public CatalogDashboardUser getSuccess() {
15224
      return this.success;
15225
    }
15226
 
3430 rajveer 15227
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15228
      this.success = success;
15229
    }
15230
 
15231
    public void unsetSuccess() {
15232
      this.success = null;
15233
    }
15234
 
3430 rajveer 15235
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15236
    public boolean isSetSuccess() {
15237
      return this.success != null;
15238
    }
15239
 
15240
    public void setSuccessIsSet(boolean value) {
15241
      if (!value) {
15242
        this.success = null;
15243
      }
15244
    }
15245
 
15246
    public HelperServiceException getHse() {
15247
      return this.hse;
15248
    }
15249
 
3430 rajveer 15250
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15251
      this.hse = hse;
15252
    }
15253
 
15254
    public void unsetHse() {
15255
      this.hse = null;
15256
    }
15257
 
3430 rajveer 15258
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15259
    public boolean isSetHse() {
15260
      return this.hse != null;
15261
    }
15262
 
15263
    public void setHseIsSet(boolean value) {
15264
      if (!value) {
15265
        this.hse = null;
15266
      }
15267
    }
15268
 
15269
    public void setFieldValue(_Fields field, Object value) {
15270
      switch (field) {
15271
      case SUCCESS:
15272
        if (value == null) {
15273
          unsetSuccess();
15274
        } else {
15275
          setSuccess((CatalogDashboardUser)value);
15276
        }
15277
        break;
15278
 
15279
      case HSE:
15280
        if (value == null) {
15281
          unsetHse();
15282
        } else {
15283
          setHse((HelperServiceException)value);
15284
        }
15285
        break;
15286
 
15287
      }
15288
    }
15289
 
15290
    public Object getFieldValue(_Fields field) {
15291
      switch (field) {
15292
      case SUCCESS:
15293
        return getSuccess();
15294
 
15295
      case HSE:
15296
        return getHse();
15297
 
15298
      }
15299
      throw new IllegalStateException();
15300
    }
15301
 
3430 rajveer 15302
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15303
    public boolean isSet(_Fields field) {
15304
      if (field == null) {
15305
        throw new IllegalArgumentException();
15306
      }
2024 ankur.sing 15307
 
15308
      switch (field) {
15309
      case SUCCESS:
15310
        return isSetSuccess();
15311
      case HSE:
15312
        return isSetHse();
15313
      }
15314
      throw new IllegalStateException();
15315
    }
15316
 
15317
    @Override
15318
    public boolean equals(Object that) {
15319
      if (that == null)
15320
        return false;
15321
      if (that instanceof authenticateCatalogUser_result)
15322
        return this.equals((authenticateCatalogUser_result)that);
15323
      return false;
15324
    }
15325
 
15326
    public boolean equals(authenticateCatalogUser_result that) {
15327
      if (that == null)
15328
        return false;
15329
 
15330
      boolean this_present_success = true && this.isSetSuccess();
15331
      boolean that_present_success = true && that.isSetSuccess();
15332
      if (this_present_success || that_present_success) {
15333
        if (!(this_present_success && that_present_success))
15334
          return false;
15335
        if (!this.success.equals(that.success))
15336
          return false;
15337
      }
15338
 
15339
      boolean this_present_hse = true && this.isSetHse();
15340
      boolean that_present_hse = true && that.isSetHse();
15341
      if (this_present_hse || that_present_hse) {
15342
        if (!(this_present_hse && that_present_hse))
15343
          return false;
15344
        if (!this.hse.equals(that.hse))
15345
          return false;
15346
      }
15347
 
15348
      return true;
15349
    }
15350
 
15351
    @Override
15352
    public int hashCode() {
15353
      return 0;
15354
    }
15355
 
15356
    public int compareTo(authenticateCatalogUser_result other) {
15357
      if (!getClass().equals(other.getClass())) {
15358
        return getClass().getName().compareTo(other.getClass().getName());
15359
      }
15360
 
15361
      int lastComparison = 0;
15362
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15363
 
3430 rajveer 15364
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15365
      if (lastComparison != 0) {
15366
        return lastComparison;
15367
      }
3430 rajveer 15368
      if (isSetSuccess()) {
15369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15370
        if (lastComparison != 0) {
15371
          return lastComparison;
15372
        }
2024 ankur.sing 15373
      }
3430 rajveer 15374
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15375
      if (lastComparison != 0) {
15376
        return lastComparison;
15377
      }
3430 rajveer 15378
      if (isSetHse()) {
15379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15380
        if (lastComparison != 0) {
15381
          return lastComparison;
15382
        }
2024 ankur.sing 15383
      }
15384
      return 0;
15385
    }
15386
 
3430 rajveer 15387
    public _Fields fieldForId(int fieldId) {
15388
      return _Fields.findByThriftId(fieldId);
15389
    }
15390
 
15391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15392
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15393
      iprot.readStructBegin();
15394
      while (true)
15395
      {
15396
        field = iprot.readFieldBegin();
3430 rajveer 15397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15398
          break;
15399
        }
3430 rajveer 15400
        switch (field.id) {
15401
          case 0: // SUCCESS
15402
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15403
              this.success = new CatalogDashboardUser();
15404
              this.success.read(iprot);
15405
            } else { 
15406
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15407
            }
15408
            break;
15409
          case 1: // HSE
15410
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15411
              this.hse = new HelperServiceException();
15412
              this.hse.read(iprot);
15413
            } else { 
15414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15415
            }
15416
            break;
15417
          default:
15418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15419
        }
3430 rajveer 15420
        iprot.readFieldEnd();
2024 ankur.sing 15421
      }
15422
      iprot.readStructEnd();
15423
      validate();
15424
    }
15425
 
3430 rajveer 15426
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15427
      oprot.writeStructBegin(STRUCT_DESC);
15428
 
15429
      if (this.isSetSuccess()) {
15430
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15431
        this.success.write(oprot);
15432
        oprot.writeFieldEnd();
15433
      } else if (this.isSetHse()) {
15434
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15435
        this.hse.write(oprot);
15436
        oprot.writeFieldEnd();
15437
      }
15438
      oprot.writeFieldStop();
15439
      oprot.writeStructEnd();
15440
    }
15441
 
15442
    @Override
15443
    public String toString() {
15444
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15445
      boolean first = true;
15446
 
15447
      sb.append("success:");
15448
      if (this.success == null) {
15449
        sb.append("null");
15450
      } else {
15451
        sb.append(this.success);
15452
      }
15453
      first = false;
15454
      if (!first) sb.append(", ");
15455
      sb.append("hse:");
15456
      if (this.hse == null) {
15457
        sb.append("null");
15458
      } else {
15459
        sb.append(this.hse);
15460
      }
15461
      first = false;
15462
      sb.append(")");
15463
      return sb.toString();
15464
    }
15465
 
3430 rajveer 15466
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15467
      // check for required fields
15468
    }
15469
 
3430 rajveer 15470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15471
      try {
15472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15473
      } catch (org.apache.thrift.TException te) {
15474
        throw new java.io.IOException(te);
15475
      }
15476
    }
15477
 
15478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15479
      try {
15480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15481
      } catch (org.apache.thrift.TException te) {
15482
        throw new java.io.IOException(te);
15483
      }
15484
    }
15485
 
2024 ankur.sing 15486
  }
15487
 
4544 varun.gupt 15488
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15489
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15490
 
15491
    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);
15492
    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);
15493
 
15494
    private List<Long> entityIds; // required
15495
    private String email; // required
15496
 
15497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15499
      ENTITY_IDS((short)1, "entityIds"),
15500
      EMAIL((short)2, "email");
15501
 
15502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15503
 
15504
      static {
15505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15506
          byName.put(field.getFieldName(), field);
15507
        }
15508
      }
15509
 
15510
      /**
15511
       * Find the _Fields constant that matches fieldId, or null if its not found.
15512
       */
15513
      public static _Fields findByThriftId(int fieldId) {
15514
        switch(fieldId) {
15515
          case 1: // ENTITY_IDS
15516
            return ENTITY_IDS;
15517
          case 2: // EMAIL
15518
            return EMAIL;
15519
          default:
15520
            return null;
15521
        }
15522
      }
15523
 
15524
      /**
15525
       * Find the _Fields constant that matches fieldId, throwing an exception
15526
       * if it is not found.
15527
       */
15528
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15529
        _Fields fields = findByThriftId(fieldId);
15530
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15531
        return fields;
15532
      }
15533
 
15534
      /**
15535
       * Find the _Fields constant that matches name, or null if its not found.
15536
       */
15537
      public static _Fields findByName(String name) {
15538
        return byName.get(name);
15539
      }
15540
 
15541
      private final short _thriftId;
15542
      private final String _fieldName;
15543
 
15544
      _Fields(short thriftId, String fieldName) {
15545
        _thriftId = thriftId;
15546
        _fieldName = fieldName;
15547
      }
15548
 
15549
      public short getThriftFieldId() {
15550
        return _thriftId;
15551
      }
15552
 
15553
      public String getFieldName() {
15554
        return _fieldName;
15555
      }
15556
    }
15557
 
15558
    // isset id assignments
15559
 
15560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15561
    static {
15562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15563
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15564
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15565
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15566
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
15570
    }
15571
 
15572
    public shareEntities_args() {
15573
    }
15574
 
15575
    public shareEntities_args(
15576
      List<Long> entityIds,
15577
      String email)
15578
    {
15579
      this();
15580
      this.entityIds = entityIds;
15581
      this.email = email;
15582
    }
15583
 
15584
    /**
15585
     * Performs a deep copy on <i>other</i>.
15586
     */
15587
    public shareEntities_args(shareEntities_args other) {
15588
      if (other.isSetEntityIds()) {
15589
        List<Long> __this__entityIds = new ArrayList<Long>();
15590
        for (Long other_element : other.entityIds) {
15591
          __this__entityIds.add(other_element);
15592
        }
15593
        this.entityIds = __this__entityIds;
15594
      }
15595
      if (other.isSetEmail()) {
15596
        this.email = other.email;
15597
      }
15598
    }
15599
 
15600
    public shareEntities_args deepCopy() {
15601
      return new shareEntities_args(this);
15602
    }
15603
 
15604
    @Override
15605
    public void clear() {
15606
      this.entityIds = null;
15607
      this.email = null;
15608
    }
15609
 
15610
    public int getEntityIdsSize() {
15611
      return (this.entityIds == null) ? 0 : this.entityIds.size();
15612
    }
15613
 
15614
    public java.util.Iterator<Long> getEntityIdsIterator() {
15615
      return (this.entityIds == null) ? null : this.entityIds.iterator();
15616
    }
15617
 
15618
    public void addToEntityIds(long elem) {
15619
      if (this.entityIds == null) {
15620
        this.entityIds = new ArrayList<Long>();
15621
      }
15622
      this.entityIds.add(elem);
15623
    }
15624
 
15625
    public List<Long> getEntityIds() {
15626
      return this.entityIds;
15627
    }
15628
 
15629
    public void setEntityIds(List<Long> entityIds) {
15630
      this.entityIds = entityIds;
15631
    }
15632
 
15633
    public void unsetEntityIds() {
15634
      this.entityIds = null;
15635
    }
15636
 
15637
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
15638
    public boolean isSetEntityIds() {
15639
      return this.entityIds != null;
15640
    }
15641
 
15642
    public void setEntityIdsIsSet(boolean value) {
15643
      if (!value) {
15644
        this.entityIds = null;
15645
      }
15646
    }
15647
 
15648
    public String getEmail() {
15649
      return this.email;
15650
    }
15651
 
15652
    public void setEmail(String email) {
15653
      this.email = email;
15654
    }
15655
 
15656
    public void unsetEmail() {
15657
      this.email = null;
15658
    }
15659
 
15660
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
15661
    public boolean isSetEmail() {
15662
      return this.email != null;
15663
    }
15664
 
15665
    public void setEmailIsSet(boolean value) {
15666
      if (!value) {
15667
        this.email = null;
15668
      }
15669
    }
15670
 
15671
    public void setFieldValue(_Fields field, Object value) {
15672
      switch (field) {
15673
      case ENTITY_IDS:
15674
        if (value == null) {
15675
          unsetEntityIds();
15676
        } else {
15677
          setEntityIds((List<Long>)value);
15678
        }
15679
        break;
15680
 
15681
      case EMAIL:
15682
        if (value == null) {
15683
          unsetEmail();
15684
        } else {
15685
          setEmail((String)value);
15686
        }
15687
        break;
15688
 
15689
      }
15690
    }
15691
 
15692
    public Object getFieldValue(_Fields field) {
15693
      switch (field) {
15694
      case ENTITY_IDS:
15695
        return getEntityIds();
15696
 
15697
      case EMAIL:
15698
        return getEmail();
15699
 
15700
      }
15701
      throw new IllegalStateException();
15702
    }
15703
 
15704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15705
    public boolean isSet(_Fields field) {
15706
      if (field == null) {
15707
        throw new IllegalArgumentException();
15708
      }
15709
 
15710
      switch (field) {
15711
      case ENTITY_IDS:
15712
        return isSetEntityIds();
15713
      case EMAIL:
15714
        return isSetEmail();
15715
      }
15716
      throw new IllegalStateException();
15717
    }
15718
 
15719
    @Override
15720
    public boolean equals(Object that) {
15721
      if (that == null)
15722
        return false;
15723
      if (that instanceof shareEntities_args)
15724
        return this.equals((shareEntities_args)that);
15725
      return false;
15726
    }
15727
 
15728
    public boolean equals(shareEntities_args that) {
15729
      if (that == null)
15730
        return false;
15731
 
15732
      boolean this_present_entityIds = true && this.isSetEntityIds();
15733
      boolean that_present_entityIds = true && that.isSetEntityIds();
15734
      if (this_present_entityIds || that_present_entityIds) {
15735
        if (!(this_present_entityIds && that_present_entityIds))
15736
          return false;
15737
        if (!this.entityIds.equals(that.entityIds))
15738
          return false;
15739
      }
15740
 
15741
      boolean this_present_email = true && this.isSetEmail();
15742
      boolean that_present_email = true && that.isSetEmail();
15743
      if (this_present_email || that_present_email) {
15744
        if (!(this_present_email && that_present_email))
15745
          return false;
15746
        if (!this.email.equals(that.email))
15747
          return false;
15748
      }
15749
 
15750
      return true;
15751
    }
15752
 
15753
    @Override
15754
    public int hashCode() {
15755
      return 0;
15756
    }
15757
 
15758
    public int compareTo(shareEntities_args other) {
15759
      if (!getClass().equals(other.getClass())) {
15760
        return getClass().getName().compareTo(other.getClass().getName());
15761
      }
15762
 
15763
      int lastComparison = 0;
15764
      shareEntities_args typedOther = (shareEntities_args)other;
15765
 
15766
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
15767
      if (lastComparison != 0) {
15768
        return lastComparison;
15769
      }
15770
      if (isSetEntityIds()) {
15771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
15772
        if (lastComparison != 0) {
15773
          return lastComparison;
15774
        }
15775
      }
15776
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
15777
      if (lastComparison != 0) {
15778
        return lastComparison;
15779
      }
15780
      if (isSetEmail()) {
15781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
15782
        if (lastComparison != 0) {
15783
          return lastComparison;
15784
        }
15785
      }
15786
      return 0;
15787
    }
15788
 
15789
    public _Fields fieldForId(int fieldId) {
15790
      return _Fields.findByThriftId(fieldId);
15791
    }
15792
 
15793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15794
      org.apache.thrift.protocol.TField field;
15795
      iprot.readStructBegin();
15796
      while (true)
15797
      {
15798
        field = iprot.readFieldBegin();
15799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15800
          break;
15801
        }
15802
        switch (field.id) {
15803
          case 1: // ENTITY_IDS
15804
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15805
              {
15806
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15807
                this.entityIds = new ArrayList<Long>(_list21.size);
15808
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15809
                {
15810
                  long _elem23; // required
15811
                  _elem23 = iprot.readI64();
15812
                  this.entityIds.add(_elem23);
15813
                }
15814
                iprot.readListEnd();
15815
              }
15816
            } else { 
15817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15818
            }
15819
            break;
15820
          case 2: // EMAIL
15821
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15822
              this.email = iprot.readString();
15823
            } else { 
15824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15825
            }
15826
            break;
15827
          default:
15828
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15829
        }
15830
        iprot.readFieldEnd();
15831
      }
15832
      iprot.readStructEnd();
15833
      validate();
15834
    }
15835
 
15836
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15837
      validate();
15838
 
15839
      oprot.writeStructBegin(STRUCT_DESC);
15840
      if (this.entityIds != null) {
15841
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
15842
        {
15843
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
15844
          for (long _iter24 : this.entityIds)
15845
          {
15846
            oprot.writeI64(_iter24);
15847
          }
15848
          oprot.writeListEnd();
15849
        }
15850
        oprot.writeFieldEnd();
15851
      }
15852
      if (this.email != null) {
15853
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
15854
        oprot.writeString(this.email);
15855
        oprot.writeFieldEnd();
15856
      }
15857
      oprot.writeFieldStop();
15858
      oprot.writeStructEnd();
15859
    }
15860
 
15861
    @Override
15862
    public String toString() {
15863
      StringBuilder sb = new StringBuilder("shareEntities_args(");
15864
      boolean first = true;
15865
 
15866
      sb.append("entityIds:");
15867
      if (this.entityIds == null) {
15868
        sb.append("null");
15869
      } else {
15870
        sb.append(this.entityIds);
15871
      }
15872
      first = false;
15873
      if (!first) sb.append(", ");
15874
      sb.append("email:");
15875
      if (this.email == null) {
15876
        sb.append("null");
15877
      } else {
15878
        sb.append(this.email);
15879
      }
15880
      first = false;
15881
      sb.append(")");
15882
      return sb.toString();
15883
    }
15884
 
15885
    public void validate() throws org.apache.thrift.TException {
15886
      // check for required fields
15887
    }
15888
 
15889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15890
      try {
15891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15892
      } catch (org.apache.thrift.TException te) {
15893
        throw new java.io.IOException(te);
15894
      }
15895
    }
15896
 
15897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15898
      try {
15899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15900
      } catch (org.apache.thrift.TException te) {
15901
        throw new java.io.IOException(te);
15902
      }
15903
    }
15904
 
15905
  }
15906
 
15907
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
15908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
15909
 
15910
    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);
15911
 
15912
    private HelperServiceException hse; // required
15913
 
15914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15916
      HSE((short)1, "hse");
15917
 
15918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15919
 
15920
      static {
15921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15922
          byName.put(field.getFieldName(), field);
15923
        }
15924
      }
15925
 
15926
      /**
15927
       * Find the _Fields constant that matches fieldId, or null if its not found.
15928
       */
15929
      public static _Fields findByThriftId(int fieldId) {
15930
        switch(fieldId) {
15931
          case 1: // HSE
15932
            return HSE;
15933
          default:
15934
            return null;
15935
        }
15936
      }
15937
 
15938
      /**
15939
       * Find the _Fields constant that matches fieldId, throwing an exception
15940
       * if it is not found.
15941
       */
15942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15943
        _Fields fields = findByThriftId(fieldId);
15944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15945
        return fields;
15946
      }
15947
 
15948
      /**
15949
       * Find the _Fields constant that matches name, or null if its not found.
15950
       */
15951
      public static _Fields findByName(String name) {
15952
        return byName.get(name);
15953
      }
15954
 
15955
      private final short _thriftId;
15956
      private final String _fieldName;
15957
 
15958
      _Fields(short thriftId, String fieldName) {
15959
        _thriftId = thriftId;
15960
        _fieldName = fieldName;
15961
      }
15962
 
15963
      public short getThriftFieldId() {
15964
        return _thriftId;
15965
      }
15966
 
15967
      public String getFieldName() {
15968
        return _fieldName;
15969
      }
15970
    }
15971
 
15972
    // isset id assignments
15973
 
15974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15975
    static {
15976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15977
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
15981
    }
15982
 
15983
    public shareEntities_result() {
15984
    }
15985
 
15986
    public shareEntities_result(
15987
      HelperServiceException hse)
15988
    {
15989
      this();
15990
      this.hse = hse;
15991
    }
15992
 
15993
    /**
15994
     * Performs a deep copy on <i>other</i>.
15995
     */
15996
    public shareEntities_result(shareEntities_result other) {
15997
      if (other.isSetHse()) {
15998
        this.hse = new HelperServiceException(other.hse);
15999
      }
16000
    }
16001
 
16002
    public shareEntities_result deepCopy() {
16003
      return new shareEntities_result(this);
16004
    }
16005
 
16006
    @Override
16007
    public void clear() {
16008
      this.hse = null;
16009
    }
16010
 
16011
    public HelperServiceException getHse() {
16012
      return this.hse;
16013
    }
16014
 
16015
    public void setHse(HelperServiceException hse) {
16016
      this.hse = hse;
16017
    }
16018
 
16019
    public void unsetHse() {
16020
      this.hse = null;
16021
    }
16022
 
16023
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16024
    public boolean isSetHse() {
16025
      return this.hse != null;
16026
    }
16027
 
16028
    public void setHseIsSet(boolean value) {
16029
      if (!value) {
16030
        this.hse = null;
16031
      }
16032
    }
16033
 
16034
    public void setFieldValue(_Fields field, Object value) {
16035
      switch (field) {
16036
      case HSE:
16037
        if (value == null) {
16038
          unsetHse();
16039
        } else {
16040
          setHse((HelperServiceException)value);
16041
        }
16042
        break;
16043
 
16044
      }
16045
    }
16046
 
16047
    public Object getFieldValue(_Fields field) {
16048
      switch (field) {
16049
      case HSE:
16050
        return getHse();
16051
 
16052
      }
16053
      throw new IllegalStateException();
16054
    }
16055
 
16056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16057
    public boolean isSet(_Fields field) {
16058
      if (field == null) {
16059
        throw new IllegalArgumentException();
16060
      }
16061
 
16062
      switch (field) {
16063
      case HSE:
16064
        return isSetHse();
16065
      }
16066
      throw new IllegalStateException();
16067
    }
16068
 
16069
    @Override
16070
    public boolean equals(Object that) {
16071
      if (that == null)
16072
        return false;
16073
      if (that instanceof shareEntities_result)
16074
        return this.equals((shareEntities_result)that);
16075
      return false;
16076
    }
16077
 
16078
    public boolean equals(shareEntities_result that) {
16079
      if (that == null)
16080
        return false;
16081
 
16082
      boolean this_present_hse = true && this.isSetHse();
16083
      boolean that_present_hse = true && that.isSetHse();
16084
      if (this_present_hse || that_present_hse) {
16085
        if (!(this_present_hse && that_present_hse))
16086
          return false;
16087
        if (!this.hse.equals(that.hse))
16088
          return false;
16089
      }
16090
 
16091
      return true;
16092
    }
16093
 
16094
    @Override
16095
    public int hashCode() {
16096
      return 0;
16097
    }
16098
 
16099
    public int compareTo(shareEntities_result other) {
16100
      if (!getClass().equals(other.getClass())) {
16101
        return getClass().getName().compareTo(other.getClass().getName());
16102
      }
16103
 
16104
      int lastComparison = 0;
16105
      shareEntities_result typedOther = (shareEntities_result)other;
16106
 
16107
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16108
      if (lastComparison != 0) {
16109
        return lastComparison;
16110
      }
16111
      if (isSetHse()) {
16112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16113
        if (lastComparison != 0) {
16114
          return lastComparison;
16115
        }
16116
      }
16117
      return 0;
16118
    }
16119
 
16120
    public _Fields fieldForId(int fieldId) {
16121
      return _Fields.findByThriftId(fieldId);
16122
    }
16123
 
16124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16125
      org.apache.thrift.protocol.TField field;
16126
      iprot.readStructBegin();
16127
      while (true)
16128
      {
16129
        field = iprot.readFieldBegin();
16130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16131
          break;
16132
        }
16133
        switch (field.id) {
16134
          case 1: // HSE
16135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16136
              this.hse = new HelperServiceException();
16137
              this.hse.read(iprot);
16138
            } else { 
16139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16140
            }
16141
            break;
16142
          default:
16143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16144
        }
16145
        iprot.readFieldEnd();
16146
      }
16147
      iprot.readStructEnd();
16148
      validate();
16149
    }
16150
 
16151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16152
      oprot.writeStructBegin(STRUCT_DESC);
16153
 
16154
      if (this.isSetHse()) {
16155
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16156
        this.hse.write(oprot);
16157
        oprot.writeFieldEnd();
16158
      }
16159
      oprot.writeFieldStop();
16160
      oprot.writeStructEnd();
16161
    }
16162
 
16163
    @Override
16164
    public String toString() {
16165
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16166
      boolean first = true;
16167
 
16168
      sb.append("hse:");
16169
      if (this.hse == null) {
16170
        sb.append("null");
16171
      } else {
16172
        sb.append(this.hse);
16173
      }
16174
      first = false;
16175
      sb.append(")");
16176
      return sb.toString();
16177
    }
16178
 
16179
    public void validate() throws org.apache.thrift.TException {
16180
      // check for required fields
16181
    }
16182
 
16183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16184
      try {
16185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16186
      } catch (org.apache.thrift.TException te) {
16187
        throw new java.io.IOException(te);
16188
      }
16189
    }
16190
 
16191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16192
      try {
16193
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16194
      } catch (org.apache.thrift.TException te) {
16195
        throw new java.io.IOException(te);
16196
      }
16197
    }
16198
 
16199
  }
16200
 
4693 mandeep.dh 16201
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16203
 
16204
 
16205
 
16206
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16207
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16208
;
16209
 
16210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16211
 
16212
      static {
16213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16214
          byName.put(field.getFieldName(), field);
16215
        }
16216
      }
16217
 
16218
      /**
16219
       * Find the _Fields constant that matches fieldId, or null if its not found.
16220
       */
16221
      public static _Fields findByThriftId(int fieldId) {
16222
        switch(fieldId) {
16223
          default:
16224
            return null;
16225
        }
16226
      }
16227
 
16228
      /**
16229
       * Find the _Fields constant that matches fieldId, throwing an exception
16230
       * if it is not found.
16231
       */
16232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16233
        _Fields fields = findByThriftId(fieldId);
16234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16235
        return fields;
16236
      }
16237
 
16238
      /**
16239
       * Find the _Fields constant that matches name, or null if its not found.
16240
       */
16241
      public static _Fields findByName(String name) {
16242
        return byName.get(name);
16243
      }
16244
 
16245
      private final short _thriftId;
16246
      private final String _fieldName;
16247
 
16248
      _Fields(short thriftId, String fieldName) {
16249
        _thriftId = thriftId;
16250
        _fieldName = fieldName;
16251
      }
16252
 
16253
      public short getThriftFieldId() {
16254
        return _thriftId;
16255
      }
16256
 
16257
      public String getFieldName() {
16258
        return _fieldName;
16259
      }
16260
    }
16261
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16262
    static {
16263
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16266
    }
16267
 
16268
    public getAgents_args() {
16269
    }
16270
 
16271
    /**
16272
     * Performs a deep copy on <i>other</i>.
16273
     */
16274
    public getAgents_args(getAgents_args other) {
16275
    }
16276
 
16277
    public getAgents_args deepCopy() {
16278
      return new getAgents_args(this);
16279
    }
16280
 
16281
    @Override
16282
    public void clear() {
16283
    }
16284
 
16285
    public void setFieldValue(_Fields field, Object value) {
16286
      switch (field) {
16287
      }
16288
    }
16289
 
16290
    public Object getFieldValue(_Fields field) {
16291
      switch (field) {
16292
      }
16293
      throw new IllegalStateException();
16294
    }
16295
 
16296
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16297
    public boolean isSet(_Fields field) {
16298
      if (field == null) {
16299
        throw new IllegalArgumentException();
16300
      }
16301
 
16302
      switch (field) {
16303
      }
16304
      throw new IllegalStateException();
16305
    }
16306
 
16307
    @Override
16308
    public boolean equals(Object that) {
16309
      if (that == null)
16310
        return false;
16311
      if (that instanceof getAgents_args)
16312
        return this.equals((getAgents_args)that);
16313
      return false;
16314
    }
16315
 
16316
    public boolean equals(getAgents_args that) {
16317
      if (that == null)
16318
        return false;
16319
 
16320
      return true;
16321
    }
16322
 
16323
    @Override
16324
    public int hashCode() {
16325
      return 0;
16326
    }
16327
 
16328
    public int compareTo(getAgents_args other) {
16329
      if (!getClass().equals(other.getClass())) {
16330
        return getClass().getName().compareTo(other.getClass().getName());
16331
      }
16332
 
16333
      int lastComparison = 0;
16334
      getAgents_args typedOther = (getAgents_args)other;
16335
 
16336
      return 0;
16337
    }
16338
 
16339
    public _Fields fieldForId(int fieldId) {
16340
      return _Fields.findByThriftId(fieldId);
16341
    }
16342
 
16343
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16344
      org.apache.thrift.protocol.TField field;
16345
      iprot.readStructBegin();
16346
      while (true)
16347
      {
16348
        field = iprot.readFieldBegin();
16349
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16350
          break;
16351
        }
16352
        switch (field.id) {
16353
          default:
16354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16355
        }
16356
        iprot.readFieldEnd();
16357
      }
16358
      iprot.readStructEnd();
16359
      validate();
16360
    }
16361
 
16362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16363
      validate();
16364
 
16365
      oprot.writeStructBegin(STRUCT_DESC);
16366
      oprot.writeFieldStop();
16367
      oprot.writeStructEnd();
16368
    }
16369
 
16370
    @Override
16371
    public String toString() {
16372
      StringBuilder sb = new StringBuilder("getAgents_args(");
16373
      boolean first = true;
16374
 
16375
      sb.append(")");
16376
      return sb.toString();
16377
    }
16378
 
16379
    public void validate() throws org.apache.thrift.TException {
16380
      // check for required fields
16381
    }
16382
 
16383
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16384
      try {
16385
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16386
      } catch (org.apache.thrift.TException te) {
16387
        throw new java.io.IOException(te);
16388
      }
16389
    }
16390
 
16391
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16392
      try {
16393
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16394
      } catch (org.apache.thrift.TException te) {
16395
        throw new java.io.IOException(te);
16396
      }
16397
    }
16398
 
16399
  }
16400
 
16401
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16402
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16403
 
16404
    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);
16405
 
16406
    private List<Agent> success; // required
16407
 
16408
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16409
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16410
      SUCCESS((short)0, "success");
16411
 
16412
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16413
 
16414
      static {
16415
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16416
          byName.put(field.getFieldName(), field);
16417
        }
16418
      }
16419
 
16420
      /**
16421
       * Find the _Fields constant that matches fieldId, or null if its not found.
16422
       */
16423
      public static _Fields findByThriftId(int fieldId) {
16424
        switch(fieldId) {
16425
          case 0: // SUCCESS
16426
            return SUCCESS;
16427
          default:
16428
            return null;
16429
        }
16430
      }
16431
 
16432
      /**
16433
       * Find the _Fields constant that matches fieldId, throwing an exception
16434
       * if it is not found.
16435
       */
16436
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16437
        _Fields fields = findByThriftId(fieldId);
16438
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16439
        return fields;
16440
      }
16441
 
16442
      /**
16443
       * Find the _Fields constant that matches name, or null if its not found.
16444
       */
16445
      public static _Fields findByName(String name) {
16446
        return byName.get(name);
16447
      }
16448
 
16449
      private final short _thriftId;
16450
      private final String _fieldName;
16451
 
16452
      _Fields(short thriftId, String fieldName) {
16453
        _thriftId = thriftId;
16454
        _fieldName = fieldName;
16455
      }
16456
 
16457
      public short getThriftFieldId() {
16458
        return _thriftId;
16459
      }
16460
 
16461
      public String getFieldName() {
16462
        return _fieldName;
16463
      }
16464
    }
16465
 
16466
    // isset id assignments
16467
 
16468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16469
    static {
16470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16471
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16472
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16473
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16474
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16475
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16476
    }
16477
 
16478
    public getAgents_result() {
16479
    }
16480
 
16481
    public getAgents_result(
16482
      List<Agent> success)
16483
    {
16484
      this();
16485
      this.success = success;
16486
    }
16487
 
16488
    /**
16489
     * Performs a deep copy on <i>other</i>.
16490
     */
16491
    public getAgents_result(getAgents_result other) {
16492
      if (other.isSetSuccess()) {
16493
        List<Agent> __this__success = new ArrayList<Agent>();
16494
        for (Agent other_element : other.success) {
16495
          __this__success.add(new Agent(other_element));
16496
        }
16497
        this.success = __this__success;
16498
      }
16499
    }
16500
 
16501
    public getAgents_result deepCopy() {
16502
      return new getAgents_result(this);
16503
    }
16504
 
16505
    @Override
16506
    public void clear() {
16507
      this.success = null;
16508
    }
16509
 
16510
    public int getSuccessSize() {
16511
      return (this.success == null) ? 0 : this.success.size();
16512
    }
16513
 
16514
    public java.util.Iterator<Agent> getSuccessIterator() {
16515
      return (this.success == null) ? null : this.success.iterator();
16516
    }
16517
 
16518
    public void addToSuccess(Agent elem) {
16519
      if (this.success == null) {
16520
        this.success = new ArrayList<Agent>();
16521
      }
16522
      this.success.add(elem);
16523
    }
16524
 
16525
    public List<Agent> getSuccess() {
16526
      return this.success;
16527
    }
16528
 
16529
    public void setSuccess(List<Agent> success) {
16530
      this.success = success;
16531
    }
16532
 
16533
    public void unsetSuccess() {
16534
      this.success = null;
16535
    }
16536
 
16537
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16538
    public boolean isSetSuccess() {
16539
      return this.success != null;
16540
    }
16541
 
16542
    public void setSuccessIsSet(boolean value) {
16543
      if (!value) {
16544
        this.success = null;
16545
      }
16546
    }
16547
 
16548
    public void setFieldValue(_Fields field, Object value) {
16549
      switch (field) {
16550
      case SUCCESS:
16551
        if (value == null) {
16552
          unsetSuccess();
16553
        } else {
16554
          setSuccess((List<Agent>)value);
16555
        }
16556
        break;
16557
 
16558
      }
16559
    }
16560
 
16561
    public Object getFieldValue(_Fields field) {
16562
      switch (field) {
16563
      case SUCCESS:
16564
        return getSuccess();
16565
 
16566
      }
16567
      throw new IllegalStateException();
16568
    }
16569
 
16570
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16571
    public boolean isSet(_Fields field) {
16572
      if (field == null) {
16573
        throw new IllegalArgumentException();
16574
      }
16575
 
16576
      switch (field) {
16577
      case SUCCESS:
16578
        return isSetSuccess();
16579
      }
16580
      throw new IllegalStateException();
16581
    }
16582
 
16583
    @Override
16584
    public boolean equals(Object that) {
16585
      if (that == null)
16586
        return false;
16587
      if (that instanceof getAgents_result)
16588
        return this.equals((getAgents_result)that);
16589
      return false;
16590
    }
16591
 
16592
    public boolean equals(getAgents_result that) {
16593
      if (that == null)
16594
        return false;
16595
 
16596
      boolean this_present_success = true && this.isSetSuccess();
16597
      boolean that_present_success = true && that.isSetSuccess();
16598
      if (this_present_success || that_present_success) {
16599
        if (!(this_present_success && that_present_success))
16600
          return false;
16601
        if (!this.success.equals(that.success))
16602
          return false;
16603
      }
16604
 
16605
      return true;
16606
    }
16607
 
16608
    @Override
16609
    public int hashCode() {
16610
      return 0;
16611
    }
16612
 
16613
    public int compareTo(getAgents_result other) {
16614
      if (!getClass().equals(other.getClass())) {
16615
        return getClass().getName().compareTo(other.getClass().getName());
16616
      }
16617
 
16618
      int lastComparison = 0;
16619
      getAgents_result typedOther = (getAgents_result)other;
16620
 
16621
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16622
      if (lastComparison != 0) {
16623
        return lastComparison;
16624
      }
16625
      if (isSetSuccess()) {
16626
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16627
        if (lastComparison != 0) {
16628
          return lastComparison;
16629
        }
16630
      }
16631
      return 0;
16632
    }
16633
 
16634
    public _Fields fieldForId(int fieldId) {
16635
      return _Fields.findByThriftId(fieldId);
16636
    }
16637
 
16638
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16639
      org.apache.thrift.protocol.TField field;
16640
      iprot.readStructBegin();
16641
      while (true)
16642
      {
16643
        field = iprot.readFieldBegin();
16644
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16645
          break;
16646
        }
16647
        switch (field.id) {
16648
          case 0: // SUCCESS
16649
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16650
              {
16651
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
16652
                this.success = new ArrayList<Agent>(_list25.size);
16653
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
16654
                {
16655
                  Agent _elem27; // required
16656
                  _elem27 = new Agent();
16657
                  _elem27.read(iprot);
16658
                  this.success.add(_elem27);
16659
                }
16660
                iprot.readListEnd();
16661
              }
16662
            } else { 
16663
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16664
            }
16665
            break;
16666
          default:
16667
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16668
        }
16669
        iprot.readFieldEnd();
16670
      }
16671
      iprot.readStructEnd();
16672
      validate();
16673
    }
16674
 
16675
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16676
      oprot.writeStructBegin(STRUCT_DESC);
16677
 
16678
      if (this.isSetSuccess()) {
16679
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16680
        {
16681
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16682
          for (Agent _iter28 : this.success)
16683
          {
16684
            _iter28.write(oprot);
16685
          }
16686
          oprot.writeListEnd();
16687
        }
16688
        oprot.writeFieldEnd();
16689
      }
16690
      oprot.writeFieldStop();
16691
      oprot.writeStructEnd();
16692
    }
16693
 
16694
    @Override
16695
    public String toString() {
16696
      StringBuilder sb = new StringBuilder("getAgents_result(");
16697
      boolean first = true;
16698
 
16699
      sb.append("success:");
16700
      if (this.success == null) {
16701
        sb.append("null");
16702
      } else {
16703
        sb.append(this.success);
16704
      }
16705
      first = false;
16706
      sb.append(")");
16707
      return sb.toString();
16708
    }
16709
 
16710
    public void validate() throws org.apache.thrift.TException {
16711
      // check for required fields
16712
    }
16713
 
16714
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16715
      try {
16716
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16717
      } catch (org.apache.thrift.TException te) {
16718
        throw new java.io.IOException(te);
16719
      }
16720
    }
16721
 
16722
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16723
      try {
16724
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16725
      } catch (org.apache.thrift.TException te) {
16726
        throw new java.io.IOException(te);
16727
      }
16728
    }
16729
 
16730
  }
16731
 
16732
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
16733
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
16734
 
16735
    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);
16736
    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);
16737
 
16738
    private String emailId; // required
16739
    private String password; // required
16740
 
16741
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16742
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16743
      EMAIL_ID((short)1, "emailId"),
16744
      PASSWORD((short)2, "password");
16745
 
16746
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16747
 
16748
      static {
16749
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16750
          byName.put(field.getFieldName(), field);
16751
        }
16752
      }
16753
 
16754
      /**
16755
       * Find the _Fields constant that matches fieldId, or null if its not found.
16756
       */
16757
      public static _Fields findByThriftId(int fieldId) {
16758
        switch(fieldId) {
16759
          case 1: // EMAIL_ID
16760
            return EMAIL_ID;
16761
          case 2: // PASSWORD
16762
            return PASSWORD;
16763
          default:
16764
            return null;
16765
        }
16766
      }
16767
 
16768
      /**
16769
       * Find the _Fields constant that matches fieldId, throwing an exception
16770
       * if it is not found.
16771
       */
16772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16773
        _Fields fields = findByThriftId(fieldId);
16774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16775
        return fields;
16776
      }
16777
 
16778
      /**
16779
       * Find the _Fields constant that matches name, or null if its not found.
16780
       */
16781
      public static _Fields findByName(String name) {
16782
        return byName.get(name);
16783
      }
16784
 
16785
      private final short _thriftId;
16786
      private final String _fieldName;
16787
 
16788
      _Fields(short thriftId, String fieldName) {
16789
        _thriftId = thriftId;
16790
        _fieldName = fieldName;
16791
      }
16792
 
16793
      public short getThriftFieldId() {
16794
        return _thriftId;
16795
      }
16796
 
16797
      public String getFieldName() {
16798
        return _fieldName;
16799
      }
16800
    }
16801
 
16802
    // isset id assignments
16803
 
16804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16805
    static {
16806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16807
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16809
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16810
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
16813
    }
16814
 
16815
    public validateLogIn_args() {
16816
    }
16817
 
16818
    public validateLogIn_args(
16819
      String emailId,
16820
      String password)
16821
    {
16822
      this();
16823
      this.emailId = emailId;
16824
      this.password = password;
16825
    }
16826
 
16827
    /**
16828
     * Performs a deep copy on <i>other</i>.
16829
     */
16830
    public validateLogIn_args(validateLogIn_args other) {
16831
      if (other.isSetEmailId()) {
16832
        this.emailId = other.emailId;
16833
      }
16834
      if (other.isSetPassword()) {
16835
        this.password = other.password;
16836
      }
16837
    }
16838
 
16839
    public validateLogIn_args deepCopy() {
16840
      return new validateLogIn_args(this);
16841
    }
16842
 
16843
    @Override
16844
    public void clear() {
16845
      this.emailId = null;
16846
      this.password = null;
16847
    }
16848
 
16849
    public String getEmailId() {
16850
      return this.emailId;
16851
    }
16852
 
16853
    public void setEmailId(String emailId) {
16854
      this.emailId = emailId;
16855
    }
16856
 
16857
    public void unsetEmailId() {
16858
      this.emailId = null;
16859
    }
16860
 
16861
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
16862
    public boolean isSetEmailId() {
16863
      return this.emailId != null;
16864
    }
16865
 
16866
    public void setEmailIdIsSet(boolean value) {
16867
      if (!value) {
16868
        this.emailId = null;
16869
      }
16870
    }
16871
 
16872
    public String getPassword() {
16873
      return this.password;
16874
    }
16875
 
16876
    public void setPassword(String password) {
16877
      this.password = password;
16878
    }
16879
 
16880
    public void unsetPassword() {
16881
      this.password = null;
16882
    }
16883
 
16884
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
16885
    public boolean isSetPassword() {
16886
      return this.password != null;
16887
    }
16888
 
16889
    public void setPasswordIsSet(boolean value) {
16890
      if (!value) {
16891
        this.password = null;
16892
      }
16893
    }
16894
 
16895
    public void setFieldValue(_Fields field, Object value) {
16896
      switch (field) {
16897
      case EMAIL_ID:
16898
        if (value == null) {
16899
          unsetEmailId();
16900
        } else {
16901
          setEmailId((String)value);
16902
        }
16903
        break;
16904
 
16905
      case PASSWORD:
16906
        if (value == null) {
16907
          unsetPassword();
16908
        } else {
16909
          setPassword((String)value);
16910
        }
16911
        break;
16912
 
16913
      }
16914
    }
16915
 
16916
    public Object getFieldValue(_Fields field) {
16917
      switch (field) {
16918
      case EMAIL_ID:
16919
        return getEmailId();
16920
 
16921
      case PASSWORD:
16922
        return getPassword();
16923
 
16924
      }
16925
      throw new IllegalStateException();
16926
    }
16927
 
16928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16929
    public boolean isSet(_Fields field) {
16930
      if (field == null) {
16931
        throw new IllegalArgumentException();
16932
      }
16933
 
16934
      switch (field) {
16935
      case EMAIL_ID:
16936
        return isSetEmailId();
16937
      case PASSWORD:
16938
        return isSetPassword();
16939
      }
16940
      throw new IllegalStateException();
16941
    }
16942
 
16943
    @Override
16944
    public boolean equals(Object that) {
16945
      if (that == null)
16946
        return false;
16947
      if (that instanceof validateLogIn_args)
16948
        return this.equals((validateLogIn_args)that);
16949
      return false;
16950
    }
16951
 
16952
    public boolean equals(validateLogIn_args that) {
16953
      if (that == null)
16954
        return false;
16955
 
16956
      boolean this_present_emailId = true && this.isSetEmailId();
16957
      boolean that_present_emailId = true && that.isSetEmailId();
16958
      if (this_present_emailId || that_present_emailId) {
16959
        if (!(this_present_emailId && that_present_emailId))
16960
          return false;
16961
        if (!this.emailId.equals(that.emailId))
16962
          return false;
16963
      }
16964
 
16965
      boolean this_present_password = true && this.isSetPassword();
16966
      boolean that_present_password = true && that.isSetPassword();
16967
      if (this_present_password || that_present_password) {
16968
        if (!(this_present_password && that_present_password))
16969
          return false;
16970
        if (!this.password.equals(that.password))
16971
          return false;
16972
      }
16973
 
16974
      return true;
16975
    }
16976
 
16977
    @Override
16978
    public int hashCode() {
16979
      return 0;
16980
    }
16981
 
16982
    public int compareTo(validateLogIn_args other) {
16983
      if (!getClass().equals(other.getClass())) {
16984
        return getClass().getName().compareTo(other.getClass().getName());
16985
      }
16986
 
16987
      int lastComparison = 0;
16988
      validateLogIn_args typedOther = (validateLogIn_args)other;
16989
 
16990
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
16991
      if (lastComparison != 0) {
16992
        return lastComparison;
16993
      }
16994
      if (isSetEmailId()) {
16995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
16996
        if (lastComparison != 0) {
16997
          return lastComparison;
16998
        }
16999
      }
17000
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17001
      if (lastComparison != 0) {
17002
        return lastComparison;
17003
      }
17004
      if (isSetPassword()) {
17005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17006
        if (lastComparison != 0) {
17007
          return lastComparison;
17008
        }
17009
      }
17010
      return 0;
17011
    }
17012
 
17013
    public _Fields fieldForId(int fieldId) {
17014
      return _Fields.findByThriftId(fieldId);
17015
    }
17016
 
17017
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17018
      org.apache.thrift.protocol.TField field;
17019
      iprot.readStructBegin();
17020
      while (true)
17021
      {
17022
        field = iprot.readFieldBegin();
17023
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17024
          break;
17025
        }
17026
        switch (field.id) {
17027
          case 1: // EMAIL_ID
17028
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17029
              this.emailId = iprot.readString();
17030
            } else { 
17031
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17032
            }
17033
            break;
17034
          case 2: // PASSWORD
17035
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17036
              this.password = iprot.readString();
17037
            } else { 
17038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17039
            }
17040
            break;
17041
          default:
17042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17043
        }
17044
        iprot.readFieldEnd();
17045
      }
17046
      iprot.readStructEnd();
17047
      validate();
17048
    }
17049
 
17050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17051
      validate();
17052
 
17053
      oprot.writeStructBegin(STRUCT_DESC);
17054
      if (this.emailId != null) {
17055
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17056
        oprot.writeString(this.emailId);
17057
        oprot.writeFieldEnd();
17058
      }
17059
      if (this.password != null) {
17060
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17061
        oprot.writeString(this.password);
17062
        oprot.writeFieldEnd();
17063
      }
17064
      oprot.writeFieldStop();
17065
      oprot.writeStructEnd();
17066
    }
17067
 
17068
    @Override
17069
    public String toString() {
17070
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17071
      boolean first = true;
17072
 
17073
      sb.append("emailId:");
17074
      if (this.emailId == null) {
17075
        sb.append("null");
17076
      } else {
17077
        sb.append(this.emailId);
17078
      }
17079
      first = false;
17080
      if (!first) sb.append(", ");
17081
      sb.append("password:");
17082
      if (this.password == null) {
17083
        sb.append("null");
17084
      } else {
17085
        sb.append(this.password);
17086
      }
17087
      first = false;
17088
      sb.append(")");
17089
      return sb.toString();
17090
    }
17091
 
17092
    public void validate() throws org.apache.thrift.TException {
17093
      // check for required fields
17094
    }
17095
 
17096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17097
      try {
17098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17099
      } catch (org.apache.thrift.TException te) {
17100
        throw new java.io.IOException(te);
17101
      }
17102
    }
17103
 
17104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17105
      try {
17106
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17107
      } catch (org.apache.thrift.TException te) {
17108
        throw new java.io.IOException(te);
17109
      }
17110
    }
17111
 
17112
  }
17113
 
17114
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17115
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17116
 
17117
    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);
17118
 
17119
    private boolean success; // required
17120
 
17121
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17122
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17123
      SUCCESS((short)0, "success");
17124
 
17125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17126
 
17127
      static {
17128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17129
          byName.put(field.getFieldName(), field);
17130
        }
17131
      }
17132
 
17133
      /**
17134
       * Find the _Fields constant that matches fieldId, or null if its not found.
17135
       */
17136
      public static _Fields findByThriftId(int fieldId) {
17137
        switch(fieldId) {
17138
          case 0: // SUCCESS
17139
            return SUCCESS;
17140
          default:
17141
            return null;
17142
        }
17143
      }
17144
 
17145
      /**
17146
       * Find the _Fields constant that matches fieldId, throwing an exception
17147
       * if it is not found.
17148
       */
17149
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17150
        _Fields fields = findByThriftId(fieldId);
17151
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17152
        return fields;
17153
      }
17154
 
17155
      /**
17156
       * Find the _Fields constant that matches name, or null if its not found.
17157
       */
17158
      public static _Fields findByName(String name) {
17159
        return byName.get(name);
17160
      }
17161
 
17162
      private final short _thriftId;
17163
      private final String _fieldName;
17164
 
17165
      _Fields(short thriftId, String fieldName) {
17166
        _thriftId = thriftId;
17167
        _fieldName = fieldName;
17168
      }
17169
 
17170
      public short getThriftFieldId() {
17171
        return _thriftId;
17172
      }
17173
 
17174
      public String getFieldName() {
17175
        return _fieldName;
17176
      }
17177
    }
17178
 
17179
    // isset id assignments
17180
    private static final int __SUCCESS_ISSET_ID = 0;
17181
    private BitSet __isset_bit_vector = new BitSet(1);
17182
 
17183
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17184
    static {
17185
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17186
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17187
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17190
    }
17191
 
17192
    public validateLogIn_result() {
17193
    }
17194
 
17195
    public validateLogIn_result(
17196
      boolean success)
17197
    {
17198
      this();
17199
      this.success = success;
17200
      setSuccessIsSet(true);
17201
    }
17202
 
17203
    /**
17204
     * Performs a deep copy on <i>other</i>.
17205
     */
17206
    public validateLogIn_result(validateLogIn_result other) {
17207
      __isset_bit_vector.clear();
17208
      __isset_bit_vector.or(other.__isset_bit_vector);
17209
      this.success = other.success;
17210
    }
17211
 
17212
    public validateLogIn_result deepCopy() {
17213
      return new validateLogIn_result(this);
17214
    }
17215
 
17216
    @Override
17217
    public void clear() {
17218
      setSuccessIsSet(false);
17219
      this.success = false;
17220
    }
17221
 
17222
    public boolean isSuccess() {
17223
      return this.success;
17224
    }
17225
 
17226
    public void setSuccess(boolean success) {
17227
      this.success = success;
17228
      setSuccessIsSet(true);
17229
    }
17230
 
17231
    public void unsetSuccess() {
17232
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17233
    }
17234
 
17235
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17236
    public boolean isSetSuccess() {
17237
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17238
    }
17239
 
17240
    public void setSuccessIsSet(boolean value) {
17241
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17242
    }
17243
 
17244
    public void setFieldValue(_Fields field, Object value) {
17245
      switch (field) {
17246
      case SUCCESS:
17247
        if (value == null) {
17248
          unsetSuccess();
17249
        } else {
17250
          setSuccess((Boolean)value);
17251
        }
17252
        break;
17253
 
17254
      }
17255
    }
17256
 
17257
    public Object getFieldValue(_Fields field) {
17258
      switch (field) {
17259
      case SUCCESS:
17260
        return Boolean.valueOf(isSuccess());
17261
 
17262
      }
17263
      throw new IllegalStateException();
17264
    }
17265
 
17266
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17267
    public boolean isSet(_Fields field) {
17268
      if (field == null) {
17269
        throw new IllegalArgumentException();
17270
      }
17271
 
17272
      switch (field) {
17273
      case SUCCESS:
17274
        return isSetSuccess();
17275
      }
17276
      throw new IllegalStateException();
17277
    }
17278
 
17279
    @Override
17280
    public boolean equals(Object that) {
17281
      if (that == null)
17282
        return false;
17283
      if (that instanceof validateLogIn_result)
17284
        return this.equals((validateLogIn_result)that);
17285
      return false;
17286
    }
17287
 
17288
    public boolean equals(validateLogIn_result that) {
17289
      if (that == null)
17290
        return false;
17291
 
17292
      boolean this_present_success = true;
17293
      boolean that_present_success = true;
17294
      if (this_present_success || that_present_success) {
17295
        if (!(this_present_success && that_present_success))
17296
          return false;
17297
        if (this.success != that.success)
17298
          return false;
17299
      }
17300
 
17301
      return true;
17302
    }
17303
 
17304
    @Override
17305
    public int hashCode() {
17306
      return 0;
17307
    }
17308
 
17309
    public int compareTo(validateLogIn_result other) {
17310
      if (!getClass().equals(other.getClass())) {
17311
        return getClass().getName().compareTo(other.getClass().getName());
17312
      }
17313
 
17314
      int lastComparison = 0;
17315
      validateLogIn_result typedOther = (validateLogIn_result)other;
17316
 
17317
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17318
      if (lastComparison != 0) {
17319
        return lastComparison;
17320
      }
17321
      if (isSetSuccess()) {
17322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17323
        if (lastComparison != 0) {
17324
          return lastComparison;
17325
        }
17326
      }
17327
      return 0;
17328
    }
17329
 
17330
    public _Fields fieldForId(int fieldId) {
17331
      return _Fields.findByThriftId(fieldId);
17332
    }
17333
 
17334
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17335
      org.apache.thrift.protocol.TField field;
17336
      iprot.readStructBegin();
17337
      while (true)
17338
      {
17339
        field = iprot.readFieldBegin();
17340
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17341
          break;
17342
        }
17343
        switch (field.id) {
17344
          case 0: // SUCCESS
17345
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17346
              this.success = iprot.readBool();
17347
              setSuccessIsSet(true);
17348
            } else { 
17349
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17350
            }
17351
            break;
17352
          default:
17353
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17354
        }
17355
        iprot.readFieldEnd();
17356
      }
17357
      iprot.readStructEnd();
17358
      validate();
17359
    }
17360
 
17361
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17362
      oprot.writeStructBegin(STRUCT_DESC);
17363
 
17364
      if (this.isSetSuccess()) {
17365
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17366
        oprot.writeBool(this.success);
17367
        oprot.writeFieldEnd();
17368
      }
17369
      oprot.writeFieldStop();
17370
      oprot.writeStructEnd();
17371
    }
17372
 
17373
    @Override
17374
    public String toString() {
17375
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17376
      boolean first = true;
17377
 
17378
      sb.append("success:");
17379
      sb.append(this.success);
17380
      first = false;
17381
      sb.append(")");
17382
      return sb.toString();
17383
    }
17384
 
17385
    public void validate() throws org.apache.thrift.TException {
17386
      // check for required fields
17387
    }
17388
 
17389
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17390
      try {
17391
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17392
      } catch (org.apache.thrift.TException te) {
17393
        throw new java.io.IOException(te);
17394
      }
17395
    }
17396
 
17397
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17398
      try {
17399
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17400
      } catch (org.apache.thrift.TException te) {
17401
        throw new java.io.IOException(te);
17402
      }
17403
    }
17404
 
17405
  }
17406
 
17407
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17408
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17409
 
17410
    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);
17411
    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);
17412
 
17413
    private String agentEmailId; // required
17414
    private String password; // required
17415
 
17416
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17417
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17418
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17419
      PASSWORD((short)2, "password");
17420
 
17421
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17422
 
17423
      static {
17424
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17425
          byName.put(field.getFieldName(), field);
17426
        }
17427
      }
17428
 
17429
      /**
17430
       * Find the _Fields constant that matches fieldId, or null if its not found.
17431
       */
17432
      public static _Fields findByThriftId(int fieldId) {
17433
        switch(fieldId) {
17434
          case 1: // AGENT_EMAIL_ID
17435
            return AGENT_EMAIL_ID;
17436
          case 2: // PASSWORD
17437
            return PASSWORD;
17438
          default:
17439
            return null;
17440
        }
17441
      }
17442
 
17443
      /**
17444
       * Find the _Fields constant that matches fieldId, throwing an exception
17445
       * if it is not found.
17446
       */
17447
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17448
        _Fields fields = findByThriftId(fieldId);
17449
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17450
        return fields;
17451
      }
17452
 
17453
      /**
17454
       * Find the _Fields constant that matches name, or null if its not found.
17455
       */
17456
      public static _Fields findByName(String name) {
17457
        return byName.get(name);
17458
      }
17459
 
17460
      private final short _thriftId;
17461
      private final String _fieldName;
17462
 
17463
      _Fields(short thriftId, String fieldName) {
17464
        _thriftId = thriftId;
17465
        _fieldName = fieldName;
17466
      }
17467
 
17468
      public short getThriftFieldId() {
17469
        return _thriftId;
17470
      }
17471
 
17472
      public String getFieldName() {
17473
        return _fieldName;
17474
      }
17475
    }
17476
 
17477
    // isset id assignments
17478
 
17479
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17480
    static {
17481
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17482
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17483
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17484
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17488
    }
17489
 
17490
    public updatePasswordForAgent_args() {
17491
    }
17492
 
17493
    public updatePasswordForAgent_args(
17494
      String agentEmailId,
17495
      String password)
17496
    {
17497
      this();
17498
      this.agentEmailId = agentEmailId;
17499
      this.password = password;
17500
    }
17501
 
17502
    /**
17503
     * Performs a deep copy on <i>other</i>.
17504
     */
17505
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17506
      if (other.isSetAgentEmailId()) {
17507
        this.agentEmailId = other.agentEmailId;
17508
      }
17509
      if (other.isSetPassword()) {
17510
        this.password = other.password;
17511
      }
17512
    }
17513
 
17514
    public updatePasswordForAgent_args deepCopy() {
17515
      return new updatePasswordForAgent_args(this);
17516
    }
17517
 
17518
    @Override
17519
    public void clear() {
17520
      this.agentEmailId = null;
17521
      this.password = null;
17522
    }
17523
 
17524
    public String getAgentEmailId() {
17525
      return this.agentEmailId;
17526
    }
17527
 
17528
    public void setAgentEmailId(String agentEmailId) {
17529
      this.agentEmailId = agentEmailId;
17530
    }
17531
 
17532
    public void unsetAgentEmailId() {
17533
      this.agentEmailId = null;
17534
    }
17535
 
17536
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
17537
    public boolean isSetAgentEmailId() {
17538
      return this.agentEmailId != null;
17539
    }
17540
 
17541
    public void setAgentEmailIdIsSet(boolean value) {
17542
      if (!value) {
17543
        this.agentEmailId = null;
17544
      }
17545
    }
17546
 
17547
    public String getPassword() {
17548
      return this.password;
17549
    }
17550
 
17551
    public void setPassword(String password) {
17552
      this.password = password;
17553
    }
17554
 
17555
    public void unsetPassword() {
17556
      this.password = null;
17557
    }
17558
 
17559
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17560
    public boolean isSetPassword() {
17561
      return this.password != null;
17562
    }
17563
 
17564
    public void setPasswordIsSet(boolean value) {
17565
      if (!value) {
17566
        this.password = null;
17567
      }
17568
    }
17569
 
17570
    public void setFieldValue(_Fields field, Object value) {
17571
      switch (field) {
17572
      case AGENT_EMAIL_ID:
17573
        if (value == null) {
17574
          unsetAgentEmailId();
17575
        } else {
17576
          setAgentEmailId((String)value);
17577
        }
17578
        break;
17579
 
17580
      case PASSWORD:
17581
        if (value == null) {
17582
          unsetPassword();
17583
        } else {
17584
          setPassword((String)value);
17585
        }
17586
        break;
17587
 
17588
      }
17589
    }
17590
 
17591
    public Object getFieldValue(_Fields field) {
17592
      switch (field) {
17593
      case AGENT_EMAIL_ID:
17594
        return getAgentEmailId();
17595
 
17596
      case PASSWORD:
17597
        return getPassword();
17598
 
17599
      }
17600
      throw new IllegalStateException();
17601
    }
17602
 
17603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17604
    public boolean isSet(_Fields field) {
17605
      if (field == null) {
17606
        throw new IllegalArgumentException();
17607
      }
17608
 
17609
      switch (field) {
17610
      case AGENT_EMAIL_ID:
17611
        return isSetAgentEmailId();
17612
      case PASSWORD:
17613
        return isSetPassword();
17614
      }
17615
      throw new IllegalStateException();
17616
    }
17617
 
17618
    @Override
17619
    public boolean equals(Object that) {
17620
      if (that == null)
17621
        return false;
17622
      if (that instanceof updatePasswordForAgent_args)
17623
        return this.equals((updatePasswordForAgent_args)that);
17624
      return false;
17625
    }
17626
 
17627
    public boolean equals(updatePasswordForAgent_args that) {
17628
      if (that == null)
17629
        return false;
17630
 
17631
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
17632
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
17633
      if (this_present_agentEmailId || that_present_agentEmailId) {
17634
        if (!(this_present_agentEmailId && that_present_agentEmailId))
17635
          return false;
17636
        if (!this.agentEmailId.equals(that.agentEmailId))
17637
          return false;
17638
      }
17639
 
17640
      boolean this_present_password = true && this.isSetPassword();
17641
      boolean that_present_password = true && that.isSetPassword();
17642
      if (this_present_password || that_present_password) {
17643
        if (!(this_present_password && that_present_password))
17644
          return false;
17645
        if (!this.password.equals(that.password))
17646
          return false;
17647
      }
17648
 
17649
      return true;
17650
    }
17651
 
17652
    @Override
17653
    public int hashCode() {
17654
      return 0;
17655
    }
17656
 
17657
    public int compareTo(updatePasswordForAgent_args other) {
17658
      if (!getClass().equals(other.getClass())) {
17659
        return getClass().getName().compareTo(other.getClass().getName());
17660
      }
17661
 
17662
      int lastComparison = 0;
17663
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
17664
 
17665
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
17666
      if (lastComparison != 0) {
17667
        return lastComparison;
17668
      }
17669
      if (isSetAgentEmailId()) {
17670
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
17671
        if (lastComparison != 0) {
17672
          return lastComparison;
17673
        }
17674
      }
17675
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17676
      if (lastComparison != 0) {
17677
        return lastComparison;
17678
      }
17679
      if (isSetPassword()) {
17680
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17681
        if (lastComparison != 0) {
17682
          return lastComparison;
17683
        }
17684
      }
17685
      return 0;
17686
    }
17687
 
17688
    public _Fields fieldForId(int fieldId) {
17689
      return _Fields.findByThriftId(fieldId);
17690
    }
17691
 
17692
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17693
      org.apache.thrift.protocol.TField field;
17694
      iprot.readStructBegin();
17695
      while (true)
17696
      {
17697
        field = iprot.readFieldBegin();
17698
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17699
          break;
17700
        }
17701
        switch (field.id) {
17702
          case 1: // AGENT_EMAIL_ID
17703
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17704
              this.agentEmailId = iprot.readString();
17705
            } else { 
17706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17707
            }
17708
            break;
17709
          case 2: // PASSWORD
17710
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17711
              this.password = iprot.readString();
17712
            } else { 
17713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17714
            }
17715
            break;
17716
          default:
17717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17718
        }
17719
        iprot.readFieldEnd();
17720
      }
17721
      iprot.readStructEnd();
17722
      validate();
17723
    }
17724
 
17725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17726
      validate();
17727
 
17728
      oprot.writeStructBegin(STRUCT_DESC);
17729
      if (this.agentEmailId != null) {
17730
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
17731
        oprot.writeString(this.agentEmailId);
17732
        oprot.writeFieldEnd();
17733
      }
17734
      if (this.password != null) {
17735
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17736
        oprot.writeString(this.password);
17737
        oprot.writeFieldEnd();
17738
      }
17739
      oprot.writeFieldStop();
17740
      oprot.writeStructEnd();
17741
    }
17742
 
17743
    @Override
17744
    public String toString() {
17745
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
17746
      boolean first = true;
17747
 
17748
      sb.append("agentEmailId:");
17749
      if (this.agentEmailId == null) {
17750
        sb.append("null");
17751
      } else {
17752
        sb.append(this.agentEmailId);
17753
      }
17754
      first = false;
17755
      if (!first) sb.append(", ");
17756
      sb.append("password:");
17757
      if (this.password == null) {
17758
        sb.append("null");
17759
      } else {
17760
        sb.append(this.password);
17761
      }
17762
      first = false;
17763
      sb.append(")");
17764
      return sb.toString();
17765
    }
17766
 
17767
    public void validate() throws org.apache.thrift.TException {
17768
      // check for required fields
17769
    }
17770
 
17771
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17772
      try {
17773
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17774
      } catch (org.apache.thrift.TException te) {
17775
        throw new java.io.IOException(te);
17776
      }
17777
    }
17778
 
17779
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17780
      try {
17781
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17782
      } catch (org.apache.thrift.TException te) {
17783
        throw new java.io.IOException(te);
17784
      }
17785
    }
17786
 
17787
  }
17788
 
17789
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
17790
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
17791
 
17792
 
17793
 
17794
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17795
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17796
;
17797
 
17798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17799
 
17800
      static {
17801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17802
          byName.put(field.getFieldName(), field);
17803
        }
17804
      }
17805
 
17806
      /**
17807
       * Find the _Fields constant that matches fieldId, or null if its not found.
17808
       */
17809
      public static _Fields findByThriftId(int fieldId) {
17810
        switch(fieldId) {
17811
          default:
17812
            return null;
17813
        }
17814
      }
17815
 
17816
      /**
17817
       * Find the _Fields constant that matches fieldId, throwing an exception
17818
       * if it is not found.
17819
       */
17820
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17821
        _Fields fields = findByThriftId(fieldId);
17822
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17823
        return fields;
17824
      }
17825
 
17826
      /**
17827
       * Find the _Fields constant that matches name, or null if its not found.
17828
       */
17829
      public static _Fields findByName(String name) {
17830
        return byName.get(name);
17831
      }
17832
 
17833
      private final short _thriftId;
17834
      private final String _fieldName;
17835
 
17836
      _Fields(short thriftId, String fieldName) {
17837
        _thriftId = thriftId;
17838
        _fieldName = fieldName;
17839
      }
17840
 
17841
      public short getThriftFieldId() {
17842
        return _thriftId;
17843
      }
17844
 
17845
      public String getFieldName() {
17846
        return _fieldName;
17847
      }
17848
    }
17849
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17850
    static {
17851
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
17854
    }
17855
 
17856
    public updatePasswordForAgent_result() {
17857
    }
17858
 
17859
    /**
17860
     * Performs a deep copy on <i>other</i>.
17861
     */
17862
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
17863
    }
17864
 
17865
    public updatePasswordForAgent_result deepCopy() {
17866
      return new updatePasswordForAgent_result(this);
17867
    }
17868
 
17869
    @Override
17870
    public void clear() {
17871
    }
17872
 
17873
    public void setFieldValue(_Fields field, Object value) {
17874
      switch (field) {
17875
      }
17876
    }
17877
 
17878
    public Object getFieldValue(_Fields field) {
17879
      switch (field) {
17880
      }
17881
      throw new IllegalStateException();
17882
    }
17883
 
17884
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17885
    public boolean isSet(_Fields field) {
17886
      if (field == null) {
17887
        throw new IllegalArgumentException();
17888
      }
17889
 
17890
      switch (field) {
17891
      }
17892
      throw new IllegalStateException();
17893
    }
17894
 
17895
    @Override
17896
    public boolean equals(Object that) {
17897
      if (that == null)
17898
        return false;
17899
      if (that instanceof updatePasswordForAgent_result)
17900
        return this.equals((updatePasswordForAgent_result)that);
17901
      return false;
17902
    }
17903
 
17904
    public boolean equals(updatePasswordForAgent_result that) {
17905
      if (that == null)
17906
        return false;
17907
 
17908
      return true;
17909
    }
17910
 
17911
    @Override
17912
    public int hashCode() {
17913
      return 0;
17914
    }
17915
 
17916
    public int compareTo(updatePasswordForAgent_result other) {
17917
      if (!getClass().equals(other.getClass())) {
17918
        return getClass().getName().compareTo(other.getClass().getName());
17919
      }
17920
 
17921
      int lastComparison = 0;
17922
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
17923
 
17924
      return 0;
17925
    }
17926
 
17927
    public _Fields fieldForId(int fieldId) {
17928
      return _Fields.findByThriftId(fieldId);
17929
    }
17930
 
17931
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17932
      org.apache.thrift.protocol.TField field;
17933
      iprot.readStructBegin();
17934
      while (true)
17935
      {
17936
        field = iprot.readFieldBegin();
17937
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17938
          break;
17939
        }
17940
        switch (field.id) {
17941
          default:
17942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17943
        }
17944
        iprot.readFieldEnd();
17945
      }
17946
      iprot.readStructEnd();
17947
      validate();
17948
    }
17949
 
17950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17951
      oprot.writeStructBegin(STRUCT_DESC);
17952
 
17953
      oprot.writeFieldStop();
17954
      oprot.writeStructEnd();
17955
    }
17956
 
17957
    @Override
17958
    public String toString() {
17959
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
17960
      boolean first = true;
17961
 
17962
      sb.append(")");
17963
      return sb.toString();
17964
    }
17965
 
17966
    public void validate() throws org.apache.thrift.TException {
17967
      // check for required fields
17968
    }
17969
 
17970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17971
      try {
17972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17973
      } catch (org.apache.thrift.TException te) {
17974
        throw new java.io.IOException(te);
17975
      }
17976
    }
17977
 
17978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17979
      try {
17980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17981
      } catch (org.apache.thrift.TException te) {
17982
        throw new java.io.IOException(te);
17983
      }
17984
    }
17985
 
17986
  }
17987
 
17988
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
17990
 
17991
    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);
17992
 
17993
    private String agentEmailId; // required
17994
 
17995
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17996
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17997
      AGENT_EMAIL_ID((short)1, "agentEmailId");
17998
 
17999
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18000
 
18001
      static {
18002
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18003
          byName.put(field.getFieldName(), field);
18004
        }
18005
      }
18006
 
18007
      /**
18008
       * Find the _Fields constant that matches fieldId, or null if its not found.
18009
       */
18010
      public static _Fields findByThriftId(int fieldId) {
18011
        switch(fieldId) {
18012
          case 1: // AGENT_EMAIL_ID
18013
            return AGENT_EMAIL_ID;
18014
          default:
18015
            return null;
18016
        }
18017
      }
18018
 
18019
      /**
18020
       * Find the _Fields constant that matches fieldId, throwing an exception
18021
       * if it is not found.
18022
       */
18023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18024
        _Fields fields = findByThriftId(fieldId);
18025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18026
        return fields;
18027
      }
18028
 
18029
      /**
18030
       * Find the _Fields constant that matches name, or null if its not found.
18031
       */
18032
      public static _Fields findByName(String name) {
18033
        return byName.get(name);
18034
      }
18035
 
18036
      private final short _thriftId;
18037
      private final String _fieldName;
18038
 
18039
      _Fields(short thriftId, String fieldName) {
18040
        _thriftId = thriftId;
18041
        _fieldName = fieldName;
18042
      }
18043
 
18044
      public short getThriftFieldId() {
18045
        return _thriftId;
18046
      }
18047
 
18048
      public String getFieldName() {
18049
        return _fieldName;
18050
      }
18051
    }
18052
 
18053
    // isset id assignments
18054
 
18055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18056
    static {
18057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18058
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18062
    }
18063
 
18064
    public getRoleNamesForAgent_args() {
18065
    }
18066
 
18067
    public getRoleNamesForAgent_args(
18068
      String agentEmailId)
18069
    {
18070
      this();
18071
      this.agentEmailId = agentEmailId;
18072
    }
18073
 
18074
    /**
18075
     * Performs a deep copy on <i>other</i>.
18076
     */
18077
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18078
      if (other.isSetAgentEmailId()) {
18079
        this.agentEmailId = other.agentEmailId;
18080
      }
18081
    }
18082
 
18083
    public getRoleNamesForAgent_args deepCopy() {
18084
      return new getRoleNamesForAgent_args(this);
18085
    }
18086
 
18087
    @Override
18088
    public void clear() {
18089
      this.agentEmailId = null;
18090
    }
18091
 
18092
    public String getAgentEmailId() {
18093
      return this.agentEmailId;
18094
    }
18095
 
18096
    public void setAgentEmailId(String agentEmailId) {
18097
      this.agentEmailId = agentEmailId;
18098
    }
18099
 
18100
    public void unsetAgentEmailId() {
18101
      this.agentEmailId = null;
18102
    }
18103
 
18104
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18105
    public boolean isSetAgentEmailId() {
18106
      return this.agentEmailId != null;
18107
    }
18108
 
18109
    public void setAgentEmailIdIsSet(boolean value) {
18110
      if (!value) {
18111
        this.agentEmailId = null;
18112
      }
18113
    }
18114
 
18115
    public void setFieldValue(_Fields field, Object value) {
18116
      switch (field) {
18117
      case AGENT_EMAIL_ID:
18118
        if (value == null) {
18119
          unsetAgentEmailId();
18120
        } else {
18121
          setAgentEmailId((String)value);
18122
        }
18123
        break;
18124
 
18125
      }
18126
    }
18127
 
18128
    public Object getFieldValue(_Fields field) {
18129
      switch (field) {
18130
      case AGENT_EMAIL_ID:
18131
        return getAgentEmailId();
18132
 
18133
      }
18134
      throw new IllegalStateException();
18135
    }
18136
 
18137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18138
    public boolean isSet(_Fields field) {
18139
      if (field == null) {
18140
        throw new IllegalArgumentException();
18141
      }
18142
 
18143
      switch (field) {
18144
      case AGENT_EMAIL_ID:
18145
        return isSetAgentEmailId();
18146
      }
18147
      throw new IllegalStateException();
18148
    }
18149
 
18150
    @Override
18151
    public boolean equals(Object that) {
18152
      if (that == null)
18153
        return false;
18154
      if (that instanceof getRoleNamesForAgent_args)
18155
        return this.equals((getRoleNamesForAgent_args)that);
18156
      return false;
18157
    }
18158
 
18159
    public boolean equals(getRoleNamesForAgent_args that) {
18160
      if (that == null)
18161
        return false;
18162
 
18163
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18164
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18165
      if (this_present_agentEmailId || that_present_agentEmailId) {
18166
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18167
          return false;
18168
        if (!this.agentEmailId.equals(that.agentEmailId))
18169
          return false;
18170
      }
18171
 
18172
      return true;
18173
    }
18174
 
18175
    @Override
18176
    public int hashCode() {
18177
      return 0;
18178
    }
18179
 
18180
    public int compareTo(getRoleNamesForAgent_args other) {
18181
      if (!getClass().equals(other.getClass())) {
18182
        return getClass().getName().compareTo(other.getClass().getName());
18183
      }
18184
 
18185
      int lastComparison = 0;
18186
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18187
 
18188
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18189
      if (lastComparison != 0) {
18190
        return lastComparison;
18191
      }
18192
      if (isSetAgentEmailId()) {
18193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18194
        if (lastComparison != 0) {
18195
          return lastComparison;
18196
        }
18197
      }
18198
      return 0;
18199
    }
18200
 
18201
    public _Fields fieldForId(int fieldId) {
18202
      return _Fields.findByThriftId(fieldId);
18203
    }
18204
 
18205
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18206
      org.apache.thrift.protocol.TField field;
18207
      iprot.readStructBegin();
18208
      while (true)
18209
      {
18210
        field = iprot.readFieldBegin();
18211
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18212
          break;
18213
        }
18214
        switch (field.id) {
18215
          case 1: // AGENT_EMAIL_ID
18216
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18217
              this.agentEmailId = iprot.readString();
18218
            } else { 
18219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18220
            }
18221
            break;
18222
          default:
18223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18224
        }
18225
        iprot.readFieldEnd();
18226
      }
18227
      iprot.readStructEnd();
18228
      validate();
18229
    }
18230
 
18231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18232
      validate();
18233
 
18234
      oprot.writeStructBegin(STRUCT_DESC);
18235
      if (this.agentEmailId != null) {
18236
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18237
        oprot.writeString(this.agentEmailId);
18238
        oprot.writeFieldEnd();
18239
      }
18240
      oprot.writeFieldStop();
18241
      oprot.writeStructEnd();
18242
    }
18243
 
18244
    @Override
18245
    public String toString() {
18246
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18247
      boolean first = true;
18248
 
18249
      sb.append("agentEmailId:");
18250
      if (this.agentEmailId == null) {
18251
        sb.append("null");
18252
      } else {
18253
        sb.append(this.agentEmailId);
18254
      }
18255
      first = false;
18256
      sb.append(")");
18257
      return sb.toString();
18258
    }
18259
 
18260
    public void validate() throws org.apache.thrift.TException {
18261
      // check for required fields
18262
    }
18263
 
18264
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18265
      try {
18266
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18267
      } catch (org.apache.thrift.TException te) {
18268
        throw new java.io.IOException(te);
18269
      }
18270
    }
18271
 
18272
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18273
      try {
18274
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18275
      } catch (org.apache.thrift.TException te) {
18276
        throw new java.io.IOException(te);
18277
      }
18278
    }
18279
 
18280
  }
18281
 
18282
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18283
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18284
 
18285
    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);
18286
 
18287
    private List<String> success; // required
18288
 
18289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18291
      SUCCESS((short)0, "success");
18292
 
18293
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18294
 
18295
      static {
18296
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18297
          byName.put(field.getFieldName(), field);
18298
        }
18299
      }
18300
 
18301
      /**
18302
       * Find the _Fields constant that matches fieldId, or null if its not found.
18303
       */
18304
      public static _Fields findByThriftId(int fieldId) {
18305
        switch(fieldId) {
18306
          case 0: // SUCCESS
18307
            return SUCCESS;
18308
          default:
18309
            return null;
18310
        }
18311
      }
18312
 
18313
      /**
18314
       * Find the _Fields constant that matches fieldId, throwing an exception
18315
       * if it is not found.
18316
       */
18317
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18318
        _Fields fields = findByThriftId(fieldId);
18319
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18320
        return fields;
18321
      }
18322
 
18323
      /**
18324
       * Find the _Fields constant that matches name, or null if its not found.
18325
       */
18326
      public static _Fields findByName(String name) {
18327
        return byName.get(name);
18328
      }
18329
 
18330
      private final short _thriftId;
18331
      private final String _fieldName;
18332
 
18333
      _Fields(short thriftId, String fieldName) {
18334
        _thriftId = thriftId;
18335
        _fieldName = fieldName;
18336
      }
18337
 
18338
      public short getThriftFieldId() {
18339
        return _thriftId;
18340
      }
18341
 
18342
      public String getFieldName() {
18343
        return _fieldName;
18344
      }
18345
    }
18346
 
18347
    // isset id assignments
18348
 
18349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18350
    static {
18351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18352
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18353
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18354
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18357
    }
18358
 
18359
    public getRoleNamesForAgent_result() {
18360
    }
18361
 
18362
    public getRoleNamesForAgent_result(
18363
      List<String> success)
18364
    {
18365
      this();
18366
      this.success = success;
18367
    }
18368
 
18369
    /**
18370
     * Performs a deep copy on <i>other</i>.
18371
     */
18372
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18373
      if (other.isSetSuccess()) {
18374
        List<String> __this__success = new ArrayList<String>();
18375
        for (String other_element : other.success) {
18376
          __this__success.add(other_element);
18377
        }
18378
        this.success = __this__success;
18379
      }
18380
    }
18381
 
18382
    public getRoleNamesForAgent_result deepCopy() {
18383
      return new getRoleNamesForAgent_result(this);
18384
    }
18385
 
18386
    @Override
18387
    public void clear() {
18388
      this.success = null;
18389
    }
18390
 
18391
    public int getSuccessSize() {
18392
      return (this.success == null) ? 0 : this.success.size();
18393
    }
18394
 
18395
    public java.util.Iterator<String> getSuccessIterator() {
18396
      return (this.success == null) ? null : this.success.iterator();
18397
    }
18398
 
18399
    public void addToSuccess(String elem) {
18400
      if (this.success == null) {
18401
        this.success = new ArrayList<String>();
18402
      }
18403
      this.success.add(elem);
18404
    }
18405
 
18406
    public List<String> getSuccess() {
18407
      return this.success;
18408
    }
18409
 
18410
    public void setSuccess(List<String> success) {
18411
      this.success = success;
18412
    }
18413
 
18414
    public void unsetSuccess() {
18415
      this.success = null;
18416
    }
18417
 
18418
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18419
    public boolean isSetSuccess() {
18420
      return this.success != null;
18421
    }
18422
 
18423
    public void setSuccessIsSet(boolean value) {
18424
      if (!value) {
18425
        this.success = null;
18426
      }
18427
    }
18428
 
18429
    public void setFieldValue(_Fields field, Object value) {
18430
      switch (field) {
18431
      case SUCCESS:
18432
        if (value == null) {
18433
          unsetSuccess();
18434
        } else {
18435
          setSuccess((List<String>)value);
18436
        }
18437
        break;
18438
 
18439
      }
18440
    }
18441
 
18442
    public Object getFieldValue(_Fields field) {
18443
      switch (field) {
18444
      case SUCCESS:
18445
        return getSuccess();
18446
 
18447
      }
18448
      throw new IllegalStateException();
18449
    }
18450
 
18451
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18452
    public boolean isSet(_Fields field) {
18453
      if (field == null) {
18454
        throw new IllegalArgumentException();
18455
      }
18456
 
18457
      switch (field) {
18458
      case SUCCESS:
18459
        return isSetSuccess();
18460
      }
18461
      throw new IllegalStateException();
18462
    }
18463
 
18464
    @Override
18465
    public boolean equals(Object that) {
18466
      if (that == null)
18467
        return false;
18468
      if (that instanceof getRoleNamesForAgent_result)
18469
        return this.equals((getRoleNamesForAgent_result)that);
18470
      return false;
18471
    }
18472
 
18473
    public boolean equals(getRoleNamesForAgent_result that) {
18474
      if (that == null)
18475
        return false;
18476
 
18477
      boolean this_present_success = true && this.isSetSuccess();
18478
      boolean that_present_success = true && that.isSetSuccess();
18479
      if (this_present_success || that_present_success) {
18480
        if (!(this_present_success && that_present_success))
18481
          return false;
18482
        if (!this.success.equals(that.success))
18483
          return false;
18484
      }
18485
 
18486
      return true;
18487
    }
18488
 
18489
    @Override
18490
    public int hashCode() {
18491
      return 0;
18492
    }
18493
 
18494
    public int compareTo(getRoleNamesForAgent_result other) {
18495
      if (!getClass().equals(other.getClass())) {
18496
        return getClass().getName().compareTo(other.getClass().getName());
18497
      }
18498
 
18499
      int lastComparison = 0;
18500
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18501
 
18502
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18503
      if (lastComparison != 0) {
18504
        return lastComparison;
18505
      }
18506
      if (isSetSuccess()) {
18507
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18508
        if (lastComparison != 0) {
18509
          return lastComparison;
18510
        }
18511
      }
18512
      return 0;
18513
    }
18514
 
18515
    public _Fields fieldForId(int fieldId) {
18516
      return _Fields.findByThriftId(fieldId);
18517
    }
18518
 
18519
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18520
      org.apache.thrift.protocol.TField field;
18521
      iprot.readStructBegin();
18522
      while (true)
18523
      {
18524
        field = iprot.readFieldBegin();
18525
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18526
          break;
18527
        }
18528
        switch (field.id) {
18529
          case 0: // SUCCESS
18530
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18531
              {
18532
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
18533
                this.success = new ArrayList<String>(_list29.size);
18534
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
18535
                {
18536
                  String _elem31; // required
18537
                  _elem31 = iprot.readString();
18538
                  this.success.add(_elem31);
18539
                }
18540
                iprot.readListEnd();
18541
              }
18542
            } else { 
18543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18544
            }
18545
            break;
18546
          default:
18547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18548
        }
18549
        iprot.readFieldEnd();
18550
      }
18551
      iprot.readStructEnd();
18552
      validate();
18553
    }
18554
 
18555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18556
      oprot.writeStructBegin(STRUCT_DESC);
18557
 
18558
      if (this.isSetSuccess()) {
18559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18560
        {
18561
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
18562
          for (String _iter32 : this.success)
18563
          {
18564
            oprot.writeString(_iter32);
18565
          }
18566
          oprot.writeListEnd();
18567
        }
18568
        oprot.writeFieldEnd();
18569
      }
18570
      oprot.writeFieldStop();
18571
      oprot.writeStructEnd();
18572
    }
18573
 
18574
    @Override
18575
    public String toString() {
18576
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
18577
      boolean first = true;
18578
 
18579
      sb.append("success:");
18580
      if (this.success == null) {
18581
        sb.append("null");
18582
      } else {
18583
        sb.append(this.success);
18584
      }
18585
      first = false;
18586
      sb.append(")");
18587
      return sb.toString();
18588
    }
18589
 
18590
    public void validate() throws org.apache.thrift.TException {
18591
      // check for required fields
18592
    }
18593
 
18594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18595
      try {
18596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18597
      } catch (org.apache.thrift.TException te) {
18598
        throw new java.io.IOException(te);
18599
      }
18600
    }
18601
 
18602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18603
      try {
18604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18605
      } catch (org.apache.thrift.TException te) {
18606
        throw new java.io.IOException(te);
18607
      }
18608
    }
18609
 
18610
  }
18611
 
18612
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
18613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
18614
 
18615
    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);
18616
 
18617
    private String roleName; // required
18618
 
18619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18621
      ROLE_NAME((short)1, "roleName");
18622
 
18623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18624
 
18625
      static {
18626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18627
          byName.put(field.getFieldName(), field);
18628
        }
18629
      }
18630
 
18631
      /**
18632
       * Find the _Fields constant that matches fieldId, or null if its not found.
18633
       */
18634
      public static _Fields findByThriftId(int fieldId) {
18635
        switch(fieldId) {
18636
          case 1: // ROLE_NAME
18637
            return ROLE_NAME;
18638
          default:
18639
            return null;
18640
        }
18641
      }
18642
 
18643
      /**
18644
       * Find the _Fields constant that matches fieldId, throwing an exception
18645
       * if it is not found.
18646
       */
18647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18648
        _Fields fields = findByThriftId(fieldId);
18649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18650
        return fields;
18651
      }
18652
 
18653
      /**
18654
       * Find the _Fields constant that matches name, or null if its not found.
18655
       */
18656
      public static _Fields findByName(String name) {
18657
        return byName.get(name);
18658
      }
18659
 
18660
      private final short _thriftId;
18661
      private final String _fieldName;
18662
 
18663
      _Fields(short thriftId, String fieldName) {
18664
        _thriftId = thriftId;
18665
        _fieldName = fieldName;
18666
      }
18667
 
18668
      public short getThriftFieldId() {
18669
        return _thriftId;
18670
      }
18671
 
18672
      public String getFieldName() {
18673
        return _fieldName;
18674
      }
18675
    }
18676
 
18677
    // isset id assignments
18678
 
18679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18680
    static {
18681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18682
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18683
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18684
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18685
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
18686
    }
18687
 
18688
    public getPermissionsForRoleName_args() {
18689
    }
18690
 
18691
    public getPermissionsForRoleName_args(
18692
      String roleName)
18693
    {
18694
      this();
18695
      this.roleName = roleName;
18696
    }
18697
 
18698
    /**
18699
     * Performs a deep copy on <i>other</i>.
18700
     */
18701
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
18702
      if (other.isSetRoleName()) {
18703
        this.roleName = other.roleName;
18704
      }
18705
    }
18706
 
18707
    public getPermissionsForRoleName_args deepCopy() {
18708
      return new getPermissionsForRoleName_args(this);
18709
    }
18710
 
18711
    @Override
18712
    public void clear() {
18713
      this.roleName = null;
18714
    }
18715
 
18716
    public String getRoleName() {
18717
      return this.roleName;
18718
    }
18719
 
18720
    public void setRoleName(String roleName) {
18721
      this.roleName = roleName;
18722
    }
18723
 
18724
    public void unsetRoleName() {
18725
      this.roleName = null;
18726
    }
18727
 
18728
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
18729
    public boolean isSetRoleName() {
18730
      return this.roleName != null;
18731
    }
18732
 
18733
    public void setRoleNameIsSet(boolean value) {
18734
      if (!value) {
18735
        this.roleName = null;
18736
      }
18737
    }
18738
 
18739
    public void setFieldValue(_Fields field, Object value) {
18740
      switch (field) {
18741
      case ROLE_NAME:
18742
        if (value == null) {
18743
          unsetRoleName();
18744
        } else {
18745
          setRoleName((String)value);
18746
        }
18747
        break;
18748
 
18749
      }
18750
    }
18751
 
18752
    public Object getFieldValue(_Fields field) {
18753
      switch (field) {
18754
      case ROLE_NAME:
18755
        return getRoleName();
18756
 
18757
      }
18758
      throw new IllegalStateException();
18759
    }
18760
 
18761
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18762
    public boolean isSet(_Fields field) {
18763
      if (field == null) {
18764
        throw new IllegalArgumentException();
18765
      }
18766
 
18767
      switch (field) {
18768
      case ROLE_NAME:
18769
        return isSetRoleName();
18770
      }
18771
      throw new IllegalStateException();
18772
    }
18773
 
18774
    @Override
18775
    public boolean equals(Object that) {
18776
      if (that == null)
18777
        return false;
18778
      if (that instanceof getPermissionsForRoleName_args)
18779
        return this.equals((getPermissionsForRoleName_args)that);
18780
      return false;
18781
    }
18782
 
18783
    public boolean equals(getPermissionsForRoleName_args that) {
18784
      if (that == null)
18785
        return false;
18786
 
18787
      boolean this_present_roleName = true && this.isSetRoleName();
18788
      boolean that_present_roleName = true && that.isSetRoleName();
18789
      if (this_present_roleName || that_present_roleName) {
18790
        if (!(this_present_roleName && that_present_roleName))
18791
          return false;
18792
        if (!this.roleName.equals(that.roleName))
18793
          return false;
18794
      }
18795
 
18796
      return true;
18797
    }
18798
 
18799
    @Override
18800
    public int hashCode() {
18801
      return 0;
18802
    }
18803
 
18804
    public int compareTo(getPermissionsForRoleName_args other) {
18805
      if (!getClass().equals(other.getClass())) {
18806
        return getClass().getName().compareTo(other.getClass().getName());
18807
      }
18808
 
18809
      int lastComparison = 0;
18810
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
18811
 
18812
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
18813
      if (lastComparison != 0) {
18814
        return lastComparison;
18815
      }
18816
      if (isSetRoleName()) {
18817
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
18818
        if (lastComparison != 0) {
18819
          return lastComparison;
18820
        }
18821
      }
18822
      return 0;
18823
    }
18824
 
18825
    public _Fields fieldForId(int fieldId) {
18826
      return _Fields.findByThriftId(fieldId);
18827
    }
18828
 
18829
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18830
      org.apache.thrift.protocol.TField field;
18831
      iprot.readStructBegin();
18832
      while (true)
18833
      {
18834
        field = iprot.readFieldBegin();
18835
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18836
          break;
18837
        }
18838
        switch (field.id) {
18839
          case 1: // ROLE_NAME
18840
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18841
              this.roleName = iprot.readString();
18842
            } else { 
18843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18844
            }
18845
            break;
18846
          default:
18847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18848
        }
18849
        iprot.readFieldEnd();
18850
      }
18851
      iprot.readStructEnd();
18852
      validate();
18853
    }
18854
 
18855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18856
      validate();
18857
 
18858
      oprot.writeStructBegin(STRUCT_DESC);
18859
      if (this.roleName != null) {
18860
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
18861
        oprot.writeString(this.roleName);
18862
        oprot.writeFieldEnd();
18863
      }
18864
      oprot.writeFieldStop();
18865
      oprot.writeStructEnd();
18866
    }
18867
 
18868
    @Override
18869
    public String toString() {
18870
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
18871
      boolean first = true;
18872
 
18873
      sb.append("roleName:");
18874
      if (this.roleName == null) {
18875
        sb.append("null");
18876
      } else {
18877
        sb.append(this.roleName);
18878
      }
18879
      first = false;
18880
      sb.append(")");
18881
      return sb.toString();
18882
    }
18883
 
18884
    public void validate() throws org.apache.thrift.TException {
18885
      // check for required fields
18886
    }
18887
 
18888
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18889
      try {
18890
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18891
      } catch (org.apache.thrift.TException te) {
18892
        throw new java.io.IOException(te);
18893
      }
18894
    }
18895
 
18896
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18897
      try {
18898
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18899
      } catch (org.apache.thrift.TException te) {
18900
        throw new java.io.IOException(te);
18901
      }
18902
    }
18903
 
18904
  }
18905
 
18906
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
18907
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
18908
 
18909
    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);
18910
 
18911
    private List<String> success; // required
18912
 
18913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18914
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18915
      SUCCESS((short)0, "success");
18916
 
18917
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18918
 
18919
      static {
18920
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18921
          byName.put(field.getFieldName(), field);
18922
        }
18923
      }
18924
 
18925
      /**
18926
       * Find the _Fields constant that matches fieldId, or null if its not found.
18927
       */
18928
      public static _Fields findByThriftId(int fieldId) {
18929
        switch(fieldId) {
18930
          case 0: // SUCCESS
18931
            return SUCCESS;
18932
          default:
18933
            return null;
18934
        }
18935
      }
18936
 
18937
      /**
18938
       * Find the _Fields constant that matches fieldId, throwing an exception
18939
       * if it is not found.
18940
       */
18941
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18942
        _Fields fields = findByThriftId(fieldId);
18943
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18944
        return fields;
18945
      }
18946
 
18947
      /**
18948
       * Find the _Fields constant that matches name, or null if its not found.
18949
       */
18950
      public static _Fields findByName(String name) {
18951
        return byName.get(name);
18952
      }
18953
 
18954
      private final short _thriftId;
18955
      private final String _fieldName;
18956
 
18957
      _Fields(short thriftId, String fieldName) {
18958
        _thriftId = thriftId;
18959
        _fieldName = fieldName;
18960
      }
18961
 
18962
      public short getThriftFieldId() {
18963
        return _thriftId;
18964
      }
18965
 
18966
      public String getFieldName() {
18967
        return _fieldName;
18968
      }
18969
    }
18970
 
18971
    // isset id assignments
18972
 
18973
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18974
    static {
18975
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18976
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18977
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18978
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
18981
    }
18982
 
18983
    public getPermissionsForRoleName_result() {
18984
    }
18985
 
18986
    public getPermissionsForRoleName_result(
18987
      List<String> success)
18988
    {
18989
      this();
18990
      this.success = success;
18991
    }
18992
 
18993
    /**
18994
     * Performs a deep copy on <i>other</i>.
18995
     */
18996
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
18997
      if (other.isSetSuccess()) {
18998
        List<String> __this__success = new ArrayList<String>();
18999
        for (String other_element : other.success) {
19000
          __this__success.add(other_element);
19001
        }
19002
        this.success = __this__success;
19003
      }
19004
    }
19005
 
19006
    public getPermissionsForRoleName_result deepCopy() {
19007
      return new getPermissionsForRoleName_result(this);
19008
    }
19009
 
19010
    @Override
19011
    public void clear() {
19012
      this.success = null;
19013
    }
19014
 
19015
    public int getSuccessSize() {
19016
      return (this.success == null) ? 0 : this.success.size();
19017
    }
19018
 
19019
    public java.util.Iterator<String> getSuccessIterator() {
19020
      return (this.success == null) ? null : this.success.iterator();
19021
    }
19022
 
19023
    public void addToSuccess(String elem) {
19024
      if (this.success == null) {
19025
        this.success = new ArrayList<String>();
19026
      }
19027
      this.success.add(elem);
19028
    }
19029
 
19030
    public List<String> getSuccess() {
19031
      return this.success;
19032
    }
19033
 
19034
    public void setSuccess(List<String> success) {
19035
      this.success = success;
19036
    }
19037
 
19038
    public void unsetSuccess() {
19039
      this.success = null;
19040
    }
19041
 
19042
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19043
    public boolean isSetSuccess() {
19044
      return this.success != null;
19045
    }
19046
 
19047
    public void setSuccessIsSet(boolean value) {
19048
      if (!value) {
19049
        this.success = null;
19050
      }
19051
    }
19052
 
19053
    public void setFieldValue(_Fields field, Object value) {
19054
      switch (field) {
19055
      case SUCCESS:
19056
        if (value == null) {
19057
          unsetSuccess();
19058
        } else {
19059
          setSuccess((List<String>)value);
19060
        }
19061
        break;
19062
 
19063
      }
19064
    }
19065
 
19066
    public Object getFieldValue(_Fields field) {
19067
      switch (field) {
19068
      case SUCCESS:
19069
        return getSuccess();
19070
 
19071
      }
19072
      throw new IllegalStateException();
19073
    }
19074
 
19075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19076
    public boolean isSet(_Fields field) {
19077
      if (field == null) {
19078
        throw new IllegalArgumentException();
19079
      }
19080
 
19081
      switch (field) {
19082
      case SUCCESS:
19083
        return isSetSuccess();
19084
      }
19085
      throw new IllegalStateException();
19086
    }
19087
 
19088
    @Override
19089
    public boolean equals(Object that) {
19090
      if (that == null)
19091
        return false;
19092
      if (that instanceof getPermissionsForRoleName_result)
19093
        return this.equals((getPermissionsForRoleName_result)that);
19094
      return false;
19095
    }
19096
 
19097
    public boolean equals(getPermissionsForRoleName_result that) {
19098
      if (that == null)
19099
        return false;
19100
 
19101
      boolean this_present_success = true && this.isSetSuccess();
19102
      boolean that_present_success = true && that.isSetSuccess();
19103
      if (this_present_success || that_present_success) {
19104
        if (!(this_present_success && that_present_success))
19105
          return false;
19106
        if (!this.success.equals(that.success))
19107
          return false;
19108
      }
19109
 
19110
      return true;
19111
    }
19112
 
19113
    @Override
19114
    public int hashCode() {
19115
      return 0;
19116
    }
19117
 
19118
    public int compareTo(getPermissionsForRoleName_result other) {
19119
      if (!getClass().equals(other.getClass())) {
19120
        return getClass().getName().compareTo(other.getClass().getName());
19121
      }
19122
 
19123
      int lastComparison = 0;
19124
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19125
 
19126
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19127
      if (lastComparison != 0) {
19128
        return lastComparison;
19129
      }
19130
      if (isSetSuccess()) {
19131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19132
        if (lastComparison != 0) {
19133
          return lastComparison;
19134
        }
19135
      }
19136
      return 0;
19137
    }
19138
 
19139
    public _Fields fieldForId(int fieldId) {
19140
      return _Fields.findByThriftId(fieldId);
19141
    }
19142
 
19143
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19144
      org.apache.thrift.protocol.TField field;
19145
      iprot.readStructBegin();
19146
      while (true)
19147
      {
19148
        field = iprot.readFieldBegin();
19149
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19150
          break;
19151
        }
19152
        switch (field.id) {
19153
          case 0: // SUCCESS
19154
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19155
              {
19156
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19157
                this.success = new ArrayList<String>(_list33.size);
19158
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19159
                {
19160
                  String _elem35; // required
19161
                  _elem35 = iprot.readString();
19162
                  this.success.add(_elem35);
19163
                }
19164
                iprot.readListEnd();
19165
              }
19166
            } else { 
19167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19168
            }
19169
            break;
19170
          default:
19171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19172
        }
19173
        iprot.readFieldEnd();
19174
      }
19175
      iprot.readStructEnd();
19176
      validate();
19177
    }
19178
 
19179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19180
      oprot.writeStructBegin(STRUCT_DESC);
19181
 
19182
      if (this.isSetSuccess()) {
19183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19184
        {
19185
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19186
          for (String _iter36 : this.success)
19187
          {
19188
            oprot.writeString(_iter36);
19189
          }
19190
          oprot.writeListEnd();
19191
        }
19192
        oprot.writeFieldEnd();
19193
      }
19194
      oprot.writeFieldStop();
19195
      oprot.writeStructEnd();
19196
    }
19197
 
19198
    @Override
19199
    public String toString() {
19200
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19201
      boolean first = true;
19202
 
19203
      sb.append("success:");
19204
      if (this.success == null) {
19205
        sb.append("null");
19206
      } else {
19207
        sb.append(this.success);
19208
      }
19209
      first = false;
19210
      sb.append(")");
19211
      return sb.toString();
19212
    }
19213
 
19214
    public void validate() throws org.apache.thrift.TException {
19215
      // check for required fields
19216
    }
19217
 
19218
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19219
      try {
19220
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19221
      } catch (org.apache.thrift.TException te) {
19222
        throw new java.io.IOException(te);
19223
      }
19224
    }
19225
 
19226
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19227
      try {
19228
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19229
      } catch (org.apache.thrift.TException te) {
19230
        throw new java.io.IOException(te);
19231
      }
19232
    }
19233
 
19234
  }
19235
 
4806 varun.gupt 19236
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19237
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19238
 
19239
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)1);
19240
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)2);
19241
 
19242
    private String url; // required
19243
    private String text; // required
19244
 
19245
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19246
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19247
      URL((short)1, "url"),
19248
      TEXT((short)2, "text");
19249
 
19250
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19251
 
19252
      static {
19253
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19254
          byName.put(field.getFieldName(), field);
19255
        }
19256
      }
19257
 
19258
      /**
19259
       * Find the _Fields constant that matches fieldId, or null if its not found.
19260
       */
19261
      public static _Fields findByThriftId(int fieldId) {
19262
        switch(fieldId) {
19263
          case 1: // URL
19264
            return URL;
19265
          case 2: // TEXT
19266
            return TEXT;
19267
          default:
19268
            return null;
19269
        }
19270
      }
19271
 
19272
      /**
19273
       * Find the _Fields constant that matches fieldId, throwing an exception
19274
       * if it is not found.
19275
       */
19276
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19277
        _Fields fields = findByThriftId(fieldId);
19278
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19279
        return fields;
19280
      }
19281
 
19282
      /**
19283
       * Find the _Fields constant that matches name, or null if its not found.
19284
       */
19285
      public static _Fields findByName(String name) {
19286
        return byName.get(name);
19287
      }
19288
 
19289
      private final short _thriftId;
19290
      private final String _fieldName;
19291
 
19292
      _Fields(short thriftId, String fieldName) {
19293
        _thriftId = thriftId;
19294
        _fieldName = fieldName;
19295
      }
19296
 
19297
      public short getThriftFieldId() {
19298
        return _thriftId;
19299
      }
19300
 
19301
      public String getFieldName() {
19302
        return _fieldName;
19303
      }
19304
    }
19305
 
19306
    // isset id assignments
19307
 
19308
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19309
    static {
19310
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19311
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19312
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19313
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19314
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19315
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19316
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19317
    }
19318
 
19319
    public saveQuickLink_args() {
19320
    }
19321
 
19322
    public saveQuickLink_args(
19323
      String url,
19324
      String text)
19325
    {
19326
      this();
19327
      this.url = url;
19328
      this.text = text;
19329
    }
19330
 
19331
    /**
19332
     * Performs a deep copy on <i>other</i>.
19333
     */
19334
    public saveQuickLink_args(saveQuickLink_args other) {
19335
      if (other.isSetUrl()) {
19336
        this.url = other.url;
19337
      }
19338
      if (other.isSetText()) {
19339
        this.text = other.text;
19340
      }
19341
    }
19342
 
19343
    public saveQuickLink_args deepCopy() {
19344
      return new saveQuickLink_args(this);
19345
    }
19346
 
19347
    @Override
19348
    public void clear() {
19349
      this.url = null;
19350
      this.text = null;
19351
    }
19352
 
19353
    public String getUrl() {
19354
      return this.url;
19355
    }
19356
 
19357
    public void setUrl(String url) {
19358
      this.url = url;
19359
    }
19360
 
19361
    public void unsetUrl() {
19362
      this.url = null;
19363
    }
19364
 
19365
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19366
    public boolean isSetUrl() {
19367
      return this.url != null;
19368
    }
19369
 
19370
    public void setUrlIsSet(boolean value) {
19371
      if (!value) {
19372
        this.url = null;
19373
      }
19374
    }
19375
 
19376
    public String getText() {
19377
      return this.text;
19378
    }
19379
 
19380
    public void setText(String text) {
19381
      this.text = text;
19382
    }
19383
 
19384
    public void unsetText() {
19385
      this.text = null;
19386
    }
19387
 
19388
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19389
    public boolean isSetText() {
19390
      return this.text != null;
19391
    }
19392
 
19393
    public void setTextIsSet(boolean value) {
19394
      if (!value) {
19395
        this.text = null;
19396
      }
19397
    }
19398
 
19399
    public void setFieldValue(_Fields field, Object value) {
19400
      switch (field) {
19401
      case URL:
19402
        if (value == null) {
19403
          unsetUrl();
19404
        } else {
19405
          setUrl((String)value);
19406
        }
19407
        break;
19408
 
19409
      case TEXT:
19410
        if (value == null) {
19411
          unsetText();
19412
        } else {
19413
          setText((String)value);
19414
        }
19415
        break;
19416
 
19417
      }
19418
    }
19419
 
19420
    public Object getFieldValue(_Fields field) {
19421
      switch (field) {
19422
      case URL:
19423
        return getUrl();
19424
 
19425
      case TEXT:
19426
        return getText();
19427
 
19428
      }
19429
      throw new IllegalStateException();
19430
    }
19431
 
19432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19433
    public boolean isSet(_Fields field) {
19434
      if (field == null) {
19435
        throw new IllegalArgumentException();
19436
      }
19437
 
19438
      switch (field) {
19439
      case URL:
19440
        return isSetUrl();
19441
      case TEXT:
19442
        return isSetText();
19443
      }
19444
      throw new IllegalStateException();
19445
    }
19446
 
19447
    @Override
19448
    public boolean equals(Object that) {
19449
      if (that == null)
19450
        return false;
19451
      if (that instanceof saveQuickLink_args)
19452
        return this.equals((saveQuickLink_args)that);
19453
      return false;
19454
    }
19455
 
19456
    public boolean equals(saveQuickLink_args that) {
19457
      if (that == null)
19458
        return false;
19459
 
19460
      boolean this_present_url = true && this.isSetUrl();
19461
      boolean that_present_url = true && that.isSetUrl();
19462
      if (this_present_url || that_present_url) {
19463
        if (!(this_present_url && that_present_url))
19464
          return false;
19465
        if (!this.url.equals(that.url))
19466
          return false;
19467
      }
19468
 
19469
      boolean this_present_text = true && this.isSetText();
19470
      boolean that_present_text = true && that.isSetText();
19471
      if (this_present_text || that_present_text) {
19472
        if (!(this_present_text && that_present_text))
19473
          return false;
19474
        if (!this.text.equals(that.text))
19475
          return false;
19476
      }
19477
 
19478
      return true;
19479
    }
19480
 
19481
    @Override
19482
    public int hashCode() {
19483
      return 0;
19484
    }
19485
 
19486
    public int compareTo(saveQuickLink_args other) {
19487
      if (!getClass().equals(other.getClass())) {
19488
        return getClass().getName().compareTo(other.getClass().getName());
19489
      }
19490
 
19491
      int lastComparison = 0;
19492
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
19493
 
19494
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
19495
      if (lastComparison != 0) {
19496
        return lastComparison;
19497
      }
19498
      if (isSetUrl()) {
19499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
19500
        if (lastComparison != 0) {
19501
          return lastComparison;
19502
        }
19503
      }
19504
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
19505
      if (lastComparison != 0) {
19506
        return lastComparison;
19507
      }
19508
      if (isSetText()) {
19509
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
19510
        if (lastComparison != 0) {
19511
          return lastComparison;
19512
        }
19513
      }
19514
      return 0;
19515
    }
19516
 
19517
    public _Fields fieldForId(int fieldId) {
19518
      return _Fields.findByThriftId(fieldId);
19519
    }
19520
 
19521
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19522
      org.apache.thrift.protocol.TField field;
19523
      iprot.readStructBegin();
19524
      while (true)
19525
      {
19526
        field = iprot.readFieldBegin();
19527
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19528
          break;
19529
        }
19530
        switch (field.id) {
19531
          case 1: // URL
19532
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19533
              this.url = iprot.readString();
19534
            } else { 
19535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19536
            }
19537
            break;
19538
          case 2: // TEXT
19539
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19540
              this.text = iprot.readString();
19541
            } else { 
19542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19543
            }
19544
            break;
19545
          default:
19546
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19547
        }
19548
        iprot.readFieldEnd();
19549
      }
19550
      iprot.readStructEnd();
19551
      validate();
19552
    }
19553
 
19554
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19555
      validate();
19556
 
19557
      oprot.writeStructBegin(STRUCT_DESC);
19558
      if (this.url != null) {
19559
        oprot.writeFieldBegin(URL_FIELD_DESC);
19560
        oprot.writeString(this.url);
19561
        oprot.writeFieldEnd();
19562
      }
19563
      if (this.text != null) {
19564
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
19565
        oprot.writeString(this.text);
19566
        oprot.writeFieldEnd();
19567
      }
19568
      oprot.writeFieldStop();
19569
      oprot.writeStructEnd();
19570
    }
19571
 
19572
    @Override
19573
    public String toString() {
19574
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
19575
      boolean first = true;
19576
 
19577
      sb.append("url:");
19578
      if (this.url == null) {
19579
        sb.append("null");
19580
      } else {
19581
        sb.append(this.url);
19582
      }
19583
      first = false;
19584
      if (!first) sb.append(", ");
19585
      sb.append("text:");
19586
      if (this.text == null) {
19587
        sb.append("null");
19588
      } else {
19589
        sb.append(this.text);
19590
      }
19591
      first = false;
19592
      sb.append(")");
19593
      return sb.toString();
19594
    }
19595
 
19596
    public void validate() throws org.apache.thrift.TException {
19597
      // check for required fields
19598
    }
19599
 
19600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19601
      try {
19602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19603
      } catch (org.apache.thrift.TException te) {
19604
        throw new java.io.IOException(te);
19605
      }
19606
    }
19607
 
19608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19609
      try {
19610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19611
      } catch (org.apache.thrift.TException te) {
19612
        throw new java.io.IOException(te);
19613
      }
19614
    }
19615
 
19616
  }
19617
 
19618
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
19619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
19620
 
19621
    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);
19622
 
19623
    private HelperServiceException hse; // required
19624
 
19625
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19626
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19627
      HSE((short)1, "hse");
19628
 
19629
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19630
 
19631
      static {
19632
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19633
          byName.put(field.getFieldName(), field);
19634
        }
19635
      }
19636
 
19637
      /**
19638
       * Find the _Fields constant that matches fieldId, or null if its not found.
19639
       */
19640
      public static _Fields findByThriftId(int fieldId) {
19641
        switch(fieldId) {
19642
          case 1: // HSE
19643
            return HSE;
19644
          default:
19645
            return null;
19646
        }
19647
      }
19648
 
19649
      /**
19650
       * Find the _Fields constant that matches fieldId, throwing an exception
19651
       * if it is not found.
19652
       */
19653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19654
        _Fields fields = findByThriftId(fieldId);
19655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19656
        return fields;
19657
      }
19658
 
19659
      /**
19660
       * Find the _Fields constant that matches name, or null if its not found.
19661
       */
19662
      public static _Fields findByName(String name) {
19663
        return byName.get(name);
19664
      }
19665
 
19666
      private final short _thriftId;
19667
      private final String _fieldName;
19668
 
19669
      _Fields(short thriftId, String fieldName) {
19670
        _thriftId = thriftId;
19671
        _fieldName = fieldName;
19672
      }
19673
 
19674
      public short getThriftFieldId() {
19675
        return _thriftId;
19676
      }
19677
 
19678
      public String getFieldName() {
19679
        return _fieldName;
19680
      }
19681
    }
19682
 
19683
    // isset id assignments
19684
 
19685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19686
    static {
19687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19688
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
19692
    }
19693
 
19694
    public saveQuickLink_result() {
19695
    }
19696
 
19697
    public saveQuickLink_result(
19698
      HelperServiceException hse)
19699
    {
19700
      this();
19701
      this.hse = hse;
19702
    }
19703
 
19704
    /**
19705
     * Performs a deep copy on <i>other</i>.
19706
     */
19707
    public saveQuickLink_result(saveQuickLink_result other) {
19708
      if (other.isSetHse()) {
19709
        this.hse = new HelperServiceException(other.hse);
19710
      }
19711
    }
19712
 
19713
    public saveQuickLink_result deepCopy() {
19714
      return new saveQuickLink_result(this);
19715
    }
19716
 
19717
    @Override
19718
    public void clear() {
19719
      this.hse = null;
19720
    }
19721
 
19722
    public HelperServiceException getHse() {
19723
      return this.hse;
19724
    }
19725
 
19726
    public void setHse(HelperServiceException hse) {
19727
      this.hse = hse;
19728
    }
19729
 
19730
    public void unsetHse() {
19731
      this.hse = null;
19732
    }
19733
 
19734
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
19735
    public boolean isSetHse() {
19736
      return this.hse != null;
19737
    }
19738
 
19739
    public void setHseIsSet(boolean value) {
19740
      if (!value) {
19741
        this.hse = null;
19742
      }
19743
    }
19744
 
19745
    public void setFieldValue(_Fields field, Object value) {
19746
      switch (field) {
19747
      case HSE:
19748
        if (value == null) {
19749
          unsetHse();
19750
        } else {
19751
          setHse((HelperServiceException)value);
19752
        }
19753
        break;
19754
 
19755
      }
19756
    }
19757
 
19758
    public Object getFieldValue(_Fields field) {
19759
      switch (field) {
19760
      case HSE:
19761
        return getHse();
19762
 
19763
      }
19764
      throw new IllegalStateException();
19765
    }
19766
 
19767
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19768
    public boolean isSet(_Fields field) {
19769
      if (field == null) {
19770
        throw new IllegalArgumentException();
19771
      }
19772
 
19773
      switch (field) {
19774
      case HSE:
19775
        return isSetHse();
19776
      }
19777
      throw new IllegalStateException();
19778
    }
19779
 
19780
    @Override
19781
    public boolean equals(Object that) {
19782
      if (that == null)
19783
        return false;
19784
      if (that instanceof saveQuickLink_result)
19785
        return this.equals((saveQuickLink_result)that);
19786
      return false;
19787
    }
19788
 
19789
    public boolean equals(saveQuickLink_result that) {
19790
      if (that == null)
19791
        return false;
19792
 
19793
      boolean this_present_hse = true && this.isSetHse();
19794
      boolean that_present_hse = true && that.isSetHse();
19795
      if (this_present_hse || that_present_hse) {
19796
        if (!(this_present_hse && that_present_hse))
19797
          return false;
19798
        if (!this.hse.equals(that.hse))
19799
          return false;
19800
      }
19801
 
19802
      return true;
19803
    }
19804
 
19805
    @Override
19806
    public int hashCode() {
19807
      return 0;
19808
    }
19809
 
19810
    public int compareTo(saveQuickLink_result other) {
19811
      if (!getClass().equals(other.getClass())) {
19812
        return getClass().getName().compareTo(other.getClass().getName());
19813
      }
19814
 
19815
      int lastComparison = 0;
19816
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
19817
 
19818
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
19819
      if (lastComparison != 0) {
19820
        return lastComparison;
19821
      }
19822
      if (isSetHse()) {
19823
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
19824
        if (lastComparison != 0) {
19825
          return lastComparison;
19826
        }
19827
      }
19828
      return 0;
19829
    }
19830
 
19831
    public _Fields fieldForId(int fieldId) {
19832
      return _Fields.findByThriftId(fieldId);
19833
    }
19834
 
19835
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19836
      org.apache.thrift.protocol.TField field;
19837
      iprot.readStructBegin();
19838
      while (true)
19839
      {
19840
        field = iprot.readFieldBegin();
19841
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19842
          break;
19843
        }
19844
        switch (field.id) {
19845
          case 1: // HSE
19846
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19847
              this.hse = new HelperServiceException();
19848
              this.hse.read(iprot);
19849
            } else { 
19850
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19851
            }
19852
            break;
19853
          default:
19854
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19855
        }
19856
        iprot.readFieldEnd();
19857
      }
19858
      iprot.readStructEnd();
19859
      validate();
19860
    }
19861
 
19862
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19863
      oprot.writeStructBegin(STRUCT_DESC);
19864
 
19865
      if (this.isSetHse()) {
19866
        oprot.writeFieldBegin(HSE_FIELD_DESC);
19867
        this.hse.write(oprot);
19868
        oprot.writeFieldEnd();
19869
      }
19870
      oprot.writeFieldStop();
19871
      oprot.writeStructEnd();
19872
    }
19873
 
19874
    @Override
19875
    public String toString() {
19876
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
19877
      boolean first = true;
19878
 
19879
      sb.append("hse:");
19880
      if (this.hse == null) {
19881
        sb.append("null");
19882
      } else {
19883
        sb.append(this.hse);
19884
      }
19885
      first = false;
19886
      sb.append(")");
19887
      return sb.toString();
19888
    }
19889
 
19890
    public void validate() throws org.apache.thrift.TException {
19891
      // check for required fields
19892
    }
19893
 
19894
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19895
      try {
19896
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19897
      } catch (org.apache.thrift.TException te) {
19898
        throw new java.io.IOException(te);
19899
      }
19900
    }
19901
 
19902
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19903
      try {
19904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19905
      } catch (org.apache.thrift.TException te) {
19906
        throw new java.io.IOException(te);
19907
      }
19908
    }
19909
 
19910
  }
19911
 
19912
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
19913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
19914
 
19915
 
19916
 
19917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19919
;
19920
 
19921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19922
 
19923
      static {
19924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19925
          byName.put(field.getFieldName(), field);
19926
        }
19927
      }
19928
 
19929
      /**
19930
       * Find the _Fields constant that matches fieldId, or null if its not found.
19931
       */
19932
      public static _Fields findByThriftId(int fieldId) {
19933
        switch(fieldId) {
19934
          default:
19935
            return null;
19936
        }
19937
      }
19938
 
19939
      /**
19940
       * Find the _Fields constant that matches fieldId, throwing an exception
19941
       * if it is not found.
19942
       */
19943
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19944
        _Fields fields = findByThriftId(fieldId);
19945
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19946
        return fields;
19947
      }
19948
 
19949
      /**
19950
       * Find the _Fields constant that matches name, or null if its not found.
19951
       */
19952
      public static _Fields findByName(String name) {
19953
        return byName.get(name);
19954
      }
19955
 
19956
      private final short _thriftId;
19957
      private final String _fieldName;
19958
 
19959
      _Fields(short thriftId, String fieldName) {
19960
        _thriftId = thriftId;
19961
        _fieldName = fieldName;
19962
      }
19963
 
19964
      public short getThriftFieldId() {
19965
        return _thriftId;
19966
      }
19967
 
19968
      public String getFieldName() {
19969
        return _fieldName;
19970
      }
19971
    }
19972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19973
    static {
19974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
19977
    }
19978
 
19979
    public getQuickLinks_args() {
19980
    }
19981
 
19982
    /**
19983
     * Performs a deep copy on <i>other</i>.
19984
     */
19985
    public getQuickLinks_args(getQuickLinks_args other) {
19986
    }
19987
 
19988
    public getQuickLinks_args deepCopy() {
19989
      return new getQuickLinks_args(this);
19990
    }
19991
 
19992
    @Override
19993
    public void clear() {
19994
    }
19995
 
19996
    public void setFieldValue(_Fields field, Object value) {
19997
      switch (field) {
19998
      }
19999
    }
20000
 
20001
    public Object getFieldValue(_Fields field) {
20002
      switch (field) {
20003
      }
20004
      throw new IllegalStateException();
20005
    }
20006
 
20007
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20008
    public boolean isSet(_Fields field) {
20009
      if (field == null) {
20010
        throw new IllegalArgumentException();
20011
      }
20012
 
20013
      switch (field) {
20014
      }
20015
      throw new IllegalStateException();
20016
    }
20017
 
20018
    @Override
20019
    public boolean equals(Object that) {
20020
      if (that == null)
20021
        return false;
20022
      if (that instanceof getQuickLinks_args)
20023
        return this.equals((getQuickLinks_args)that);
20024
      return false;
20025
    }
20026
 
20027
    public boolean equals(getQuickLinks_args that) {
20028
      if (that == null)
20029
        return false;
20030
 
20031
      return true;
20032
    }
20033
 
20034
    @Override
20035
    public int hashCode() {
20036
      return 0;
20037
    }
20038
 
20039
    public int compareTo(getQuickLinks_args other) {
20040
      if (!getClass().equals(other.getClass())) {
20041
        return getClass().getName().compareTo(other.getClass().getName());
20042
      }
20043
 
20044
      int lastComparison = 0;
20045
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20046
 
20047
      return 0;
20048
    }
20049
 
20050
    public _Fields fieldForId(int fieldId) {
20051
      return _Fields.findByThriftId(fieldId);
20052
    }
20053
 
20054
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20055
      org.apache.thrift.protocol.TField field;
20056
      iprot.readStructBegin();
20057
      while (true)
20058
      {
20059
        field = iprot.readFieldBegin();
20060
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20061
          break;
20062
        }
20063
        switch (field.id) {
20064
          default:
20065
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20066
        }
20067
        iprot.readFieldEnd();
20068
      }
20069
      iprot.readStructEnd();
20070
      validate();
20071
    }
20072
 
20073
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20074
      validate();
20075
 
20076
      oprot.writeStructBegin(STRUCT_DESC);
20077
      oprot.writeFieldStop();
20078
      oprot.writeStructEnd();
20079
    }
20080
 
20081
    @Override
20082
    public String toString() {
20083
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20084
      boolean first = true;
20085
 
20086
      sb.append(")");
20087
      return sb.toString();
20088
    }
20089
 
20090
    public void validate() throws org.apache.thrift.TException {
20091
      // check for required fields
20092
    }
20093
 
20094
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20095
      try {
20096
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20097
      } catch (org.apache.thrift.TException te) {
20098
        throw new java.io.IOException(te);
20099
      }
20100
    }
20101
 
20102
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20103
      try {
20104
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20105
      } catch (org.apache.thrift.TException te) {
20106
        throw new java.io.IOException(te);
20107
      }
20108
    }
20109
 
20110
  }
20111
 
20112
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20113
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20114
 
20115
    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);
20116
    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);
20117
 
20118
    private List<QuickLink> success; // required
20119
    private HelperServiceException hse; // required
20120
 
20121
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20122
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20123
      SUCCESS((short)0, "success"),
20124
      HSE((short)1, "hse");
20125
 
20126
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20127
 
20128
      static {
20129
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20130
          byName.put(field.getFieldName(), field);
20131
        }
20132
      }
20133
 
20134
      /**
20135
       * Find the _Fields constant that matches fieldId, or null if its not found.
20136
       */
20137
      public static _Fields findByThriftId(int fieldId) {
20138
        switch(fieldId) {
20139
          case 0: // SUCCESS
20140
            return SUCCESS;
20141
          case 1: // HSE
20142
            return HSE;
20143
          default:
20144
            return null;
20145
        }
20146
      }
20147
 
20148
      /**
20149
       * Find the _Fields constant that matches fieldId, throwing an exception
20150
       * if it is not found.
20151
       */
20152
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20153
        _Fields fields = findByThriftId(fieldId);
20154
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20155
        return fields;
20156
      }
20157
 
20158
      /**
20159
       * Find the _Fields constant that matches name, or null if its not found.
20160
       */
20161
      public static _Fields findByName(String name) {
20162
        return byName.get(name);
20163
      }
20164
 
20165
      private final short _thriftId;
20166
      private final String _fieldName;
20167
 
20168
      _Fields(short thriftId, String fieldName) {
20169
        _thriftId = thriftId;
20170
        _fieldName = fieldName;
20171
      }
20172
 
20173
      public short getThriftFieldId() {
20174
        return _thriftId;
20175
      }
20176
 
20177
      public String getFieldName() {
20178
        return _fieldName;
20179
      }
20180
    }
20181
 
20182
    // isset id assignments
20183
 
20184
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20185
    static {
20186
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20187
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20188
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20189
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20190
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20194
    }
20195
 
20196
    public getQuickLinks_result() {
20197
    }
20198
 
20199
    public getQuickLinks_result(
20200
      List<QuickLink> success,
20201
      HelperServiceException hse)
20202
    {
20203
      this();
20204
      this.success = success;
20205
      this.hse = hse;
20206
    }
20207
 
20208
    /**
20209
     * Performs a deep copy on <i>other</i>.
20210
     */
20211
    public getQuickLinks_result(getQuickLinks_result other) {
20212
      if (other.isSetSuccess()) {
20213
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20214
        for (QuickLink other_element : other.success) {
20215
          __this__success.add(new QuickLink(other_element));
20216
        }
20217
        this.success = __this__success;
20218
      }
20219
      if (other.isSetHse()) {
20220
        this.hse = new HelperServiceException(other.hse);
20221
      }
20222
    }
20223
 
20224
    public getQuickLinks_result deepCopy() {
20225
      return new getQuickLinks_result(this);
20226
    }
20227
 
20228
    @Override
20229
    public void clear() {
20230
      this.success = null;
20231
      this.hse = null;
20232
    }
20233
 
20234
    public int getSuccessSize() {
20235
      return (this.success == null) ? 0 : this.success.size();
20236
    }
20237
 
20238
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20239
      return (this.success == null) ? null : this.success.iterator();
20240
    }
20241
 
20242
    public void addToSuccess(QuickLink elem) {
20243
      if (this.success == null) {
20244
        this.success = new ArrayList<QuickLink>();
20245
      }
20246
      this.success.add(elem);
20247
    }
20248
 
20249
    public List<QuickLink> getSuccess() {
20250
      return this.success;
20251
    }
20252
 
20253
    public void setSuccess(List<QuickLink> success) {
20254
      this.success = success;
20255
    }
20256
 
20257
    public void unsetSuccess() {
20258
      this.success = null;
20259
    }
20260
 
20261
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20262
    public boolean isSetSuccess() {
20263
      return this.success != null;
20264
    }
20265
 
20266
    public void setSuccessIsSet(boolean value) {
20267
      if (!value) {
20268
        this.success = null;
20269
      }
20270
    }
20271
 
20272
    public HelperServiceException getHse() {
20273
      return this.hse;
20274
    }
20275
 
20276
    public void setHse(HelperServiceException hse) {
20277
      this.hse = hse;
20278
    }
20279
 
20280
    public void unsetHse() {
20281
      this.hse = null;
20282
    }
20283
 
20284
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20285
    public boolean isSetHse() {
20286
      return this.hse != null;
20287
    }
20288
 
20289
    public void setHseIsSet(boolean value) {
20290
      if (!value) {
20291
        this.hse = null;
20292
      }
20293
    }
20294
 
20295
    public void setFieldValue(_Fields field, Object value) {
20296
      switch (field) {
20297
      case SUCCESS:
20298
        if (value == null) {
20299
          unsetSuccess();
20300
        } else {
20301
          setSuccess((List<QuickLink>)value);
20302
        }
20303
        break;
20304
 
20305
      case HSE:
20306
        if (value == null) {
20307
          unsetHse();
20308
        } else {
20309
          setHse((HelperServiceException)value);
20310
        }
20311
        break;
20312
 
20313
      }
20314
    }
20315
 
20316
    public Object getFieldValue(_Fields field) {
20317
      switch (field) {
20318
      case SUCCESS:
20319
        return getSuccess();
20320
 
20321
      case HSE:
20322
        return getHse();
20323
 
20324
      }
20325
      throw new IllegalStateException();
20326
    }
20327
 
20328
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20329
    public boolean isSet(_Fields field) {
20330
      if (field == null) {
20331
        throw new IllegalArgumentException();
20332
      }
20333
 
20334
      switch (field) {
20335
      case SUCCESS:
20336
        return isSetSuccess();
20337
      case HSE:
20338
        return isSetHse();
20339
      }
20340
      throw new IllegalStateException();
20341
    }
20342
 
20343
    @Override
20344
    public boolean equals(Object that) {
20345
      if (that == null)
20346
        return false;
20347
      if (that instanceof getQuickLinks_result)
20348
        return this.equals((getQuickLinks_result)that);
20349
      return false;
20350
    }
20351
 
20352
    public boolean equals(getQuickLinks_result that) {
20353
      if (that == null)
20354
        return false;
20355
 
20356
      boolean this_present_success = true && this.isSetSuccess();
20357
      boolean that_present_success = true && that.isSetSuccess();
20358
      if (this_present_success || that_present_success) {
20359
        if (!(this_present_success && that_present_success))
20360
          return false;
20361
        if (!this.success.equals(that.success))
20362
          return false;
20363
      }
20364
 
20365
      boolean this_present_hse = true && this.isSetHse();
20366
      boolean that_present_hse = true && that.isSetHse();
20367
      if (this_present_hse || that_present_hse) {
20368
        if (!(this_present_hse && that_present_hse))
20369
          return false;
20370
        if (!this.hse.equals(that.hse))
20371
          return false;
20372
      }
20373
 
20374
      return true;
20375
    }
20376
 
20377
    @Override
20378
    public int hashCode() {
20379
      return 0;
20380
    }
20381
 
20382
    public int compareTo(getQuickLinks_result other) {
20383
      if (!getClass().equals(other.getClass())) {
20384
        return getClass().getName().compareTo(other.getClass().getName());
20385
      }
20386
 
20387
      int lastComparison = 0;
20388
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20389
 
20390
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20391
      if (lastComparison != 0) {
20392
        return lastComparison;
20393
      }
20394
      if (isSetSuccess()) {
20395
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20396
        if (lastComparison != 0) {
20397
          return lastComparison;
20398
        }
20399
      }
20400
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20401
      if (lastComparison != 0) {
20402
        return lastComparison;
20403
      }
20404
      if (isSetHse()) {
20405
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20406
        if (lastComparison != 0) {
20407
          return lastComparison;
20408
        }
20409
      }
20410
      return 0;
20411
    }
20412
 
20413
    public _Fields fieldForId(int fieldId) {
20414
      return _Fields.findByThriftId(fieldId);
20415
    }
20416
 
20417
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20418
      org.apache.thrift.protocol.TField field;
20419
      iprot.readStructBegin();
20420
      while (true)
20421
      {
20422
        field = iprot.readFieldBegin();
20423
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20424
          break;
20425
        }
20426
        switch (field.id) {
20427
          case 0: // SUCCESS
20428
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20429
              {
20430
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20431
                this.success = new ArrayList<QuickLink>(_list37.size);
20432
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20433
                {
20434
                  QuickLink _elem39; // required
20435
                  _elem39 = new QuickLink();
20436
                  _elem39.read(iprot);
20437
                  this.success.add(_elem39);
20438
                }
20439
                iprot.readListEnd();
20440
              }
20441
            } else { 
20442
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20443
            }
20444
            break;
20445
          case 1: // HSE
20446
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20447
              this.hse = new HelperServiceException();
20448
              this.hse.read(iprot);
20449
            } else { 
20450
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20451
            }
20452
            break;
20453
          default:
20454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20455
        }
20456
        iprot.readFieldEnd();
20457
      }
20458
      iprot.readStructEnd();
20459
      validate();
20460
    }
20461
 
20462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20463
      oprot.writeStructBegin(STRUCT_DESC);
20464
 
20465
      if (this.isSetSuccess()) {
20466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20467
        {
20468
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20469
          for (QuickLink _iter40 : this.success)
20470
          {
20471
            _iter40.write(oprot);
20472
          }
20473
          oprot.writeListEnd();
20474
        }
20475
        oprot.writeFieldEnd();
20476
      } else if (this.isSetHse()) {
20477
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20478
        this.hse.write(oprot);
20479
        oprot.writeFieldEnd();
20480
      }
20481
      oprot.writeFieldStop();
20482
      oprot.writeStructEnd();
20483
    }
20484
 
20485
    @Override
20486
    public String toString() {
20487
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
20488
      boolean first = true;
20489
 
20490
      sb.append("success:");
20491
      if (this.success == null) {
20492
        sb.append("null");
20493
      } else {
20494
        sb.append(this.success);
20495
      }
20496
      first = false;
20497
      if (!first) sb.append(", ");
20498
      sb.append("hse:");
20499
      if (this.hse == null) {
20500
        sb.append("null");
20501
      } else {
20502
        sb.append(this.hse);
20503
      }
20504
      first = false;
20505
      sb.append(")");
20506
      return sb.toString();
20507
    }
20508
 
20509
    public void validate() throws org.apache.thrift.TException {
20510
      // check for required fields
20511
    }
20512
 
20513
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20514
      try {
20515
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20516
      } catch (org.apache.thrift.TException te) {
20517
        throw new java.io.IOException(te);
20518
      }
20519
    }
20520
 
20521
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20522
      try {
20523
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20524
      } catch (org.apache.thrift.TException te) {
20525
        throw new java.io.IOException(te);
20526
      }
20527
    }
20528
 
20529
  }
20530
 
352 ashish 20531
}