Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
36
     */
3430 rajveer 37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 38
 
2779 chandransh 39
    /**
40
     * Retreives all the emails pending for dispatch
41
     */
3430 rajveer 42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 43
 
2779 chandransh 44
    /**
45
     * Marks email as sent after successful dispatch
46
     * 
47
     * @param emailId
48
     */
3430 rajveer 49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 50
 
3430 rajveer 51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 52
 
3430 rajveer 53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 64
 
3430 rajveer 65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
750 chandransh 67
    /**
2443 chandransh 68
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
69
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 70
     * 
71
     * @param username
72
     * @param password
73
     */
3430 rajveer 74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 75
 
2443 chandransh 76
    /**
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
78
     * 
79
     * @param username
80
     * @param oldPassword
81
     * @param newPassword
82
     */
3430 rajveer 83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 84
 
750 chandransh 85
    /**
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
87
     * Throws an exception otherwise.
88
     * 
89
     * @param username
90
     * @param password
91
     */
3430 rajveer 92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 93
 
1611 ankur.sing 94
    /**
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
96
     * Throws an exception otherwise.
97
     * 
98
     * @param username
99
     * @param password
100
     */
3430 rajveer 101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 102
 
1891 ankur.sing 103
    /**
104
     * Returns the ReportUser struct associated with the given username and password if they match.
105
     * Throws an exception otherwise.
106
     * 
107
     * @param username
108
     * @param password
109
     */
3430 rajveer 110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 111
 
112
    /**
113
     * Returns list of reports which are configured for the given role.
114
     * 
115
     * @param role
116
     */
3430 rajveer 117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 118
 
2024 ankur.sing 119
    /**
2357 ankur.sing 120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 121
     * Throws an exception otherwise.
122
     * 
123
     * @param username
124
     * @param password
2357 ankur.sing 125
     * @param role
2024 ankur.sing 126
     */
3430 rajveer 127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 128
 
4544 varun.gupt 129
    /**
130
     * Saves the list of entity Ids to be shared with an email address
131
     * 
132
     * @param entityIds
133
     * @param email
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
4693 mandeep.dh 137
    public List<Agent> getAgents() throws org.apache.thrift.TException;
138
 
139
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
140
 
141
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
142
 
143
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
144
 
145
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
146
 
4806 varun.gupt 147
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
148
 
149
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
150
 
4996 varun.gupt 151
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
152
 
352 ashish 153
  }
154
 
3430 rajveer 155
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
156
 
157
    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;
158
 
159
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
192
 
4544 varun.gupt 193
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
194
 
4693 mandeep.dh 195
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
204
 
4806 varun.gupt 205
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
208
 
4996 varun.gupt 209
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
210
 
3430 rajveer 211
  }
212
 
3374 rajveer 213
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 214
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
215
      public Factory() {}
216
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
217
        return new Client(prot);
218
      }
219
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
220
        return new Client(iprot, oprot);
221
      }
222
    }
223
 
224
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 225
    {
3430 rajveer 226
      super(prot, prot);
352 ashish 227
    }
228
 
3430 rajveer 229
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 230
      super(iprot, oprot);
352 ashish 231
    }
232
 
3430 rajveer 233
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 234
    {
235
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 236
      return recv_saveUserEmailForSending();
1395 varun.gupt 237
    }
238
 
3430 rajveer 239
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 240
    {
241
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 242
      args.setEmailTo(emailTo);
243
      args.setEmailFrom(emailFrom);
244
      args.setSubject(subject);
245
      args.setBody(body);
246
      args.setSource(source);
247
      args.setEmailType(emailType);
248
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 249
    }
250
 
3430 rajveer 251
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 252
    {
253
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 254
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 255
      if (result.isSetSuccess()) {
256
        return result.success;
257
      }
1395 varun.gupt 258
      if (result.se != null) {
259
        throw result.se;
260
      }
3430 rajveer 261
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 262
    }
263
 
3430 rajveer 264
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 265
    {
3086 rajveer 266
      send_getEmailsToBeSent();
1422 varun.gupt 267
      return recv_getEmailsToBeSent();
268
    }
269
 
3430 rajveer 270
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 271
    {
272
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 273
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 274
    }
275
 
3430 rajveer 276
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 277
    {
278
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 279
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 280
      if (result.isSetSuccess()) {
281
        return result.success;
282
      }
283
      if (result.se != null) {
284
        throw result.se;
285
      }
3430 rajveer 286
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 287
    }
288
 
3430 rajveer 289
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 290
    {
291
      send_markEmailAsSent(emailId);
292
      recv_markEmailAsSent();
293
    }
294
 
3430 rajveer 295
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 296
    {
297
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 298
      args.setEmailId(emailId);
299
      sendBase("markEmailAsSent", args);
1422 varun.gupt 300
    }
301
 
3430 rajveer 302
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 303
    {
304
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 305
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 306
      if (result.se != null) {
307
        throw result.se;
308
      }
309
      return;
310
    }
311
 
3430 rajveer 312
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 313
    {
314
      send_sendMail(mail);
315
      recv_sendMail();
316
    }
317
 
3430 rajveer 318
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 319
    {
320
      sendMail_args args = new sendMail_args();
3430 rajveer 321
      args.setMail(mail);
322
      sendBase("sendMail", args);
352 ashish 323
    }
324
 
3430 rajveer 325
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 326
    {
327
      sendMail_result result = new sendMail_result();
3430 rajveer 328
      receiveBase(result, "sendMail");
352 ashish 329
      if (result.se != null) {
330
        throw result.se;
331
      }
332
      return;
333
    }
334
 
3430 rajveer 335
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 336
    {
337
      send_sendText(message);
338
      recv_sendText();
339
    }
340
 
3430 rajveer 341
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 342
    {
343
      sendText_args args = new sendText_args();
3430 rajveer 344
      args.setMessage(message);
345
      sendBase("sendText", args);
352 ashish 346
    }
347
 
3430 rajveer 348
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 349
    {
350
      sendText_result result = new sendText_result();
3430 rajveer 351
      receiveBase(result, "sendText");
352 ashish 352
      if (result.se != null) {
353
        throw result.se;
354
      }
355
      return;
356
    }
357
 
3430 rajveer 358
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 359
    {
360
      send_addMessage(message);
361
      recv_addMessage();
362
    }
363
 
3430 rajveer 364
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 365
    {
366
      addMessage_args args = new addMessage_args();
3430 rajveer 367
      args.setMessage(message);
368
      sendBase("addMessage", args);
352 ashish 369
    }
370
 
3430 rajveer 371
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 372
    {
373
      addMessage_result result = new addMessage_result();
3430 rajveer 374
      receiveBase(result, "addMessage");
352 ashish 375
      if (result.se != null) {
376
        throw result.se;
377
      }
378
      return;
379
    }
380
 
3430 rajveer 381
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 382
    {
383
      send_updateMessage(id, message);
384
      recv_updateMessage();
385
    }
386
 
3430 rajveer 387
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 388
    {
389
      updateMessage_args args = new updateMessage_args();
3430 rajveer 390
      args.setId(id);
391
      args.setMessage(message);
392
      sendBase("updateMessage", args);
352 ashish 393
    }
394
 
3430 rajveer 395
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 396
    {
397
      updateMessage_result result = new updateMessage_result();
3430 rajveer 398
      receiveBase(result, "updateMessage");
352 ashish 399
      if (result.se != null) {
400
        throw result.se;
401
      }
402
      return;
403
    }
404
 
3430 rajveer 405
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 406
    {
407
      send_getMessage(id);
408
      return recv_getMessage();
409
    }
410
 
3430 rajveer 411
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 412
    {
413
      getMessage_args args = new getMessage_args();
3430 rajveer 414
      args.setId(id);
415
      sendBase("getMessage", args);
352 ashish 416
    }
417
 
3430 rajveer 418
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 419
    {
420
      getMessage_result result = new getMessage_result();
3430 rajveer 421
      receiveBase(result, "getMessage");
352 ashish 422
      if (result.isSetSuccess()) {
423
        return result.success;
424
      }
425
      if (result.se != null) {
426
        throw result.se;
427
      }
3430 rajveer 428
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 429
    }
430
 
3430 rajveer 431
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 432
    {
433
      send_getSubstitutedMessage(id, params);
434
      return recv_getSubstitutedMessage();
435
    }
436
 
3430 rajveer 437
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 438
    {
439
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 440
      args.setId(id);
441
      args.setParams(params);
442
      sendBase("getSubstitutedMessage", args);
352 ashish 443
    }
444
 
3430 rajveer 445
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 446
    {
447
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 448
      receiveBase(result, "getSubstitutedMessage");
352 ashish 449
      if (result.isSetSuccess()) {
450
        return result.success;
451
      }
452
      if (result.se != null) {
453
        throw result.se;
454
      }
3430 rajveer 455
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 456
    }
457
 
3430 rajveer 458
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 459
    {
460
      send_addUser(username, password, warehouseId);
461
      return recv_addUser();
462
    }
463
 
3430 rajveer 464
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 465
    {
466
      addUser_args args = new addUser_args();
3430 rajveer 467
      args.setUsername(username);
468
      args.setPassword(password);
469
      args.setWarehouseId(warehouseId);
470
      sendBase("addUser", args);
495 rajveer 471
    }
472
 
3430 rajveer 473
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 474
    {
475
      addUser_result result = new addUser_result();
3430 rajveer 476
      receiveBase(result, "addUser");
495 rajveer 477
      if (result.isSetSuccess()) {
478
        return result.success;
479
      }
480
      if (result.se != null) {
481
        throw result.se;
482
      }
3430 rajveer 483
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 484
    }
485
 
3430 rajveer 486
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 487
    {
488
      send_deleteUser(username);
489
      return recv_deleteUser();
490
    }
491
 
3430 rajveer 492
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 493
    {
494
      deleteUser_args args = new deleteUser_args();
3430 rajveer 495
      args.setUsername(username);
496
      sendBase("deleteUser", args);
495 rajveer 497
    }
498
 
3430 rajveer 499
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 500
    {
501
      deleteUser_result result = new deleteUser_result();
3430 rajveer 502
      receiveBase(result, "deleteUser");
495 rajveer 503
      if (result.isSetSuccess()) {
504
        return result.success;
505
      }
506
      if (result.se != null) {
507
        throw result.se;
508
      }
3430 rajveer 509
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 510
    }
511
 
3430 rajveer 512
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 513
    {
2443 chandransh 514
      send_authenticateDashboardUser(username, password);
515
      return recv_authenticateDashboardUser();
495 rajveer 516
    }
517
 
3430 rajveer 518
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 519
    {
2443 chandransh 520
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 521
      args.setUsername(username);
522
      args.setPassword(password);
523
      sendBase("authenticateDashboardUser", args);
495 rajveer 524
    }
525
 
3430 rajveer 526
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 527
    {
2443 chandransh 528
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 529
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 530
      if (result.isSetSuccess()) {
531
        return result.success;
532
      }
533
      if (result.se != null) {
534
        throw result.se;
535
      }
3430 rajveer 536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 537
    }
538
 
3430 rajveer 539
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 540
    {
541
      send_updatePassword(username, oldPassword, newPassword);
542
      return recv_updatePassword();
543
    }
544
 
3430 rajveer 545
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 546
    {
547
      updatePassword_args args = new updatePassword_args();
3430 rajveer 548
      args.setUsername(username);
549
      args.setOldPassword(oldPassword);
550
      args.setNewPassword(newPassword);
551
      sendBase("updatePassword", args);
495 rajveer 552
    }
553
 
3430 rajveer 554
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 555
    {
556
      updatePassword_result result = new updatePassword_result();
3430 rajveer 557
      receiveBase(result, "updatePassword");
495 rajveer 558
      if (result.isSetSuccess()) {
559
        return result.success;
560
      }
561
      if (result.se != null) {
562
        throw result.se;
563
      }
3430 rajveer 564
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 565
    }
566
 
3430 rajveer 567
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 568
    {
569
      send_authenticateLogisticsUser(username, password);
570
      return recv_authenticateLogisticsUser();
571
    }
572
 
3430 rajveer 573
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 574
    {
575
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 576
      args.setUsername(username);
577
      args.setPassword(password);
578
      sendBase("authenticateLogisticsUser", args);
750 chandransh 579
    }
580
 
3430 rajveer 581
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 582
    {
583
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 584
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 585
      if (result.isSetSuccess()) {
586
        return result.success;
587
      }
588
      if (result.hse != null) {
589
        throw result.hse;
590
      }
3430 rajveer 591
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 592
    }
593
 
3430 rajveer 594
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 595
    {
596
      send_authenticateStatisticsUser(username, password);
597
      return recv_authenticateStatisticsUser();
598
    }
599
 
3430 rajveer 600
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 601
    {
602
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 603
      args.setUsername(username);
604
      args.setPassword(password);
605
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 606
    }
607
 
3430 rajveer 608
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 609
    {
610
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 611
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 612
      if (result.isSetSuccess()) {
613
        return result.success;
614
      }
615
      if (result.hse != null) {
616
        throw result.hse;
617
      }
3430 rajveer 618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 619
    }
620
 
3430 rajveer 621
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 622
    {
623
      send_authenticateReportUser(username, password);
624
      return recv_authenticateReportUser();
625
    }
626
 
3430 rajveer 627
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 628
    {
629
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 630
      args.setUsername(username);
631
      args.setPassword(password);
632
      sendBase("authenticateReportUser", args);
1891 ankur.sing 633
    }
634
 
3430 rajveer 635
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 636
    {
637
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 638
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 639
      if (result.isSetSuccess()) {
640
        return result.success;
641
      }
642
      if (result.hse != null) {
643
        throw result.hse;
644
      }
3430 rajveer 645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 646
    }
647
 
3430 rajveer 648
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 649
    {
650
      send_getReports(role);
651
      return recv_getReports();
652
    }
653
 
3430 rajveer 654
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 655
    {
656
      getReports_args args = new getReports_args();
3430 rajveer 657
      args.setRole(role);
658
      sendBase("getReports", args);
1891 ankur.sing 659
    }
660
 
3430 rajveer 661
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 662
    {
663
      getReports_result result = new getReports_result();
3430 rajveer 664
      receiveBase(result, "getReports");
1891 ankur.sing 665
      if (result.isSetSuccess()) {
666
        return result.success;
667
      }
3430 rajveer 668
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 669
    }
670
 
3430 rajveer 671
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 672
    {
2357 ankur.sing 673
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 674
      return recv_authenticateCatalogUser();
675
    }
676
 
3430 rajveer 677
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 678
    {
679
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 680
      args.setUsername(username);
681
      args.setPassword(password);
682
      args.setRole(role);
683
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 684
    }
685
 
3430 rajveer 686
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 687
    {
688
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 689
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 690
      if (result.isSetSuccess()) {
691
        return result.success;
692
      }
693
      if (result.hse != null) {
694
        throw result.hse;
695
      }
3430 rajveer 696
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 697
    }
698
 
4544 varun.gupt 699
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
700
    {
701
      send_shareEntities(entityIds, email);
702
      recv_shareEntities();
703
    }
704
 
705
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
706
    {
707
      shareEntities_args args = new shareEntities_args();
708
      args.setEntityIds(entityIds);
709
      args.setEmail(email);
710
      sendBase("shareEntities", args);
711
    }
712
 
713
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
714
    {
715
      shareEntities_result result = new shareEntities_result();
716
      receiveBase(result, "shareEntities");
717
      if (result.hse != null) {
718
        throw result.hse;
719
      }
720
      return;
721
    }
722
 
4693 mandeep.dh 723
    public List<Agent> getAgents() throws org.apache.thrift.TException
724
    {
725
      send_getAgents();
726
      return recv_getAgents();
727
    }
728
 
729
    public void send_getAgents() throws org.apache.thrift.TException
730
    {
731
      getAgents_args args = new getAgents_args();
732
      sendBase("getAgents", args);
733
    }
734
 
735
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
736
    {
737
      getAgents_result result = new getAgents_result();
738
      receiveBase(result, "getAgents");
739
      if (result.isSetSuccess()) {
740
        return result.success;
741
      }
742
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
743
    }
744
 
745
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
746
    {
747
      send_validateLogIn(emailId, password);
748
      return recv_validateLogIn();
749
    }
750
 
751
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
752
    {
753
      validateLogIn_args args = new validateLogIn_args();
754
      args.setEmailId(emailId);
755
      args.setPassword(password);
756
      sendBase("validateLogIn", args);
757
    }
758
 
759
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
760
    {
761
      validateLogIn_result result = new validateLogIn_result();
762
      receiveBase(result, "validateLogIn");
763
      if (result.isSetSuccess()) {
764
        return result.success;
765
      }
766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
767
    }
768
 
769
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
770
    {
771
      send_updatePasswordForAgent(agentEmailId, password);
772
      recv_updatePasswordForAgent();
773
    }
774
 
775
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
776
    {
777
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
778
      args.setAgentEmailId(agentEmailId);
779
      args.setPassword(password);
780
      sendBase("updatePasswordForAgent", args);
781
    }
782
 
783
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
784
    {
785
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
786
      receiveBase(result, "updatePasswordForAgent");
787
      return;
788
    }
789
 
790
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
791
    {
792
      send_getRoleNamesForAgent(agentEmailId);
793
      return recv_getRoleNamesForAgent();
794
    }
795
 
796
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
797
    {
798
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
799
      args.setAgentEmailId(agentEmailId);
800
      sendBase("getRoleNamesForAgent", args);
801
    }
802
 
803
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
804
    {
805
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
806
      receiveBase(result, "getRoleNamesForAgent");
807
      if (result.isSetSuccess()) {
808
        return result.success;
809
      }
810
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
811
    }
812
 
813
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
814
    {
815
      send_getPermissionsForRoleName(roleName);
816
      return recv_getPermissionsForRoleName();
817
    }
818
 
819
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
820
    {
821
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
822
      args.setRoleName(roleName);
823
      sendBase("getPermissionsForRoleName", args);
824
    }
825
 
826
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
827
    {
828
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
829
      receiveBase(result, "getPermissionsForRoleName");
830
      if (result.isSetSuccess()) {
831
        return result.success;
832
      }
833
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
834
    }
835
 
4806 varun.gupt 836
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
837
    {
838
      send_saveQuickLink(url, text);
839
      recv_saveQuickLink();
840
    }
841
 
842
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
843
    {
844
      saveQuickLink_args args = new saveQuickLink_args();
845
      args.setUrl(url);
846
      args.setText(text);
847
      sendBase("saveQuickLink", args);
848
    }
849
 
850
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
851
    {
852
      saveQuickLink_result result = new saveQuickLink_result();
853
      receiveBase(result, "saveQuickLink");
854
      if (result.hse != null) {
855
        throw result.hse;
856
      }
857
      return;
858
    }
859
 
860
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
861
    {
862
      send_getQuickLinks();
863
      return recv_getQuickLinks();
864
    }
865
 
866
    public void send_getQuickLinks() throws org.apache.thrift.TException
867
    {
868
      getQuickLinks_args args = new getQuickLinks_args();
869
      sendBase("getQuickLinks", args);
870
    }
871
 
872
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
873
    {
874
      getQuickLinks_result result = new getQuickLinks_result();
875
      receiveBase(result, "getQuickLinks");
876
      if (result.isSetSuccess()) {
877
        return result.success;
878
      }
879
      if (result.hse != null) {
880
        throw result.hse;
881
      }
882
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
883
    }
884
 
4996 varun.gupt 885
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
886
    {
887
      send_updateQuickLink(id, url, text);
888
      recv_updateQuickLink();
889
    }
890
 
891
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
892
    {
893
      updateQuickLink_args args = new updateQuickLink_args();
894
      args.setId(id);
895
      args.setUrl(url);
896
      args.setText(text);
897
      sendBase("updateQuickLink", args);
898
    }
899
 
900
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
901
    {
902
      updateQuickLink_result result = new updateQuickLink_result();
903
      receiveBase(result, "updateQuickLink");
904
      if (result.hse != null) {
905
        throw result.hse;
906
      }
907
      return;
908
    }
909
 
352 ashish 910
  }
3430 rajveer 911
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
912
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
913
      private org.apache.thrift.async.TAsyncClientManager clientManager;
914
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
915
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
916
        this.clientManager = clientManager;
917
        this.protocolFactory = protocolFactory;
918
      }
919
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
920
        return new AsyncClient(protocolFactory, clientManager, transport);
921
      }
352 ashish 922
    }
923
 
3430 rajveer 924
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
925
      super(protocolFactory, clientManager, transport);
926
    }
352 ashish 927
 
3430 rajveer 928
    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 {
929
      checkReady();
930
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
931
      this.___currentMethod = method_call;
932
      ___manager.call(method_call);
933
    }
934
 
935
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
936
      private String emailTo;
937
      private String emailFrom;
938
      private String subject;
939
      private String body;
940
      private String source;
941
      private String emailType;
942
      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 {
943
        super(client, protocolFactory, transport, resultHandler, false);
944
        this.emailTo = emailTo;
945
        this.emailFrom = emailFrom;
946
        this.subject = subject;
947
        this.body = body;
948
        this.source = source;
949
        this.emailType = emailType;
352 ashish 950
      }
3430 rajveer 951
 
952
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
953
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
954
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
955
        args.setEmailTo(emailTo);
956
        args.setEmailFrom(emailFrom);
957
        args.setSubject(subject);
958
        args.setBody(body);
959
        args.setSource(source);
960
        args.setEmailType(emailType);
961
        args.write(prot);
962
        prot.writeMessageEnd();
963
      }
964
 
965
      public long 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_saveUserEmailForSending();
972
      }
352 ashish 973
    }
974
 
3430 rajveer 975
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
976
      checkReady();
977
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
978
      this.___currentMethod = method_call;
979
      ___manager.call(method_call);
980
    }
981
 
982
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
983
      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 {
984
        super(client, protocolFactory, transport, resultHandler, false);
985
      }
986
 
987
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
988
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
989
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
990
        args.write(prot);
991
        prot.writeMessageEnd();
992
      }
993
 
994
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
995
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
996
          throw new IllegalStateException("Method call not finished!");
997
        }
998
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
999
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1000
        return (new Client(prot)).recv_getEmailsToBeSent();
1001
      }
1002
    }
1003
 
1004
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1005
      checkReady();
1006
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1007
      this.___currentMethod = method_call;
1008
      ___manager.call(method_call);
1009
    }
1010
 
1011
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1012
      private long emailId;
1013
      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 {
1014
        super(client, protocolFactory, transport, resultHandler, false);
1015
        this.emailId = emailId;
1016
      }
1017
 
1018
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1019
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1020
        markEmailAsSent_args args = new markEmailAsSent_args();
1021
        args.setEmailId(emailId);
1022
        args.write(prot);
1023
        prot.writeMessageEnd();
1024
      }
1025
 
1026
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1027
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1028
          throw new IllegalStateException("Method call not finished!");
1029
        }
1030
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1031
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1032
        (new Client(prot)).recv_markEmailAsSent();
1033
      }
1034
    }
1035
 
1036
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1037
      checkReady();
1038
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1039
      this.___currentMethod = method_call;
1040
      ___manager.call(method_call);
1041
    }
1042
 
1043
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1044
      private Mail mail;
1045
      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 {
1046
        super(client, protocolFactory, transport, resultHandler, false);
1047
        this.mail = mail;
1048
      }
1049
 
1050
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1051
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1052
        sendMail_args args = new sendMail_args();
1053
        args.setMail(mail);
1054
        args.write(prot);
1055
        prot.writeMessageEnd();
1056
      }
1057
 
1058
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1059
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1060
          throw new IllegalStateException("Method call not finished!");
1061
        }
1062
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1063
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1064
        (new Client(prot)).recv_sendMail();
1065
      }
1066
    }
1067
 
1068
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1069
      checkReady();
1070
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1071
      this.___currentMethod = method_call;
1072
      ___manager.call(method_call);
1073
    }
1074
 
1075
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1076
      private TextMessage message;
1077
      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 {
1078
        super(client, protocolFactory, transport, resultHandler, false);
1079
        this.message = message;
1080
      }
1081
 
1082
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1083
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1084
        sendText_args args = new sendText_args();
1085
        args.setMessage(message);
1086
        args.write(prot);
1087
        prot.writeMessageEnd();
1088
      }
1089
 
1090
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1091
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1092
          throw new IllegalStateException("Method call not finished!");
1093
        }
1094
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1095
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1096
        (new Client(prot)).recv_sendText();
1097
      }
1098
    }
1099
 
1100
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1101
      checkReady();
1102
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1103
      this.___currentMethod = method_call;
1104
      ___manager.call(method_call);
1105
    }
1106
 
1107
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1108
      private Message message;
1109
      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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
        this.message = message;
1112
      }
1113
 
1114
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1115
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1116
        addMessage_args args = new addMessage_args();
1117
        args.setMessage(message);
1118
        args.write(prot);
1119
        prot.writeMessageEnd();
1120
      }
1121
 
1122
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1123
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1124
          throw new IllegalStateException("Method call not finished!");
1125
        }
1126
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1127
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1128
        (new Client(prot)).recv_addMessage();
1129
      }
1130
    }
1131
 
1132
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1133
      checkReady();
1134
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1135
      this.___currentMethod = method_call;
1136
      ___manager.call(method_call);
1137
    }
1138
 
1139
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1140
      private long id;
1141
      private String message;
1142
      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 {
1143
        super(client, protocolFactory, transport, resultHandler, false);
1144
        this.id = id;
1145
        this.message = message;
1146
      }
1147
 
1148
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1149
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1150
        updateMessage_args args = new updateMessage_args();
1151
        args.setId(id);
1152
        args.setMessage(message);
1153
        args.write(prot);
1154
        prot.writeMessageEnd();
1155
      }
1156
 
1157
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1158
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1159
          throw new IllegalStateException("Method call not finished!");
1160
        }
1161
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1162
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1163
        (new Client(prot)).recv_updateMessage();
1164
      }
1165
    }
1166
 
1167
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1168
      checkReady();
1169
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1170
      this.___currentMethod = method_call;
1171
      ___manager.call(method_call);
1172
    }
1173
 
1174
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1175
      private long id;
1176
      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 {
1177
        super(client, protocolFactory, transport, resultHandler, false);
1178
        this.id = id;
1179
      }
1180
 
1181
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1182
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1183
        getMessage_args args = new getMessage_args();
1184
        args.setId(id);
1185
        args.write(prot);
1186
        prot.writeMessageEnd();
1187
      }
1188
 
1189
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1190
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1191
          throw new IllegalStateException("Method call not finished!");
1192
        }
1193
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1194
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1195
        return (new Client(prot)).recv_getMessage();
1196
      }
1197
    }
1198
 
1199
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1200
      checkReady();
1201
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1202
      this.___currentMethod = method_call;
1203
      ___manager.call(method_call);
1204
    }
1205
 
1206
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1207
      private long id;
1208
      private Map<String,String> params;
1209
      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 {
1210
        super(client, protocolFactory, transport, resultHandler, false);
1211
        this.id = id;
1212
        this.params = params;
1213
      }
1214
 
1215
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1216
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1217
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1218
        args.setId(id);
1219
        args.setParams(params);
1220
        args.write(prot);
1221
        prot.writeMessageEnd();
1222
      }
1223
 
1224
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1225
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1226
          throw new IllegalStateException("Method call not finished!");
1227
        }
1228
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1229
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1230
        return (new Client(prot)).recv_getSubstitutedMessage();
1231
      }
1232
    }
1233
 
1234
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1235
      checkReady();
1236
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1237
      this.___currentMethod = method_call;
1238
      ___manager.call(method_call);
1239
    }
1240
 
1241
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1242
      private String username;
1243
      private String password;
1244
      private long warehouseId;
1245
      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 {
1246
        super(client, protocolFactory, transport, resultHandler, false);
1247
        this.username = username;
1248
        this.password = password;
1249
        this.warehouseId = warehouseId;
1250
      }
1251
 
1252
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1253
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1254
        addUser_args args = new addUser_args();
1255
        args.setUsername(username);
1256
        args.setPassword(password);
1257
        args.setWarehouseId(warehouseId);
1258
        args.write(prot);
1259
        prot.writeMessageEnd();
1260
      }
1261
 
1262
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1263
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1264
          throw new IllegalStateException("Method call not finished!");
1265
        }
1266
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1267
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1268
        return (new Client(prot)).recv_addUser();
1269
      }
1270
    }
1271
 
1272
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1273
      checkReady();
1274
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1275
      this.___currentMethod = method_call;
1276
      ___manager.call(method_call);
1277
    }
1278
 
1279
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1280
      private String username;
1281
      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 {
1282
        super(client, protocolFactory, transport, resultHandler, false);
1283
        this.username = username;
1284
      }
1285
 
1286
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1287
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1288
        deleteUser_args args = new deleteUser_args();
1289
        args.setUsername(username);
1290
        args.write(prot);
1291
        prot.writeMessageEnd();
1292
      }
1293
 
1294
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1295
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1296
          throw new IllegalStateException("Method call not finished!");
1297
        }
1298
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1299
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1300
        return (new Client(prot)).recv_deleteUser();
1301
      }
1302
    }
1303
 
1304
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1305
      checkReady();
1306
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1307
      this.___currentMethod = method_call;
1308
      ___manager.call(method_call);
1309
    }
1310
 
1311
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1312
      private String username;
1313
      private String password;
1314
      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 {
1315
        super(client, protocolFactory, transport, resultHandler, false);
1316
        this.username = username;
1317
        this.password = password;
1318
      }
1319
 
1320
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1321
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1322
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1323
        args.setUsername(username);
1324
        args.setPassword(password);
1325
        args.write(prot);
1326
        prot.writeMessageEnd();
1327
      }
1328
 
1329
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1330
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1331
          throw new IllegalStateException("Method call not finished!");
1332
        }
1333
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1334
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1335
        return (new Client(prot)).recv_authenticateDashboardUser();
1336
      }
1337
    }
1338
 
1339
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1340
      checkReady();
1341
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1342
      this.___currentMethod = method_call;
1343
      ___manager.call(method_call);
1344
    }
1345
 
1346
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1347
      private String username;
1348
      private String oldPassword;
1349
      private String newPassword;
1350
      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 {
1351
        super(client, protocolFactory, transport, resultHandler, false);
1352
        this.username = username;
1353
        this.oldPassword = oldPassword;
1354
        this.newPassword = newPassword;
1355
      }
1356
 
1357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1359
        updatePassword_args args = new updatePassword_args();
1360
        args.setUsername(username);
1361
        args.setOldPassword(oldPassword);
1362
        args.setNewPassword(newPassword);
1363
        args.write(prot);
1364
        prot.writeMessageEnd();
1365
      }
1366
 
1367
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1368
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1369
          throw new IllegalStateException("Method call not finished!");
1370
        }
1371
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1372
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1373
        return (new Client(prot)).recv_updatePassword();
1374
      }
1375
    }
1376
 
1377
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1378
      checkReady();
1379
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1380
      this.___currentMethod = method_call;
1381
      ___manager.call(method_call);
1382
    }
1383
 
1384
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1385
      private String username;
1386
      private String password;
1387
      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 {
1388
        super(client, protocolFactory, transport, resultHandler, false);
1389
        this.username = username;
1390
        this.password = password;
1391
      }
1392
 
1393
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1394
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1395
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1396
        args.setUsername(username);
1397
        args.setPassword(password);
1398
        args.write(prot);
1399
        prot.writeMessageEnd();
1400
      }
1401
 
1402
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1403
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1404
          throw new IllegalStateException("Method call not finished!");
1405
        }
1406
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1407
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1408
        return (new Client(prot)).recv_authenticateLogisticsUser();
1409
      }
1410
    }
1411
 
1412
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1413
      checkReady();
1414
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1415
      this.___currentMethod = method_call;
1416
      ___manager.call(method_call);
1417
    }
1418
 
1419
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1420
      private String username;
1421
      private String password;
1422
      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 {
1423
        super(client, protocolFactory, transport, resultHandler, false);
1424
        this.username = username;
1425
        this.password = password;
1426
      }
1427
 
1428
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1429
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1430
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1431
        args.setUsername(username);
1432
        args.setPassword(password);
1433
        args.write(prot);
1434
        prot.writeMessageEnd();
1435
      }
1436
 
1437
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1438
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1439
          throw new IllegalStateException("Method call not finished!");
1440
        }
1441
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1442
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1443
        return (new Client(prot)).recv_authenticateStatisticsUser();
1444
      }
1445
    }
1446
 
1447
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1448
      checkReady();
1449
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1450
      this.___currentMethod = method_call;
1451
      ___manager.call(method_call);
1452
    }
1453
 
1454
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1455
      private String username;
1456
      private String password;
1457
      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 {
1458
        super(client, protocolFactory, transport, resultHandler, false);
1459
        this.username = username;
1460
        this.password = password;
1461
      }
1462
 
1463
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1464
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1465
        authenticateReportUser_args args = new authenticateReportUser_args();
1466
        args.setUsername(username);
1467
        args.setPassword(password);
1468
        args.write(prot);
1469
        prot.writeMessageEnd();
1470
      }
1471
 
1472
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1473
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1474
          throw new IllegalStateException("Method call not finished!");
1475
        }
1476
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1477
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1478
        return (new Client(prot)).recv_authenticateReportUser();
1479
      }
1480
    }
1481
 
1482
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1483
      checkReady();
1484
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1485
      this.___currentMethod = method_call;
1486
      ___manager.call(method_call);
1487
    }
1488
 
1489
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1490
      private long role;
1491
      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 {
1492
        super(client, protocolFactory, transport, resultHandler, false);
1493
        this.role = role;
1494
      }
1495
 
1496
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1497
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1498
        getReports_args args = new getReports_args();
1499
        args.setRole(role);
1500
        args.write(prot);
1501
        prot.writeMessageEnd();
1502
      }
1503
 
1504
      public List<Report> getResult() throws org.apache.thrift.TException {
1505
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1506
          throw new IllegalStateException("Method call not finished!");
1507
        }
1508
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1509
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1510
        return (new Client(prot)).recv_getReports();
1511
      }
1512
    }
1513
 
1514
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1515
      checkReady();
1516
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1517
      this.___currentMethod = method_call;
1518
      ___manager.call(method_call);
1519
    }
1520
 
1521
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1522
      private String username;
1523
      private String password;
1524
      private long role;
1525
      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 {
1526
        super(client, protocolFactory, transport, resultHandler, false);
1527
        this.username = username;
1528
        this.password = password;
1529
        this.role = role;
1530
      }
1531
 
1532
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1533
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1534
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1535
        args.setUsername(username);
1536
        args.setPassword(password);
1537
        args.setRole(role);
1538
        args.write(prot);
1539
        prot.writeMessageEnd();
1540
      }
1541
 
1542
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1543
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1544
          throw new IllegalStateException("Method call not finished!");
1545
        }
1546
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1547
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1548
        return (new Client(prot)).recv_authenticateCatalogUser();
1549
      }
1550
    }
1551
 
4544 varun.gupt 1552
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1553
      checkReady();
1554
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1555
      this.___currentMethod = method_call;
1556
      ___manager.call(method_call);
1557
    }
1558
 
1559
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1560
      private List<Long> entityIds;
1561
      private String email;
1562
      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 {
1563
        super(client, protocolFactory, transport, resultHandler, false);
1564
        this.entityIds = entityIds;
1565
        this.email = email;
1566
      }
1567
 
1568
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1569
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1570
        shareEntities_args args = new shareEntities_args();
1571
        args.setEntityIds(entityIds);
1572
        args.setEmail(email);
1573
        args.write(prot);
1574
        prot.writeMessageEnd();
1575
      }
1576
 
1577
      public void getResult() throws HelperServiceException, 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
        (new Client(prot)).recv_shareEntities();
1584
      }
1585
    }
1586
 
4693 mandeep.dh 1587
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1588
      checkReady();
1589
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1590
      this.___currentMethod = method_call;
1591
      ___manager.call(method_call);
1592
    }
1593
 
1594
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1595
      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 {
1596
        super(client, protocolFactory, transport, resultHandler, false);
1597
      }
1598
 
1599
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1600
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1601
        getAgents_args args = new getAgents_args();
1602
        args.write(prot);
1603
        prot.writeMessageEnd();
1604
      }
1605
 
1606
      public List<Agent> getResult() throws org.apache.thrift.TException {
1607
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1608
          throw new IllegalStateException("Method call not finished!");
1609
        }
1610
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1611
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1612
        return (new Client(prot)).recv_getAgents();
1613
      }
1614
    }
1615
 
1616
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1617
      checkReady();
1618
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1619
      this.___currentMethod = method_call;
1620
      ___manager.call(method_call);
1621
    }
1622
 
1623
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1624
      private String emailId;
1625
      private String password;
1626
      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 {
1627
        super(client, protocolFactory, transport, resultHandler, false);
1628
        this.emailId = emailId;
1629
        this.password = password;
1630
      }
1631
 
1632
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1633
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1634
        validateLogIn_args args = new validateLogIn_args();
1635
        args.setEmailId(emailId);
1636
        args.setPassword(password);
1637
        args.write(prot);
1638
        prot.writeMessageEnd();
1639
      }
1640
 
1641
      public boolean getResult() throws org.apache.thrift.TException {
1642
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1643
          throw new IllegalStateException("Method call not finished!");
1644
        }
1645
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1646
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1647
        return (new Client(prot)).recv_validateLogIn();
1648
      }
1649
    }
1650
 
1651
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1652
      checkReady();
1653
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1654
      this.___currentMethod = method_call;
1655
      ___manager.call(method_call);
1656
    }
1657
 
1658
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1659
      private String agentEmailId;
1660
      private String password;
1661
      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 {
1662
        super(client, protocolFactory, transport, resultHandler, false);
1663
        this.agentEmailId = agentEmailId;
1664
        this.password = password;
1665
      }
1666
 
1667
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1668
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1669
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1670
        args.setAgentEmailId(agentEmailId);
1671
        args.setPassword(password);
1672
        args.write(prot);
1673
        prot.writeMessageEnd();
1674
      }
1675
 
1676
      public void getResult() throws org.apache.thrift.TException {
1677
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1678
          throw new IllegalStateException("Method call not finished!");
1679
        }
1680
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1681
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1682
        (new Client(prot)).recv_updatePasswordForAgent();
1683
      }
1684
    }
1685
 
1686
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1687
      checkReady();
1688
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1689
      this.___currentMethod = method_call;
1690
      ___manager.call(method_call);
1691
    }
1692
 
1693
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1694
      private String agentEmailId;
1695
      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 {
1696
        super(client, protocolFactory, transport, resultHandler, false);
1697
        this.agentEmailId = agentEmailId;
1698
      }
1699
 
1700
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1701
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1702
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1703
        args.setAgentEmailId(agentEmailId);
1704
        args.write(prot);
1705
        prot.writeMessageEnd();
1706
      }
1707
 
1708
      public List<String> getResult() throws org.apache.thrift.TException {
1709
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1710
          throw new IllegalStateException("Method call not finished!");
1711
        }
1712
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1713
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1714
        return (new Client(prot)).recv_getRoleNamesForAgent();
1715
      }
1716
    }
1717
 
1718
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1719
      checkReady();
1720
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1721
      this.___currentMethod = method_call;
1722
      ___manager.call(method_call);
1723
    }
1724
 
1725
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1726
      private String roleName;
1727
      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 {
1728
        super(client, protocolFactory, transport, resultHandler, false);
1729
        this.roleName = roleName;
1730
      }
1731
 
1732
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1733
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1734
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1735
        args.setRoleName(roleName);
1736
        args.write(prot);
1737
        prot.writeMessageEnd();
1738
      }
1739
 
1740
      public List<String> getResult() throws org.apache.thrift.TException {
1741
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1742
          throw new IllegalStateException("Method call not finished!");
1743
        }
1744
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1745
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1746
        return (new Client(prot)).recv_getPermissionsForRoleName();
1747
      }
1748
    }
1749
 
4806 varun.gupt 1750
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1751
      checkReady();
1752
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1753
      this.___currentMethod = method_call;
1754
      ___manager.call(method_call);
1755
    }
1756
 
1757
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1758
      private String url;
1759
      private String text;
1760
      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 {
1761
        super(client, protocolFactory, transport, resultHandler, false);
1762
        this.url = url;
1763
        this.text = text;
1764
      }
1765
 
1766
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1767
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1768
        saveQuickLink_args args = new saveQuickLink_args();
1769
        args.setUrl(url);
1770
        args.setText(text);
1771
        args.write(prot);
1772
        prot.writeMessageEnd();
1773
      }
1774
 
1775
      public void 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
        (new Client(prot)).recv_saveQuickLink();
1782
      }
1783
    }
1784
 
1785
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1786
      checkReady();
1787
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1788
      this.___currentMethod = method_call;
1789
      ___manager.call(method_call);
1790
    }
1791
 
1792
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1793
      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 {
1794
        super(client, protocolFactory, transport, resultHandler, false);
1795
      }
1796
 
1797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1799
        getQuickLinks_args args = new getQuickLinks_args();
1800
        args.write(prot);
1801
        prot.writeMessageEnd();
1802
      }
1803
 
1804
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1805
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1806
          throw new IllegalStateException("Method call not finished!");
1807
        }
1808
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1810
        return (new Client(prot)).recv_getQuickLinks();
1811
      }
1812
    }
1813
 
4996 varun.gupt 1814
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1815
      checkReady();
1816
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1817
      this.___currentMethod = method_call;
1818
      ___manager.call(method_call);
1819
    }
1820
 
1821
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1822
      private long id;
1823
      private String url;
1824
      private String text;
1825
      public updateQuickLink_call(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1826
        super(client, protocolFactory, transport, resultHandler, false);
1827
        this.id = id;
1828
        this.url = url;
1829
        this.text = text;
1830
      }
1831
 
1832
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1833
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1834
        updateQuickLink_args args = new updateQuickLink_args();
1835
        args.setId(id);
1836
        args.setUrl(url);
1837
        args.setText(text);
1838
        args.write(prot);
1839
        prot.writeMessageEnd();
1840
      }
1841
 
1842
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1844
          throw new IllegalStateException("Method call not finished!");
1845
        }
1846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1848
        (new Client(prot)).recv_updateQuickLink();
1849
      }
1850
    }
1851
 
3430 rajveer 1852
  }
1853
 
1854
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1855
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1856
    public Processor(I iface) {
1857
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1858
    }
1859
 
1860
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1861
      super(iface, getProcessMap(processMap));
1862
    }
1863
 
1864
    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) {
1865
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1866
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1867
      processMap.put("markEmailAsSent", new markEmailAsSent());
1868
      processMap.put("sendMail", new sendMail());
1869
      processMap.put("sendText", new sendText());
1870
      processMap.put("addMessage", new addMessage());
1871
      processMap.put("updateMessage", new updateMessage());
1872
      processMap.put("getMessage", new getMessage());
1873
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1874
      processMap.put("addUser", new addUser());
1875
      processMap.put("deleteUser", new deleteUser());
1876
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1877
      processMap.put("updatePassword", new updatePassword());
1878
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1879
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1880
      processMap.put("authenticateReportUser", new authenticateReportUser());
1881
      processMap.put("getReports", new getReports());
1882
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1883
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 1884
      processMap.put("getAgents", new getAgents());
1885
      processMap.put("validateLogIn", new validateLogIn());
1886
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1887
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1888
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 1889
      processMap.put("saveQuickLink", new saveQuickLink());
1890
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 1891
      processMap.put("updateQuickLink", new updateQuickLink());
3430 rajveer 1892
      return processMap;
1893
    }
1894
 
1895
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1896
      public saveUserEmailForSending() {
1897
        super("saveUserEmailForSending");
1898
      }
1899
 
1900
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1901
        return new saveUserEmailForSending_args();
1902
      }
1903
 
1904
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1905
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1906
        try {
3430 rajveer 1907
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1908
          result.setSuccessIsSet(true);
1395 varun.gupt 1909
        } catch (HelperServiceException se) {
1910
          result.se = se;
1911
        }
3430 rajveer 1912
        return result;
1395 varun.gupt 1913
      }
1914
    }
1915
 
3430 rajveer 1916
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1917
      public getEmailsToBeSent() {
1918
        super("getEmailsToBeSent");
1919
      }
1920
 
1921
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1922
        return new getEmailsToBeSent_args();
1923
      }
1924
 
1925
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1926
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1927
        try {
3430 rajveer 1928
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 1929
        } catch (HelperServiceException se) {
1930
          result.se = se;
1931
        }
3430 rajveer 1932
        return result;
1422 varun.gupt 1933
      }
1934
    }
1935
 
3430 rajveer 1936
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
1937
      public markEmailAsSent() {
1938
        super("markEmailAsSent");
1939
      }
1940
 
1941
      protected markEmailAsSent_args getEmptyArgsInstance() {
1942
        return new markEmailAsSent_args();
1943
      }
1944
 
1945
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1946
        markEmailAsSent_result result = new markEmailAsSent_result();
1947
        try {
3430 rajveer 1948
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 1949
        } catch (HelperServiceException se) {
1950
          result.se = se;
1951
        }
3430 rajveer 1952
        return result;
1422 varun.gupt 1953
      }
1954
    }
1955
 
3430 rajveer 1956
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
1957
      public sendMail() {
1958
        super("sendMail");
1959
      }
1960
 
1961
      protected sendMail_args getEmptyArgsInstance() {
1962
        return new sendMail_args();
1963
      }
1964
 
1965
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 1966
        sendMail_result result = new sendMail_result();
1967
        try {
3430 rajveer 1968
          iface.sendMail(args.mail);
352 ashish 1969
        } catch (HelperServiceException se) {
1970
          result.se = se;
1971
        }
3430 rajveer 1972
        return result;
352 ashish 1973
      }
1974
    }
1975
 
3430 rajveer 1976
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
1977
      public sendText() {
1978
        super("sendText");
1979
      }
1980
 
1981
      protected sendText_args getEmptyArgsInstance() {
1982
        return new sendText_args();
1983
      }
1984
 
1985
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 1986
        sendText_result result = new sendText_result();
1987
        try {
3430 rajveer 1988
          iface.sendText(args.message);
352 ashish 1989
        } catch (HelperServiceException se) {
1990
          result.se = se;
1991
        }
3430 rajveer 1992
        return result;
352 ashish 1993
      }
1994
    }
1995
 
3430 rajveer 1996
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
1997
      public addMessage() {
1998
        super("addMessage");
1999
      }
2000
 
2001
      protected addMessage_args getEmptyArgsInstance() {
2002
        return new addMessage_args();
2003
      }
2004
 
2005
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2006
        addMessage_result result = new addMessage_result();
2007
        try {
3430 rajveer 2008
          iface.addMessage(args.message);
352 ashish 2009
        } catch (HelperServiceException se) {
2010
          result.se = se;
2011
        }
3430 rajveer 2012
        return result;
352 ashish 2013
      }
2014
    }
2015
 
3430 rajveer 2016
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2017
      public updateMessage() {
2018
        super("updateMessage");
2019
      }
2020
 
2021
      protected updateMessage_args getEmptyArgsInstance() {
2022
        return new updateMessage_args();
2023
      }
2024
 
2025
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2026
        updateMessage_result result = new updateMessage_result();
2027
        try {
3430 rajveer 2028
          iface.updateMessage(args.id, args.message);
352 ashish 2029
        } catch (HelperServiceException se) {
2030
          result.se = se;
2031
        }
3430 rajveer 2032
        return result;
352 ashish 2033
      }
2034
    }
2035
 
3430 rajveer 2036
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2037
      public getMessage() {
2038
        super("getMessage");
2039
      }
2040
 
2041
      protected getMessage_args getEmptyArgsInstance() {
2042
        return new getMessage_args();
2043
      }
2044
 
2045
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2046
        getMessage_result result = new getMessage_result();
2047
        try {
3430 rajveer 2048
          result.success = iface.getMessage(args.id);
352 ashish 2049
        } catch (HelperServiceException se) {
2050
          result.se = se;
2051
        }
3430 rajveer 2052
        return result;
352 ashish 2053
      }
2054
    }
2055
 
3430 rajveer 2056
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2057
      public getSubstitutedMessage() {
2058
        super("getSubstitutedMessage");
2059
      }
2060
 
2061
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2062
        return new getSubstitutedMessage_args();
2063
      }
2064
 
2065
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2066
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2067
        try {
3430 rajveer 2068
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2069
        } catch (HelperServiceException se) {
2070
          result.se = se;
2071
        }
3430 rajveer 2072
        return result;
352 ashish 2073
      }
2074
    }
2075
 
3430 rajveer 2076
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2077
      public addUser() {
2078
        super("addUser");
2079
      }
2080
 
2081
      protected addUser_args getEmptyArgsInstance() {
2082
        return new addUser_args();
2083
      }
2084
 
2085
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2086
        addUser_result result = new addUser_result();
2087
        try {
3430 rajveer 2088
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2089
          result.setSuccessIsSet(true);
2090
        } catch (HelperServiceException se) {
2091
          result.se = se;
2092
        }
3430 rajveer 2093
        return result;
495 rajveer 2094
      }
2095
    }
2096
 
3430 rajveer 2097
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2098
      public deleteUser() {
2099
        super("deleteUser");
2100
      }
2101
 
2102
      protected deleteUser_args getEmptyArgsInstance() {
2103
        return new deleteUser_args();
2104
      }
2105
 
2106
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2107
        deleteUser_result result = new deleteUser_result();
2108
        try {
3430 rajveer 2109
          result.success = iface.deleteUser(args.username);
495 rajveer 2110
          result.setSuccessIsSet(true);
2111
        } catch (HelperServiceException se) {
2112
          result.se = se;
2113
        }
3430 rajveer 2114
        return result;
495 rajveer 2115
      }
2116
    }
2117
 
3430 rajveer 2118
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2119
      public authenticateDashboardUser() {
2120
        super("authenticateDashboardUser");
2121
      }
2122
 
2123
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2124
        return new authenticateDashboardUser_args();
2125
      }
2126
 
2127
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2128
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2129
        try {
3430 rajveer 2130
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2131
        } catch (HelperServiceException se) {
2132
          result.se = se;
2133
        }
3430 rajveer 2134
        return result;
495 rajveer 2135
      }
2136
    }
2137
 
3430 rajveer 2138
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2139
      public updatePassword() {
2140
        super("updatePassword");
2141
      }
2142
 
2143
      protected updatePassword_args getEmptyArgsInstance() {
2144
        return new updatePassword_args();
2145
      }
2146
 
2147
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2148
        updatePassword_result result = new updatePassword_result();
2149
        try {
3430 rajveer 2150
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2151
          result.setSuccessIsSet(true);
2152
        } catch (HelperServiceException se) {
2153
          result.se = se;
2154
        }
3430 rajveer 2155
        return result;
495 rajveer 2156
      }
2157
    }
2158
 
3430 rajveer 2159
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2160
      public authenticateLogisticsUser() {
2161
        super("authenticateLogisticsUser");
2162
      }
2163
 
2164
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2165
        return new authenticateLogisticsUser_args();
2166
      }
2167
 
2168
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2169
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2170
        try {
3430 rajveer 2171
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2172
        } catch (HelperServiceException hse) {
2173
          result.hse = hse;
2174
        }
3430 rajveer 2175
        return result;
750 chandransh 2176
      }
2177
    }
2178
 
3430 rajveer 2179
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2180
      public authenticateStatisticsUser() {
2181
        super("authenticateStatisticsUser");
2182
      }
2183
 
2184
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2185
        return new authenticateStatisticsUser_args();
2186
      }
2187
 
2188
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2189
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2190
        try {
3430 rajveer 2191
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2192
        } catch (HelperServiceException hse) {
2193
          result.hse = hse;
2194
        }
3430 rajveer 2195
        return result;
1611 ankur.sing 2196
      }
2197
    }
2198
 
3430 rajveer 2199
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2200
      public authenticateReportUser() {
2201
        super("authenticateReportUser");
2202
      }
2203
 
2204
      protected authenticateReportUser_args getEmptyArgsInstance() {
2205
        return new authenticateReportUser_args();
2206
      }
2207
 
2208
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2209
        authenticateReportUser_result result = new authenticateReportUser_result();
2210
        try {
3430 rajveer 2211
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2212
        } catch (HelperServiceException hse) {
2213
          result.hse = hse;
2214
        }
3430 rajveer 2215
        return result;
1891 ankur.sing 2216
      }
2217
    }
2218
 
3430 rajveer 2219
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2220
      public getReports() {
2221
        super("getReports");
2222
      }
2223
 
2224
      protected getReports_args getEmptyArgsInstance() {
2225
        return new getReports_args();
2226
      }
2227
 
2228
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2229
        getReports_result result = new getReports_result();
3430 rajveer 2230
        result.success = iface.getReports(args.role);
2231
        return result;
1891 ankur.sing 2232
      }
2233
    }
2234
 
3430 rajveer 2235
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2236
      public authenticateCatalogUser() {
2237
        super("authenticateCatalogUser");
2238
      }
2239
 
2240
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2241
        return new authenticateCatalogUser_args();
2242
      }
2243
 
2244
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2245
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2246
        try {
3430 rajveer 2247
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 2248
        } catch (HelperServiceException hse) {
2249
          result.hse = hse;
2250
        }
3430 rajveer 2251
        return result;
2024 ankur.sing 2252
      }
2253
    }
2254
 
4544 varun.gupt 2255
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2256
      public shareEntities() {
2257
        super("shareEntities");
2258
      }
2259
 
2260
      protected shareEntities_args getEmptyArgsInstance() {
2261
        return new shareEntities_args();
2262
      }
2263
 
2264
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2265
        shareEntities_result result = new shareEntities_result();
2266
        try {
2267
          iface.shareEntities(args.entityIds, args.email);
2268
        } catch (HelperServiceException hse) {
2269
          result.hse = hse;
2270
        }
2271
        return result;
2272
      }
2273
    }
2274
 
4693 mandeep.dh 2275
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2276
      public getAgents() {
2277
        super("getAgents");
2278
      }
2279
 
2280
      protected getAgents_args getEmptyArgsInstance() {
2281
        return new getAgents_args();
2282
      }
2283
 
2284
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2285
        getAgents_result result = new getAgents_result();
2286
        result.success = iface.getAgents();
2287
        return result;
2288
      }
2289
    }
2290
 
2291
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2292
      public validateLogIn() {
2293
        super("validateLogIn");
2294
      }
2295
 
2296
      protected validateLogIn_args getEmptyArgsInstance() {
2297
        return new validateLogIn_args();
2298
      }
2299
 
2300
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2301
        validateLogIn_result result = new validateLogIn_result();
2302
        result.success = iface.validateLogIn(args.emailId, args.password);
2303
        result.setSuccessIsSet(true);
2304
        return result;
2305
      }
2306
    }
2307
 
2308
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2309
      public updatePasswordForAgent() {
2310
        super("updatePasswordForAgent");
2311
      }
2312
 
2313
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2314
        return new updatePasswordForAgent_args();
2315
      }
2316
 
2317
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2318
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2319
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2320
        return result;
2321
      }
2322
    }
2323
 
2324
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2325
      public getRoleNamesForAgent() {
2326
        super("getRoleNamesForAgent");
2327
      }
2328
 
2329
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2330
        return new getRoleNamesForAgent_args();
2331
      }
2332
 
2333
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2334
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2335
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2336
        return result;
2337
      }
2338
    }
2339
 
2340
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2341
      public getPermissionsForRoleName() {
2342
        super("getPermissionsForRoleName");
2343
      }
2344
 
2345
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2346
        return new getPermissionsForRoleName_args();
2347
      }
2348
 
2349
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2350
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2351
        result.success = iface.getPermissionsForRoleName(args.roleName);
2352
        return result;
2353
      }
2354
    }
2355
 
4806 varun.gupt 2356
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2357
      public saveQuickLink() {
2358
        super("saveQuickLink");
2359
      }
2360
 
2361
      protected saveQuickLink_args getEmptyArgsInstance() {
2362
        return new saveQuickLink_args();
2363
      }
2364
 
2365
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2366
        saveQuickLink_result result = new saveQuickLink_result();
2367
        try {
2368
          iface.saveQuickLink(args.url, args.text);
2369
        } catch (HelperServiceException hse) {
2370
          result.hse = hse;
2371
        }
2372
        return result;
2373
      }
2374
    }
2375
 
2376
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2377
      public getQuickLinks() {
2378
        super("getQuickLinks");
2379
      }
2380
 
2381
      protected getQuickLinks_args getEmptyArgsInstance() {
2382
        return new getQuickLinks_args();
2383
      }
2384
 
2385
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2386
        getQuickLinks_result result = new getQuickLinks_result();
2387
        try {
2388
          result.success = iface.getQuickLinks();
2389
        } catch (HelperServiceException hse) {
2390
          result.hse = hse;
2391
        }
2392
        return result;
2393
      }
2394
    }
2395
 
4996 varun.gupt 2396
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2397
      public updateQuickLink() {
2398
        super("updateQuickLink");
2399
      }
2400
 
2401
      protected updateQuickLink_args getEmptyArgsInstance() {
2402
        return new updateQuickLink_args();
2403
      }
2404
 
2405
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2406
        updateQuickLink_result result = new updateQuickLink_result();
2407
        try {
2408
          iface.updateQuickLink(args.id, args.url, args.text);
2409
        } catch (HelperServiceException hse) {
2410
          result.hse = hse;
2411
        }
2412
        return result;
2413
      }
2414
    }
2415
 
352 ashish 2416
  }
2417
 
3430 rajveer 2418
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2419
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2420
 
3430 rajveer 2421
    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);
2422
    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);
2423
    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);
2424
    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);
2425
    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);
2426
    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 2427
 
3430 rajveer 2428
    private String emailTo; // required
2429
    private String emailFrom; // required
2430
    private String subject; // required
2431
    private String body; // required
2432
    private String source; // required
2433
    private String emailType; // required
1395 varun.gupt 2434
 
2435
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2436
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2437
      EMAIL_TO((short)1, "emailTo"),
2438
      EMAIL_FROM((short)2, "emailFrom"),
2439
      SUBJECT((short)3, "subject"),
2440
      BODY((short)4, "body"),
2441
      SOURCE((short)5, "source"),
2442
      EMAIL_TYPE((short)6, "emailType");
2443
 
2444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2445
 
2446
      static {
2447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2448
          byName.put(field.getFieldName(), field);
2449
        }
2450
      }
2451
 
2452
      /**
2453
       * Find the _Fields constant that matches fieldId, or null if its not found.
2454
       */
2455
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2456
        switch(fieldId) {
2457
          case 1: // EMAIL_TO
2458
            return EMAIL_TO;
2459
          case 2: // EMAIL_FROM
2460
            return EMAIL_FROM;
2461
          case 3: // SUBJECT
2462
            return SUBJECT;
2463
          case 4: // BODY
2464
            return BODY;
2465
          case 5: // SOURCE
2466
            return SOURCE;
2467
          case 6: // EMAIL_TYPE
2468
            return EMAIL_TYPE;
2469
          default:
2470
            return null;
2471
        }
1395 varun.gupt 2472
      }
2473
 
2474
      /**
2475
       * Find the _Fields constant that matches fieldId, throwing an exception
2476
       * if it is not found.
2477
       */
2478
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2479
        _Fields fields = findByThriftId(fieldId);
2480
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2481
        return fields;
2482
      }
2483
 
2484
      /**
2485
       * Find the _Fields constant that matches name, or null if its not found.
2486
       */
2487
      public static _Fields findByName(String name) {
2488
        return byName.get(name);
2489
      }
2490
 
2491
      private final short _thriftId;
2492
      private final String _fieldName;
2493
 
2494
      _Fields(short thriftId, String fieldName) {
2495
        _thriftId = thriftId;
2496
        _fieldName = fieldName;
2497
      }
2498
 
2499
      public short getThriftFieldId() {
2500
        return _thriftId;
2501
      }
2502
 
2503
      public String getFieldName() {
2504
        return _fieldName;
2505
      }
2506
    }
2507
 
2508
    // isset id assignments
2509
 
3430 rajveer 2510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2511
    static {
3430 rajveer 2512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2513
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2515
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2516
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2517
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2519
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2520
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2521
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2523
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2524
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2527
    }
2528
 
2529
    public saveUserEmailForSending_args() {
2530
    }
2531
 
2532
    public saveUserEmailForSending_args(
2533
      String emailTo,
2534
      String emailFrom,
2535
      String subject,
2536
      String body,
2537
      String source,
2538
      String emailType)
2539
    {
2540
      this();
2541
      this.emailTo = emailTo;
2542
      this.emailFrom = emailFrom;
2543
      this.subject = subject;
2544
      this.body = body;
2545
      this.source = source;
2546
      this.emailType = emailType;
2547
    }
2548
 
2549
    /**
2550
     * Performs a deep copy on <i>other</i>.
2551
     */
2552
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2553
      if (other.isSetEmailTo()) {
2554
        this.emailTo = other.emailTo;
2555
      }
2556
      if (other.isSetEmailFrom()) {
2557
        this.emailFrom = other.emailFrom;
2558
      }
2559
      if (other.isSetSubject()) {
2560
        this.subject = other.subject;
2561
      }
2562
      if (other.isSetBody()) {
2563
        this.body = other.body;
2564
      }
2565
      if (other.isSetSource()) {
2566
        this.source = other.source;
2567
      }
2568
      if (other.isSetEmailType()) {
2569
        this.emailType = other.emailType;
2570
      }
2571
    }
2572
 
2573
    public saveUserEmailForSending_args deepCopy() {
2574
      return new saveUserEmailForSending_args(this);
2575
    }
2576
 
3430 rajveer 2577
    @Override
2578
    public void clear() {
2579
      this.emailTo = null;
2580
      this.emailFrom = null;
2581
      this.subject = null;
2582
      this.body = null;
2583
      this.source = null;
2584
      this.emailType = null;
1395 varun.gupt 2585
    }
2586
 
2587
    public String getEmailTo() {
2588
      return this.emailTo;
2589
    }
2590
 
3430 rajveer 2591
    public void setEmailTo(String emailTo) {
1395 varun.gupt 2592
      this.emailTo = emailTo;
2593
    }
2594
 
2595
    public void unsetEmailTo() {
2596
      this.emailTo = null;
2597
    }
2598
 
3430 rajveer 2599
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2600
    public boolean isSetEmailTo() {
2601
      return this.emailTo != null;
2602
    }
2603
 
2604
    public void setEmailToIsSet(boolean value) {
2605
      if (!value) {
2606
        this.emailTo = null;
2607
      }
2608
    }
2609
 
2610
    public String getEmailFrom() {
2611
      return this.emailFrom;
2612
    }
2613
 
3430 rajveer 2614
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2615
      this.emailFrom = emailFrom;
2616
    }
2617
 
2618
    public void unsetEmailFrom() {
2619
      this.emailFrom = null;
2620
    }
2621
 
3430 rajveer 2622
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2623
    public boolean isSetEmailFrom() {
2624
      return this.emailFrom != null;
2625
    }
2626
 
2627
    public void setEmailFromIsSet(boolean value) {
2628
      if (!value) {
2629
        this.emailFrom = null;
2630
      }
2631
    }
2632
 
2633
    public String getSubject() {
2634
      return this.subject;
2635
    }
2636
 
3430 rajveer 2637
    public void setSubject(String subject) {
1395 varun.gupt 2638
      this.subject = subject;
2639
    }
2640
 
2641
    public void unsetSubject() {
2642
      this.subject = null;
2643
    }
2644
 
3430 rajveer 2645
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2646
    public boolean isSetSubject() {
2647
      return this.subject != null;
2648
    }
2649
 
2650
    public void setSubjectIsSet(boolean value) {
2651
      if (!value) {
2652
        this.subject = null;
2653
      }
2654
    }
2655
 
2656
    public String getBody() {
2657
      return this.body;
2658
    }
2659
 
3430 rajveer 2660
    public void setBody(String body) {
1395 varun.gupt 2661
      this.body = body;
2662
    }
2663
 
2664
    public void unsetBody() {
2665
      this.body = null;
2666
    }
2667
 
3430 rajveer 2668
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2669
    public boolean isSetBody() {
2670
      return this.body != null;
2671
    }
2672
 
2673
    public void setBodyIsSet(boolean value) {
2674
      if (!value) {
2675
        this.body = null;
2676
      }
2677
    }
2678
 
2679
    public String getSource() {
2680
      return this.source;
2681
    }
2682
 
3430 rajveer 2683
    public void setSource(String source) {
1395 varun.gupt 2684
      this.source = source;
2685
    }
2686
 
2687
    public void unsetSource() {
2688
      this.source = null;
2689
    }
2690
 
3430 rajveer 2691
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2692
    public boolean isSetSource() {
2693
      return this.source != null;
2694
    }
2695
 
2696
    public void setSourceIsSet(boolean value) {
2697
      if (!value) {
2698
        this.source = null;
2699
      }
2700
    }
2701
 
2702
    public String getEmailType() {
2703
      return this.emailType;
2704
    }
2705
 
3430 rajveer 2706
    public void setEmailType(String emailType) {
1395 varun.gupt 2707
      this.emailType = emailType;
2708
    }
2709
 
2710
    public void unsetEmailType() {
2711
      this.emailType = null;
2712
    }
2713
 
3430 rajveer 2714
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2715
    public boolean isSetEmailType() {
2716
      return this.emailType != null;
2717
    }
2718
 
2719
    public void setEmailTypeIsSet(boolean value) {
2720
      if (!value) {
2721
        this.emailType = null;
2722
      }
2723
    }
2724
 
2725
    public void setFieldValue(_Fields field, Object value) {
2726
      switch (field) {
2727
      case EMAIL_TO:
2728
        if (value == null) {
2729
          unsetEmailTo();
2730
        } else {
2731
          setEmailTo((String)value);
2732
        }
2733
        break;
2734
 
2735
      case EMAIL_FROM:
2736
        if (value == null) {
2737
          unsetEmailFrom();
2738
        } else {
2739
          setEmailFrom((String)value);
2740
        }
2741
        break;
2742
 
2743
      case SUBJECT:
2744
        if (value == null) {
2745
          unsetSubject();
2746
        } else {
2747
          setSubject((String)value);
2748
        }
2749
        break;
2750
 
2751
      case BODY:
2752
        if (value == null) {
2753
          unsetBody();
2754
        } else {
2755
          setBody((String)value);
2756
        }
2757
        break;
2758
 
2759
      case SOURCE:
2760
        if (value == null) {
2761
          unsetSource();
2762
        } else {
2763
          setSource((String)value);
2764
        }
2765
        break;
2766
 
2767
      case EMAIL_TYPE:
2768
        if (value == null) {
2769
          unsetEmailType();
2770
        } else {
2771
          setEmailType((String)value);
2772
        }
2773
        break;
2774
 
2775
      }
2776
    }
2777
 
2778
    public Object getFieldValue(_Fields field) {
2779
      switch (field) {
2780
      case EMAIL_TO:
2781
        return getEmailTo();
2782
 
2783
      case EMAIL_FROM:
2784
        return getEmailFrom();
2785
 
2786
      case SUBJECT:
2787
        return getSubject();
2788
 
2789
      case BODY:
2790
        return getBody();
2791
 
2792
      case SOURCE:
2793
        return getSource();
2794
 
2795
      case EMAIL_TYPE:
2796
        return getEmailType();
2797
 
2798
      }
2799
      throw new IllegalStateException();
2800
    }
2801
 
3430 rajveer 2802
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2803
    public boolean isSet(_Fields field) {
2804
      if (field == null) {
2805
        throw new IllegalArgumentException();
2806
      }
1395 varun.gupt 2807
 
2808
      switch (field) {
2809
      case EMAIL_TO:
2810
        return isSetEmailTo();
2811
      case EMAIL_FROM:
2812
        return isSetEmailFrom();
2813
      case SUBJECT:
2814
        return isSetSubject();
2815
      case BODY:
2816
        return isSetBody();
2817
      case SOURCE:
2818
        return isSetSource();
2819
      case EMAIL_TYPE:
2820
        return isSetEmailType();
2821
      }
2822
      throw new IllegalStateException();
2823
    }
2824
 
2825
    @Override
2826
    public boolean equals(Object that) {
2827
      if (that == null)
2828
        return false;
2829
      if (that instanceof saveUserEmailForSending_args)
2830
        return this.equals((saveUserEmailForSending_args)that);
2831
      return false;
2832
    }
2833
 
2834
    public boolean equals(saveUserEmailForSending_args that) {
2835
      if (that == null)
2836
        return false;
2837
 
2838
      boolean this_present_emailTo = true && this.isSetEmailTo();
2839
      boolean that_present_emailTo = true && that.isSetEmailTo();
2840
      if (this_present_emailTo || that_present_emailTo) {
2841
        if (!(this_present_emailTo && that_present_emailTo))
2842
          return false;
2843
        if (!this.emailTo.equals(that.emailTo))
2844
          return false;
2845
      }
2846
 
2847
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2848
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2849
      if (this_present_emailFrom || that_present_emailFrom) {
2850
        if (!(this_present_emailFrom && that_present_emailFrom))
2851
          return false;
2852
        if (!this.emailFrom.equals(that.emailFrom))
2853
          return false;
2854
      }
2855
 
2856
      boolean this_present_subject = true && this.isSetSubject();
2857
      boolean that_present_subject = true && that.isSetSubject();
2858
      if (this_present_subject || that_present_subject) {
2859
        if (!(this_present_subject && that_present_subject))
2860
          return false;
2861
        if (!this.subject.equals(that.subject))
2862
          return false;
2863
      }
2864
 
2865
      boolean this_present_body = true && this.isSetBody();
2866
      boolean that_present_body = true && that.isSetBody();
2867
      if (this_present_body || that_present_body) {
2868
        if (!(this_present_body && that_present_body))
2869
          return false;
2870
        if (!this.body.equals(that.body))
2871
          return false;
2872
      }
2873
 
2874
      boolean this_present_source = true && this.isSetSource();
2875
      boolean that_present_source = true && that.isSetSource();
2876
      if (this_present_source || that_present_source) {
2877
        if (!(this_present_source && that_present_source))
2878
          return false;
2879
        if (!this.source.equals(that.source))
2880
          return false;
2881
      }
2882
 
2883
      boolean this_present_emailType = true && this.isSetEmailType();
2884
      boolean that_present_emailType = true && that.isSetEmailType();
2885
      if (this_present_emailType || that_present_emailType) {
2886
        if (!(this_present_emailType && that_present_emailType))
2887
          return false;
2888
        if (!this.emailType.equals(that.emailType))
2889
          return false;
2890
      }
2891
 
2892
      return true;
2893
    }
2894
 
2895
    @Override
2896
    public int hashCode() {
2897
      return 0;
2898
    }
2899
 
2900
    public int compareTo(saveUserEmailForSending_args other) {
2901
      if (!getClass().equals(other.getClass())) {
2902
        return getClass().getName().compareTo(other.getClass().getName());
2903
      }
2904
 
2905
      int lastComparison = 0;
2906
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2907
 
3430 rajveer 2908
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 2909
      if (lastComparison != 0) {
2910
        return lastComparison;
2911
      }
3430 rajveer 2912
      if (isSetEmailTo()) {
2913
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
2914
        if (lastComparison != 0) {
2915
          return lastComparison;
2916
        }
1395 varun.gupt 2917
      }
3430 rajveer 2918
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 2919
      if (lastComparison != 0) {
2920
        return lastComparison;
2921
      }
3430 rajveer 2922
      if (isSetEmailFrom()) {
2923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
2924
        if (lastComparison != 0) {
2925
          return lastComparison;
2926
        }
1395 varun.gupt 2927
      }
3430 rajveer 2928
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 2929
      if (lastComparison != 0) {
2930
        return lastComparison;
2931
      }
3430 rajveer 2932
      if (isSetSubject()) {
2933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
2934
        if (lastComparison != 0) {
2935
          return lastComparison;
2936
        }
1395 varun.gupt 2937
      }
3430 rajveer 2938
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 2939
      if (lastComparison != 0) {
2940
        return lastComparison;
2941
      }
3430 rajveer 2942
      if (isSetBody()) {
2943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
2944
        if (lastComparison != 0) {
2945
          return lastComparison;
2946
        }
1395 varun.gupt 2947
      }
3430 rajveer 2948
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 2949
      if (lastComparison != 0) {
2950
        return lastComparison;
2951
      }
3430 rajveer 2952
      if (isSetSource()) {
2953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2954
        if (lastComparison != 0) {
2955
          return lastComparison;
2956
        }
1395 varun.gupt 2957
      }
3430 rajveer 2958
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 2959
      if (lastComparison != 0) {
2960
        return lastComparison;
2961
      }
3430 rajveer 2962
      if (isSetEmailType()) {
2963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
2964
        if (lastComparison != 0) {
2965
          return lastComparison;
2966
        }
1395 varun.gupt 2967
      }
2968
      return 0;
2969
    }
2970
 
3430 rajveer 2971
    public _Fields fieldForId(int fieldId) {
2972
      return _Fields.findByThriftId(fieldId);
2973
    }
2974
 
2975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2976
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2977
      iprot.readStructBegin();
2978
      while (true)
2979
      {
2980
        field = iprot.readFieldBegin();
3430 rajveer 2981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2982
          break;
2983
        }
3430 rajveer 2984
        switch (field.id) {
2985
          case 1: // EMAIL_TO
2986
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2987
              this.emailTo = iprot.readString();
2988
            } else { 
2989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2990
            }
2991
            break;
2992
          case 2: // EMAIL_FROM
2993
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2994
              this.emailFrom = iprot.readString();
2995
            } else { 
2996
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2997
            }
2998
            break;
2999
          case 3: // SUBJECT
3000
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3001
              this.subject = iprot.readString();
3002
            } else { 
3003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3004
            }
3005
            break;
3006
          case 4: // BODY
3007
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3008
              this.body = iprot.readString();
3009
            } else { 
3010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3011
            }
3012
            break;
3013
          case 5: // SOURCE
3014
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3015
              this.source = iprot.readString();
3016
            } else { 
3017
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3018
            }
3019
            break;
3020
          case 6: // EMAIL_TYPE
3021
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3022
              this.emailType = iprot.readString();
3023
            } else { 
3024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3025
            }
3026
            break;
3027
          default:
3028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3029
        }
3430 rajveer 3030
        iprot.readFieldEnd();
1395 varun.gupt 3031
      }
3032
      iprot.readStructEnd();
3033
      validate();
3034
    }
3035
 
3430 rajveer 3036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3037
      validate();
3038
 
3039
      oprot.writeStructBegin(STRUCT_DESC);
3040
      if (this.emailTo != null) {
3041
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
3042
        oprot.writeString(this.emailTo);
3043
        oprot.writeFieldEnd();
3044
      }
3045
      if (this.emailFrom != null) {
3046
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3047
        oprot.writeString(this.emailFrom);
3048
        oprot.writeFieldEnd();
3049
      }
3050
      if (this.subject != null) {
3051
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3052
        oprot.writeString(this.subject);
3053
        oprot.writeFieldEnd();
3054
      }
3055
      if (this.body != null) {
3056
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3057
        oprot.writeString(this.body);
3058
        oprot.writeFieldEnd();
3059
      }
3060
      if (this.source != null) {
3061
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3062
        oprot.writeString(this.source);
3063
        oprot.writeFieldEnd();
3064
      }
3065
      if (this.emailType != null) {
3066
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3067
        oprot.writeString(this.emailType);
3068
        oprot.writeFieldEnd();
3069
      }
3070
      oprot.writeFieldStop();
3071
      oprot.writeStructEnd();
3072
    }
3073
 
3074
    @Override
3075
    public String toString() {
3076
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3077
      boolean first = true;
3078
 
3079
      sb.append("emailTo:");
3080
      if (this.emailTo == null) {
3081
        sb.append("null");
3082
      } else {
3083
        sb.append(this.emailTo);
3084
      }
3085
      first = false;
3086
      if (!first) sb.append(", ");
3087
      sb.append("emailFrom:");
3088
      if (this.emailFrom == null) {
3089
        sb.append("null");
3090
      } else {
3091
        sb.append(this.emailFrom);
3092
      }
3093
      first = false;
3094
      if (!first) sb.append(", ");
3095
      sb.append("subject:");
3096
      if (this.subject == null) {
3097
        sb.append("null");
3098
      } else {
3099
        sb.append(this.subject);
3100
      }
3101
      first = false;
3102
      if (!first) sb.append(", ");
3103
      sb.append("body:");
3104
      if (this.body == null) {
3105
        sb.append("null");
3106
      } else {
3107
        sb.append(this.body);
3108
      }
3109
      first = false;
3110
      if (!first) sb.append(", ");
3111
      sb.append("source:");
3112
      if (this.source == null) {
3113
        sb.append("null");
3114
      } else {
3115
        sb.append(this.source);
3116
      }
3117
      first = false;
3118
      if (!first) sb.append(", ");
3119
      sb.append("emailType:");
3120
      if (this.emailType == null) {
3121
        sb.append("null");
3122
      } else {
3123
        sb.append(this.emailType);
3124
      }
3125
      first = false;
3126
      sb.append(")");
3127
      return sb.toString();
3128
    }
3129
 
3430 rajveer 3130
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3131
      // check for required fields
3132
    }
3133
 
3430 rajveer 3134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3135
      try {
3136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3137
      } catch (org.apache.thrift.TException te) {
3138
        throw new java.io.IOException(te);
3139
      }
3140
    }
3141
 
3142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3143
      try {
3144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3145
      } catch (org.apache.thrift.TException te) {
3146
        throw new java.io.IOException(te);
3147
      }
3148
    }
3149
 
1395 varun.gupt 3150
  }
3151
 
3430 rajveer 3152
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3154
 
3430 rajveer 3155
    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);
3156
    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 3157
 
3430 rajveer 3158
    private long success; // required
3159
    private HelperServiceException se; // required
1395 varun.gupt 3160
 
3161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3163
      SUCCESS((short)0, "success"),
1395 varun.gupt 3164
      SE((short)1, "se");
3165
 
3166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3167
 
3168
      static {
3169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3170
          byName.put(field.getFieldName(), field);
3171
        }
3172
      }
3173
 
3174
      /**
3175
       * Find the _Fields constant that matches fieldId, or null if its not found.
3176
       */
3177
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3178
        switch(fieldId) {
3179
          case 0: // SUCCESS
3180
            return SUCCESS;
3181
          case 1: // SE
3182
            return SE;
3183
          default:
3184
            return null;
3185
        }
1395 varun.gupt 3186
      }
3187
 
3188
      /**
3189
       * Find the _Fields constant that matches fieldId, throwing an exception
3190
       * if it is not found.
3191
       */
3192
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3193
        _Fields fields = findByThriftId(fieldId);
3194
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3195
        return fields;
3196
      }
3197
 
3198
      /**
3199
       * Find the _Fields constant that matches name, or null if its not found.
3200
       */
3201
      public static _Fields findByName(String name) {
3202
        return byName.get(name);
3203
      }
3204
 
3205
      private final short _thriftId;
3206
      private final String _fieldName;
3207
 
3208
      _Fields(short thriftId, String fieldName) {
3209
        _thriftId = thriftId;
3210
        _fieldName = fieldName;
3211
      }
3212
 
3213
      public short getThriftFieldId() {
3214
        return _thriftId;
3215
      }
3216
 
3217
      public String getFieldName() {
3218
        return _fieldName;
3219
      }
3220
    }
3221
 
3222
    // isset id assignments
3206 mandeep.dh 3223
    private static final int __SUCCESS_ISSET_ID = 0;
3224
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3225
 
3430 rajveer 3226
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3227
    static {
3430 rajveer 3228
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3229
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3231
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3232
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3233
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3234
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3235
    }
3236
 
3237
    public saveUserEmailForSending_result() {
3238
    }
3239
 
3240
    public saveUserEmailForSending_result(
3206 mandeep.dh 3241
      long success,
1395 varun.gupt 3242
      HelperServiceException se)
3243
    {
3244
      this();
3206 mandeep.dh 3245
      this.success = success;
3246
      setSuccessIsSet(true);
1395 varun.gupt 3247
      this.se = se;
3248
    }
3249
 
3250
    /**
3251
     * Performs a deep copy on <i>other</i>.
3252
     */
3253
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3254
      __isset_bit_vector.clear();
3255
      __isset_bit_vector.or(other.__isset_bit_vector);
3256
      this.success = other.success;
1395 varun.gupt 3257
      if (other.isSetSe()) {
3258
        this.se = new HelperServiceException(other.se);
3259
      }
3260
    }
3261
 
3262
    public saveUserEmailForSending_result deepCopy() {
3263
      return new saveUserEmailForSending_result(this);
3264
    }
3265
 
3430 rajveer 3266
    @Override
3267
    public void clear() {
3268
      setSuccessIsSet(false);
3269
      this.success = 0;
3270
      this.se = null;
1395 varun.gupt 3271
    }
3272
 
3206 mandeep.dh 3273
    public long getSuccess() {
3274
      return this.success;
3275
    }
3276
 
3430 rajveer 3277
    public void setSuccess(long success) {
3206 mandeep.dh 3278
      this.success = success;
3279
      setSuccessIsSet(true);
3280
    }
3281
 
3282
    public void unsetSuccess() {
3283
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3284
    }
3285
 
3430 rajveer 3286
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3287
    public boolean isSetSuccess() {
3288
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3289
    }
3290
 
3291
    public void setSuccessIsSet(boolean value) {
3292
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3293
    }
3294
 
1395 varun.gupt 3295
    public HelperServiceException getSe() {
3296
      return this.se;
3297
    }
3298
 
3430 rajveer 3299
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3300
      this.se = se;
3301
    }
3302
 
3303
    public void unsetSe() {
3304
      this.se = null;
3305
    }
3306
 
3430 rajveer 3307
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3308
    public boolean isSetSe() {
3309
      return this.se != null;
3310
    }
3311
 
3312
    public void setSeIsSet(boolean value) {
3313
      if (!value) {
3314
        this.se = null;
3315
      }
3316
    }
3317
 
3318
    public void setFieldValue(_Fields field, Object value) {
3319
      switch (field) {
3206 mandeep.dh 3320
      case SUCCESS:
3321
        if (value == null) {
3322
          unsetSuccess();
3323
        } else {
3324
          setSuccess((Long)value);
3325
        }
3326
        break;
3327
 
1395 varun.gupt 3328
      case SE:
3329
        if (value == null) {
3330
          unsetSe();
3331
        } else {
3332
          setSe((HelperServiceException)value);
3333
        }
3334
        break;
3335
 
3336
      }
3337
    }
3338
 
3339
    public Object getFieldValue(_Fields field) {
3340
      switch (field) {
3206 mandeep.dh 3341
      case SUCCESS:
3430 rajveer 3342
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3343
 
1395 varun.gupt 3344
      case SE:
3345
        return getSe();
3346
 
3347
      }
3348
      throw new IllegalStateException();
3349
    }
3350
 
3430 rajveer 3351
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3352
    public boolean isSet(_Fields field) {
3353
      if (field == null) {
3354
        throw new IllegalArgumentException();
3355
      }
1395 varun.gupt 3356
 
3357
      switch (field) {
3206 mandeep.dh 3358
      case SUCCESS:
3359
        return isSetSuccess();
1395 varun.gupt 3360
      case SE:
3361
        return isSetSe();
3362
      }
3363
      throw new IllegalStateException();
3364
    }
3365
 
3366
    @Override
3367
    public boolean equals(Object that) {
3368
      if (that == null)
3369
        return false;
3370
      if (that instanceof saveUserEmailForSending_result)
3371
        return this.equals((saveUserEmailForSending_result)that);
3372
      return false;
3373
    }
3374
 
3375
    public boolean equals(saveUserEmailForSending_result that) {
3376
      if (that == null)
3377
        return false;
3378
 
3206 mandeep.dh 3379
      boolean this_present_success = true;
3380
      boolean that_present_success = true;
3381
      if (this_present_success || that_present_success) {
3382
        if (!(this_present_success && that_present_success))
3383
          return false;
3384
        if (this.success != that.success)
3385
          return false;
3386
      }
3387
 
1395 varun.gupt 3388
      boolean this_present_se = true && this.isSetSe();
3389
      boolean that_present_se = true && that.isSetSe();
3390
      if (this_present_se || that_present_se) {
3391
        if (!(this_present_se && that_present_se))
3392
          return false;
3393
        if (!this.se.equals(that.se))
3394
          return false;
3395
      }
3396
 
3397
      return true;
3398
    }
3399
 
3400
    @Override
3401
    public int hashCode() {
3402
      return 0;
3403
    }
3404
 
3405
    public int compareTo(saveUserEmailForSending_result other) {
3406
      if (!getClass().equals(other.getClass())) {
3407
        return getClass().getName().compareTo(other.getClass().getName());
3408
      }
3409
 
3410
      int lastComparison = 0;
3411
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3412
 
3430 rajveer 3413
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3414
      if (lastComparison != 0) {
3415
        return lastComparison;
3416
      }
3430 rajveer 3417
      if (isSetSuccess()) {
3418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3419
        if (lastComparison != 0) {
3420
          return lastComparison;
3421
        }
3206 mandeep.dh 3422
      }
3430 rajveer 3423
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3424
      if (lastComparison != 0) {
3425
        return lastComparison;
3426
      }
3430 rajveer 3427
      if (isSetSe()) {
3428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3429
        if (lastComparison != 0) {
3430
          return lastComparison;
3431
        }
1395 varun.gupt 3432
      }
3433
      return 0;
3434
    }
3435
 
3430 rajveer 3436
    public _Fields fieldForId(int fieldId) {
3437
      return _Fields.findByThriftId(fieldId);
3438
    }
3439
 
3440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3441
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3442
      iprot.readStructBegin();
3443
      while (true)
3444
      {
3445
        field = iprot.readFieldBegin();
3430 rajveer 3446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3447
          break;
3448
        }
3430 rajveer 3449
        switch (field.id) {
3450
          case 0: // SUCCESS
3451
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3452
              this.success = iprot.readI64();
3453
              setSuccessIsSet(true);
3454
            } else { 
3455
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3456
            }
3457
            break;
3458
          case 1: // SE
3459
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3460
              this.se = new HelperServiceException();
3461
              this.se.read(iprot);
3462
            } else { 
3463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3464
            }
3465
            break;
3466
          default:
3467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3468
        }
3430 rajveer 3469
        iprot.readFieldEnd();
1395 varun.gupt 3470
      }
3471
      iprot.readStructEnd();
3472
      validate();
3473
    }
3474
 
3430 rajveer 3475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3476
      oprot.writeStructBegin(STRUCT_DESC);
3477
 
3206 mandeep.dh 3478
      if (this.isSetSuccess()) {
3479
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3480
        oprot.writeI64(this.success);
3481
        oprot.writeFieldEnd();
3482
      } else if (this.isSetSe()) {
1395 varun.gupt 3483
        oprot.writeFieldBegin(SE_FIELD_DESC);
3484
        this.se.write(oprot);
3485
        oprot.writeFieldEnd();
3486
      }
3487
      oprot.writeFieldStop();
3488
      oprot.writeStructEnd();
3489
    }
3490
 
3491
    @Override
3492
    public String toString() {
3493
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3494
      boolean first = true;
3495
 
3206 mandeep.dh 3496
      sb.append("success:");
3497
      sb.append(this.success);
3498
      first = false;
3499
      if (!first) sb.append(", ");
1395 varun.gupt 3500
      sb.append("se:");
3501
      if (this.se == null) {
3502
        sb.append("null");
3503
      } else {
3504
        sb.append(this.se);
3505
      }
3506
      first = false;
3507
      sb.append(")");
3508
      return sb.toString();
3509
    }
3510
 
3430 rajveer 3511
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3512
      // check for required fields
3513
    }
3514
 
3430 rajveer 3515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3516
      try {
3517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3518
      } catch (org.apache.thrift.TException te) {
3519
        throw new java.io.IOException(te);
3520
      }
3521
    }
3522
 
3523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3524
      try {
3525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3526
      } catch (org.apache.thrift.TException te) {
3527
        throw new java.io.IOException(te);
3528
      }
3529
    }
3530
 
1395 varun.gupt 3531
  }
3532
 
3430 rajveer 3533
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3535
 
3536
 
3537
 
3538
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3539
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 3540
;
1422 varun.gupt 3541
 
3542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3543
 
3544
      static {
3545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3546
          byName.put(field.getFieldName(), field);
3547
        }
3548
      }
3549
 
3550
      /**
3551
       * Find the _Fields constant that matches fieldId, or null if its not found.
3552
       */
3553
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3554
        switch(fieldId) {
3555
          default:
3556
            return null;
3557
        }
1422 varun.gupt 3558
      }
3559
 
3560
      /**
3561
       * Find the _Fields constant that matches fieldId, throwing an exception
3562
       * if it is not found.
3563
       */
3564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3565
        _Fields fields = findByThriftId(fieldId);
3566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3567
        return fields;
3568
      }
3569
 
3570
      /**
3571
       * Find the _Fields constant that matches name, or null if its not found.
3572
       */
3573
      public static _Fields findByName(String name) {
3574
        return byName.get(name);
3575
      }
3576
 
3577
      private final short _thriftId;
3578
      private final String _fieldName;
3579
 
3580
      _Fields(short thriftId, String fieldName) {
3581
        _thriftId = thriftId;
3582
        _fieldName = fieldName;
3583
      }
3584
 
3585
      public short getThriftFieldId() {
3586
        return _thriftId;
3587
      }
3588
 
3589
      public String getFieldName() {
3590
        return _fieldName;
3591
      }
3592
    }
3430 rajveer 3593
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3594
    static {
3430 rajveer 3595
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3596
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3597
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 3598
    }
3599
 
3600
    public getEmailsToBeSent_args() {
3601
    }
3602
 
3603
    /**
3604
     * Performs a deep copy on <i>other</i>.
3605
     */
3606
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
3607
    }
3608
 
3609
    public getEmailsToBeSent_args deepCopy() {
3610
      return new getEmailsToBeSent_args(this);
3611
    }
3612
 
3430 rajveer 3613
    @Override
3614
    public void clear() {
1422 varun.gupt 3615
    }
3616
 
3617
    public void setFieldValue(_Fields field, Object value) {
3618
      switch (field) {
3619
      }
3620
    }
3621
 
3622
    public Object getFieldValue(_Fields field) {
3623
      switch (field) {
3624
      }
3625
      throw new IllegalStateException();
3626
    }
3627
 
3430 rajveer 3628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3629
    public boolean isSet(_Fields field) {
3630
      if (field == null) {
3631
        throw new IllegalArgumentException();
3632
      }
1422 varun.gupt 3633
 
3634
      switch (field) {
3635
      }
3636
      throw new IllegalStateException();
3637
    }
3638
 
3639
    @Override
3640
    public boolean equals(Object that) {
3641
      if (that == null)
3642
        return false;
3643
      if (that instanceof getEmailsToBeSent_args)
3644
        return this.equals((getEmailsToBeSent_args)that);
3645
      return false;
3646
    }
3647
 
3648
    public boolean equals(getEmailsToBeSent_args that) {
3649
      if (that == null)
3650
        return false;
3651
 
3652
      return true;
3653
    }
3654
 
3655
    @Override
3656
    public int hashCode() {
3657
      return 0;
3658
    }
3659
 
3660
    public int compareTo(getEmailsToBeSent_args other) {
3661
      if (!getClass().equals(other.getClass())) {
3662
        return getClass().getName().compareTo(other.getClass().getName());
3663
      }
3664
 
3665
      int lastComparison = 0;
3666
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
3667
 
3668
      return 0;
3669
    }
3670
 
3430 rajveer 3671
    public _Fields fieldForId(int fieldId) {
3672
      return _Fields.findByThriftId(fieldId);
3673
    }
3674
 
3675
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3676
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3677
      iprot.readStructBegin();
3678
      while (true)
3679
      {
3680
        field = iprot.readFieldBegin();
3430 rajveer 3681
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3682
          break;
3683
        }
3430 rajveer 3684
        switch (field.id) {
3685
          default:
3686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3687
        }
3430 rajveer 3688
        iprot.readFieldEnd();
1422 varun.gupt 3689
      }
3690
      iprot.readStructEnd();
3691
      validate();
3692
    }
3693
 
3430 rajveer 3694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3695
      validate();
3696
 
3697
      oprot.writeStructBegin(STRUCT_DESC);
3698
      oprot.writeFieldStop();
3699
      oprot.writeStructEnd();
3700
    }
3701
 
3702
    @Override
3703
    public String toString() {
3704
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
3705
      boolean first = true;
3706
 
3707
      sb.append(")");
3708
      return sb.toString();
3709
    }
3710
 
3430 rajveer 3711
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3712
      // check for required fields
3713
    }
3714
 
3430 rajveer 3715
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3716
      try {
3717
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3718
      } catch (org.apache.thrift.TException te) {
3719
        throw new java.io.IOException(te);
3720
      }
3721
    }
3722
 
3723
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3724
      try {
3725
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3726
      } catch (org.apache.thrift.TException te) {
3727
        throw new java.io.IOException(te);
3728
      }
3729
    }
3730
 
1422 varun.gupt 3731
  }
3732
 
3430 rajveer 3733
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3734
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3735
 
3430 rajveer 3736
    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);
3737
    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 3738
 
3430 rajveer 3739
    private List<UserEmail> success; // required
3740
    private HelperServiceException se; // required
1422 varun.gupt 3741
 
3742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3743
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3744
      SUCCESS((short)0, "success"),
3745
      SE((short)1, "se");
3746
 
3747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3748
 
3749
      static {
3750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3751
          byName.put(field.getFieldName(), field);
3752
        }
3753
      }
3754
 
3755
      /**
3756
       * Find the _Fields constant that matches fieldId, or null if its not found.
3757
       */
3758
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3759
        switch(fieldId) {
3760
          case 0: // SUCCESS
3761
            return SUCCESS;
3762
          case 1: // SE
3763
            return SE;
3764
          default:
3765
            return null;
3766
        }
1422 varun.gupt 3767
      }
3768
 
3769
      /**
3770
       * Find the _Fields constant that matches fieldId, throwing an exception
3771
       * if it is not found.
3772
       */
3773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3774
        _Fields fields = findByThriftId(fieldId);
3775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3776
        return fields;
3777
      }
3778
 
3779
      /**
3780
       * Find the _Fields constant that matches name, or null if its not found.
3781
       */
3782
      public static _Fields findByName(String name) {
3783
        return byName.get(name);
3784
      }
3785
 
3786
      private final short _thriftId;
3787
      private final String _fieldName;
3788
 
3789
      _Fields(short thriftId, String fieldName) {
3790
        _thriftId = thriftId;
3791
        _fieldName = fieldName;
3792
      }
3793
 
3794
      public short getThriftFieldId() {
3795
        return _thriftId;
3796
      }
3797
 
3798
      public String getFieldName() {
3799
        return _fieldName;
3800
      }
3801
    }
3802
 
3803
    // isset id assignments
3804
 
3430 rajveer 3805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3806
    static {
3430 rajveer 3807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3808
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3811
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3812
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3813
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3814
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3815
    }
3816
 
3817
    public getEmailsToBeSent_result() {
3818
    }
3819
 
3820
    public getEmailsToBeSent_result(
3821
      List<UserEmail> success,
3822
      HelperServiceException se)
3823
    {
3824
      this();
3825
      this.success = success;
3826
      this.se = se;
3827
    }
3828
 
3829
    /**
3830
     * Performs a deep copy on <i>other</i>.
3831
     */
3832
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3833
      if (other.isSetSuccess()) {
3834
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3835
        for (UserEmail other_element : other.success) {
3836
          __this__success.add(new UserEmail(other_element));
3837
        }
3838
        this.success = __this__success;
3839
      }
3840
      if (other.isSetSe()) {
3841
        this.se = new HelperServiceException(other.se);
3842
      }
3843
    }
3844
 
3845
    public getEmailsToBeSent_result deepCopy() {
3846
      return new getEmailsToBeSent_result(this);
3847
    }
3848
 
3430 rajveer 3849
    @Override
3850
    public void clear() {
3851
      this.success = null;
3852
      this.se = null;
1422 varun.gupt 3853
    }
3854
 
3855
    public int getSuccessSize() {
3856
      return (this.success == null) ? 0 : this.success.size();
3857
    }
3858
 
3859
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3860
      return (this.success == null) ? null : this.success.iterator();
3861
    }
3862
 
3863
    public void addToSuccess(UserEmail elem) {
3864
      if (this.success == null) {
3865
        this.success = new ArrayList<UserEmail>();
3866
      }
3867
      this.success.add(elem);
3868
    }
3869
 
3870
    public List<UserEmail> getSuccess() {
3871
      return this.success;
3872
    }
3873
 
3430 rajveer 3874
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3875
      this.success = success;
3876
    }
3877
 
3878
    public void unsetSuccess() {
3879
      this.success = null;
3880
    }
3881
 
3430 rajveer 3882
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3883
    public boolean isSetSuccess() {
3884
      return this.success != null;
3885
    }
3886
 
3887
    public void setSuccessIsSet(boolean value) {
3888
      if (!value) {
3889
        this.success = null;
3890
      }
3891
    }
3892
 
3893
    public HelperServiceException getSe() {
3894
      return this.se;
3895
    }
3896
 
3430 rajveer 3897
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3898
      this.se = se;
3899
    }
3900
 
3901
    public void unsetSe() {
3902
      this.se = null;
3903
    }
3904
 
3430 rajveer 3905
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3906
    public boolean isSetSe() {
3907
      return this.se != null;
3908
    }
3909
 
3910
    public void setSeIsSet(boolean value) {
3911
      if (!value) {
3912
        this.se = null;
3913
      }
3914
    }
3915
 
3916
    public void setFieldValue(_Fields field, Object value) {
3917
      switch (field) {
3918
      case SUCCESS:
3919
        if (value == null) {
3920
          unsetSuccess();
3921
        } else {
3922
          setSuccess((List<UserEmail>)value);
3923
        }
3924
        break;
3925
 
3926
      case SE:
3927
        if (value == null) {
3928
          unsetSe();
3929
        } else {
3930
          setSe((HelperServiceException)value);
3931
        }
3932
        break;
3933
 
3934
      }
3935
    }
3936
 
3937
    public Object getFieldValue(_Fields field) {
3938
      switch (field) {
3939
      case SUCCESS:
3940
        return getSuccess();
3941
 
3942
      case SE:
3943
        return getSe();
3944
 
3945
      }
3946
      throw new IllegalStateException();
3947
    }
3948
 
3430 rajveer 3949
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3950
    public boolean isSet(_Fields field) {
3951
      if (field == null) {
3952
        throw new IllegalArgumentException();
3953
      }
1422 varun.gupt 3954
 
3955
      switch (field) {
3956
      case SUCCESS:
3957
        return isSetSuccess();
3958
      case SE:
3959
        return isSetSe();
3960
      }
3961
      throw new IllegalStateException();
3962
    }
3963
 
3964
    @Override
3965
    public boolean equals(Object that) {
3966
      if (that == null)
3967
        return false;
3968
      if (that instanceof getEmailsToBeSent_result)
3969
        return this.equals((getEmailsToBeSent_result)that);
3970
      return false;
3971
    }
3972
 
3973
    public boolean equals(getEmailsToBeSent_result that) {
3974
      if (that == null)
3975
        return false;
3976
 
3977
      boolean this_present_success = true && this.isSetSuccess();
3978
      boolean that_present_success = true && that.isSetSuccess();
3979
      if (this_present_success || that_present_success) {
3980
        if (!(this_present_success && that_present_success))
3981
          return false;
3982
        if (!this.success.equals(that.success))
3983
          return false;
3984
      }
3985
 
3986
      boolean this_present_se = true && this.isSetSe();
3987
      boolean that_present_se = true && that.isSetSe();
3988
      if (this_present_se || that_present_se) {
3989
        if (!(this_present_se && that_present_se))
3990
          return false;
3991
        if (!this.se.equals(that.se))
3992
          return false;
3993
      }
3994
 
3995
      return true;
3996
    }
3997
 
3998
    @Override
3999
    public int hashCode() {
4000
      return 0;
4001
    }
4002
 
4003
    public int compareTo(getEmailsToBeSent_result other) {
4004
      if (!getClass().equals(other.getClass())) {
4005
        return getClass().getName().compareTo(other.getClass().getName());
4006
      }
4007
 
4008
      int lastComparison = 0;
4009
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4010
 
3430 rajveer 4011
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4012
      if (lastComparison != 0) {
4013
        return lastComparison;
4014
      }
3430 rajveer 4015
      if (isSetSuccess()) {
4016
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4017
        if (lastComparison != 0) {
4018
          return lastComparison;
4019
        }
1422 varun.gupt 4020
      }
3430 rajveer 4021
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4022
      if (lastComparison != 0) {
4023
        return lastComparison;
4024
      }
3430 rajveer 4025
      if (isSetSe()) {
4026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4027
        if (lastComparison != 0) {
4028
          return lastComparison;
4029
        }
1422 varun.gupt 4030
      }
4031
      return 0;
4032
    }
4033
 
3430 rajveer 4034
    public _Fields fieldForId(int fieldId) {
4035
      return _Fields.findByThriftId(fieldId);
4036
    }
4037
 
4038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4039
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4040
      iprot.readStructBegin();
4041
      while (true)
4042
      {
4043
        field = iprot.readFieldBegin();
3430 rajveer 4044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4045
          break;
4046
        }
3430 rajveer 4047
        switch (field.id) {
4048
          case 0: // SUCCESS
4049
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4050
              {
4051
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
4052
                this.success = new ArrayList<UserEmail>(_list8.size);
4053
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 4054
                {
3430 rajveer 4055
                  UserEmail _elem10; // required
4056
                  _elem10 = new UserEmail();
4057
                  _elem10.read(iprot);
4058
                  this.success.add(_elem10);
1422 varun.gupt 4059
                }
3430 rajveer 4060
                iprot.readListEnd();
1422 varun.gupt 4061
              }
3430 rajveer 4062
            } else { 
4063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4064
            }
4065
            break;
4066
          case 1: // SE
4067
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4068
              this.se = new HelperServiceException();
4069
              this.se.read(iprot);
4070
            } else { 
4071
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4072
            }
4073
            break;
4074
          default:
4075
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4076
        }
3430 rajveer 4077
        iprot.readFieldEnd();
1422 varun.gupt 4078
      }
4079
      iprot.readStructEnd();
4080
      validate();
4081
    }
4082
 
3430 rajveer 4083
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4084
      oprot.writeStructBegin(STRUCT_DESC);
4085
 
4086
      if (this.isSetSuccess()) {
4087
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4088
        {
3430 rajveer 4089
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 4090
          for (UserEmail _iter11 : this.success)
4091
          {
4092
            _iter11.write(oprot);
4093
          }
4094
          oprot.writeListEnd();
4095
        }
4096
        oprot.writeFieldEnd();
4097
      } else if (this.isSetSe()) {
4098
        oprot.writeFieldBegin(SE_FIELD_DESC);
4099
        this.se.write(oprot);
4100
        oprot.writeFieldEnd();
4101
      }
4102
      oprot.writeFieldStop();
4103
      oprot.writeStructEnd();
4104
    }
4105
 
4106
    @Override
4107
    public String toString() {
4108
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4109
      boolean first = true;
4110
 
4111
      sb.append("success:");
4112
      if (this.success == null) {
4113
        sb.append("null");
4114
      } else {
4115
        sb.append(this.success);
4116
      }
4117
      first = false;
4118
      if (!first) sb.append(", ");
4119
      sb.append("se:");
4120
      if (this.se == null) {
4121
        sb.append("null");
4122
      } else {
4123
        sb.append(this.se);
4124
      }
4125
      first = false;
4126
      sb.append(")");
4127
      return sb.toString();
4128
    }
4129
 
3430 rajveer 4130
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4131
      // check for required fields
4132
    }
4133
 
3430 rajveer 4134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4135
      try {
4136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4137
      } catch (org.apache.thrift.TException te) {
4138
        throw new java.io.IOException(te);
4139
      }
4140
    }
4141
 
4142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4143
      try {
4144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4145
      } catch (org.apache.thrift.TException te) {
4146
        throw new java.io.IOException(te);
4147
      }
4148
    }
4149
 
1422 varun.gupt 4150
  }
4151
 
3430 rajveer 4152
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4153
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4154
 
3430 rajveer 4155
    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 4156
 
3430 rajveer 4157
    private long emailId; // required
1422 varun.gupt 4158
 
4159
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4160
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4161
      EMAIL_ID((short)1, "emailId");
4162
 
4163
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4164
 
4165
      static {
4166
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4167
          byName.put(field.getFieldName(), field);
4168
        }
4169
      }
4170
 
4171
      /**
4172
       * Find the _Fields constant that matches fieldId, or null if its not found.
4173
       */
4174
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4175
        switch(fieldId) {
4176
          case 1: // EMAIL_ID
4177
            return EMAIL_ID;
4178
          default:
4179
            return null;
4180
        }
1422 varun.gupt 4181
      }
4182
 
4183
      /**
4184
       * Find the _Fields constant that matches fieldId, throwing an exception
4185
       * if it is not found.
4186
       */
4187
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4188
        _Fields fields = findByThriftId(fieldId);
4189
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4190
        return fields;
4191
      }
4192
 
4193
      /**
4194
       * Find the _Fields constant that matches name, or null if its not found.
4195
       */
4196
      public static _Fields findByName(String name) {
4197
        return byName.get(name);
4198
      }
4199
 
4200
      private final short _thriftId;
4201
      private final String _fieldName;
4202
 
4203
      _Fields(short thriftId, String fieldName) {
4204
        _thriftId = thriftId;
4205
        _fieldName = fieldName;
4206
      }
4207
 
4208
      public short getThriftFieldId() {
4209
        return _thriftId;
4210
      }
4211
 
4212
      public String getFieldName() {
4213
        return _fieldName;
4214
      }
4215
    }
4216
 
4217
    // isset id assignments
4218
    private static final int __EMAILID_ISSET_ID = 0;
4219
    private BitSet __isset_bit_vector = new BitSet(1);
4220
 
3430 rajveer 4221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4222
    static {
3430 rajveer 4223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4224
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4225
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4226
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4227
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4228
    }
4229
 
4230
    public markEmailAsSent_args() {
4231
    }
4232
 
4233
    public markEmailAsSent_args(
4234
      long emailId)
4235
    {
4236
      this();
4237
      this.emailId = emailId;
4238
      setEmailIdIsSet(true);
4239
    }
4240
 
4241
    /**
4242
     * Performs a deep copy on <i>other</i>.
4243
     */
4244
    public markEmailAsSent_args(markEmailAsSent_args other) {
4245
      __isset_bit_vector.clear();
4246
      __isset_bit_vector.or(other.__isset_bit_vector);
4247
      this.emailId = other.emailId;
4248
    }
4249
 
4250
    public markEmailAsSent_args deepCopy() {
4251
      return new markEmailAsSent_args(this);
4252
    }
4253
 
3430 rajveer 4254
    @Override
4255
    public void clear() {
4256
      setEmailIdIsSet(false);
4257
      this.emailId = 0;
1422 varun.gupt 4258
    }
4259
 
4260
    public long getEmailId() {
4261
      return this.emailId;
4262
    }
4263
 
3430 rajveer 4264
    public void setEmailId(long emailId) {
1422 varun.gupt 4265
      this.emailId = emailId;
4266
      setEmailIdIsSet(true);
4267
    }
4268
 
4269
    public void unsetEmailId() {
4270
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4271
    }
4272
 
3430 rajveer 4273
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4274
    public boolean isSetEmailId() {
4275
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4276
    }
4277
 
4278
    public void setEmailIdIsSet(boolean value) {
4279
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4280
    }
4281
 
4282
    public void setFieldValue(_Fields field, Object value) {
4283
      switch (field) {
4284
      case EMAIL_ID:
4285
        if (value == null) {
4286
          unsetEmailId();
4287
        } else {
4288
          setEmailId((Long)value);
4289
        }
4290
        break;
4291
 
4292
      }
4293
    }
4294
 
4295
    public Object getFieldValue(_Fields field) {
4296
      switch (field) {
4297
      case EMAIL_ID:
3430 rajveer 4298
        return Long.valueOf(getEmailId());
1422 varun.gupt 4299
 
4300
      }
4301
      throw new IllegalStateException();
4302
    }
4303
 
3430 rajveer 4304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4305
    public boolean isSet(_Fields field) {
4306
      if (field == null) {
4307
        throw new IllegalArgumentException();
4308
      }
1422 varun.gupt 4309
 
4310
      switch (field) {
4311
      case EMAIL_ID:
4312
        return isSetEmailId();
4313
      }
4314
      throw new IllegalStateException();
4315
    }
4316
 
4317
    @Override
4318
    public boolean equals(Object that) {
4319
      if (that == null)
4320
        return false;
4321
      if (that instanceof markEmailAsSent_args)
4322
        return this.equals((markEmailAsSent_args)that);
4323
      return false;
4324
    }
4325
 
4326
    public boolean equals(markEmailAsSent_args that) {
4327
      if (that == null)
4328
        return false;
4329
 
4330
      boolean this_present_emailId = true;
4331
      boolean that_present_emailId = true;
4332
      if (this_present_emailId || that_present_emailId) {
4333
        if (!(this_present_emailId && that_present_emailId))
4334
          return false;
4335
        if (this.emailId != that.emailId)
4336
          return false;
4337
      }
4338
 
4339
      return true;
4340
    }
4341
 
4342
    @Override
4343
    public int hashCode() {
4344
      return 0;
4345
    }
4346
 
4347
    public int compareTo(markEmailAsSent_args other) {
4348
      if (!getClass().equals(other.getClass())) {
4349
        return getClass().getName().compareTo(other.getClass().getName());
4350
      }
4351
 
4352
      int lastComparison = 0;
4353
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4354
 
3430 rajveer 4355
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4356
      if (lastComparison != 0) {
4357
        return lastComparison;
4358
      }
3430 rajveer 4359
      if (isSetEmailId()) {
4360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4361
        if (lastComparison != 0) {
4362
          return lastComparison;
4363
        }
1422 varun.gupt 4364
      }
4365
      return 0;
4366
    }
4367
 
3430 rajveer 4368
    public _Fields fieldForId(int fieldId) {
4369
      return _Fields.findByThriftId(fieldId);
4370
    }
4371
 
4372
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4373
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4374
      iprot.readStructBegin();
4375
      while (true)
4376
      {
4377
        field = iprot.readFieldBegin();
3430 rajveer 4378
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4379
          break;
4380
        }
3430 rajveer 4381
        switch (field.id) {
4382
          case 1: // EMAIL_ID
4383
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4384
              this.emailId = iprot.readI64();
4385
              setEmailIdIsSet(true);
4386
            } else { 
4387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4388
            }
4389
            break;
4390
          default:
4391
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4392
        }
3430 rajveer 4393
        iprot.readFieldEnd();
1422 varun.gupt 4394
      }
4395
      iprot.readStructEnd();
4396
      validate();
4397
    }
4398
 
3430 rajveer 4399
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4400
      validate();
4401
 
4402
      oprot.writeStructBegin(STRUCT_DESC);
4403
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4404
      oprot.writeI64(this.emailId);
4405
      oprot.writeFieldEnd();
4406
      oprot.writeFieldStop();
4407
      oprot.writeStructEnd();
4408
    }
4409
 
4410
    @Override
4411
    public String toString() {
4412
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4413
      boolean first = true;
4414
 
4415
      sb.append("emailId:");
4416
      sb.append(this.emailId);
4417
      first = false;
4418
      sb.append(")");
4419
      return sb.toString();
4420
    }
4421
 
3430 rajveer 4422
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4423
      // check for required fields
4424
    }
4425
 
3430 rajveer 4426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4427
      try {
4428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4429
      } catch (org.apache.thrift.TException te) {
4430
        throw new java.io.IOException(te);
4431
      }
4432
    }
4433
 
4434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4435
      try {
4436
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4437
        __isset_bit_vector = new BitSet(1);
4438
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4439
      } catch (org.apache.thrift.TException te) {
4440
        throw new java.io.IOException(te);
4441
      }
4442
    }
4443
 
1422 varun.gupt 4444
  }
4445
 
3430 rajveer 4446
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4447
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4448
 
3430 rajveer 4449
    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 4450
 
3430 rajveer 4451
    private HelperServiceException se; // required
1422 varun.gupt 4452
 
4453
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4454
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4455
      SE((short)1, "se");
4456
 
4457
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4458
 
4459
      static {
4460
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4461
          byName.put(field.getFieldName(), field);
4462
        }
4463
      }
4464
 
4465
      /**
4466
       * Find the _Fields constant that matches fieldId, or null if its not found.
4467
       */
4468
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4469
        switch(fieldId) {
4470
          case 1: // SE
4471
            return SE;
4472
          default:
4473
            return null;
4474
        }
1422 varun.gupt 4475
      }
4476
 
4477
      /**
4478
       * Find the _Fields constant that matches fieldId, throwing an exception
4479
       * if it is not found.
4480
       */
4481
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4482
        _Fields fields = findByThriftId(fieldId);
4483
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4484
        return fields;
4485
      }
4486
 
4487
      /**
4488
       * Find the _Fields constant that matches name, or null if its not found.
4489
       */
4490
      public static _Fields findByName(String name) {
4491
        return byName.get(name);
4492
      }
4493
 
4494
      private final short _thriftId;
4495
      private final String _fieldName;
4496
 
4497
      _Fields(short thriftId, String fieldName) {
4498
        _thriftId = thriftId;
4499
        _fieldName = fieldName;
4500
      }
4501
 
4502
      public short getThriftFieldId() {
4503
        return _thriftId;
4504
      }
4505
 
4506
      public String getFieldName() {
4507
        return _fieldName;
4508
      }
4509
    }
4510
 
4511
    // isset id assignments
4512
 
3430 rajveer 4513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4514
    static {
3430 rajveer 4515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4516
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4517
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4518
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4519
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4520
    }
4521
 
4522
    public markEmailAsSent_result() {
4523
    }
4524
 
4525
    public markEmailAsSent_result(
4526
      HelperServiceException se)
4527
    {
4528
      this();
4529
      this.se = se;
4530
    }
4531
 
4532
    /**
4533
     * Performs a deep copy on <i>other</i>.
4534
     */
4535
    public markEmailAsSent_result(markEmailAsSent_result other) {
4536
      if (other.isSetSe()) {
4537
        this.se = new HelperServiceException(other.se);
4538
      }
4539
    }
4540
 
4541
    public markEmailAsSent_result deepCopy() {
4542
      return new markEmailAsSent_result(this);
4543
    }
4544
 
3430 rajveer 4545
    @Override
4546
    public void clear() {
4547
      this.se = null;
1422 varun.gupt 4548
    }
4549
 
4550
    public HelperServiceException getSe() {
4551
      return this.se;
4552
    }
4553
 
3430 rajveer 4554
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4555
      this.se = se;
4556
    }
4557
 
4558
    public void unsetSe() {
4559
      this.se = null;
4560
    }
4561
 
3430 rajveer 4562
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4563
    public boolean isSetSe() {
4564
      return this.se != null;
4565
    }
4566
 
4567
    public void setSeIsSet(boolean value) {
4568
      if (!value) {
4569
        this.se = null;
4570
      }
4571
    }
4572
 
4573
    public void setFieldValue(_Fields field, Object value) {
4574
      switch (field) {
4575
      case SE:
4576
        if (value == null) {
4577
          unsetSe();
4578
        } else {
4579
          setSe((HelperServiceException)value);
4580
        }
4581
        break;
4582
 
4583
      }
4584
    }
4585
 
4586
    public Object getFieldValue(_Fields field) {
4587
      switch (field) {
4588
      case SE:
4589
        return getSe();
4590
 
4591
      }
4592
      throw new IllegalStateException();
4593
    }
4594
 
3430 rajveer 4595
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4596
    public boolean isSet(_Fields field) {
4597
      if (field == null) {
4598
        throw new IllegalArgumentException();
4599
      }
1422 varun.gupt 4600
 
4601
      switch (field) {
4602
      case SE:
4603
        return isSetSe();
4604
      }
4605
      throw new IllegalStateException();
4606
    }
4607
 
4608
    @Override
4609
    public boolean equals(Object that) {
4610
      if (that == null)
4611
        return false;
4612
      if (that instanceof markEmailAsSent_result)
4613
        return this.equals((markEmailAsSent_result)that);
4614
      return false;
4615
    }
4616
 
4617
    public boolean equals(markEmailAsSent_result that) {
4618
      if (that == null)
4619
        return false;
4620
 
4621
      boolean this_present_se = true && this.isSetSe();
4622
      boolean that_present_se = true && that.isSetSe();
4623
      if (this_present_se || that_present_se) {
4624
        if (!(this_present_se && that_present_se))
4625
          return false;
4626
        if (!this.se.equals(that.se))
4627
          return false;
4628
      }
4629
 
4630
      return true;
4631
    }
4632
 
4633
    @Override
4634
    public int hashCode() {
4635
      return 0;
4636
    }
4637
 
4638
    public int compareTo(markEmailAsSent_result other) {
4639
      if (!getClass().equals(other.getClass())) {
4640
        return getClass().getName().compareTo(other.getClass().getName());
4641
      }
4642
 
4643
      int lastComparison = 0;
4644
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
4645
 
3430 rajveer 4646
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4647
      if (lastComparison != 0) {
4648
        return lastComparison;
4649
      }
3430 rajveer 4650
      if (isSetSe()) {
4651
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4652
        if (lastComparison != 0) {
4653
          return lastComparison;
4654
        }
1422 varun.gupt 4655
      }
4656
      return 0;
4657
    }
4658
 
3430 rajveer 4659
    public _Fields fieldForId(int fieldId) {
4660
      return _Fields.findByThriftId(fieldId);
4661
    }
4662
 
4663
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4664
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4665
      iprot.readStructBegin();
4666
      while (true)
4667
      {
4668
        field = iprot.readFieldBegin();
3430 rajveer 4669
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4670
          break;
4671
        }
3430 rajveer 4672
        switch (field.id) {
4673
          case 1: // SE
4674
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4675
              this.se = new HelperServiceException();
4676
              this.se.read(iprot);
4677
            } else { 
4678
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4679
            }
4680
            break;
4681
          default:
4682
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4683
        }
3430 rajveer 4684
        iprot.readFieldEnd();
1422 varun.gupt 4685
      }
4686
      iprot.readStructEnd();
4687
      validate();
4688
    }
4689
 
3430 rajveer 4690
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4691
      oprot.writeStructBegin(STRUCT_DESC);
4692
 
4693
      if (this.isSetSe()) {
4694
        oprot.writeFieldBegin(SE_FIELD_DESC);
4695
        this.se.write(oprot);
4696
        oprot.writeFieldEnd();
4697
      }
4698
      oprot.writeFieldStop();
4699
      oprot.writeStructEnd();
4700
    }
4701
 
4702
    @Override
4703
    public String toString() {
4704
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
4705
      boolean first = true;
4706
 
4707
      sb.append("se:");
4708
      if (this.se == null) {
4709
        sb.append("null");
4710
      } else {
4711
        sb.append(this.se);
4712
      }
4713
      first = false;
4714
      sb.append(")");
4715
      return sb.toString();
4716
    }
4717
 
3430 rajveer 4718
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4719
      // check for required fields
4720
    }
4721
 
3430 rajveer 4722
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4723
      try {
4724
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4725
      } catch (org.apache.thrift.TException te) {
4726
        throw new java.io.IOException(te);
4727
      }
4728
    }
4729
 
4730
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4731
      try {
4732
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4733
      } catch (org.apache.thrift.TException te) {
4734
        throw new java.io.IOException(te);
4735
      }
4736
    }
4737
 
1422 varun.gupt 4738
  }
4739
 
3430 rajveer 4740
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4741
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4742
 
3430 rajveer 4743
    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 4744
 
3430 rajveer 4745
    private Mail mail; // required
352 ashish 4746
 
4747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4749
      MAIL((short)1, "mail");
4750
 
4751
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4752
 
4753
      static {
4754
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4755
          byName.put(field.getFieldName(), field);
4756
        }
4757
      }
4758
 
4759
      /**
4760
       * Find the _Fields constant that matches fieldId, or null if its not found.
4761
       */
4762
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4763
        switch(fieldId) {
4764
          case 1: // MAIL
4765
            return MAIL;
4766
          default:
4767
            return null;
4768
        }
352 ashish 4769
      }
4770
 
4771
      /**
4772
       * Find the _Fields constant that matches fieldId, throwing an exception
4773
       * if it is not found.
4774
       */
4775
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4776
        _Fields fields = findByThriftId(fieldId);
4777
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4778
        return fields;
4779
      }
4780
 
4781
      /**
4782
       * Find the _Fields constant that matches name, or null if its not found.
4783
       */
4784
      public static _Fields findByName(String name) {
4785
        return byName.get(name);
4786
      }
4787
 
4788
      private final short _thriftId;
4789
      private final String _fieldName;
4790
 
4791
      _Fields(short thriftId, String fieldName) {
4792
        _thriftId = thriftId;
4793
        _fieldName = fieldName;
4794
      }
4795
 
4796
      public short getThriftFieldId() {
4797
        return _thriftId;
4798
      }
4799
 
4800
      public String getFieldName() {
4801
        return _fieldName;
4802
      }
4803
    }
4804
 
4805
    // isset id assignments
4806
 
3430 rajveer 4807
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4808
    static {
3430 rajveer 4809
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4810
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4811
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4812
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4813
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4814
    }
4815
 
4816
    public sendMail_args() {
4817
    }
4818
 
4819
    public sendMail_args(
4820
      Mail mail)
4821
    {
4822
      this();
4823
      this.mail = mail;
4824
    }
4825
 
4826
    /**
4827
     * Performs a deep copy on <i>other</i>.
4828
     */
4829
    public sendMail_args(sendMail_args other) {
4830
      if (other.isSetMail()) {
4831
        this.mail = new Mail(other.mail);
4832
      }
4833
    }
4834
 
4835
    public sendMail_args deepCopy() {
4836
      return new sendMail_args(this);
4837
    }
4838
 
3430 rajveer 4839
    @Override
4840
    public void clear() {
4841
      this.mail = null;
352 ashish 4842
    }
4843
 
4844
    public Mail getMail() {
4845
      return this.mail;
4846
    }
4847
 
3430 rajveer 4848
    public void setMail(Mail mail) {
352 ashish 4849
      this.mail = mail;
4850
    }
4851
 
4852
    public void unsetMail() {
4853
      this.mail = null;
4854
    }
4855
 
3430 rajveer 4856
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4857
    public boolean isSetMail() {
4858
      return this.mail != null;
4859
    }
4860
 
4861
    public void setMailIsSet(boolean value) {
4862
      if (!value) {
4863
        this.mail = null;
4864
      }
4865
    }
4866
 
4867
    public void setFieldValue(_Fields field, Object value) {
4868
      switch (field) {
4869
      case MAIL:
4870
        if (value == null) {
4871
          unsetMail();
4872
        } else {
4873
          setMail((Mail)value);
4874
        }
4875
        break;
4876
 
4877
      }
4878
    }
4879
 
4880
    public Object getFieldValue(_Fields field) {
4881
      switch (field) {
4882
      case MAIL:
4883
        return getMail();
4884
 
4885
      }
4886
      throw new IllegalStateException();
4887
    }
4888
 
3430 rajveer 4889
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4890
    public boolean isSet(_Fields field) {
4891
      if (field == null) {
4892
        throw new IllegalArgumentException();
4893
      }
352 ashish 4894
 
4895
      switch (field) {
4896
      case MAIL:
4897
        return isSetMail();
4898
      }
4899
      throw new IllegalStateException();
4900
    }
4901
 
4902
    @Override
4903
    public boolean equals(Object that) {
4904
      if (that == null)
4905
        return false;
4906
      if (that instanceof sendMail_args)
4907
        return this.equals((sendMail_args)that);
4908
      return false;
4909
    }
4910
 
4911
    public boolean equals(sendMail_args that) {
4912
      if (that == null)
4913
        return false;
4914
 
4915
      boolean this_present_mail = true && this.isSetMail();
4916
      boolean that_present_mail = true && that.isSetMail();
4917
      if (this_present_mail || that_present_mail) {
4918
        if (!(this_present_mail && that_present_mail))
4919
          return false;
4920
        if (!this.mail.equals(that.mail))
4921
          return false;
4922
      }
4923
 
4924
      return true;
4925
    }
4926
 
4927
    @Override
4928
    public int hashCode() {
4929
      return 0;
4930
    }
4931
 
4932
    public int compareTo(sendMail_args other) {
4933
      if (!getClass().equals(other.getClass())) {
4934
        return getClass().getName().compareTo(other.getClass().getName());
4935
      }
4936
 
4937
      int lastComparison = 0;
4938
      sendMail_args typedOther = (sendMail_args)other;
4939
 
3430 rajveer 4940
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 4941
      if (lastComparison != 0) {
4942
        return lastComparison;
4943
      }
3430 rajveer 4944
      if (isSetMail()) {
4945
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
4946
        if (lastComparison != 0) {
4947
          return lastComparison;
4948
        }
352 ashish 4949
      }
4950
      return 0;
4951
    }
4952
 
3430 rajveer 4953
    public _Fields fieldForId(int fieldId) {
4954
      return _Fields.findByThriftId(fieldId);
4955
    }
4956
 
4957
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4958
      org.apache.thrift.protocol.TField field;
352 ashish 4959
      iprot.readStructBegin();
4960
      while (true)
4961
      {
4962
        field = iprot.readFieldBegin();
3430 rajveer 4963
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4964
          break;
4965
        }
3430 rajveer 4966
        switch (field.id) {
4967
          case 1: // MAIL
4968
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4969
              this.mail = new Mail();
4970
              this.mail.read(iprot);
4971
            } else { 
4972
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4973
            }
4974
            break;
4975
          default:
4976
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4977
        }
3430 rajveer 4978
        iprot.readFieldEnd();
352 ashish 4979
      }
4980
      iprot.readStructEnd();
4981
      validate();
4982
    }
4983
 
3430 rajveer 4984
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4985
      validate();
4986
 
4987
      oprot.writeStructBegin(STRUCT_DESC);
4988
      if (this.mail != null) {
4989
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4990
        this.mail.write(oprot);
4991
        oprot.writeFieldEnd();
4992
      }
4993
      oprot.writeFieldStop();
4994
      oprot.writeStructEnd();
4995
    }
4996
 
4997
    @Override
4998
    public String toString() {
4999
      StringBuilder sb = new StringBuilder("sendMail_args(");
5000
      boolean first = true;
5001
 
5002
      sb.append("mail:");
5003
      if (this.mail == null) {
5004
        sb.append("null");
5005
      } else {
5006
        sb.append(this.mail);
5007
      }
5008
      first = false;
5009
      sb.append(")");
5010
      return sb.toString();
5011
    }
5012
 
3430 rajveer 5013
    public void validate() throws org.apache.thrift.TException {
352 ashish 5014
      // check for required fields
5015
    }
5016
 
3430 rajveer 5017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5018
      try {
5019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5020
      } catch (org.apache.thrift.TException te) {
5021
        throw new java.io.IOException(te);
5022
      }
5023
    }
5024
 
5025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5026
      try {
5027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5028
      } catch (org.apache.thrift.TException te) {
5029
        throw new java.io.IOException(te);
5030
      }
5031
    }
5032
 
352 ashish 5033
  }
5034
 
3430 rajveer 5035
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5037
 
3430 rajveer 5038
    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 5039
 
3430 rajveer 5040
    private HelperServiceException se; // required
352 ashish 5041
 
5042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5044
      SE((short)1, "se");
5045
 
5046
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5047
 
5048
      static {
5049
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5050
          byName.put(field.getFieldName(), field);
5051
        }
5052
      }
5053
 
5054
      /**
5055
       * Find the _Fields constant that matches fieldId, or null if its not found.
5056
       */
5057
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5058
        switch(fieldId) {
5059
          case 1: // SE
5060
            return SE;
5061
          default:
5062
            return null;
5063
        }
352 ashish 5064
      }
5065
 
5066
      /**
5067
       * Find the _Fields constant that matches fieldId, throwing an exception
5068
       * if it is not found.
5069
       */
5070
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5071
        _Fields fields = findByThriftId(fieldId);
5072
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5073
        return fields;
5074
      }
5075
 
5076
      /**
5077
       * Find the _Fields constant that matches name, or null if its not found.
5078
       */
5079
      public static _Fields findByName(String name) {
5080
        return byName.get(name);
5081
      }
5082
 
5083
      private final short _thriftId;
5084
      private final String _fieldName;
5085
 
5086
      _Fields(short thriftId, String fieldName) {
5087
        _thriftId = thriftId;
5088
        _fieldName = fieldName;
5089
      }
5090
 
5091
      public short getThriftFieldId() {
5092
        return _thriftId;
5093
      }
5094
 
5095
      public String getFieldName() {
5096
        return _fieldName;
5097
      }
5098
    }
5099
 
5100
    // isset id assignments
5101
 
3430 rajveer 5102
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5103
    static {
3430 rajveer 5104
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5105
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5107
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5108
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5109
    }
5110
 
5111
    public sendMail_result() {
5112
    }
5113
 
5114
    public sendMail_result(
5115
      HelperServiceException se)
5116
    {
5117
      this();
5118
      this.se = se;
5119
    }
5120
 
5121
    /**
5122
     * Performs a deep copy on <i>other</i>.
5123
     */
5124
    public sendMail_result(sendMail_result other) {
5125
      if (other.isSetSe()) {
5126
        this.se = new HelperServiceException(other.se);
5127
      }
5128
    }
5129
 
5130
    public sendMail_result deepCopy() {
5131
      return new sendMail_result(this);
5132
    }
5133
 
3430 rajveer 5134
    @Override
5135
    public void clear() {
5136
      this.se = null;
352 ashish 5137
    }
5138
 
5139
    public HelperServiceException getSe() {
5140
      return this.se;
5141
    }
5142
 
3430 rajveer 5143
    public void setSe(HelperServiceException se) {
352 ashish 5144
      this.se = se;
5145
    }
5146
 
5147
    public void unsetSe() {
5148
      this.se = null;
5149
    }
5150
 
3430 rajveer 5151
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5152
    public boolean isSetSe() {
5153
      return this.se != null;
5154
    }
5155
 
5156
    public void setSeIsSet(boolean value) {
5157
      if (!value) {
5158
        this.se = null;
5159
      }
5160
    }
5161
 
5162
    public void setFieldValue(_Fields field, Object value) {
5163
      switch (field) {
5164
      case SE:
5165
        if (value == null) {
5166
          unsetSe();
5167
        } else {
5168
          setSe((HelperServiceException)value);
5169
        }
5170
        break;
5171
 
5172
      }
5173
    }
5174
 
5175
    public Object getFieldValue(_Fields field) {
5176
      switch (field) {
5177
      case SE:
5178
        return getSe();
5179
 
5180
      }
5181
      throw new IllegalStateException();
5182
    }
5183
 
3430 rajveer 5184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5185
    public boolean isSet(_Fields field) {
5186
      if (field == null) {
5187
        throw new IllegalArgumentException();
5188
      }
352 ashish 5189
 
5190
      switch (field) {
5191
      case SE:
5192
        return isSetSe();
5193
      }
5194
      throw new IllegalStateException();
5195
    }
5196
 
5197
    @Override
5198
    public boolean equals(Object that) {
5199
      if (that == null)
5200
        return false;
5201
      if (that instanceof sendMail_result)
5202
        return this.equals((sendMail_result)that);
5203
      return false;
5204
    }
5205
 
5206
    public boolean equals(sendMail_result that) {
5207
      if (that == null)
5208
        return false;
5209
 
5210
      boolean this_present_se = true && this.isSetSe();
5211
      boolean that_present_se = true && that.isSetSe();
5212
      if (this_present_se || that_present_se) {
5213
        if (!(this_present_se && that_present_se))
5214
          return false;
5215
        if (!this.se.equals(that.se))
5216
          return false;
5217
      }
5218
 
5219
      return true;
5220
    }
5221
 
5222
    @Override
5223
    public int hashCode() {
5224
      return 0;
5225
    }
5226
 
5227
    public int compareTo(sendMail_result other) {
5228
      if (!getClass().equals(other.getClass())) {
5229
        return getClass().getName().compareTo(other.getClass().getName());
5230
      }
5231
 
5232
      int lastComparison = 0;
5233
      sendMail_result typedOther = (sendMail_result)other;
5234
 
3430 rajveer 5235
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5236
      if (lastComparison != 0) {
5237
        return lastComparison;
5238
      }
3430 rajveer 5239
      if (isSetSe()) {
5240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5241
        if (lastComparison != 0) {
5242
          return lastComparison;
5243
        }
352 ashish 5244
      }
5245
      return 0;
5246
    }
5247
 
3430 rajveer 5248
    public _Fields fieldForId(int fieldId) {
5249
      return _Fields.findByThriftId(fieldId);
5250
    }
5251
 
5252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5253
      org.apache.thrift.protocol.TField field;
352 ashish 5254
      iprot.readStructBegin();
5255
      while (true)
5256
      {
5257
        field = iprot.readFieldBegin();
3430 rajveer 5258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5259
          break;
5260
        }
3430 rajveer 5261
        switch (field.id) {
5262
          case 1: // SE
5263
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5264
              this.se = new HelperServiceException();
5265
              this.se.read(iprot);
5266
            } else { 
5267
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5268
            }
5269
            break;
5270
          default:
5271
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5272
        }
3430 rajveer 5273
        iprot.readFieldEnd();
352 ashish 5274
      }
5275
      iprot.readStructEnd();
5276
      validate();
5277
    }
5278
 
3430 rajveer 5279
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5280
      oprot.writeStructBegin(STRUCT_DESC);
5281
 
5282
      if (this.isSetSe()) {
5283
        oprot.writeFieldBegin(SE_FIELD_DESC);
5284
        this.se.write(oprot);
5285
        oprot.writeFieldEnd();
5286
      }
5287
      oprot.writeFieldStop();
5288
      oprot.writeStructEnd();
5289
    }
5290
 
5291
    @Override
5292
    public String toString() {
5293
      StringBuilder sb = new StringBuilder("sendMail_result(");
5294
      boolean first = true;
5295
 
5296
      sb.append("se:");
5297
      if (this.se == null) {
5298
        sb.append("null");
5299
      } else {
5300
        sb.append(this.se);
5301
      }
5302
      first = false;
5303
      sb.append(")");
5304
      return sb.toString();
5305
    }
5306
 
3430 rajveer 5307
    public void validate() throws org.apache.thrift.TException {
352 ashish 5308
      // check for required fields
5309
    }
5310
 
3430 rajveer 5311
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5312
      try {
5313
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5314
      } catch (org.apache.thrift.TException te) {
5315
        throw new java.io.IOException(te);
5316
      }
5317
    }
5318
 
5319
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5320
      try {
5321
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5322
      } catch (org.apache.thrift.TException te) {
5323
        throw new java.io.IOException(te);
5324
      }
5325
    }
5326
 
352 ashish 5327
  }
5328
 
3430 rajveer 5329
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5330
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5331
 
3430 rajveer 5332
    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 5333
 
3430 rajveer 5334
    private TextMessage message; // required
352 ashish 5335
 
5336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5337
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5338
      MESSAGE((short)1, "message");
5339
 
5340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5341
 
5342
      static {
5343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5344
          byName.put(field.getFieldName(), field);
5345
        }
5346
      }
5347
 
5348
      /**
5349
       * Find the _Fields constant that matches fieldId, or null if its not found.
5350
       */
5351
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5352
        switch(fieldId) {
5353
          case 1: // MESSAGE
5354
            return MESSAGE;
5355
          default:
5356
            return null;
5357
        }
352 ashish 5358
      }
5359
 
5360
      /**
5361
       * Find the _Fields constant that matches fieldId, throwing an exception
5362
       * if it is not found.
5363
       */
5364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5365
        _Fields fields = findByThriftId(fieldId);
5366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5367
        return fields;
5368
      }
5369
 
5370
      /**
5371
       * Find the _Fields constant that matches name, or null if its not found.
5372
       */
5373
      public static _Fields findByName(String name) {
5374
        return byName.get(name);
5375
      }
5376
 
5377
      private final short _thriftId;
5378
      private final String _fieldName;
5379
 
5380
      _Fields(short thriftId, String fieldName) {
5381
        _thriftId = thriftId;
5382
        _fieldName = fieldName;
5383
      }
5384
 
5385
      public short getThriftFieldId() {
5386
        return _thriftId;
5387
      }
5388
 
5389
      public String getFieldName() {
5390
        return _fieldName;
5391
      }
5392
    }
5393
 
5394
    // isset id assignments
5395
 
3430 rajveer 5396
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5397
    static {
3430 rajveer 5398
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5399
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5400
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5403
    }
5404
 
5405
    public sendText_args() {
5406
    }
5407
 
5408
    public sendText_args(
5409
      TextMessage message)
5410
    {
5411
      this();
5412
      this.message = message;
5413
    }
5414
 
5415
    /**
5416
     * Performs a deep copy on <i>other</i>.
5417
     */
5418
    public sendText_args(sendText_args other) {
5419
      if (other.isSetMessage()) {
5420
        this.message = new TextMessage(other.message);
5421
      }
5422
    }
5423
 
5424
    public sendText_args deepCopy() {
5425
      return new sendText_args(this);
5426
    }
5427
 
3430 rajveer 5428
    @Override
5429
    public void clear() {
5430
      this.message = null;
352 ashish 5431
    }
5432
 
5433
    public TextMessage getMessage() {
5434
      return this.message;
5435
    }
5436
 
3430 rajveer 5437
    public void setMessage(TextMessage message) {
352 ashish 5438
      this.message = message;
5439
    }
5440
 
5441
    public void unsetMessage() {
5442
      this.message = null;
5443
    }
5444
 
3430 rajveer 5445
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5446
    public boolean isSetMessage() {
5447
      return this.message != null;
5448
    }
5449
 
5450
    public void setMessageIsSet(boolean value) {
5451
      if (!value) {
5452
        this.message = null;
5453
      }
5454
    }
5455
 
5456
    public void setFieldValue(_Fields field, Object value) {
5457
      switch (field) {
5458
      case MESSAGE:
5459
        if (value == null) {
5460
          unsetMessage();
5461
        } else {
5462
          setMessage((TextMessage)value);
5463
        }
5464
        break;
5465
 
5466
      }
5467
    }
5468
 
5469
    public Object getFieldValue(_Fields field) {
5470
      switch (field) {
5471
      case MESSAGE:
5472
        return getMessage();
5473
 
5474
      }
5475
      throw new IllegalStateException();
5476
    }
5477
 
3430 rajveer 5478
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5479
    public boolean isSet(_Fields field) {
5480
      if (field == null) {
5481
        throw new IllegalArgumentException();
5482
      }
352 ashish 5483
 
5484
      switch (field) {
5485
      case MESSAGE:
5486
        return isSetMessage();
5487
      }
5488
      throw new IllegalStateException();
5489
    }
5490
 
5491
    @Override
5492
    public boolean equals(Object that) {
5493
      if (that == null)
5494
        return false;
5495
      if (that instanceof sendText_args)
5496
        return this.equals((sendText_args)that);
5497
      return false;
5498
    }
5499
 
5500
    public boolean equals(sendText_args that) {
5501
      if (that == null)
5502
        return false;
5503
 
5504
      boolean this_present_message = true && this.isSetMessage();
5505
      boolean that_present_message = true && that.isSetMessage();
5506
      if (this_present_message || that_present_message) {
5507
        if (!(this_present_message && that_present_message))
5508
          return false;
5509
        if (!this.message.equals(that.message))
5510
          return false;
5511
      }
5512
 
5513
      return true;
5514
    }
5515
 
5516
    @Override
5517
    public int hashCode() {
5518
      return 0;
5519
    }
5520
 
5521
    public int compareTo(sendText_args other) {
5522
      if (!getClass().equals(other.getClass())) {
5523
        return getClass().getName().compareTo(other.getClass().getName());
5524
      }
5525
 
5526
      int lastComparison = 0;
5527
      sendText_args typedOther = (sendText_args)other;
5528
 
3430 rajveer 5529
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5530
      if (lastComparison != 0) {
5531
        return lastComparison;
5532
      }
3430 rajveer 5533
      if (isSetMessage()) {
5534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5535
        if (lastComparison != 0) {
5536
          return lastComparison;
5537
        }
352 ashish 5538
      }
5539
      return 0;
5540
    }
5541
 
3430 rajveer 5542
    public _Fields fieldForId(int fieldId) {
5543
      return _Fields.findByThriftId(fieldId);
5544
    }
5545
 
5546
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5547
      org.apache.thrift.protocol.TField field;
352 ashish 5548
      iprot.readStructBegin();
5549
      while (true)
5550
      {
5551
        field = iprot.readFieldBegin();
3430 rajveer 5552
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5553
          break;
5554
        }
3430 rajveer 5555
        switch (field.id) {
5556
          case 1: // MESSAGE
5557
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5558
              this.message = new TextMessage();
5559
              this.message.read(iprot);
5560
            } else { 
5561
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5562
            }
5563
            break;
5564
          default:
5565
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5566
        }
3430 rajveer 5567
        iprot.readFieldEnd();
352 ashish 5568
      }
5569
      iprot.readStructEnd();
5570
      validate();
5571
    }
5572
 
3430 rajveer 5573
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5574
      validate();
5575
 
5576
      oprot.writeStructBegin(STRUCT_DESC);
5577
      if (this.message != null) {
5578
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5579
        this.message.write(oprot);
5580
        oprot.writeFieldEnd();
5581
      }
5582
      oprot.writeFieldStop();
5583
      oprot.writeStructEnd();
5584
    }
5585
 
5586
    @Override
5587
    public String toString() {
5588
      StringBuilder sb = new StringBuilder("sendText_args(");
5589
      boolean first = true;
5590
 
5591
      sb.append("message:");
5592
      if (this.message == null) {
5593
        sb.append("null");
5594
      } else {
5595
        sb.append(this.message);
5596
      }
5597
      first = false;
5598
      sb.append(")");
5599
      return sb.toString();
5600
    }
5601
 
3430 rajveer 5602
    public void validate() throws org.apache.thrift.TException {
352 ashish 5603
      // check for required fields
5604
    }
5605
 
3430 rajveer 5606
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5607
      try {
5608
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5609
      } catch (org.apache.thrift.TException te) {
5610
        throw new java.io.IOException(te);
5611
      }
5612
    }
5613
 
5614
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5615
      try {
5616
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5617
      } catch (org.apache.thrift.TException te) {
5618
        throw new java.io.IOException(te);
5619
      }
5620
    }
5621
 
352 ashish 5622
  }
5623
 
3430 rajveer 5624
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
5625
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 5626
 
3430 rajveer 5627
    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 5628
 
3430 rajveer 5629
    private HelperServiceException se; // required
352 ashish 5630
 
5631
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5632
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5633
      SE((short)1, "se");
5634
 
5635
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5636
 
5637
      static {
5638
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5639
          byName.put(field.getFieldName(), field);
5640
        }
5641
      }
5642
 
5643
      /**
5644
       * Find the _Fields constant that matches fieldId, or null if its not found.
5645
       */
5646
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5647
        switch(fieldId) {
5648
          case 1: // SE
5649
            return SE;
5650
          default:
5651
            return null;
5652
        }
352 ashish 5653
      }
5654
 
5655
      /**
5656
       * Find the _Fields constant that matches fieldId, throwing an exception
5657
       * if it is not found.
5658
       */
5659
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5660
        _Fields fields = findByThriftId(fieldId);
5661
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5662
        return fields;
5663
      }
5664
 
5665
      /**
5666
       * Find the _Fields constant that matches name, or null if its not found.
5667
       */
5668
      public static _Fields findByName(String name) {
5669
        return byName.get(name);
5670
      }
5671
 
5672
      private final short _thriftId;
5673
      private final String _fieldName;
5674
 
5675
      _Fields(short thriftId, String fieldName) {
5676
        _thriftId = thriftId;
5677
        _fieldName = fieldName;
5678
      }
5679
 
5680
      public short getThriftFieldId() {
5681
        return _thriftId;
5682
      }
5683
 
5684
      public String getFieldName() {
5685
        return _fieldName;
5686
      }
5687
    }
5688
 
5689
    // isset id assignments
5690
 
3430 rajveer 5691
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5692
    static {
3430 rajveer 5693
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5694
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 5698
    }
5699
 
5700
    public sendText_result() {
5701
    }
5702
 
5703
    public sendText_result(
5704
      HelperServiceException se)
5705
    {
5706
      this();
5707
      this.se = se;
5708
    }
5709
 
5710
    /**
5711
     * Performs a deep copy on <i>other</i>.
5712
     */
5713
    public sendText_result(sendText_result other) {
5714
      if (other.isSetSe()) {
5715
        this.se = new HelperServiceException(other.se);
5716
      }
5717
    }
5718
 
5719
    public sendText_result deepCopy() {
5720
      return new sendText_result(this);
5721
    }
5722
 
3430 rajveer 5723
    @Override
5724
    public void clear() {
5725
      this.se = null;
352 ashish 5726
    }
5727
 
5728
    public HelperServiceException getSe() {
5729
      return this.se;
5730
    }
5731
 
3430 rajveer 5732
    public void setSe(HelperServiceException se) {
352 ashish 5733
      this.se = se;
5734
    }
5735
 
5736
    public void unsetSe() {
5737
      this.se = null;
5738
    }
5739
 
3430 rajveer 5740
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5741
    public boolean isSetSe() {
5742
      return this.se != null;
5743
    }
5744
 
5745
    public void setSeIsSet(boolean value) {
5746
      if (!value) {
5747
        this.se = null;
5748
      }
5749
    }
5750
 
5751
    public void setFieldValue(_Fields field, Object value) {
5752
      switch (field) {
5753
      case SE:
5754
        if (value == null) {
5755
          unsetSe();
5756
        } else {
5757
          setSe((HelperServiceException)value);
5758
        }
5759
        break;
5760
 
5761
      }
5762
    }
5763
 
5764
    public Object getFieldValue(_Fields field) {
5765
      switch (field) {
5766
      case SE:
5767
        return getSe();
5768
 
5769
      }
5770
      throw new IllegalStateException();
5771
    }
5772
 
3430 rajveer 5773
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5774
    public boolean isSet(_Fields field) {
5775
      if (field == null) {
5776
        throw new IllegalArgumentException();
5777
      }
352 ashish 5778
 
5779
      switch (field) {
5780
      case SE:
5781
        return isSetSe();
5782
      }
5783
      throw new IllegalStateException();
5784
    }
5785
 
5786
    @Override
5787
    public boolean equals(Object that) {
5788
      if (that == null)
5789
        return false;
5790
      if (that instanceof sendText_result)
5791
        return this.equals((sendText_result)that);
5792
      return false;
5793
    }
5794
 
5795
    public boolean equals(sendText_result that) {
5796
      if (that == null)
5797
        return false;
5798
 
5799
      boolean this_present_se = true && this.isSetSe();
5800
      boolean that_present_se = true && that.isSetSe();
5801
      if (this_present_se || that_present_se) {
5802
        if (!(this_present_se && that_present_se))
5803
          return false;
5804
        if (!this.se.equals(that.se))
5805
          return false;
5806
      }
5807
 
5808
      return true;
5809
    }
5810
 
5811
    @Override
5812
    public int hashCode() {
5813
      return 0;
5814
    }
5815
 
5816
    public int compareTo(sendText_result other) {
5817
      if (!getClass().equals(other.getClass())) {
5818
        return getClass().getName().compareTo(other.getClass().getName());
5819
      }
5820
 
5821
      int lastComparison = 0;
5822
      sendText_result typedOther = (sendText_result)other;
5823
 
3430 rajveer 5824
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5825
      if (lastComparison != 0) {
5826
        return lastComparison;
5827
      }
3430 rajveer 5828
      if (isSetSe()) {
5829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5830
        if (lastComparison != 0) {
5831
          return lastComparison;
5832
        }
352 ashish 5833
      }
5834
      return 0;
5835
    }
5836
 
3430 rajveer 5837
    public _Fields fieldForId(int fieldId) {
5838
      return _Fields.findByThriftId(fieldId);
5839
    }
5840
 
5841
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5842
      org.apache.thrift.protocol.TField field;
352 ashish 5843
      iprot.readStructBegin();
5844
      while (true)
5845
      {
5846
        field = iprot.readFieldBegin();
3430 rajveer 5847
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5848
          break;
5849
        }
3430 rajveer 5850
        switch (field.id) {
5851
          case 1: // SE
5852
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5853
              this.se = new HelperServiceException();
5854
              this.se.read(iprot);
5855
            } else { 
5856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5857
            }
5858
            break;
5859
          default:
5860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5861
        }
3430 rajveer 5862
        iprot.readFieldEnd();
352 ashish 5863
      }
5864
      iprot.readStructEnd();
5865
      validate();
5866
    }
5867
 
3430 rajveer 5868
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5869
      oprot.writeStructBegin(STRUCT_DESC);
5870
 
5871
      if (this.isSetSe()) {
5872
        oprot.writeFieldBegin(SE_FIELD_DESC);
5873
        this.se.write(oprot);
5874
        oprot.writeFieldEnd();
5875
      }
5876
      oprot.writeFieldStop();
5877
      oprot.writeStructEnd();
5878
    }
5879
 
5880
    @Override
5881
    public String toString() {
5882
      StringBuilder sb = new StringBuilder("sendText_result(");
5883
      boolean first = true;
5884
 
5885
      sb.append("se:");
5886
      if (this.se == null) {
5887
        sb.append("null");
5888
      } else {
5889
        sb.append(this.se);
5890
      }
5891
      first = false;
5892
      sb.append(")");
5893
      return sb.toString();
5894
    }
5895
 
3430 rajveer 5896
    public void validate() throws org.apache.thrift.TException {
352 ashish 5897
      // check for required fields
5898
    }
5899
 
3430 rajveer 5900
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5901
      try {
5902
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5903
      } catch (org.apache.thrift.TException te) {
5904
        throw new java.io.IOException(te);
5905
      }
5906
    }
5907
 
5908
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5909
      try {
5910
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5911
      } catch (org.apache.thrift.TException te) {
5912
        throw new java.io.IOException(te);
5913
      }
5914
    }
5915
 
352 ashish 5916
  }
5917
 
3430 rajveer 5918
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
5919
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 5920
 
3430 rajveer 5921
    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 5922
 
3430 rajveer 5923
    private Message message; // required
352 ashish 5924
 
5925
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5926
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5927
      MESSAGE((short)1, "message");
5928
 
5929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5930
 
5931
      static {
5932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5933
          byName.put(field.getFieldName(), field);
5934
        }
5935
      }
5936
 
5937
      /**
5938
       * Find the _Fields constant that matches fieldId, or null if its not found.
5939
       */
5940
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5941
        switch(fieldId) {
5942
          case 1: // MESSAGE
5943
            return MESSAGE;
5944
          default:
5945
            return null;
5946
        }
352 ashish 5947
      }
5948
 
5949
      /**
5950
       * Find the _Fields constant that matches fieldId, throwing an exception
5951
       * if it is not found.
5952
       */
5953
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5954
        _Fields fields = findByThriftId(fieldId);
5955
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5956
        return fields;
5957
      }
5958
 
5959
      /**
5960
       * Find the _Fields constant that matches name, or null if its not found.
5961
       */
5962
      public static _Fields findByName(String name) {
5963
        return byName.get(name);
5964
      }
5965
 
5966
      private final short _thriftId;
5967
      private final String _fieldName;
5968
 
5969
      _Fields(short thriftId, String fieldName) {
5970
        _thriftId = thriftId;
5971
        _fieldName = fieldName;
5972
      }
5973
 
5974
      public short getThriftFieldId() {
5975
        return _thriftId;
5976
      }
5977
 
5978
      public String getFieldName() {
5979
        return _fieldName;
5980
      }
5981
    }
5982
 
5983
    // isset id assignments
5984
 
3430 rajveer 5985
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5986
    static {
3430 rajveer 5987
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5988
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5989
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
5990
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5991
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 5992
    }
5993
 
5994
    public addMessage_args() {
5995
    }
5996
 
5997
    public addMessage_args(
5998
      Message message)
5999
    {
6000
      this();
6001
      this.message = message;
6002
    }
6003
 
6004
    /**
6005
     * Performs a deep copy on <i>other</i>.
6006
     */
6007
    public addMessage_args(addMessage_args other) {
6008
      if (other.isSetMessage()) {
6009
        this.message = new Message(other.message);
6010
      }
6011
    }
6012
 
6013
    public addMessage_args deepCopy() {
6014
      return new addMessage_args(this);
6015
    }
6016
 
3430 rajveer 6017
    @Override
6018
    public void clear() {
6019
      this.message = null;
352 ashish 6020
    }
6021
 
6022
    public Message getMessage() {
6023
      return this.message;
6024
    }
6025
 
3430 rajveer 6026
    public void setMessage(Message message) {
352 ashish 6027
      this.message = message;
6028
    }
6029
 
6030
    public void unsetMessage() {
6031
      this.message = null;
6032
    }
6033
 
3430 rajveer 6034
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6035
    public boolean isSetMessage() {
6036
      return this.message != null;
6037
    }
6038
 
6039
    public void setMessageIsSet(boolean value) {
6040
      if (!value) {
6041
        this.message = null;
6042
      }
6043
    }
6044
 
6045
    public void setFieldValue(_Fields field, Object value) {
6046
      switch (field) {
6047
      case MESSAGE:
6048
        if (value == null) {
6049
          unsetMessage();
6050
        } else {
6051
          setMessage((Message)value);
6052
        }
6053
        break;
6054
 
6055
      }
6056
    }
6057
 
6058
    public Object getFieldValue(_Fields field) {
6059
      switch (field) {
6060
      case MESSAGE:
6061
        return getMessage();
6062
 
6063
      }
6064
      throw new IllegalStateException();
6065
    }
6066
 
3430 rajveer 6067
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6068
    public boolean isSet(_Fields field) {
6069
      if (field == null) {
6070
        throw new IllegalArgumentException();
6071
      }
352 ashish 6072
 
6073
      switch (field) {
6074
      case MESSAGE:
6075
        return isSetMessage();
6076
      }
6077
      throw new IllegalStateException();
6078
    }
6079
 
6080
    @Override
6081
    public boolean equals(Object that) {
6082
      if (that == null)
6083
        return false;
6084
      if (that instanceof addMessage_args)
6085
        return this.equals((addMessage_args)that);
6086
      return false;
6087
    }
6088
 
6089
    public boolean equals(addMessage_args that) {
6090
      if (that == null)
6091
        return false;
6092
 
6093
      boolean this_present_message = true && this.isSetMessage();
6094
      boolean that_present_message = true && that.isSetMessage();
6095
      if (this_present_message || that_present_message) {
6096
        if (!(this_present_message && that_present_message))
6097
          return false;
6098
        if (!this.message.equals(that.message))
6099
          return false;
6100
      }
6101
 
6102
      return true;
6103
    }
6104
 
6105
    @Override
6106
    public int hashCode() {
6107
      return 0;
6108
    }
6109
 
6110
    public int compareTo(addMessage_args other) {
6111
      if (!getClass().equals(other.getClass())) {
6112
        return getClass().getName().compareTo(other.getClass().getName());
6113
      }
6114
 
6115
      int lastComparison = 0;
6116
      addMessage_args typedOther = (addMessage_args)other;
6117
 
3430 rajveer 6118
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6119
      if (lastComparison != 0) {
6120
        return lastComparison;
6121
      }
3430 rajveer 6122
      if (isSetMessage()) {
6123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6124
        if (lastComparison != 0) {
6125
          return lastComparison;
6126
        }
352 ashish 6127
      }
6128
      return 0;
6129
    }
6130
 
3430 rajveer 6131
    public _Fields fieldForId(int fieldId) {
6132
      return _Fields.findByThriftId(fieldId);
6133
    }
6134
 
6135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6136
      org.apache.thrift.protocol.TField field;
352 ashish 6137
      iprot.readStructBegin();
6138
      while (true)
6139
      {
6140
        field = iprot.readFieldBegin();
3430 rajveer 6141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6142
          break;
6143
        }
3430 rajveer 6144
        switch (field.id) {
6145
          case 1: // MESSAGE
6146
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6147
              this.message = new Message();
6148
              this.message.read(iprot);
6149
            } else { 
6150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6151
            }
6152
            break;
6153
          default:
6154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6155
        }
3430 rajveer 6156
        iprot.readFieldEnd();
352 ashish 6157
      }
6158
      iprot.readStructEnd();
6159
      validate();
6160
    }
6161
 
3430 rajveer 6162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6163
      validate();
6164
 
6165
      oprot.writeStructBegin(STRUCT_DESC);
6166
      if (this.message != null) {
6167
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6168
        this.message.write(oprot);
6169
        oprot.writeFieldEnd();
6170
      }
6171
      oprot.writeFieldStop();
6172
      oprot.writeStructEnd();
6173
    }
6174
 
6175
    @Override
6176
    public String toString() {
6177
      StringBuilder sb = new StringBuilder("addMessage_args(");
6178
      boolean first = true;
6179
 
6180
      sb.append("message:");
6181
      if (this.message == null) {
6182
        sb.append("null");
6183
      } else {
6184
        sb.append(this.message);
6185
      }
6186
      first = false;
6187
      sb.append(")");
6188
      return sb.toString();
6189
    }
6190
 
3430 rajveer 6191
    public void validate() throws org.apache.thrift.TException {
352 ashish 6192
      // check for required fields
6193
    }
6194
 
3430 rajveer 6195
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6196
      try {
6197
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6198
      } catch (org.apache.thrift.TException te) {
6199
        throw new java.io.IOException(te);
6200
      }
6201
    }
6202
 
6203
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6204
      try {
6205
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6206
      } catch (org.apache.thrift.TException te) {
6207
        throw new java.io.IOException(te);
6208
      }
6209
    }
6210
 
352 ashish 6211
  }
6212
 
3430 rajveer 6213
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6214
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6215
 
3430 rajveer 6216
    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 6217
 
3430 rajveer 6218
    private HelperServiceException se; // required
352 ashish 6219
 
6220
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6221
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6222
      SE((short)1, "se");
6223
 
6224
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6225
 
6226
      static {
6227
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6228
          byName.put(field.getFieldName(), field);
6229
        }
6230
      }
6231
 
6232
      /**
6233
       * Find the _Fields constant that matches fieldId, or null if its not found.
6234
       */
6235
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6236
        switch(fieldId) {
6237
          case 1: // SE
6238
            return SE;
6239
          default:
6240
            return null;
6241
        }
352 ashish 6242
      }
6243
 
6244
      /**
6245
       * Find the _Fields constant that matches fieldId, throwing an exception
6246
       * if it is not found.
6247
       */
6248
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6249
        _Fields fields = findByThriftId(fieldId);
6250
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6251
        return fields;
6252
      }
6253
 
6254
      /**
6255
       * Find the _Fields constant that matches name, or null if its not found.
6256
       */
6257
      public static _Fields findByName(String name) {
6258
        return byName.get(name);
6259
      }
6260
 
6261
      private final short _thriftId;
6262
      private final String _fieldName;
6263
 
6264
      _Fields(short thriftId, String fieldName) {
6265
        _thriftId = thriftId;
6266
        _fieldName = fieldName;
6267
      }
6268
 
6269
      public short getThriftFieldId() {
6270
        return _thriftId;
6271
      }
6272
 
6273
      public String getFieldName() {
6274
        return _fieldName;
6275
      }
6276
    }
6277
 
6278
    // isset id assignments
6279
 
3430 rajveer 6280
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6281
    static {
3430 rajveer 6282
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6283
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6284
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6285
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6286
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6287
    }
6288
 
6289
    public addMessage_result() {
6290
    }
6291
 
6292
    public addMessage_result(
6293
      HelperServiceException se)
6294
    {
6295
      this();
6296
      this.se = se;
6297
    }
6298
 
6299
    /**
6300
     * Performs a deep copy on <i>other</i>.
6301
     */
6302
    public addMessage_result(addMessage_result other) {
6303
      if (other.isSetSe()) {
6304
        this.se = new HelperServiceException(other.se);
6305
      }
6306
    }
6307
 
6308
    public addMessage_result deepCopy() {
6309
      return new addMessage_result(this);
6310
    }
6311
 
3430 rajveer 6312
    @Override
6313
    public void clear() {
6314
      this.se = null;
352 ashish 6315
    }
6316
 
6317
    public HelperServiceException getSe() {
6318
      return this.se;
6319
    }
6320
 
3430 rajveer 6321
    public void setSe(HelperServiceException se) {
352 ashish 6322
      this.se = se;
6323
    }
6324
 
6325
    public void unsetSe() {
6326
      this.se = null;
6327
    }
6328
 
3430 rajveer 6329
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6330
    public boolean isSetSe() {
6331
      return this.se != null;
6332
    }
6333
 
6334
    public void setSeIsSet(boolean value) {
6335
      if (!value) {
6336
        this.se = null;
6337
      }
6338
    }
6339
 
6340
    public void setFieldValue(_Fields field, Object value) {
6341
      switch (field) {
6342
      case SE:
6343
        if (value == null) {
6344
          unsetSe();
6345
        } else {
6346
          setSe((HelperServiceException)value);
6347
        }
6348
        break;
6349
 
6350
      }
6351
    }
6352
 
6353
    public Object getFieldValue(_Fields field) {
6354
      switch (field) {
6355
      case SE:
6356
        return getSe();
6357
 
6358
      }
6359
      throw new IllegalStateException();
6360
    }
6361
 
3430 rajveer 6362
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6363
    public boolean isSet(_Fields field) {
6364
      if (field == null) {
6365
        throw new IllegalArgumentException();
6366
      }
352 ashish 6367
 
6368
      switch (field) {
6369
      case SE:
6370
        return isSetSe();
6371
      }
6372
      throw new IllegalStateException();
6373
    }
6374
 
6375
    @Override
6376
    public boolean equals(Object that) {
6377
      if (that == null)
6378
        return false;
6379
      if (that instanceof addMessage_result)
6380
        return this.equals((addMessage_result)that);
6381
      return false;
6382
    }
6383
 
6384
    public boolean equals(addMessage_result that) {
6385
      if (that == null)
6386
        return false;
6387
 
6388
      boolean this_present_se = true && this.isSetSe();
6389
      boolean that_present_se = true && that.isSetSe();
6390
      if (this_present_se || that_present_se) {
6391
        if (!(this_present_se && that_present_se))
6392
          return false;
6393
        if (!this.se.equals(that.se))
6394
          return false;
6395
      }
6396
 
6397
      return true;
6398
    }
6399
 
6400
    @Override
6401
    public int hashCode() {
6402
      return 0;
6403
    }
6404
 
6405
    public int compareTo(addMessage_result other) {
6406
      if (!getClass().equals(other.getClass())) {
6407
        return getClass().getName().compareTo(other.getClass().getName());
6408
      }
6409
 
6410
      int lastComparison = 0;
6411
      addMessage_result typedOther = (addMessage_result)other;
6412
 
3430 rajveer 6413
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6414
      if (lastComparison != 0) {
6415
        return lastComparison;
6416
      }
3430 rajveer 6417
      if (isSetSe()) {
6418
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6419
        if (lastComparison != 0) {
6420
          return lastComparison;
6421
        }
352 ashish 6422
      }
6423
      return 0;
6424
    }
6425
 
3430 rajveer 6426
    public _Fields fieldForId(int fieldId) {
6427
      return _Fields.findByThriftId(fieldId);
6428
    }
6429
 
6430
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6431
      org.apache.thrift.protocol.TField field;
352 ashish 6432
      iprot.readStructBegin();
6433
      while (true)
6434
      {
6435
        field = iprot.readFieldBegin();
3430 rajveer 6436
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6437
          break;
6438
        }
3430 rajveer 6439
        switch (field.id) {
6440
          case 1: // SE
6441
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6442
              this.se = new HelperServiceException();
6443
              this.se.read(iprot);
6444
            } else { 
6445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6446
            }
6447
            break;
6448
          default:
6449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6450
        }
3430 rajveer 6451
        iprot.readFieldEnd();
352 ashish 6452
      }
6453
      iprot.readStructEnd();
6454
      validate();
6455
    }
6456
 
3430 rajveer 6457
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6458
      oprot.writeStructBegin(STRUCT_DESC);
6459
 
6460
      if (this.isSetSe()) {
6461
        oprot.writeFieldBegin(SE_FIELD_DESC);
6462
        this.se.write(oprot);
6463
        oprot.writeFieldEnd();
6464
      }
6465
      oprot.writeFieldStop();
6466
      oprot.writeStructEnd();
6467
    }
6468
 
6469
    @Override
6470
    public String toString() {
6471
      StringBuilder sb = new StringBuilder("addMessage_result(");
6472
      boolean first = true;
6473
 
6474
      sb.append("se:");
6475
      if (this.se == null) {
6476
        sb.append("null");
6477
      } else {
6478
        sb.append(this.se);
6479
      }
6480
      first = false;
6481
      sb.append(")");
6482
      return sb.toString();
6483
    }
6484
 
3430 rajveer 6485
    public void validate() throws org.apache.thrift.TException {
352 ashish 6486
      // check for required fields
6487
    }
6488
 
3430 rajveer 6489
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6490
      try {
6491
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6492
      } catch (org.apache.thrift.TException te) {
6493
        throw new java.io.IOException(te);
6494
      }
6495
    }
6496
 
6497
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6498
      try {
6499
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6500
      } catch (org.apache.thrift.TException te) {
6501
        throw new java.io.IOException(te);
6502
      }
6503
    }
6504
 
352 ashish 6505
  }
6506
 
3430 rajveer 6507
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6508
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6509
 
3430 rajveer 6510
    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);
6511
    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 6512
 
3430 rajveer 6513
    private long id; // required
6514
    private String message; // required
352 ashish 6515
 
6516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6518
      ID((short)1, "id"),
6519
      MESSAGE((short)2, "message");
6520
 
6521
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6522
 
6523
      static {
6524
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6525
          byName.put(field.getFieldName(), field);
6526
        }
6527
      }
6528
 
6529
      /**
6530
       * Find the _Fields constant that matches fieldId, or null if its not found.
6531
       */
6532
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6533
        switch(fieldId) {
6534
          case 1: // ID
6535
            return ID;
6536
          case 2: // MESSAGE
6537
            return MESSAGE;
6538
          default:
6539
            return null;
6540
        }
352 ashish 6541
      }
6542
 
6543
      /**
6544
       * Find the _Fields constant that matches fieldId, throwing an exception
6545
       * if it is not found.
6546
       */
6547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6548
        _Fields fields = findByThriftId(fieldId);
6549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6550
        return fields;
6551
      }
6552
 
6553
      /**
6554
       * Find the _Fields constant that matches name, or null if its not found.
6555
       */
6556
      public static _Fields findByName(String name) {
6557
        return byName.get(name);
6558
      }
6559
 
6560
      private final short _thriftId;
6561
      private final String _fieldName;
6562
 
6563
      _Fields(short thriftId, String fieldName) {
6564
        _thriftId = thriftId;
6565
        _fieldName = fieldName;
6566
      }
6567
 
6568
      public short getThriftFieldId() {
6569
        return _thriftId;
6570
      }
6571
 
6572
      public String getFieldName() {
6573
        return _fieldName;
6574
      }
6575
    }
6576
 
6577
    // isset id assignments
6578
    private static final int __ID_ISSET_ID = 0;
6579
    private BitSet __isset_bit_vector = new BitSet(1);
6580
 
3430 rajveer 6581
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6582
    static {
3430 rajveer 6583
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6584
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6586
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
6588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 6590
    }
6591
 
6592
    public updateMessage_args() {
6593
    }
6594
 
6595
    public updateMessage_args(
6596
      long id,
6597
      String message)
6598
    {
6599
      this();
6600
      this.id = id;
6601
      setIdIsSet(true);
6602
      this.message = message;
6603
    }
6604
 
6605
    /**
6606
     * Performs a deep copy on <i>other</i>.
6607
     */
6608
    public updateMessage_args(updateMessage_args other) {
6609
      __isset_bit_vector.clear();
6610
      __isset_bit_vector.or(other.__isset_bit_vector);
6611
      this.id = other.id;
6612
      if (other.isSetMessage()) {
6613
        this.message = other.message;
6614
      }
6615
    }
6616
 
6617
    public updateMessage_args deepCopy() {
6618
      return new updateMessage_args(this);
6619
    }
6620
 
3430 rajveer 6621
    @Override
6622
    public void clear() {
6623
      setIdIsSet(false);
6624
      this.id = 0;
6625
      this.message = null;
352 ashish 6626
    }
6627
 
6628
    public long getId() {
6629
      return this.id;
6630
    }
6631
 
3430 rajveer 6632
    public void setId(long id) {
352 ashish 6633
      this.id = id;
6634
      setIdIsSet(true);
6635
    }
6636
 
6637
    public void unsetId() {
6638
      __isset_bit_vector.clear(__ID_ISSET_ID);
6639
    }
6640
 
3430 rajveer 6641
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6642
    public boolean isSetId() {
6643
      return __isset_bit_vector.get(__ID_ISSET_ID);
6644
    }
6645
 
6646
    public void setIdIsSet(boolean value) {
6647
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6648
    }
6649
 
6650
    public String getMessage() {
6651
      return this.message;
6652
    }
6653
 
3430 rajveer 6654
    public void setMessage(String message) {
352 ashish 6655
      this.message = message;
6656
    }
6657
 
6658
    public void unsetMessage() {
6659
      this.message = null;
6660
    }
6661
 
3430 rajveer 6662
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6663
    public boolean isSetMessage() {
6664
      return this.message != null;
6665
    }
6666
 
6667
    public void setMessageIsSet(boolean value) {
6668
      if (!value) {
6669
        this.message = null;
6670
      }
6671
    }
6672
 
6673
    public void setFieldValue(_Fields field, Object value) {
6674
      switch (field) {
6675
      case ID:
6676
        if (value == null) {
6677
          unsetId();
6678
        } else {
6679
          setId((Long)value);
6680
        }
6681
        break;
6682
 
6683
      case MESSAGE:
6684
        if (value == null) {
6685
          unsetMessage();
6686
        } else {
6687
          setMessage((String)value);
6688
        }
6689
        break;
6690
 
6691
      }
6692
    }
6693
 
6694
    public Object getFieldValue(_Fields field) {
6695
      switch (field) {
6696
      case ID:
3430 rajveer 6697
        return Long.valueOf(getId());
352 ashish 6698
 
6699
      case MESSAGE:
6700
        return getMessage();
6701
 
6702
      }
6703
      throw new IllegalStateException();
6704
    }
6705
 
3430 rajveer 6706
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6707
    public boolean isSet(_Fields field) {
6708
      if (field == null) {
6709
        throw new IllegalArgumentException();
6710
      }
352 ashish 6711
 
6712
      switch (field) {
6713
      case ID:
6714
        return isSetId();
6715
      case MESSAGE:
6716
        return isSetMessage();
6717
      }
6718
      throw new IllegalStateException();
6719
    }
6720
 
6721
    @Override
6722
    public boolean equals(Object that) {
6723
      if (that == null)
6724
        return false;
6725
      if (that instanceof updateMessage_args)
6726
        return this.equals((updateMessage_args)that);
6727
      return false;
6728
    }
6729
 
6730
    public boolean equals(updateMessage_args that) {
6731
      if (that == null)
6732
        return false;
6733
 
6734
      boolean this_present_id = true;
6735
      boolean that_present_id = true;
6736
      if (this_present_id || that_present_id) {
6737
        if (!(this_present_id && that_present_id))
6738
          return false;
6739
        if (this.id != that.id)
6740
          return false;
6741
      }
6742
 
6743
      boolean this_present_message = true && this.isSetMessage();
6744
      boolean that_present_message = true && that.isSetMessage();
6745
      if (this_present_message || that_present_message) {
6746
        if (!(this_present_message && that_present_message))
6747
          return false;
6748
        if (!this.message.equals(that.message))
6749
          return false;
6750
      }
6751
 
6752
      return true;
6753
    }
6754
 
6755
    @Override
6756
    public int hashCode() {
6757
      return 0;
6758
    }
6759
 
6760
    public int compareTo(updateMessage_args other) {
6761
      if (!getClass().equals(other.getClass())) {
6762
        return getClass().getName().compareTo(other.getClass().getName());
6763
      }
6764
 
6765
      int lastComparison = 0;
6766
      updateMessage_args typedOther = (updateMessage_args)other;
6767
 
3430 rajveer 6768
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6769
      if (lastComparison != 0) {
6770
        return lastComparison;
6771
      }
3430 rajveer 6772
      if (isSetId()) {
6773
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6774
        if (lastComparison != 0) {
6775
          return lastComparison;
6776
        }
352 ashish 6777
      }
3430 rajveer 6778
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6779
      if (lastComparison != 0) {
6780
        return lastComparison;
6781
      }
3430 rajveer 6782
      if (isSetMessage()) {
6783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6784
        if (lastComparison != 0) {
6785
          return lastComparison;
6786
        }
352 ashish 6787
      }
6788
      return 0;
6789
    }
6790
 
3430 rajveer 6791
    public _Fields fieldForId(int fieldId) {
6792
      return _Fields.findByThriftId(fieldId);
6793
    }
6794
 
6795
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6796
      org.apache.thrift.protocol.TField field;
352 ashish 6797
      iprot.readStructBegin();
6798
      while (true)
6799
      {
6800
        field = iprot.readFieldBegin();
3430 rajveer 6801
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6802
          break;
6803
        }
3430 rajveer 6804
        switch (field.id) {
6805
          case 1: // ID
6806
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6807
              this.id = iprot.readI64();
6808
              setIdIsSet(true);
6809
            } else { 
6810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6811
            }
6812
            break;
6813
          case 2: // MESSAGE
6814
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6815
              this.message = iprot.readString();
6816
            } else { 
6817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6818
            }
6819
            break;
6820
          default:
6821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6822
        }
3430 rajveer 6823
        iprot.readFieldEnd();
352 ashish 6824
      }
6825
      iprot.readStructEnd();
6826
      validate();
6827
    }
6828
 
3430 rajveer 6829
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6830
      validate();
6831
 
6832
      oprot.writeStructBegin(STRUCT_DESC);
6833
      oprot.writeFieldBegin(ID_FIELD_DESC);
6834
      oprot.writeI64(this.id);
6835
      oprot.writeFieldEnd();
6836
      if (this.message != null) {
6837
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6838
        oprot.writeString(this.message);
6839
        oprot.writeFieldEnd();
6840
      }
6841
      oprot.writeFieldStop();
6842
      oprot.writeStructEnd();
6843
    }
6844
 
6845
    @Override
6846
    public String toString() {
6847
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6848
      boolean first = true;
6849
 
6850
      sb.append("id:");
6851
      sb.append(this.id);
6852
      first = false;
6853
      if (!first) sb.append(", ");
6854
      sb.append("message:");
6855
      if (this.message == null) {
6856
        sb.append("null");
6857
      } else {
6858
        sb.append(this.message);
6859
      }
6860
      first = false;
6861
      sb.append(")");
6862
      return sb.toString();
6863
    }
6864
 
3430 rajveer 6865
    public void validate() throws org.apache.thrift.TException {
352 ashish 6866
      // check for required fields
6867
    }
6868
 
3430 rajveer 6869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6870
      try {
6871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6872
      } catch (org.apache.thrift.TException te) {
6873
        throw new java.io.IOException(te);
6874
      }
6875
    }
6876
 
6877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6878
      try {
6879
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6880
        __isset_bit_vector = new BitSet(1);
6881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6882
      } catch (org.apache.thrift.TException te) {
6883
        throw new java.io.IOException(te);
6884
      }
6885
    }
6886
 
352 ashish 6887
  }
6888
 
3430 rajveer 6889
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6891
 
3430 rajveer 6892
    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 6893
 
3430 rajveer 6894
    private HelperServiceException se; // required
352 ashish 6895
 
6896
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6897
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6898
      SE((short)1, "se");
6899
 
6900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6901
 
6902
      static {
6903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6904
          byName.put(field.getFieldName(), field);
6905
        }
6906
      }
6907
 
6908
      /**
6909
       * Find the _Fields constant that matches fieldId, or null if its not found.
6910
       */
6911
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6912
        switch(fieldId) {
6913
          case 1: // SE
6914
            return SE;
6915
          default:
6916
            return null;
6917
        }
352 ashish 6918
      }
6919
 
6920
      /**
6921
       * Find the _Fields constant that matches fieldId, throwing an exception
6922
       * if it is not found.
6923
       */
6924
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6925
        _Fields fields = findByThriftId(fieldId);
6926
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6927
        return fields;
6928
      }
6929
 
6930
      /**
6931
       * Find the _Fields constant that matches name, or null if its not found.
6932
       */
6933
      public static _Fields findByName(String name) {
6934
        return byName.get(name);
6935
      }
6936
 
6937
      private final short _thriftId;
6938
      private final String _fieldName;
6939
 
6940
      _Fields(short thriftId, String fieldName) {
6941
        _thriftId = thriftId;
6942
        _fieldName = fieldName;
6943
      }
6944
 
6945
      public short getThriftFieldId() {
6946
        return _thriftId;
6947
      }
6948
 
6949
      public String getFieldName() {
6950
        return _fieldName;
6951
      }
6952
    }
6953
 
6954
    // isset id assignments
6955
 
3430 rajveer 6956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6957
    static {
3430 rajveer 6958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6959
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 6963
    }
6964
 
6965
    public updateMessage_result() {
6966
    }
6967
 
6968
    public updateMessage_result(
6969
      HelperServiceException se)
6970
    {
6971
      this();
6972
      this.se = se;
6973
    }
6974
 
6975
    /**
6976
     * Performs a deep copy on <i>other</i>.
6977
     */
6978
    public updateMessage_result(updateMessage_result other) {
6979
      if (other.isSetSe()) {
6980
        this.se = new HelperServiceException(other.se);
6981
      }
6982
    }
6983
 
6984
    public updateMessage_result deepCopy() {
6985
      return new updateMessage_result(this);
6986
    }
6987
 
3430 rajveer 6988
    @Override
6989
    public void clear() {
6990
      this.se = null;
352 ashish 6991
    }
6992
 
6993
    public HelperServiceException getSe() {
6994
      return this.se;
6995
    }
6996
 
3430 rajveer 6997
    public void setSe(HelperServiceException se) {
352 ashish 6998
      this.se = se;
6999
    }
7000
 
7001
    public void unsetSe() {
7002
      this.se = null;
7003
    }
7004
 
3430 rajveer 7005
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7006
    public boolean isSetSe() {
7007
      return this.se != null;
7008
    }
7009
 
7010
    public void setSeIsSet(boolean value) {
7011
      if (!value) {
7012
        this.se = null;
7013
      }
7014
    }
7015
 
7016
    public void setFieldValue(_Fields field, Object value) {
7017
      switch (field) {
7018
      case SE:
7019
        if (value == null) {
7020
          unsetSe();
7021
        } else {
7022
          setSe((HelperServiceException)value);
7023
        }
7024
        break;
7025
 
7026
      }
7027
    }
7028
 
7029
    public Object getFieldValue(_Fields field) {
7030
      switch (field) {
7031
      case SE:
7032
        return getSe();
7033
 
7034
      }
7035
      throw new IllegalStateException();
7036
    }
7037
 
3430 rajveer 7038
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7039
    public boolean isSet(_Fields field) {
7040
      if (field == null) {
7041
        throw new IllegalArgumentException();
7042
      }
352 ashish 7043
 
7044
      switch (field) {
7045
      case SE:
7046
        return isSetSe();
7047
      }
7048
      throw new IllegalStateException();
7049
    }
7050
 
7051
    @Override
7052
    public boolean equals(Object that) {
7053
      if (that == null)
7054
        return false;
7055
      if (that instanceof updateMessage_result)
7056
        return this.equals((updateMessage_result)that);
7057
      return false;
7058
    }
7059
 
7060
    public boolean equals(updateMessage_result that) {
7061
      if (that == null)
7062
        return false;
7063
 
7064
      boolean this_present_se = true && this.isSetSe();
7065
      boolean that_present_se = true && that.isSetSe();
7066
      if (this_present_se || that_present_se) {
7067
        if (!(this_present_se && that_present_se))
7068
          return false;
7069
        if (!this.se.equals(that.se))
7070
          return false;
7071
      }
7072
 
7073
      return true;
7074
    }
7075
 
7076
    @Override
7077
    public int hashCode() {
7078
      return 0;
7079
    }
7080
 
7081
    public int compareTo(updateMessage_result other) {
7082
      if (!getClass().equals(other.getClass())) {
7083
        return getClass().getName().compareTo(other.getClass().getName());
7084
      }
7085
 
7086
      int lastComparison = 0;
7087
      updateMessage_result typedOther = (updateMessage_result)other;
7088
 
3430 rajveer 7089
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7090
      if (lastComparison != 0) {
7091
        return lastComparison;
7092
      }
3430 rajveer 7093
      if (isSetSe()) {
7094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7095
        if (lastComparison != 0) {
7096
          return lastComparison;
7097
        }
352 ashish 7098
      }
7099
      return 0;
7100
    }
7101
 
3430 rajveer 7102
    public _Fields fieldForId(int fieldId) {
7103
      return _Fields.findByThriftId(fieldId);
7104
    }
7105
 
7106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7107
      org.apache.thrift.protocol.TField field;
352 ashish 7108
      iprot.readStructBegin();
7109
      while (true)
7110
      {
7111
        field = iprot.readFieldBegin();
3430 rajveer 7112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7113
          break;
7114
        }
3430 rajveer 7115
        switch (field.id) {
7116
          case 1: // SE
7117
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7118
              this.se = new HelperServiceException();
7119
              this.se.read(iprot);
7120
            } else { 
7121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7122
            }
7123
            break;
7124
          default:
7125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7126
        }
3430 rajveer 7127
        iprot.readFieldEnd();
352 ashish 7128
      }
7129
      iprot.readStructEnd();
7130
      validate();
7131
    }
7132
 
3430 rajveer 7133
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7134
      oprot.writeStructBegin(STRUCT_DESC);
7135
 
7136
      if (this.isSetSe()) {
7137
        oprot.writeFieldBegin(SE_FIELD_DESC);
7138
        this.se.write(oprot);
7139
        oprot.writeFieldEnd();
7140
      }
7141
      oprot.writeFieldStop();
7142
      oprot.writeStructEnd();
7143
    }
7144
 
7145
    @Override
7146
    public String toString() {
7147
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7148
      boolean first = true;
7149
 
7150
      sb.append("se:");
7151
      if (this.se == null) {
7152
        sb.append("null");
7153
      } else {
7154
        sb.append(this.se);
7155
      }
7156
      first = false;
7157
      sb.append(")");
7158
      return sb.toString();
7159
    }
7160
 
3430 rajveer 7161
    public void validate() throws org.apache.thrift.TException {
352 ashish 7162
      // check for required fields
7163
    }
7164
 
3430 rajveer 7165
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7166
      try {
7167
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7168
      } catch (org.apache.thrift.TException te) {
7169
        throw new java.io.IOException(te);
7170
      }
7171
    }
7172
 
7173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7174
      try {
7175
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7176
      } catch (org.apache.thrift.TException te) {
7177
        throw new java.io.IOException(te);
7178
      }
7179
    }
7180
 
352 ashish 7181
  }
7182
 
3430 rajveer 7183
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7184
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7185
 
3430 rajveer 7186
    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 7187
 
3430 rajveer 7188
    private long id; // required
352 ashish 7189
 
7190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7192
      ID((short)1, "id");
7193
 
7194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7195
 
7196
      static {
7197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7198
          byName.put(field.getFieldName(), field);
7199
        }
7200
      }
7201
 
7202
      /**
7203
       * Find the _Fields constant that matches fieldId, or null if its not found.
7204
       */
7205
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7206
        switch(fieldId) {
7207
          case 1: // ID
7208
            return ID;
7209
          default:
7210
            return null;
7211
        }
352 ashish 7212
      }
7213
 
7214
      /**
7215
       * Find the _Fields constant that matches fieldId, throwing an exception
7216
       * if it is not found.
7217
       */
7218
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7219
        _Fields fields = findByThriftId(fieldId);
7220
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7221
        return fields;
7222
      }
7223
 
7224
      /**
7225
       * Find the _Fields constant that matches name, or null if its not found.
7226
       */
7227
      public static _Fields findByName(String name) {
7228
        return byName.get(name);
7229
      }
7230
 
7231
      private final short _thriftId;
7232
      private final String _fieldName;
7233
 
7234
      _Fields(short thriftId, String fieldName) {
7235
        _thriftId = thriftId;
7236
        _fieldName = fieldName;
7237
      }
7238
 
7239
      public short getThriftFieldId() {
7240
        return _thriftId;
7241
      }
7242
 
7243
      public String getFieldName() {
7244
        return _fieldName;
7245
      }
7246
    }
7247
 
7248
    // isset id assignments
7249
    private static final int __ID_ISSET_ID = 0;
7250
    private BitSet __isset_bit_vector = new BitSet(1);
7251
 
3430 rajveer 7252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7253
    static {
3430 rajveer 7254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7255
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7256
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7257
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7258
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7259
    }
7260
 
7261
    public getMessage_args() {
7262
    }
7263
 
7264
    public getMessage_args(
7265
      long id)
7266
    {
7267
      this();
7268
      this.id = id;
7269
      setIdIsSet(true);
7270
    }
7271
 
7272
    /**
7273
     * Performs a deep copy on <i>other</i>.
7274
     */
7275
    public getMessage_args(getMessage_args other) {
7276
      __isset_bit_vector.clear();
7277
      __isset_bit_vector.or(other.__isset_bit_vector);
7278
      this.id = other.id;
7279
    }
7280
 
7281
    public getMessage_args deepCopy() {
7282
      return new getMessage_args(this);
7283
    }
7284
 
3430 rajveer 7285
    @Override
7286
    public void clear() {
7287
      setIdIsSet(false);
7288
      this.id = 0;
352 ashish 7289
    }
7290
 
7291
    public long getId() {
7292
      return this.id;
7293
    }
7294
 
3430 rajveer 7295
    public void setId(long id) {
352 ashish 7296
      this.id = id;
7297
      setIdIsSet(true);
7298
    }
7299
 
7300
    public void unsetId() {
7301
      __isset_bit_vector.clear(__ID_ISSET_ID);
7302
    }
7303
 
3430 rajveer 7304
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7305
    public boolean isSetId() {
7306
      return __isset_bit_vector.get(__ID_ISSET_ID);
7307
    }
7308
 
7309
    public void setIdIsSet(boolean value) {
7310
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7311
    }
7312
 
7313
    public void setFieldValue(_Fields field, Object value) {
7314
      switch (field) {
7315
      case ID:
7316
        if (value == null) {
7317
          unsetId();
7318
        } else {
7319
          setId((Long)value);
7320
        }
7321
        break;
7322
 
7323
      }
7324
    }
7325
 
7326
    public Object getFieldValue(_Fields field) {
7327
      switch (field) {
7328
      case ID:
3430 rajveer 7329
        return Long.valueOf(getId());
352 ashish 7330
 
7331
      }
7332
      throw new IllegalStateException();
7333
    }
7334
 
3430 rajveer 7335
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7336
    public boolean isSet(_Fields field) {
7337
      if (field == null) {
7338
        throw new IllegalArgumentException();
7339
      }
352 ashish 7340
 
7341
      switch (field) {
7342
      case ID:
7343
        return isSetId();
7344
      }
7345
      throw new IllegalStateException();
7346
    }
7347
 
7348
    @Override
7349
    public boolean equals(Object that) {
7350
      if (that == null)
7351
        return false;
7352
      if (that instanceof getMessage_args)
7353
        return this.equals((getMessage_args)that);
7354
      return false;
7355
    }
7356
 
7357
    public boolean equals(getMessage_args that) {
7358
      if (that == null)
7359
        return false;
7360
 
7361
      boolean this_present_id = true;
7362
      boolean that_present_id = true;
7363
      if (this_present_id || that_present_id) {
7364
        if (!(this_present_id && that_present_id))
7365
          return false;
7366
        if (this.id != that.id)
7367
          return false;
7368
      }
7369
 
7370
      return true;
7371
    }
7372
 
7373
    @Override
7374
    public int hashCode() {
7375
      return 0;
7376
    }
7377
 
7378
    public int compareTo(getMessage_args other) {
7379
      if (!getClass().equals(other.getClass())) {
7380
        return getClass().getName().compareTo(other.getClass().getName());
7381
      }
7382
 
7383
      int lastComparison = 0;
7384
      getMessage_args typedOther = (getMessage_args)other;
7385
 
3430 rajveer 7386
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7387
      if (lastComparison != 0) {
7388
        return lastComparison;
7389
      }
3430 rajveer 7390
      if (isSetId()) {
7391
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7392
        if (lastComparison != 0) {
7393
          return lastComparison;
7394
        }
352 ashish 7395
      }
7396
      return 0;
7397
    }
7398
 
3430 rajveer 7399
    public _Fields fieldForId(int fieldId) {
7400
      return _Fields.findByThriftId(fieldId);
7401
    }
7402
 
7403
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7404
      org.apache.thrift.protocol.TField field;
352 ashish 7405
      iprot.readStructBegin();
7406
      while (true)
7407
      {
7408
        field = iprot.readFieldBegin();
3430 rajveer 7409
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7410
          break;
7411
        }
3430 rajveer 7412
        switch (field.id) {
7413
          case 1: // ID
7414
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7415
              this.id = iprot.readI64();
7416
              setIdIsSet(true);
7417
            } else { 
7418
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7419
            }
7420
            break;
7421
          default:
7422
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7423
        }
3430 rajveer 7424
        iprot.readFieldEnd();
352 ashish 7425
      }
7426
      iprot.readStructEnd();
7427
      validate();
7428
    }
7429
 
3430 rajveer 7430
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7431
      validate();
7432
 
7433
      oprot.writeStructBegin(STRUCT_DESC);
7434
      oprot.writeFieldBegin(ID_FIELD_DESC);
7435
      oprot.writeI64(this.id);
7436
      oprot.writeFieldEnd();
7437
      oprot.writeFieldStop();
7438
      oprot.writeStructEnd();
7439
    }
7440
 
7441
    @Override
7442
    public String toString() {
7443
      StringBuilder sb = new StringBuilder("getMessage_args(");
7444
      boolean first = true;
7445
 
7446
      sb.append("id:");
7447
      sb.append(this.id);
7448
      first = false;
7449
      sb.append(")");
7450
      return sb.toString();
7451
    }
7452
 
3430 rajveer 7453
    public void validate() throws org.apache.thrift.TException {
352 ashish 7454
      // check for required fields
7455
    }
7456
 
3430 rajveer 7457
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7458
      try {
7459
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7460
      } catch (org.apache.thrift.TException te) {
7461
        throw new java.io.IOException(te);
7462
      }
7463
    }
7464
 
7465
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7466
      try {
7467
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7468
        __isset_bit_vector = new BitSet(1);
7469
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7470
      } catch (org.apache.thrift.TException te) {
7471
        throw new java.io.IOException(te);
7472
      }
7473
    }
7474
 
352 ashish 7475
  }
7476
 
3430 rajveer 7477
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7478
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7479
 
3430 rajveer 7480
    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);
7481
    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 7482
 
3430 rajveer 7483
    private Message success; // required
7484
    private HelperServiceException se; // required
352 ashish 7485
 
7486
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7487
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7488
      SUCCESS((short)0, "success"),
7489
      SE((short)1, "se");
7490
 
7491
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7492
 
7493
      static {
7494
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7495
          byName.put(field.getFieldName(), field);
7496
        }
7497
      }
7498
 
7499
      /**
7500
       * Find the _Fields constant that matches fieldId, or null if its not found.
7501
       */
7502
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7503
        switch(fieldId) {
7504
          case 0: // SUCCESS
7505
            return SUCCESS;
7506
          case 1: // SE
7507
            return SE;
7508
          default:
7509
            return null;
7510
        }
352 ashish 7511
      }
7512
 
7513
      /**
7514
       * Find the _Fields constant that matches fieldId, throwing an exception
7515
       * if it is not found.
7516
       */
7517
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7518
        _Fields fields = findByThriftId(fieldId);
7519
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7520
        return fields;
7521
      }
7522
 
7523
      /**
7524
       * Find the _Fields constant that matches name, or null if its not found.
7525
       */
7526
      public static _Fields findByName(String name) {
7527
        return byName.get(name);
7528
      }
7529
 
7530
      private final short _thriftId;
7531
      private final String _fieldName;
7532
 
7533
      _Fields(short thriftId, String fieldName) {
7534
        _thriftId = thriftId;
7535
        _fieldName = fieldName;
7536
      }
7537
 
7538
      public short getThriftFieldId() {
7539
        return _thriftId;
7540
      }
7541
 
7542
      public String getFieldName() {
7543
        return _fieldName;
7544
      }
7545
    }
7546
 
7547
    // isset id assignments
7548
 
3430 rajveer 7549
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7550
    static {
3430 rajveer 7551
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7552
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7553
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7554
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7555
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 7558
    }
7559
 
7560
    public getMessage_result() {
7561
    }
7562
 
7563
    public getMessage_result(
7564
      Message success,
7565
      HelperServiceException se)
7566
    {
7567
      this();
7568
      this.success = success;
7569
      this.se = se;
7570
    }
7571
 
7572
    /**
7573
     * Performs a deep copy on <i>other</i>.
7574
     */
7575
    public getMessage_result(getMessage_result other) {
7576
      if (other.isSetSuccess()) {
7577
        this.success = new Message(other.success);
7578
      }
7579
      if (other.isSetSe()) {
7580
        this.se = new HelperServiceException(other.se);
7581
      }
7582
    }
7583
 
7584
    public getMessage_result deepCopy() {
7585
      return new getMessage_result(this);
7586
    }
7587
 
3430 rajveer 7588
    @Override
7589
    public void clear() {
7590
      this.success = null;
7591
      this.se = null;
352 ashish 7592
    }
7593
 
7594
    public Message getSuccess() {
7595
      return this.success;
7596
    }
7597
 
3430 rajveer 7598
    public void setSuccess(Message success) {
352 ashish 7599
      this.success = success;
7600
    }
7601
 
7602
    public void unsetSuccess() {
7603
      this.success = null;
7604
    }
7605
 
3430 rajveer 7606
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7607
    public boolean isSetSuccess() {
7608
      return this.success != null;
7609
    }
7610
 
7611
    public void setSuccessIsSet(boolean value) {
7612
      if (!value) {
7613
        this.success = null;
7614
      }
7615
    }
7616
 
7617
    public HelperServiceException getSe() {
7618
      return this.se;
7619
    }
7620
 
3430 rajveer 7621
    public void setSe(HelperServiceException se) {
352 ashish 7622
      this.se = se;
7623
    }
7624
 
7625
    public void unsetSe() {
7626
      this.se = null;
7627
    }
7628
 
3430 rajveer 7629
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7630
    public boolean isSetSe() {
7631
      return this.se != null;
7632
    }
7633
 
7634
    public void setSeIsSet(boolean value) {
7635
      if (!value) {
7636
        this.se = null;
7637
      }
7638
    }
7639
 
7640
    public void setFieldValue(_Fields field, Object value) {
7641
      switch (field) {
7642
      case SUCCESS:
7643
        if (value == null) {
7644
          unsetSuccess();
7645
        } else {
7646
          setSuccess((Message)value);
7647
        }
7648
        break;
7649
 
7650
      case SE:
7651
        if (value == null) {
7652
          unsetSe();
7653
        } else {
7654
          setSe((HelperServiceException)value);
7655
        }
7656
        break;
7657
 
7658
      }
7659
    }
7660
 
7661
    public Object getFieldValue(_Fields field) {
7662
      switch (field) {
7663
      case SUCCESS:
7664
        return getSuccess();
7665
 
7666
      case SE:
7667
        return getSe();
7668
 
7669
      }
7670
      throw new IllegalStateException();
7671
    }
7672
 
3430 rajveer 7673
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7674
    public boolean isSet(_Fields field) {
7675
      if (field == null) {
7676
        throw new IllegalArgumentException();
7677
      }
352 ashish 7678
 
7679
      switch (field) {
7680
      case SUCCESS:
7681
        return isSetSuccess();
7682
      case SE:
7683
        return isSetSe();
7684
      }
7685
      throw new IllegalStateException();
7686
    }
7687
 
7688
    @Override
7689
    public boolean equals(Object that) {
7690
      if (that == null)
7691
        return false;
7692
      if (that instanceof getMessage_result)
7693
        return this.equals((getMessage_result)that);
7694
      return false;
7695
    }
7696
 
7697
    public boolean equals(getMessage_result that) {
7698
      if (that == null)
7699
        return false;
7700
 
7701
      boolean this_present_success = true && this.isSetSuccess();
7702
      boolean that_present_success = true && that.isSetSuccess();
7703
      if (this_present_success || that_present_success) {
7704
        if (!(this_present_success && that_present_success))
7705
          return false;
7706
        if (!this.success.equals(that.success))
7707
          return false;
7708
      }
7709
 
7710
      boolean this_present_se = true && this.isSetSe();
7711
      boolean that_present_se = true && that.isSetSe();
7712
      if (this_present_se || that_present_se) {
7713
        if (!(this_present_se && that_present_se))
7714
          return false;
7715
        if (!this.se.equals(that.se))
7716
          return false;
7717
      }
7718
 
7719
      return true;
7720
    }
7721
 
7722
    @Override
7723
    public int hashCode() {
7724
      return 0;
7725
    }
7726
 
7727
    public int compareTo(getMessage_result other) {
7728
      if (!getClass().equals(other.getClass())) {
7729
        return getClass().getName().compareTo(other.getClass().getName());
7730
      }
7731
 
7732
      int lastComparison = 0;
7733
      getMessage_result typedOther = (getMessage_result)other;
7734
 
3430 rajveer 7735
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7736
      if (lastComparison != 0) {
7737
        return lastComparison;
7738
      }
3430 rajveer 7739
      if (isSetSuccess()) {
7740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7741
        if (lastComparison != 0) {
7742
          return lastComparison;
7743
        }
352 ashish 7744
      }
3430 rajveer 7745
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7746
      if (lastComparison != 0) {
7747
        return lastComparison;
7748
      }
3430 rajveer 7749
      if (isSetSe()) {
7750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7751
        if (lastComparison != 0) {
7752
          return lastComparison;
7753
        }
352 ashish 7754
      }
7755
      return 0;
7756
    }
7757
 
3430 rajveer 7758
    public _Fields fieldForId(int fieldId) {
7759
      return _Fields.findByThriftId(fieldId);
7760
    }
7761
 
7762
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7763
      org.apache.thrift.protocol.TField field;
352 ashish 7764
      iprot.readStructBegin();
7765
      while (true)
7766
      {
7767
        field = iprot.readFieldBegin();
3430 rajveer 7768
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7769
          break;
7770
        }
3430 rajveer 7771
        switch (field.id) {
7772
          case 0: // SUCCESS
7773
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7774
              this.success = new Message();
7775
              this.success.read(iprot);
7776
            } else { 
7777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7778
            }
7779
            break;
7780
          case 1: // SE
7781
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7782
              this.se = new HelperServiceException();
7783
              this.se.read(iprot);
7784
            } else { 
7785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7786
            }
7787
            break;
7788
          default:
7789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7790
        }
3430 rajveer 7791
        iprot.readFieldEnd();
352 ashish 7792
      }
7793
      iprot.readStructEnd();
7794
      validate();
7795
    }
7796
 
3430 rajveer 7797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7798
      oprot.writeStructBegin(STRUCT_DESC);
7799
 
7800
      if (this.isSetSuccess()) {
7801
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7802
        this.success.write(oprot);
7803
        oprot.writeFieldEnd();
7804
      } else if (this.isSetSe()) {
7805
        oprot.writeFieldBegin(SE_FIELD_DESC);
7806
        this.se.write(oprot);
7807
        oprot.writeFieldEnd();
7808
      }
7809
      oprot.writeFieldStop();
7810
      oprot.writeStructEnd();
7811
    }
7812
 
7813
    @Override
7814
    public String toString() {
7815
      StringBuilder sb = new StringBuilder("getMessage_result(");
7816
      boolean first = true;
7817
 
7818
      sb.append("success:");
7819
      if (this.success == null) {
7820
        sb.append("null");
7821
      } else {
7822
        sb.append(this.success);
7823
      }
7824
      first = false;
7825
      if (!first) sb.append(", ");
7826
      sb.append("se:");
7827
      if (this.se == null) {
7828
        sb.append("null");
7829
      } else {
7830
        sb.append(this.se);
7831
      }
7832
      first = false;
7833
      sb.append(")");
7834
      return sb.toString();
7835
    }
7836
 
3430 rajveer 7837
    public void validate() throws org.apache.thrift.TException {
352 ashish 7838
      // check for required fields
7839
    }
7840
 
3430 rajveer 7841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7842
      try {
7843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7844
      } catch (org.apache.thrift.TException te) {
7845
        throw new java.io.IOException(te);
7846
      }
7847
    }
7848
 
7849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7850
      try {
7851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7852
      } catch (org.apache.thrift.TException te) {
7853
        throw new java.io.IOException(te);
7854
      }
7855
    }
7856
 
352 ashish 7857
  }
7858
 
3430 rajveer 7859
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7861
 
3430 rajveer 7862
    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);
7863
    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 7864
 
3430 rajveer 7865
    private long id; // required
7866
    private Map<String,String> params; // required
352 ashish 7867
 
7868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7870
      ID((short)1, "id"),
7871
      PARAMS((short)2, "params");
7872
 
7873
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7874
 
7875
      static {
7876
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7877
          byName.put(field.getFieldName(), field);
7878
        }
7879
      }
7880
 
7881
      /**
7882
       * Find the _Fields constant that matches fieldId, or null if its not found.
7883
       */
7884
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7885
        switch(fieldId) {
7886
          case 1: // ID
7887
            return ID;
7888
          case 2: // PARAMS
7889
            return PARAMS;
7890
          default:
7891
            return null;
7892
        }
352 ashish 7893
      }
7894
 
7895
      /**
7896
       * Find the _Fields constant that matches fieldId, throwing an exception
7897
       * if it is not found.
7898
       */
7899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7900
        _Fields fields = findByThriftId(fieldId);
7901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7902
        return fields;
7903
      }
7904
 
7905
      /**
7906
       * Find the _Fields constant that matches name, or null if its not found.
7907
       */
7908
      public static _Fields findByName(String name) {
7909
        return byName.get(name);
7910
      }
7911
 
7912
      private final short _thriftId;
7913
      private final String _fieldName;
7914
 
7915
      _Fields(short thriftId, String fieldName) {
7916
        _thriftId = thriftId;
7917
        _fieldName = fieldName;
7918
      }
7919
 
7920
      public short getThriftFieldId() {
7921
        return _thriftId;
7922
      }
7923
 
7924
      public String getFieldName() {
7925
        return _fieldName;
7926
      }
7927
    }
7928
 
7929
    // isset id assignments
7930
    private static final int __ID_ISSET_ID = 0;
7931
    private BitSet __isset_bit_vector = new BitSet(1);
7932
 
3430 rajveer 7933
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7934
    static {
3430 rajveer 7935
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7936
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7937
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7938
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7939
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7940
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7941
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7942
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7943
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 7944
    }
7945
 
7946
    public getSubstitutedMessage_args() {
7947
    }
7948
 
7949
    public getSubstitutedMessage_args(
7950
      long id,
7951
      Map<String,String> params)
7952
    {
7953
      this();
7954
      this.id = id;
7955
      setIdIsSet(true);
7956
      this.params = params;
7957
    }
7958
 
7959
    /**
7960
     * Performs a deep copy on <i>other</i>.
7961
     */
7962
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
7963
      __isset_bit_vector.clear();
7964
      __isset_bit_vector.or(other.__isset_bit_vector);
7965
      this.id = other.id;
7966
      if (other.isSetParams()) {
7967
        Map<String,String> __this__params = new HashMap<String,String>();
7968
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
7969
 
7970
          String other_element_key = other_element.getKey();
7971
          String other_element_value = other_element.getValue();
7972
 
7973
          String __this__params_copy_key = other_element_key;
7974
 
7975
          String __this__params_copy_value = other_element_value;
7976
 
7977
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
7978
        }
7979
        this.params = __this__params;
7980
      }
7981
    }
7982
 
7983
    public getSubstitutedMessage_args deepCopy() {
7984
      return new getSubstitutedMessage_args(this);
7985
    }
7986
 
3430 rajveer 7987
    @Override
7988
    public void clear() {
7989
      setIdIsSet(false);
7990
      this.id = 0;
7991
      this.params = null;
352 ashish 7992
    }
7993
 
7994
    public long getId() {
7995
      return this.id;
7996
    }
7997
 
3430 rajveer 7998
    public void setId(long id) {
352 ashish 7999
      this.id = id;
8000
      setIdIsSet(true);
8001
    }
8002
 
8003
    public void unsetId() {
8004
      __isset_bit_vector.clear(__ID_ISSET_ID);
8005
    }
8006
 
3430 rajveer 8007
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8008
    public boolean isSetId() {
8009
      return __isset_bit_vector.get(__ID_ISSET_ID);
8010
    }
8011
 
8012
    public void setIdIsSet(boolean value) {
8013
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8014
    }
8015
 
8016
    public int getParamsSize() {
8017
      return (this.params == null) ? 0 : this.params.size();
8018
    }
8019
 
8020
    public void putToParams(String key, String val) {
8021
      if (this.params == null) {
8022
        this.params = new HashMap<String,String>();
8023
      }
8024
      this.params.put(key, val);
8025
    }
8026
 
8027
    public Map<String,String> getParams() {
8028
      return this.params;
8029
    }
8030
 
3430 rajveer 8031
    public void setParams(Map<String,String> params) {
352 ashish 8032
      this.params = params;
8033
    }
8034
 
8035
    public void unsetParams() {
8036
      this.params = null;
8037
    }
8038
 
3430 rajveer 8039
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8040
    public boolean isSetParams() {
8041
      return this.params != null;
8042
    }
8043
 
8044
    public void setParamsIsSet(boolean value) {
8045
      if (!value) {
8046
        this.params = null;
8047
      }
8048
    }
8049
 
8050
    public void setFieldValue(_Fields field, Object value) {
8051
      switch (field) {
8052
      case ID:
8053
        if (value == null) {
8054
          unsetId();
8055
        } else {
8056
          setId((Long)value);
8057
        }
8058
        break;
8059
 
8060
      case PARAMS:
8061
        if (value == null) {
8062
          unsetParams();
8063
        } else {
8064
          setParams((Map<String,String>)value);
8065
        }
8066
        break;
8067
 
8068
      }
8069
    }
8070
 
8071
    public Object getFieldValue(_Fields field) {
8072
      switch (field) {
8073
      case ID:
3430 rajveer 8074
        return Long.valueOf(getId());
352 ashish 8075
 
8076
      case PARAMS:
8077
        return getParams();
8078
 
8079
      }
8080
      throw new IllegalStateException();
8081
    }
8082
 
3430 rajveer 8083
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8084
    public boolean isSet(_Fields field) {
8085
      if (field == null) {
8086
        throw new IllegalArgumentException();
8087
      }
352 ashish 8088
 
8089
      switch (field) {
8090
      case ID:
8091
        return isSetId();
8092
      case PARAMS:
8093
        return isSetParams();
8094
      }
8095
      throw new IllegalStateException();
8096
    }
8097
 
8098
    @Override
8099
    public boolean equals(Object that) {
8100
      if (that == null)
8101
        return false;
8102
      if (that instanceof getSubstitutedMessage_args)
8103
        return this.equals((getSubstitutedMessage_args)that);
8104
      return false;
8105
    }
8106
 
8107
    public boolean equals(getSubstitutedMessage_args that) {
8108
      if (that == null)
8109
        return false;
8110
 
8111
      boolean this_present_id = true;
8112
      boolean that_present_id = true;
8113
      if (this_present_id || that_present_id) {
8114
        if (!(this_present_id && that_present_id))
8115
          return false;
8116
        if (this.id != that.id)
8117
          return false;
8118
      }
8119
 
8120
      boolean this_present_params = true && this.isSetParams();
8121
      boolean that_present_params = true && that.isSetParams();
8122
      if (this_present_params || that_present_params) {
8123
        if (!(this_present_params && that_present_params))
8124
          return false;
8125
        if (!this.params.equals(that.params))
8126
          return false;
8127
      }
8128
 
8129
      return true;
8130
    }
8131
 
8132
    @Override
8133
    public int hashCode() {
8134
      return 0;
8135
    }
8136
 
3430 rajveer 8137
    public int compareTo(getSubstitutedMessage_args other) {
8138
      if (!getClass().equals(other.getClass())) {
8139
        return getClass().getName().compareTo(other.getClass().getName());
8140
      }
8141
 
8142
      int lastComparison = 0;
8143
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8144
 
8145
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8146
      if (lastComparison != 0) {
8147
        return lastComparison;
8148
      }
8149
      if (isSetId()) {
8150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8151
        if (lastComparison != 0) {
8152
          return lastComparison;
8153
        }
8154
      }
8155
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8156
      if (lastComparison != 0) {
8157
        return lastComparison;
8158
      }
8159
      if (isSetParams()) {
8160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8161
        if (lastComparison != 0) {
8162
          return lastComparison;
8163
        }
8164
      }
8165
      return 0;
8166
    }
8167
 
8168
    public _Fields fieldForId(int fieldId) {
8169
      return _Fields.findByThriftId(fieldId);
8170
    }
8171
 
8172
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8173
      org.apache.thrift.protocol.TField field;
352 ashish 8174
      iprot.readStructBegin();
8175
      while (true)
8176
      {
8177
        field = iprot.readFieldBegin();
3430 rajveer 8178
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8179
          break;
8180
        }
3430 rajveer 8181
        switch (field.id) {
8182
          case 1: // ID
8183
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8184
              this.id = iprot.readI64();
8185
              setIdIsSet(true);
8186
            } else { 
8187
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8188
            }
8189
            break;
8190
          case 2: // PARAMS
8191
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8192
              {
8193
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
8194
                this.params = new HashMap<String,String>(2*_map12.size);
8195
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 8196
                {
3430 rajveer 8197
                  String _key14; // required
8198
                  String _val15; // required
8199
                  _key14 = iprot.readString();
8200
                  _val15 = iprot.readString();
8201
                  this.params.put(_key14, _val15);
352 ashish 8202
                }
3430 rajveer 8203
                iprot.readMapEnd();
352 ashish 8204
              }
3430 rajveer 8205
            } else { 
8206
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8207
            }
8208
            break;
8209
          default:
8210
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8211
        }
3430 rajveer 8212
        iprot.readFieldEnd();
352 ashish 8213
      }
8214
      iprot.readStructEnd();
8215
      validate();
8216
    }
8217
 
3430 rajveer 8218
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8219
      validate();
8220
 
8221
      oprot.writeStructBegin(STRUCT_DESC);
8222
      oprot.writeFieldBegin(ID_FIELD_DESC);
8223
      oprot.writeI64(this.id);
8224
      oprot.writeFieldEnd();
8225
      if (this.params != null) {
8226
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8227
        {
3430 rajveer 8228
          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 8229
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 8230
          {
1422 varun.gupt 8231
            oprot.writeString(_iter16.getKey());
8232
            oprot.writeString(_iter16.getValue());
352 ashish 8233
          }
8234
          oprot.writeMapEnd();
8235
        }
8236
        oprot.writeFieldEnd();
8237
      }
8238
      oprot.writeFieldStop();
8239
      oprot.writeStructEnd();
8240
    }
8241
 
8242
    @Override
8243
    public String toString() {
8244
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8245
      boolean first = true;
8246
 
8247
      sb.append("id:");
8248
      sb.append(this.id);
8249
      first = false;
8250
      if (!first) sb.append(", ");
8251
      sb.append("params:");
8252
      if (this.params == null) {
8253
        sb.append("null");
8254
      } else {
8255
        sb.append(this.params);
8256
      }
8257
      first = false;
8258
      sb.append(")");
8259
      return sb.toString();
8260
    }
8261
 
3430 rajveer 8262
    public void validate() throws org.apache.thrift.TException {
352 ashish 8263
      // check for required fields
8264
    }
8265
 
3430 rajveer 8266
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8267
      try {
8268
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8269
      } catch (org.apache.thrift.TException te) {
8270
        throw new java.io.IOException(te);
8271
      }
8272
    }
8273
 
8274
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8275
      try {
8276
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8277
        __isset_bit_vector = new BitSet(1);
8278
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8279
      } catch (org.apache.thrift.TException te) {
8280
        throw new java.io.IOException(te);
8281
      }
8282
    }
8283
 
352 ashish 8284
  }
8285
 
3430 rajveer 8286
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8287
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8288
 
3430 rajveer 8289
    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);
8290
    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 8291
 
3430 rajveer 8292
    private Message success; // required
8293
    private HelperServiceException se; // required
352 ashish 8294
 
8295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8297
      SUCCESS((short)0, "success"),
8298
      SE((short)1, "se");
8299
 
8300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8301
 
8302
      static {
8303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8304
          byName.put(field.getFieldName(), field);
8305
        }
8306
      }
8307
 
8308
      /**
8309
       * Find the _Fields constant that matches fieldId, or null if its not found.
8310
       */
8311
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8312
        switch(fieldId) {
8313
          case 0: // SUCCESS
8314
            return SUCCESS;
8315
          case 1: // SE
8316
            return SE;
8317
          default:
8318
            return null;
8319
        }
352 ashish 8320
      }
8321
 
8322
      /**
8323
       * Find the _Fields constant that matches fieldId, throwing an exception
8324
       * if it is not found.
8325
       */
8326
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8327
        _Fields fields = findByThriftId(fieldId);
8328
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8329
        return fields;
8330
      }
8331
 
8332
      /**
8333
       * Find the _Fields constant that matches name, or null if its not found.
8334
       */
8335
      public static _Fields findByName(String name) {
8336
        return byName.get(name);
8337
      }
8338
 
8339
      private final short _thriftId;
8340
      private final String _fieldName;
8341
 
8342
      _Fields(short thriftId, String fieldName) {
8343
        _thriftId = thriftId;
8344
        _fieldName = fieldName;
8345
      }
8346
 
8347
      public short getThriftFieldId() {
8348
        return _thriftId;
8349
      }
8350
 
8351
      public String getFieldName() {
8352
        return _fieldName;
8353
      }
8354
    }
8355
 
8356
    // isset id assignments
8357
 
3430 rajveer 8358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8359
    static {
3430 rajveer 8360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8361
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8362
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8363
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8365
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8366
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8367
    }
8368
 
8369
    public getSubstitutedMessage_result() {
8370
    }
8371
 
8372
    public getSubstitutedMessage_result(
8373
      Message success,
8374
      HelperServiceException se)
8375
    {
8376
      this();
8377
      this.success = success;
8378
      this.se = se;
8379
    }
8380
 
8381
    /**
8382
     * Performs a deep copy on <i>other</i>.
8383
     */
8384
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8385
      if (other.isSetSuccess()) {
8386
        this.success = new Message(other.success);
8387
      }
8388
      if (other.isSetSe()) {
8389
        this.se = new HelperServiceException(other.se);
8390
      }
8391
    }
8392
 
8393
    public getSubstitutedMessage_result deepCopy() {
8394
      return new getSubstitutedMessage_result(this);
8395
    }
8396
 
3430 rajveer 8397
    @Override
8398
    public void clear() {
8399
      this.success = null;
8400
      this.se = null;
352 ashish 8401
    }
8402
 
8403
    public Message getSuccess() {
8404
      return this.success;
8405
    }
8406
 
3430 rajveer 8407
    public void setSuccess(Message success) {
352 ashish 8408
      this.success = success;
8409
    }
8410
 
8411
    public void unsetSuccess() {
8412
      this.success = null;
8413
    }
8414
 
3430 rajveer 8415
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8416
    public boolean isSetSuccess() {
8417
      return this.success != null;
8418
    }
8419
 
8420
    public void setSuccessIsSet(boolean value) {
8421
      if (!value) {
8422
        this.success = null;
8423
      }
8424
    }
8425
 
8426
    public HelperServiceException getSe() {
8427
      return this.se;
8428
    }
8429
 
3430 rajveer 8430
    public void setSe(HelperServiceException se) {
352 ashish 8431
      this.se = se;
8432
    }
8433
 
8434
    public void unsetSe() {
8435
      this.se = null;
8436
    }
8437
 
3430 rajveer 8438
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8439
    public boolean isSetSe() {
8440
      return this.se != null;
8441
    }
8442
 
8443
    public void setSeIsSet(boolean value) {
8444
      if (!value) {
8445
        this.se = null;
8446
      }
8447
    }
8448
 
8449
    public void setFieldValue(_Fields field, Object value) {
8450
      switch (field) {
8451
      case SUCCESS:
8452
        if (value == null) {
8453
          unsetSuccess();
8454
        } else {
8455
          setSuccess((Message)value);
8456
        }
8457
        break;
8458
 
8459
      case SE:
8460
        if (value == null) {
8461
          unsetSe();
8462
        } else {
8463
          setSe((HelperServiceException)value);
8464
        }
8465
        break;
8466
 
8467
      }
8468
    }
8469
 
8470
    public Object getFieldValue(_Fields field) {
8471
      switch (field) {
8472
      case SUCCESS:
8473
        return getSuccess();
8474
 
8475
      case SE:
8476
        return getSe();
8477
 
8478
      }
8479
      throw new IllegalStateException();
8480
    }
8481
 
3430 rajveer 8482
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8483
    public boolean isSet(_Fields field) {
8484
      if (field == null) {
8485
        throw new IllegalArgumentException();
8486
      }
352 ashish 8487
 
8488
      switch (field) {
8489
      case SUCCESS:
8490
        return isSetSuccess();
8491
      case SE:
8492
        return isSetSe();
8493
      }
8494
      throw new IllegalStateException();
8495
    }
8496
 
8497
    @Override
8498
    public boolean equals(Object that) {
8499
      if (that == null)
8500
        return false;
8501
      if (that instanceof getSubstitutedMessage_result)
8502
        return this.equals((getSubstitutedMessage_result)that);
8503
      return false;
8504
    }
8505
 
8506
    public boolean equals(getSubstitutedMessage_result that) {
8507
      if (that == null)
8508
        return false;
8509
 
8510
      boolean this_present_success = true && this.isSetSuccess();
8511
      boolean that_present_success = true && that.isSetSuccess();
8512
      if (this_present_success || that_present_success) {
8513
        if (!(this_present_success && that_present_success))
8514
          return false;
8515
        if (!this.success.equals(that.success))
8516
          return false;
8517
      }
8518
 
8519
      boolean this_present_se = true && this.isSetSe();
8520
      boolean that_present_se = true && that.isSetSe();
8521
      if (this_present_se || that_present_se) {
8522
        if (!(this_present_se && that_present_se))
8523
          return false;
8524
        if (!this.se.equals(that.se))
8525
          return false;
8526
      }
8527
 
8528
      return true;
8529
    }
8530
 
8531
    @Override
8532
    public int hashCode() {
8533
      return 0;
8534
    }
8535
 
8536
    public int compareTo(getSubstitutedMessage_result other) {
8537
      if (!getClass().equals(other.getClass())) {
8538
        return getClass().getName().compareTo(other.getClass().getName());
8539
      }
8540
 
8541
      int lastComparison = 0;
8542
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
8543
 
3430 rajveer 8544
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8545
      if (lastComparison != 0) {
8546
        return lastComparison;
8547
      }
3430 rajveer 8548
      if (isSetSuccess()) {
8549
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8550
        if (lastComparison != 0) {
8551
          return lastComparison;
8552
        }
352 ashish 8553
      }
3430 rajveer 8554
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8555
      if (lastComparison != 0) {
8556
        return lastComparison;
8557
      }
3430 rajveer 8558
      if (isSetSe()) {
8559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8560
        if (lastComparison != 0) {
8561
          return lastComparison;
8562
        }
352 ashish 8563
      }
8564
      return 0;
8565
    }
8566
 
3430 rajveer 8567
    public _Fields fieldForId(int fieldId) {
8568
      return _Fields.findByThriftId(fieldId);
8569
    }
8570
 
8571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8572
      org.apache.thrift.protocol.TField field;
352 ashish 8573
      iprot.readStructBegin();
8574
      while (true)
8575
      {
8576
        field = iprot.readFieldBegin();
3430 rajveer 8577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8578
          break;
8579
        }
3430 rajveer 8580
        switch (field.id) {
8581
          case 0: // SUCCESS
8582
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8583
              this.success = new Message();
8584
              this.success.read(iprot);
8585
            } else { 
8586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8587
            }
8588
            break;
8589
          case 1: // SE
8590
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8591
              this.se = new HelperServiceException();
8592
              this.se.read(iprot);
8593
            } else { 
8594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8595
            }
8596
            break;
8597
          default:
8598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8599
        }
3430 rajveer 8600
        iprot.readFieldEnd();
352 ashish 8601
      }
8602
      iprot.readStructEnd();
8603
      validate();
8604
    }
8605
 
3430 rajveer 8606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8607
      oprot.writeStructBegin(STRUCT_DESC);
8608
 
8609
      if (this.isSetSuccess()) {
8610
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8611
        this.success.write(oprot);
8612
        oprot.writeFieldEnd();
8613
      } else if (this.isSetSe()) {
8614
        oprot.writeFieldBegin(SE_FIELD_DESC);
8615
        this.se.write(oprot);
8616
        oprot.writeFieldEnd();
8617
      }
8618
      oprot.writeFieldStop();
8619
      oprot.writeStructEnd();
8620
    }
8621
 
8622
    @Override
8623
    public String toString() {
8624
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
8625
      boolean first = true;
8626
 
8627
      sb.append("success:");
8628
      if (this.success == null) {
8629
        sb.append("null");
8630
      } else {
8631
        sb.append(this.success);
8632
      }
8633
      first = false;
8634
      if (!first) sb.append(", ");
8635
      sb.append("se:");
8636
      if (this.se == null) {
8637
        sb.append("null");
8638
      } else {
8639
        sb.append(this.se);
8640
      }
8641
      first = false;
8642
      sb.append(")");
8643
      return sb.toString();
8644
    }
8645
 
3430 rajveer 8646
    public void validate() throws org.apache.thrift.TException {
352 ashish 8647
      // check for required fields
8648
    }
8649
 
3430 rajveer 8650
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8651
      try {
8652
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8653
      } catch (org.apache.thrift.TException te) {
8654
        throw new java.io.IOException(te);
8655
      }
8656
    }
8657
 
8658
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8659
      try {
8660
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8661
      } catch (org.apache.thrift.TException te) {
8662
        throw new java.io.IOException(te);
8663
      }
8664
    }
8665
 
352 ashish 8666
  }
8667
 
3430 rajveer 8668
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
8669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 8670
 
3430 rajveer 8671
    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);
8672
    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);
8673
    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 8674
 
3430 rajveer 8675
    private String username; // required
8676
    private String password; // required
8677
    private long warehouseId; // required
495 rajveer 8678
 
8679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8681
      USERNAME((short)1, "username"),
8682
      PASSWORD((short)2, "password"),
8683
      WAREHOUSE_ID((short)3, "warehouseId");
8684
 
8685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8686
 
8687
      static {
8688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8689
          byName.put(field.getFieldName(), field);
8690
        }
8691
      }
8692
 
8693
      /**
8694
       * Find the _Fields constant that matches fieldId, or null if its not found.
8695
       */
8696
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8697
        switch(fieldId) {
8698
          case 1: // USERNAME
8699
            return USERNAME;
8700
          case 2: // PASSWORD
8701
            return PASSWORD;
8702
          case 3: // WAREHOUSE_ID
8703
            return WAREHOUSE_ID;
8704
          default:
8705
            return null;
8706
        }
495 rajveer 8707
      }
8708
 
8709
      /**
8710
       * Find the _Fields constant that matches fieldId, throwing an exception
8711
       * if it is not found.
8712
       */
8713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8714
        _Fields fields = findByThriftId(fieldId);
8715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8716
        return fields;
8717
      }
8718
 
8719
      /**
8720
       * Find the _Fields constant that matches name, or null if its not found.
8721
       */
8722
      public static _Fields findByName(String name) {
8723
        return byName.get(name);
8724
      }
8725
 
8726
      private final short _thriftId;
8727
      private final String _fieldName;
8728
 
8729
      _Fields(short thriftId, String fieldName) {
8730
        _thriftId = thriftId;
8731
        _fieldName = fieldName;
8732
      }
8733
 
8734
      public short getThriftFieldId() {
8735
        return _thriftId;
8736
      }
8737
 
8738
      public String getFieldName() {
8739
        return _fieldName;
8740
      }
8741
    }
8742
 
8743
    // isset id assignments
8744
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8745
    private BitSet __isset_bit_vector = new BitSet(1);
8746
 
3430 rajveer 8747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8748
    static {
3430 rajveer 8749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8750
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8752
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8753
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8754
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8755
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8756
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8757
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8758
    }
8759
 
8760
    public addUser_args() {
8761
    }
8762
 
8763
    public addUser_args(
8764
      String username,
8765
      String password,
8766
      long warehouseId)
8767
    {
8768
      this();
8769
      this.username = username;
8770
      this.password = password;
8771
      this.warehouseId = warehouseId;
8772
      setWarehouseIdIsSet(true);
8773
    }
8774
 
8775
    /**
8776
     * Performs a deep copy on <i>other</i>.
8777
     */
8778
    public addUser_args(addUser_args other) {
8779
      __isset_bit_vector.clear();
8780
      __isset_bit_vector.or(other.__isset_bit_vector);
8781
      if (other.isSetUsername()) {
8782
        this.username = other.username;
8783
      }
8784
      if (other.isSetPassword()) {
8785
        this.password = other.password;
8786
      }
8787
      this.warehouseId = other.warehouseId;
8788
    }
8789
 
8790
    public addUser_args deepCopy() {
8791
      return new addUser_args(this);
8792
    }
8793
 
3430 rajveer 8794
    @Override
8795
    public void clear() {
8796
      this.username = null;
8797
      this.password = null;
8798
      setWarehouseIdIsSet(false);
8799
      this.warehouseId = 0;
495 rajveer 8800
    }
8801
 
8802
    public String getUsername() {
8803
      return this.username;
8804
    }
8805
 
3430 rajveer 8806
    public void setUsername(String username) {
495 rajveer 8807
      this.username = username;
8808
    }
8809
 
8810
    public void unsetUsername() {
8811
      this.username = null;
8812
    }
8813
 
3430 rajveer 8814
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8815
    public boolean isSetUsername() {
8816
      return this.username != null;
8817
    }
8818
 
8819
    public void setUsernameIsSet(boolean value) {
8820
      if (!value) {
8821
        this.username = null;
8822
      }
8823
    }
8824
 
8825
    public String getPassword() {
8826
      return this.password;
8827
    }
8828
 
3430 rajveer 8829
    public void setPassword(String password) {
495 rajveer 8830
      this.password = password;
8831
    }
8832
 
8833
    public void unsetPassword() {
8834
      this.password = null;
8835
    }
8836
 
3430 rajveer 8837
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8838
    public boolean isSetPassword() {
8839
      return this.password != null;
8840
    }
8841
 
8842
    public void setPasswordIsSet(boolean value) {
8843
      if (!value) {
8844
        this.password = null;
8845
      }
8846
    }
8847
 
8848
    public long getWarehouseId() {
8849
      return this.warehouseId;
8850
    }
8851
 
3430 rajveer 8852
    public void setWarehouseId(long warehouseId) {
495 rajveer 8853
      this.warehouseId = warehouseId;
8854
      setWarehouseIdIsSet(true);
8855
    }
8856
 
8857
    public void unsetWarehouseId() {
8858
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8859
    }
8860
 
3430 rajveer 8861
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8862
    public boolean isSetWarehouseId() {
8863
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8864
    }
8865
 
8866
    public void setWarehouseIdIsSet(boolean value) {
8867
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8868
    }
8869
 
8870
    public void setFieldValue(_Fields field, Object value) {
8871
      switch (field) {
8872
      case USERNAME:
8873
        if (value == null) {
8874
          unsetUsername();
8875
        } else {
8876
          setUsername((String)value);
8877
        }
8878
        break;
8879
 
8880
      case PASSWORD:
8881
        if (value == null) {
8882
          unsetPassword();
8883
        } else {
8884
          setPassword((String)value);
8885
        }
8886
        break;
8887
 
8888
      case WAREHOUSE_ID:
8889
        if (value == null) {
8890
          unsetWarehouseId();
8891
        } else {
8892
          setWarehouseId((Long)value);
8893
        }
8894
        break;
8895
 
8896
      }
8897
    }
8898
 
8899
    public Object getFieldValue(_Fields field) {
8900
      switch (field) {
8901
      case USERNAME:
8902
        return getUsername();
8903
 
8904
      case PASSWORD:
8905
        return getPassword();
8906
 
8907
      case WAREHOUSE_ID:
3430 rajveer 8908
        return Long.valueOf(getWarehouseId());
495 rajveer 8909
 
8910
      }
8911
      throw new IllegalStateException();
8912
    }
8913
 
3430 rajveer 8914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8915
    public boolean isSet(_Fields field) {
8916
      if (field == null) {
8917
        throw new IllegalArgumentException();
8918
      }
495 rajveer 8919
 
8920
      switch (field) {
8921
      case USERNAME:
8922
        return isSetUsername();
8923
      case PASSWORD:
8924
        return isSetPassword();
8925
      case WAREHOUSE_ID:
8926
        return isSetWarehouseId();
8927
      }
8928
      throw new IllegalStateException();
8929
    }
8930
 
8931
    @Override
8932
    public boolean equals(Object that) {
8933
      if (that == null)
8934
        return false;
8935
      if (that instanceof addUser_args)
8936
        return this.equals((addUser_args)that);
8937
      return false;
8938
    }
8939
 
8940
    public boolean equals(addUser_args that) {
8941
      if (that == null)
8942
        return false;
8943
 
8944
      boolean this_present_username = true && this.isSetUsername();
8945
      boolean that_present_username = true && that.isSetUsername();
8946
      if (this_present_username || that_present_username) {
8947
        if (!(this_present_username && that_present_username))
8948
          return false;
8949
        if (!this.username.equals(that.username))
8950
          return false;
8951
      }
8952
 
8953
      boolean this_present_password = true && this.isSetPassword();
8954
      boolean that_present_password = true && that.isSetPassword();
8955
      if (this_present_password || that_present_password) {
8956
        if (!(this_present_password && that_present_password))
8957
          return false;
8958
        if (!this.password.equals(that.password))
8959
          return false;
8960
      }
8961
 
8962
      boolean this_present_warehouseId = true;
8963
      boolean that_present_warehouseId = true;
8964
      if (this_present_warehouseId || that_present_warehouseId) {
8965
        if (!(this_present_warehouseId && that_present_warehouseId))
8966
          return false;
8967
        if (this.warehouseId != that.warehouseId)
8968
          return false;
8969
      }
8970
 
8971
      return true;
8972
    }
8973
 
8974
    @Override
8975
    public int hashCode() {
8976
      return 0;
8977
    }
8978
 
8979
    public int compareTo(addUser_args other) {
8980
      if (!getClass().equals(other.getClass())) {
8981
        return getClass().getName().compareTo(other.getClass().getName());
8982
      }
8983
 
8984
      int lastComparison = 0;
8985
      addUser_args typedOther = (addUser_args)other;
8986
 
3430 rajveer 8987
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8988
      if (lastComparison != 0) {
8989
        return lastComparison;
8990
      }
3430 rajveer 8991
      if (isSetUsername()) {
8992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8993
        if (lastComparison != 0) {
8994
          return lastComparison;
8995
        }
495 rajveer 8996
      }
3430 rajveer 8997
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 8998
      if (lastComparison != 0) {
8999
        return lastComparison;
9000
      }
3430 rajveer 9001
      if (isSetPassword()) {
9002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9003
        if (lastComparison != 0) {
9004
          return lastComparison;
9005
        }
495 rajveer 9006
      }
3430 rajveer 9007
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9008
      if (lastComparison != 0) {
9009
        return lastComparison;
9010
      }
3430 rajveer 9011
      if (isSetWarehouseId()) {
9012
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9013
        if (lastComparison != 0) {
9014
          return lastComparison;
9015
        }
495 rajveer 9016
      }
9017
      return 0;
9018
    }
9019
 
3430 rajveer 9020
    public _Fields fieldForId(int fieldId) {
9021
      return _Fields.findByThriftId(fieldId);
9022
    }
9023
 
9024
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9025
      org.apache.thrift.protocol.TField field;
495 rajveer 9026
      iprot.readStructBegin();
9027
      while (true)
9028
      {
9029
        field = iprot.readFieldBegin();
3430 rajveer 9030
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9031
          break;
9032
        }
3430 rajveer 9033
        switch (field.id) {
9034
          case 1: // USERNAME
9035
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9036
              this.username = iprot.readString();
9037
            } else { 
9038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9039
            }
9040
            break;
9041
          case 2: // PASSWORD
9042
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9043
              this.password = iprot.readString();
9044
            } else { 
9045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9046
            }
9047
            break;
9048
          case 3: // WAREHOUSE_ID
9049
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9050
              this.warehouseId = iprot.readI64();
9051
              setWarehouseIdIsSet(true);
9052
            } else { 
9053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9054
            }
9055
            break;
9056
          default:
9057
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9058
        }
3430 rajveer 9059
        iprot.readFieldEnd();
495 rajveer 9060
      }
9061
      iprot.readStructEnd();
9062
      validate();
9063
    }
9064
 
3430 rajveer 9065
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9066
      validate();
9067
 
9068
      oprot.writeStructBegin(STRUCT_DESC);
9069
      if (this.username != null) {
9070
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9071
        oprot.writeString(this.username);
9072
        oprot.writeFieldEnd();
9073
      }
9074
      if (this.password != null) {
9075
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9076
        oprot.writeString(this.password);
9077
        oprot.writeFieldEnd();
9078
      }
9079
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9080
      oprot.writeI64(this.warehouseId);
9081
      oprot.writeFieldEnd();
9082
      oprot.writeFieldStop();
9083
      oprot.writeStructEnd();
9084
    }
9085
 
9086
    @Override
9087
    public String toString() {
9088
      StringBuilder sb = new StringBuilder("addUser_args(");
9089
      boolean first = true;
9090
 
9091
      sb.append("username:");
9092
      if (this.username == null) {
9093
        sb.append("null");
9094
      } else {
9095
        sb.append(this.username);
9096
      }
9097
      first = false;
9098
      if (!first) sb.append(", ");
9099
      sb.append("password:");
9100
      if (this.password == null) {
9101
        sb.append("null");
9102
      } else {
9103
        sb.append(this.password);
9104
      }
9105
      first = false;
9106
      if (!first) sb.append(", ");
9107
      sb.append("warehouseId:");
9108
      sb.append(this.warehouseId);
9109
      first = false;
9110
      sb.append(")");
9111
      return sb.toString();
9112
    }
9113
 
3430 rajveer 9114
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9115
      // check for required fields
9116
    }
9117
 
3430 rajveer 9118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9119
      try {
9120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9121
      } catch (org.apache.thrift.TException te) {
9122
        throw new java.io.IOException(te);
9123
      }
9124
    }
9125
 
9126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9127
      try {
9128
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9129
        __isset_bit_vector = new BitSet(1);
9130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9131
      } catch (org.apache.thrift.TException te) {
9132
        throw new java.io.IOException(te);
9133
      }
9134
    }
9135
 
495 rajveer 9136
  }
9137
 
3430 rajveer 9138
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9140
 
3430 rajveer 9141
    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);
9142
    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 9143
 
3430 rajveer 9144
    private boolean success; // required
9145
    private HelperServiceException se; // required
495 rajveer 9146
 
9147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9149
      SUCCESS((short)0, "success"),
9150
      SE((short)1, "se");
9151
 
9152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9153
 
9154
      static {
9155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9156
          byName.put(field.getFieldName(), field);
9157
        }
9158
      }
9159
 
9160
      /**
9161
       * Find the _Fields constant that matches fieldId, or null if its not found.
9162
       */
9163
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9164
        switch(fieldId) {
9165
          case 0: // SUCCESS
9166
            return SUCCESS;
9167
          case 1: // SE
9168
            return SE;
9169
          default:
9170
            return null;
9171
        }
495 rajveer 9172
      }
9173
 
9174
      /**
9175
       * Find the _Fields constant that matches fieldId, throwing an exception
9176
       * if it is not found.
9177
       */
9178
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9179
        _Fields fields = findByThriftId(fieldId);
9180
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9181
        return fields;
9182
      }
9183
 
9184
      /**
9185
       * Find the _Fields constant that matches name, or null if its not found.
9186
       */
9187
      public static _Fields findByName(String name) {
9188
        return byName.get(name);
9189
      }
9190
 
9191
      private final short _thriftId;
9192
      private final String _fieldName;
9193
 
9194
      _Fields(short thriftId, String fieldName) {
9195
        _thriftId = thriftId;
9196
        _fieldName = fieldName;
9197
      }
9198
 
9199
      public short getThriftFieldId() {
9200
        return _thriftId;
9201
      }
9202
 
9203
      public String getFieldName() {
9204
        return _fieldName;
9205
      }
9206
    }
9207
 
9208
    // isset id assignments
9209
    private static final int __SUCCESS_ISSET_ID = 0;
9210
    private BitSet __isset_bit_vector = new BitSet(1);
9211
 
3430 rajveer 9212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9213
    static {
3430 rajveer 9214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9215
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9217
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9221
    }
9222
 
9223
    public addUser_result() {
9224
    }
9225
 
9226
    public addUser_result(
9227
      boolean success,
9228
      HelperServiceException se)
9229
    {
9230
      this();
9231
      this.success = success;
9232
      setSuccessIsSet(true);
9233
      this.se = se;
9234
    }
9235
 
9236
    /**
9237
     * Performs a deep copy on <i>other</i>.
9238
     */
9239
    public addUser_result(addUser_result other) {
9240
      __isset_bit_vector.clear();
9241
      __isset_bit_vector.or(other.__isset_bit_vector);
9242
      this.success = other.success;
9243
      if (other.isSetSe()) {
9244
        this.se = new HelperServiceException(other.se);
9245
      }
9246
    }
9247
 
9248
    public addUser_result deepCopy() {
9249
      return new addUser_result(this);
9250
    }
9251
 
3430 rajveer 9252
    @Override
9253
    public void clear() {
9254
      setSuccessIsSet(false);
9255
      this.success = false;
9256
      this.se = null;
495 rajveer 9257
    }
9258
 
9259
    public boolean isSuccess() {
9260
      return this.success;
9261
    }
9262
 
3430 rajveer 9263
    public void setSuccess(boolean success) {
495 rajveer 9264
      this.success = success;
9265
      setSuccessIsSet(true);
9266
    }
9267
 
9268
    public void unsetSuccess() {
9269
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9270
    }
9271
 
3430 rajveer 9272
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9273
    public boolean isSetSuccess() {
9274
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9275
    }
9276
 
9277
    public void setSuccessIsSet(boolean value) {
9278
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9279
    }
9280
 
9281
    public HelperServiceException getSe() {
9282
      return this.se;
9283
    }
9284
 
3430 rajveer 9285
    public void setSe(HelperServiceException se) {
495 rajveer 9286
      this.se = se;
9287
    }
9288
 
9289
    public void unsetSe() {
9290
      this.se = null;
9291
    }
9292
 
3430 rajveer 9293
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9294
    public boolean isSetSe() {
9295
      return this.se != null;
9296
    }
9297
 
9298
    public void setSeIsSet(boolean value) {
9299
      if (!value) {
9300
        this.se = null;
9301
      }
9302
    }
9303
 
9304
    public void setFieldValue(_Fields field, Object value) {
9305
      switch (field) {
9306
      case SUCCESS:
9307
        if (value == null) {
9308
          unsetSuccess();
9309
        } else {
9310
          setSuccess((Boolean)value);
9311
        }
9312
        break;
9313
 
9314
      case SE:
9315
        if (value == null) {
9316
          unsetSe();
9317
        } else {
9318
          setSe((HelperServiceException)value);
9319
        }
9320
        break;
9321
 
9322
      }
9323
    }
9324
 
9325
    public Object getFieldValue(_Fields field) {
9326
      switch (field) {
9327
      case SUCCESS:
3430 rajveer 9328
        return Boolean.valueOf(isSuccess());
495 rajveer 9329
 
9330
      case SE:
9331
        return getSe();
9332
 
9333
      }
9334
      throw new IllegalStateException();
9335
    }
9336
 
3430 rajveer 9337
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9338
    public boolean isSet(_Fields field) {
9339
      if (field == null) {
9340
        throw new IllegalArgumentException();
9341
      }
495 rajveer 9342
 
9343
      switch (field) {
9344
      case SUCCESS:
9345
        return isSetSuccess();
9346
      case SE:
9347
        return isSetSe();
9348
      }
9349
      throw new IllegalStateException();
9350
    }
9351
 
9352
    @Override
9353
    public boolean equals(Object that) {
9354
      if (that == null)
9355
        return false;
9356
      if (that instanceof addUser_result)
9357
        return this.equals((addUser_result)that);
9358
      return false;
9359
    }
9360
 
9361
    public boolean equals(addUser_result that) {
9362
      if (that == null)
9363
        return false;
9364
 
9365
      boolean this_present_success = true;
9366
      boolean that_present_success = true;
9367
      if (this_present_success || that_present_success) {
9368
        if (!(this_present_success && that_present_success))
9369
          return false;
9370
        if (this.success != that.success)
9371
          return false;
9372
      }
9373
 
9374
      boolean this_present_se = true && this.isSetSe();
9375
      boolean that_present_se = true && that.isSetSe();
9376
      if (this_present_se || that_present_se) {
9377
        if (!(this_present_se && that_present_se))
9378
          return false;
9379
        if (!this.se.equals(that.se))
9380
          return false;
9381
      }
9382
 
9383
      return true;
9384
    }
9385
 
9386
    @Override
9387
    public int hashCode() {
9388
      return 0;
9389
    }
9390
 
9391
    public int compareTo(addUser_result other) {
9392
      if (!getClass().equals(other.getClass())) {
9393
        return getClass().getName().compareTo(other.getClass().getName());
9394
      }
9395
 
9396
      int lastComparison = 0;
9397
      addUser_result typedOther = (addUser_result)other;
9398
 
3430 rajveer 9399
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9400
      if (lastComparison != 0) {
9401
        return lastComparison;
9402
      }
3430 rajveer 9403
      if (isSetSuccess()) {
9404
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9405
        if (lastComparison != 0) {
9406
          return lastComparison;
9407
        }
495 rajveer 9408
      }
3430 rajveer 9409
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9410
      if (lastComparison != 0) {
9411
        return lastComparison;
9412
      }
3430 rajveer 9413
      if (isSetSe()) {
9414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9415
        if (lastComparison != 0) {
9416
          return lastComparison;
9417
        }
495 rajveer 9418
      }
9419
      return 0;
9420
    }
9421
 
3430 rajveer 9422
    public _Fields fieldForId(int fieldId) {
9423
      return _Fields.findByThriftId(fieldId);
9424
    }
9425
 
9426
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9427
      org.apache.thrift.protocol.TField field;
495 rajveer 9428
      iprot.readStructBegin();
9429
      while (true)
9430
      {
9431
        field = iprot.readFieldBegin();
3430 rajveer 9432
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9433
          break;
9434
        }
3430 rajveer 9435
        switch (field.id) {
9436
          case 0: // SUCCESS
9437
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9438
              this.success = iprot.readBool();
9439
              setSuccessIsSet(true);
9440
            } else { 
9441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9442
            }
9443
            break;
9444
          case 1: // SE
9445
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9446
              this.se = new HelperServiceException();
9447
              this.se.read(iprot);
9448
            } else { 
9449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9450
            }
9451
            break;
9452
          default:
9453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9454
        }
3430 rajveer 9455
        iprot.readFieldEnd();
495 rajveer 9456
      }
9457
      iprot.readStructEnd();
9458
      validate();
9459
    }
9460
 
3430 rajveer 9461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9462
      oprot.writeStructBegin(STRUCT_DESC);
9463
 
9464
      if (this.isSetSuccess()) {
9465
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9466
        oprot.writeBool(this.success);
9467
        oprot.writeFieldEnd();
9468
      } else if (this.isSetSe()) {
9469
        oprot.writeFieldBegin(SE_FIELD_DESC);
9470
        this.se.write(oprot);
9471
        oprot.writeFieldEnd();
9472
      }
9473
      oprot.writeFieldStop();
9474
      oprot.writeStructEnd();
9475
    }
9476
 
9477
    @Override
9478
    public String toString() {
9479
      StringBuilder sb = new StringBuilder("addUser_result(");
9480
      boolean first = true;
9481
 
9482
      sb.append("success:");
9483
      sb.append(this.success);
9484
      first = false;
9485
      if (!first) sb.append(", ");
9486
      sb.append("se:");
9487
      if (this.se == null) {
9488
        sb.append("null");
9489
      } else {
9490
        sb.append(this.se);
9491
      }
9492
      first = false;
9493
      sb.append(")");
9494
      return sb.toString();
9495
    }
9496
 
3430 rajveer 9497
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9498
      // check for required fields
9499
    }
9500
 
3430 rajveer 9501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9502
      try {
9503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9504
      } catch (org.apache.thrift.TException te) {
9505
        throw new java.io.IOException(te);
9506
      }
9507
    }
9508
 
9509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9510
      try {
9511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9512
      } catch (org.apache.thrift.TException te) {
9513
        throw new java.io.IOException(te);
9514
      }
9515
    }
9516
 
495 rajveer 9517
  }
9518
 
3430 rajveer 9519
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9521
 
3430 rajveer 9522
    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 9523
 
3430 rajveer 9524
    private String username; // required
495 rajveer 9525
 
9526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9528
      USERNAME((short)1, "username");
9529
 
9530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9531
 
9532
      static {
9533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9534
          byName.put(field.getFieldName(), field);
9535
        }
9536
      }
9537
 
9538
      /**
9539
       * Find the _Fields constant that matches fieldId, or null if its not found.
9540
       */
9541
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9542
        switch(fieldId) {
9543
          case 1: // USERNAME
9544
            return USERNAME;
9545
          default:
9546
            return null;
9547
        }
495 rajveer 9548
      }
9549
 
9550
      /**
9551
       * Find the _Fields constant that matches fieldId, throwing an exception
9552
       * if it is not found.
9553
       */
9554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9555
        _Fields fields = findByThriftId(fieldId);
9556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9557
        return fields;
9558
      }
9559
 
9560
      /**
9561
       * Find the _Fields constant that matches name, or null if its not found.
9562
       */
9563
      public static _Fields findByName(String name) {
9564
        return byName.get(name);
9565
      }
9566
 
9567
      private final short _thriftId;
9568
      private final String _fieldName;
9569
 
9570
      _Fields(short thriftId, String fieldName) {
9571
        _thriftId = thriftId;
9572
        _fieldName = fieldName;
9573
      }
9574
 
9575
      public short getThriftFieldId() {
9576
        return _thriftId;
9577
      }
9578
 
9579
      public String getFieldName() {
9580
        return _fieldName;
9581
      }
9582
    }
9583
 
9584
    // isset id assignments
9585
 
3430 rajveer 9586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9587
    static {
3430 rajveer 9588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9589
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 9593
    }
9594
 
9595
    public deleteUser_args() {
9596
    }
9597
 
9598
    public deleteUser_args(
9599
      String username)
9600
    {
9601
      this();
9602
      this.username = username;
9603
    }
9604
 
9605
    /**
9606
     * Performs a deep copy on <i>other</i>.
9607
     */
9608
    public deleteUser_args(deleteUser_args other) {
9609
      if (other.isSetUsername()) {
9610
        this.username = other.username;
9611
      }
9612
    }
9613
 
9614
    public deleteUser_args deepCopy() {
9615
      return new deleteUser_args(this);
9616
    }
9617
 
3430 rajveer 9618
    @Override
9619
    public void clear() {
9620
      this.username = null;
495 rajveer 9621
    }
9622
 
9623
    public String getUsername() {
9624
      return this.username;
9625
    }
9626
 
3430 rajveer 9627
    public void setUsername(String username) {
495 rajveer 9628
      this.username = username;
9629
    }
9630
 
9631
    public void unsetUsername() {
9632
      this.username = null;
9633
    }
9634
 
3430 rajveer 9635
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9636
    public boolean isSetUsername() {
9637
      return this.username != null;
9638
    }
9639
 
9640
    public void setUsernameIsSet(boolean value) {
9641
      if (!value) {
9642
        this.username = null;
9643
      }
9644
    }
9645
 
9646
    public void setFieldValue(_Fields field, Object value) {
9647
      switch (field) {
9648
      case USERNAME:
9649
        if (value == null) {
9650
          unsetUsername();
9651
        } else {
9652
          setUsername((String)value);
9653
        }
9654
        break;
9655
 
9656
      }
9657
    }
9658
 
9659
    public Object getFieldValue(_Fields field) {
9660
      switch (field) {
9661
      case USERNAME:
9662
        return getUsername();
9663
 
9664
      }
9665
      throw new IllegalStateException();
9666
    }
9667
 
3430 rajveer 9668
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9669
    public boolean isSet(_Fields field) {
9670
      if (field == null) {
9671
        throw new IllegalArgumentException();
9672
      }
495 rajveer 9673
 
9674
      switch (field) {
9675
      case USERNAME:
9676
        return isSetUsername();
9677
      }
9678
      throw new IllegalStateException();
9679
    }
9680
 
9681
    @Override
9682
    public boolean equals(Object that) {
9683
      if (that == null)
9684
        return false;
9685
      if (that instanceof deleteUser_args)
9686
        return this.equals((deleteUser_args)that);
9687
      return false;
9688
    }
9689
 
9690
    public boolean equals(deleteUser_args that) {
9691
      if (that == null)
9692
        return false;
9693
 
9694
      boolean this_present_username = true && this.isSetUsername();
9695
      boolean that_present_username = true && that.isSetUsername();
9696
      if (this_present_username || that_present_username) {
9697
        if (!(this_present_username && that_present_username))
9698
          return false;
9699
        if (!this.username.equals(that.username))
9700
          return false;
9701
      }
9702
 
9703
      return true;
9704
    }
9705
 
9706
    @Override
9707
    public int hashCode() {
9708
      return 0;
9709
    }
9710
 
9711
    public int compareTo(deleteUser_args other) {
9712
      if (!getClass().equals(other.getClass())) {
9713
        return getClass().getName().compareTo(other.getClass().getName());
9714
      }
9715
 
9716
      int lastComparison = 0;
9717
      deleteUser_args typedOther = (deleteUser_args)other;
9718
 
3430 rajveer 9719
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9720
      if (lastComparison != 0) {
9721
        return lastComparison;
9722
      }
3430 rajveer 9723
      if (isSetUsername()) {
9724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9725
        if (lastComparison != 0) {
9726
          return lastComparison;
9727
        }
495 rajveer 9728
      }
9729
      return 0;
9730
    }
9731
 
3430 rajveer 9732
    public _Fields fieldForId(int fieldId) {
9733
      return _Fields.findByThriftId(fieldId);
9734
    }
9735
 
9736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9737
      org.apache.thrift.protocol.TField field;
495 rajveer 9738
      iprot.readStructBegin();
9739
      while (true)
9740
      {
9741
        field = iprot.readFieldBegin();
3430 rajveer 9742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9743
          break;
9744
        }
3430 rajveer 9745
        switch (field.id) {
9746
          case 1: // USERNAME
9747
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9748
              this.username = iprot.readString();
9749
            } else { 
9750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9751
            }
9752
            break;
9753
          default:
9754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9755
        }
3430 rajveer 9756
        iprot.readFieldEnd();
495 rajveer 9757
      }
9758
      iprot.readStructEnd();
9759
      validate();
9760
    }
9761
 
3430 rajveer 9762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9763
      validate();
9764
 
9765
      oprot.writeStructBegin(STRUCT_DESC);
9766
      if (this.username != null) {
9767
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9768
        oprot.writeString(this.username);
9769
        oprot.writeFieldEnd();
9770
      }
9771
      oprot.writeFieldStop();
9772
      oprot.writeStructEnd();
9773
    }
9774
 
9775
    @Override
9776
    public String toString() {
9777
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9778
      boolean first = true;
9779
 
9780
      sb.append("username:");
9781
      if (this.username == null) {
9782
        sb.append("null");
9783
      } else {
9784
        sb.append(this.username);
9785
      }
9786
      first = false;
9787
      sb.append(")");
9788
      return sb.toString();
9789
    }
9790
 
3430 rajveer 9791
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9792
      // check for required fields
9793
    }
9794
 
3430 rajveer 9795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9796
      try {
9797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9798
      } catch (org.apache.thrift.TException te) {
9799
        throw new java.io.IOException(te);
9800
      }
9801
    }
9802
 
9803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9804
      try {
9805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9806
      } catch (org.apache.thrift.TException te) {
9807
        throw new java.io.IOException(te);
9808
      }
9809
    }
9810
 
495 rajveer 9811
  }
9812
 
3430 rajveer 9813
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9815
 
3430 rajveer 9816
    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);
9817
    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 9818
 
3430 rajveer 9819
    private boolean success; // required
9820
    private HelperServiceException se; // required
495 rajveer 9821
 
9822
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9823
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9824
      SUCCESS((short)0, "success"),
9825
      SE((short)1, "se");
9826
 
9827
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9828
 
9829
      static {
9830
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9831
          byName.put(field.getFieldName(), field);
9832
        }
9833
      }
9834
 
9835
      /**
9836
       * Find the _Fields constant that matches fieldId, or null if its not found.
9837
       */
9838
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9839
        switch(fieldId) {
9840
          case 0: // SUCCESS
9841
            return SUCCESS;
9842
          case 1: // SE
9843
            return SE;
9844
          default:
9845
            return null;
9846
        }
495 rajveer 9847
      }
9848
 
9849
      /**
9850
       * Find the _Fields constant that matches fieldId, throwing an exception
9851
       * if it is not found.
9852
       */
9853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9854
        _Fields fields = findByThriftId(fieldId);
9855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9856
        return fields;
9857
      }
9858
 
9859
      /**
9860
       * Find the _Fields constant that matches name, or null if its not found.
9861
       */
9862
      public static _Fields findByName(String name) {
9863
        return byName.get(name);
9864
      }
9865
 
9866
      private final short _thriftId;
9867
      private final String _fieldName;
9868
 
9869
      _Fields(short thriftId, String fieldName) {
9870
        _thriftId = thriftId;
9871
        _fieldName = fieldName;
9872
      }
9873
 
9874
      public short getThriftFieldId() {
9875
        return _thriftId;
9876
      }
9877
 
9878
      public String getFieldName() {
9879
        return _fieldName;
9880
      }
9881
    }
9882
 
9883
    // isset id assignments
9884
    private static final int __SUCCESS_ISSET_ID = 0;
9885
    private BitSet __isset_bit_vector = new BitSet(1);
9886
 
3430 rajveer 9887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9888
    static {
3430 rajveer 9889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9890
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9892
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9896
    }
9897
 
9898
    public deleteUser_result() {
9899
    }
9900
 
9901
    public deleteUser_result(
9902
      boolean success,
9903
      HelperServiceException se)
9904
    {
9905
      this();
9906
      this.success = success;
9907
      setSuccessIsSet(true);
9908
      this.se = se;
9909
    }
9910
 
9911
    /**
9912
     * Performs a deep copy on <i>other</i>.
9913
     */
9914
    public deleteUser_result(deleteUser_result other) {
9915
      __isset_bit_vector.clear();
9916
      __isset_bit_vector.or(other.__isset_bit_vector);
9917
      this.success = other.success;
9918
      if (other.isSetSe()) {
9919
        this.se = new HelperServiceException(other.se);
9920
      }
9921
    }
9922
 
9923
    public deleteUser_result deepCopy() {
9924
      return new deleteUser_result(this);
9925
    }
9926
 
3430 rajveer 9927
    @Override
9928
    public void clear() {
9929
      setSuccessIsSet(false);
9930
      this.success = false;
9931
      this.se = null;
495 rajveer 9932
    }
9933
 
9934
    public boolean isSuccess() {
9935
      return this.success;
9936
    }
9937
 
3430 rajveer 9938
    public void setSuccess(boolean success) {
495 rajveer 9939
      this.success = success;
9940
      setSuccessIsSet(true);
9941
    }
9942
 
9943
    public void unsetSuccess() {
9944
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9945
    }
9946
 
3430 rajveer 9947
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9948
    public boolean isSetSuccess() {
9949
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9950
    }
9951
 
9952
    public void setSuccessIsSet(boolean value) {
9953
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9954
    }
9955
 
9956
    public HelperServiceException getSe() {
9957
      return this.se;
9958
    }
9959
 
3430 rajveer 9960
    public void setSe(HelperServiceException se) {
495 rajveer 9961
      this.se = se;
9962
    }
9963
 
9964
    public void unsetSe() {
9965
      this.se = null;
9966
    }
9967
 
3430 rajveer 9968
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9969
    public boolean isSetSe() {
9970
      return this.se != null;
9971
    }
9972
 
9973
    public void setSeIsSet(boolean value) {
9974
      if (!value) {
9975
        this.se = null;
9976
      }
9977
    }
9978
 
9979
    public void setFieldValue(_Fields field, Object value) {
9980
      switch (field) {
9981
      case SUCCESS:
9982
        if (value == null) {
9983
          unsetSuccess();
9984
        } else {
9985
          setSuccess((Boolean)value);
9986
        }
9987
        break;
9988
 
9989
      case SE:
9990
        if (value == null) {
9991
          unsetSe();
9992
        } else {
9993
          setSe((HelperServiceException)value);
9994
        }
9995
        break;
9996
 
9997
      }
9998
    }
9999
 
10000
    public Object getFieldValue(_Fields field) {
10001
      switch (field) {
10002
      case SUCCESS:
3430 rajveer 10003
        return Boolean.valueOf(isSuccess());
495 rajveer 10004
 
10005
      case SE:
10006
        return getSe();
10007
 
10008
      }
10009
      throw new IllegalStateException();
10010
    }
10011
 
3430 rajveer 10012
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10013
    public boolean isSet(_Fields field) {
10014
      if (field == null) {
10015
        throw new IllegalArgumentException();
10016
      }
495 rajveer 10017
 
10018
      switch (field) {
10019
      case SUCCESS:
10020
        return isSetSuccess();
10021
      case SE:
10022
        return isSetSe();
10023
      }
10024
      throw new IllegalStateException();
10025
    }
10026
 
10027
    @Override
10028
    public boolean equals(Object that) {
10029
      if (that == null)
10030
        return false;
10031
      if (that instanceof deleteUser_result)
10032
        return this.equals((deleteUser_result)that);
10033
      return false;
10034
    }
10035
 
10036
    public boolean equals(deleteUser_result that) {
10037
      if (that == null)
10038
        return false;
10039
 
10040
      boolean this_present_success = true;
10041
      boolean that_present_success = true;
10042
      if (this_present_success || that_present_success) {
10043
        if (!(this_present_success && that_present_success))
10044
          return false;
10045
        if (this.success != that.success)
10046
          return false;
10047
      }
10048
 
10049
      boolean this_present_se = true && this.isSetSe();
10050
      boolean that_present_se = true && that.isSetSe();
10051
      if (this_present_se || that_present_se) {
10052
        if (!(this_present_se && that_present_se))
10053
          return false;
10054
        if (!this.se.equals(that.se))
10055
          return false;
10056
      }
10057
 
10058
      return true;
10059
    }
10060
 
10061
    @Override
10062
    public int hashCode() {
10063
      return 0;
10064
    }
10065
 
10066
    public int compareTo(deleteUser_result other) {
10067
      if (!getClass().equals(other.getClass())) {
10068
        return getClass().getName().compareTo(other.getClass().getName());
10069
      }
10070
 
10071
      int lastComparison = 0;
10072
      deleteUser_result typedOther = (deleteUser_result)other;
10073
 
3430 rajveer 10074
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10075
      if (lastComparison != 0) {
10076
        return lastComparison;
10077
      }
3430 rajveer 10078
      if (isSetSuccess()) {
10079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10080
        if (lastComparison != 0) {
10081
          return lastComparison;
10082
        }
495 rajveer 10083
      }
3430 rajveer 10084
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10085
      if (lastComparison != 0) {
10086
        return lastComparison;
10087
      }
3430 rajveer 10088
      if (isSetSe()) {
10089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10090
        if (lastComparison != 0) {
10091
          return lastComparison;
10092
        }
495 rajveer 10093
      }
10094
      return 0;
10095
    }
10096
 
3430 rajveer 10097
    public _Fields fieldForId(int fieldId) {
10098
      return _Fields.findByThriftId(fieldId);
10099
    }
10100
 
10101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10102
      org.apache.thrift.protocol.TField field;
495 rajveer 10103
      iprot.readStructBegin();
10104
      while (true)
10105
      {
10106
        field = iprot.readFieldBegin();
3430 rajveer 10107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10108
          break;
10109
        }
3430 rajveer 10110
        switch (field.id) {
10111
          case 0: // SUCCESS
10112
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10113
              this.success = iprot.readBool();
10114
              setSuccessIsSet(true);
10115
            } else { 
10116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10117
            }
10118
            break;
10119
          case 1: // SE
10120
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10121
              this.se = new HelperServiceException();
10122
              this.se.read(iprot);
10123
            } else { 
10124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10125
            }
10126
            break;
10127
          default:
10128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10129
        }
3430 rajveer 10130
        iprot.readFieldEnd();
495 rajveer 10131
      }
10132
      iprot.readStructEnd();
10133
      validate();
10134
    }
10135
 
3430 rajveer 10136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10137
      oprot.writeStructBegin(STRUCT_DESC);
10138
 
10139
      if (this.isSetSuccess()) {
10140
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10141
        oprot.writeBool(this.success);
10142
        oprot.writeFieldEnd();
10143
      } else if (this.isSetSe()) {
10144
        oprot.writeFieldBegin(SE_FIELD_DESC);
10145
        this.se.write(oprot);
10146
        oprot.writeFieldEnd();
10147
      }
10148
      oprot.writeFieldStop();
10149
      oprot.writeStructEnd();
10150
    }
10151
 
10152
    @Override
10153
    public String toString() {
10154
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10155
      boolean first = true;
10156
 
10157
      sb.append("success:");
10158
      sb.append(this.success);
10159
      first = false;
10160
      if (!first) sb.append(", ");
10161
      sb.append("se:");
10162
      if (this.se == null) {
10163
        sb.append("null");
10164
      } else {
10165
        sb.append(this.se);
10166
      }
10167
      first = false;
10168
      sb.append(")");
10169
      return sb.toString();
10170
    }
10171
 
3430 rajveer 10172
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10173
      // check for required fields
10174
    }
10175
 
3430 rajveer 10176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10177
      try {
10178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10179
      } catch (org.apache.thrift.TException te) {
10180
        throw new java.io.IOException(te);
10181
      }
10182
    }
10183
 
10184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10185
      try {
10186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10187
      } catch (org.apache.thrift.TException te) {
10188
        throw new java.io.IOException(te);
10189
      }
10190
    }
10191
 
495 rajveer 10192
  }
10193
 
3430 rajveer 10194
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10196
 
3430 rajveer 10197
    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);
10198
    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 10199
 
3430 rajveer 10200
    private String username; // required
10201
    private String password; // required
495 rajveer 10202
 
10203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10205
      USERNAME((short)1, "username"),
10206
      PASSWORD((short)2, "password");
10207
 
10208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10209
 
10210
      static {
10211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10212
          byName.put(field.getFieldName(), field);
10213
        }
10214
      }
10215
 
10216
      /**
10217
       * Find the _Fields constant that matches fieldId, or null if its not found.
10218
       */
10219
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10220
        switch(fieldId) {
10221
          case 1: // USERNAME
10222
            return USERNAME;
10223
          case 2: // PASSWORD
10224
            return PASSWORD;
10225
          default:
10226
            return null;
10227
        }
495 rajveer 10228
      }
10229
 
10230
      /**
10231
       * Find the _Fields constant that matches fieldId, throwing an exception
10232
       * if it is not found.
10233
       */
10234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10235
        _Fields fields = findByThriftId(fieldId);
10236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10237
        return fields;
10238
      }
10239
 
10240
      /**
10241
       * Find the _Fields constant that matches name, or null if its not found.
10242
       */
10243
      public static _Fields findByName(String name) {
10244
        return byName.get(name);
10245
      }
10246
 
10247
      private final short _thriftId;
10248
      private final String _fieldName;
10249
 
10250
      _Fields(short thriftId, String fieldName) {
10251
        _thriftId = thriftId;
10252
        _fieldName = fieldName;
10253
      }
10254
 
10255
      public short getThriftFieldId() {
10256
        return _thriftId;
10257
      }
10258
 
10259
      public String getFieldName() {
10260
        return _fieldName;
10261
      }
10262
    }
10263
 
10264
    // isset id assignments
10265
 
3430 rajveer 10266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10267
    static {
3430 rajveer 10268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10269
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10270
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10271
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10273
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10274
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10275
    }
10276
 
2443 chandransh 10277
    public authenticateDashboardUser_args() {
495 rajveer 10278
    }
10279
 
2443 chandransh 10280
    public authenticateDashboardUser_args(
495 rajveer 10281
      String username,
10282
      String password)
10283
    {
10284
      this();
10285
      this.username = username;
10286
      this.password = password;
10287
    }
10288
 
10289
    /**
10290
     * Performs a deep copy on <i>other</i>.
10291
     */
2443 chandransh 10292
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10293
      if (other.isSetUsername()) {
10294
        this.username = other.username;
10295
      }
10296
      if (other.isSetPassword()) {
10297
        this.password = other.password;
10298
      }
10299
    }
10300
 
2443 chandransh 10301
    public authenticateDashboardUser_args deepCopy() {
10302
      return new authenticateDashboardUser_args(this);
495 rajveer 10303
    }
10304
 
3430 rajveer 10305
    @Override
10306
    public void clear() {
10307
      this.username = null;
10308
      this.password = null;
495 rajveer 10309
    }
10310
 
10311
    public String getUsername() {
10312
      return this.username;
10313
    }
10314
 
3430 rajveer 10315
    public void setUsername(String username) {
495 rajveer 10316
      this.username = username;
10317
    }
10318
 
10319
    public void unsetUsername() {
10320
      this.username = null;
10321
    }
10322
 
3430 rajveer 10323
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10324
    public boolean isSetUsername() {
10325
      return this.username != null;
10326
    }
10327
 
10328
    public void setUsernameIsSet(boolean value) {
10329
      if (!value) {
10330
        this.username = null;
10331
      }
10332
    }
10333
 
10334
    public String getPassword() {
10335
      return this.password;
10336
    }
10337
 
3430 rajveer 10338
    public void setPassword(String password) {
495 rajveer 10339
      this.password = password;
10340
    }
10341
 
10342
    public void unsetPassword() {
10343
      this.password = null;
10344
    }
10345
 
3430 rajveer 10346
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10347
    public boolean isSetPassword() {
10348
      return this.password != null;
10349
    }
10350
 
10351
    public void setPasswordIsSet(boolean value) {
10352
      if (!value) {
10353
        this.password = null;
10354
      }
10355
    }
10356
 
10357
    public void setFieldValue(_Fields field, Object value) {
10358
      switch (field) {
10359
      case USERNAME:
10360
        if (value == null) {
10361
          unsetUsername();
10362
        } else {
10363
          setUsername((String)value);
10364
        }
10365
        break;
10366
 
10367
      case PASSWORD:
10368
        if (value == null) {
10369
          unsetPassword();
10370
        } else {
10371
          setPassword((String)value);
10372
        }
10373
        break;
10374
 
10375
      }
10376
    }
10377
 
10378
    public Object getFieldValue(_Fields field) {
10379
      switch (field) {
10380
      case USERNAME:
10381
        return getUsername();
10382
 
10383
      case PASSWORD:
10384
        return getPassword();
10385
 
10386
      }
10387
      throw new IllegalStateException();
10388
    }
10389
 
3430 rajveer 10390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10391
    public boolean isSet(_Fields field) {
10392
      if (field == null) {
10393
        throw new IllegalArgumentException();
10394
      }
495 rajveer 10395
 
10396
      switch (field) {
10397
      case USERNAME:
10398
        return isSetUsername();
10399
      case PASSWORD:
10400
        return isSetPassword();
10401
      }
10402
      throw new IllegalStateException();
10403
    }
10404
 
10405
    @Override
10406
    public boolean equals(Object that) {
10407
      if (that == null)
10408
        return false;
2443 chandransh 10409
      if (that instanceof authenticateDashboardUser_args)
10410
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10411
      return false;
10412
    }
10413
 
2443 chandransh 10414
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10415
      if (that == null)
10416
        return false;
10417
 
10418
      boolean this_present_username = true && this.isSetUsername();
10419
      boolean that_present_username = true && that.isSetUsername();
10420
      if (this_present_username || that_present_username) {
10421
        if (!(this_present_username && that_present_username))
10422
          return false;
10423
        if (!this.username.equals(that.username))
10424
          return false;
10425
      }
10426
 
10427
      boolean this_present_password = true && this.isSetPassword();
10428
      boolean that_present_password = true && that.isSetPassword();
10429
      if (this_present_password || that_present_password) {
10430
        if (!(this_present_password && that_present_password))
10431
          return false;
10432
        if (!this.password.equals(that.password))
10433
          return false;
10434
      }
10435
 
10436
      return true;
10437
    }
10438
 
10439
    @Override
10440
    public int hashCode() {
10441
      return 0;
10442
    }
10443
 
2443 chandransh 10444
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10445
      if (!getClass().equals(other.getClass())) {
10446
        return getClass().getName().compareTo(other.getClass().getName());
10447
      }
10448
 
10449
      int lastComparison = 0;
2443 chandransh 10450
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10451
 
3430 rajveer 10452
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10453
      if (lastComparison != 0) {
10454
        return lastComparison;
10455
      }
3430 rajveer 10456
      if (isSetUsername()) {
10457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10458
        if (lastComparison != 0) {
10459
          return lastComparison;
10460
        }
495 rajveer 10461
      }
3430 rajveer 10462
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10463
      if (lastComparison != 0) {
10464
        return lastComparison;
10465
      }
3430 rajveer 10466
      if (isSetPassword()) {
10467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10468
        if (lastComparison != 0) {
10469
          return lastComparison;
10470
        }
495 rajveer 10471
      }
10472
      return 0;
10473
    }
10474
 
3430 rajveer 10475
    public _Fields fieldForId(int fieldId) {
10476
      return _Fields.findByThriftId(fieldId);
10477
    }
10478
 
10479
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10480
      org.apache.thrift.protocol.TField field;
495 rajveer 10481
      iprot.readStructBegin();
10482
      while (true)
10483
      {
10484
        field = iprot.readFieldBegin();
3430 rajveer 10485
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10486
          break;
10487
        }
3430 rajveer 10488
        switch (field.id) {
10489
          case 1: // USERNAME
10490
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10491
              this.username = iprot.readString();
10492
            } else { 
10493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10494
            }
10495
            break;
10496
          case 2: // PASSWORD
10497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10498
              this.password = iprot.readString();
10499
            } else { 
10500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10501
            }
10502
            break;
10503
          default:
10504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10505
        }
3430 rajveer 10506
        iprot.readFieldEnd();
495 rajveer 10507
      }
10508
      iprot.readStructEnd();
10509
      validate();
10510
    }
10511
 
3430 rajveer 10512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10513
      validate();
10514
 
10515
      oprot.writeStructBegin(STRUCT_DESC);
10516
      if (this.username != null) {
10517
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10518
        oprot.writeString(this.username);
10519
        oprot.writeFieldEnd();
10520
      }
10521
      if (this.password != null) {
10522
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10523
        oprot.writeString(this.password);
10524
        oprot.writeFieldEnd();
10525
      }
10526
      oprot.writeFieldStop();
10527
      oprot.writeStructEnd();
10528
    }
10529
 
10530
    @Override
10531
    public String toString() {
2443 chandransh 10532
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10533
      boolean first = true;
10534
 
10535
      sb.append("username:");
10536
      if (this.username == null) {
10537
        sb.append("null");
10538
      } else {
10539
        sb.append(this.username);
10540
      }
10541
      first = false;
10542
      if (!first) sb.append(", ");
10543
      sb.append("password:");
10544
      if (this.password == null) {
10545
        sb.append("null");
10546
      } else {
10547
        sb.append(this.password);
10548
      }
10549
      first = false;
10550
      sb.append(")");
10551
      return sb.toString();
10552
    }
10553
 
3430 rajveer 10554
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10555
      // check for required fields
10556
    }
10557
 
3430 rajveer 10558
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10559
      try {
10560
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10561
      } catch (org.apache.thrift.TException te) {
10562
        throw new java.io.IOException(te);
10563
      }
10564
    }
10565
 
10566
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10567
      try {
10568
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10569
      } catch (org.apache.thrift.TException te) {
10570
        throw new java.io.IOException(te);
10571
      }
10572
    }
10573
 
495 rajveer 10574
  }
10575
 
3430 rajveer 10576
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
10577
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 10578
 
3430 rajveer 10579
    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);
10580
    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 10581
 
3430 rajveer 10582
    private DashboardUser success; // required
10583
    private HelperServiceException se; // required
495 rajveer 10584
 
10585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10587
      SUCCESS((short)0, "success"),
10588
      SE((short)1, "se");
10589
 
10590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10591
 
10592
      static {
10593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10594
          byName.put(field.getFieldName(), field);
10595
        }
10596
      }
10597
 
10598
      /**
10599
       * Find the _Fields constant that matches fieldId, or null if its not found.
10600
       */
10601
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10602
        switch(fieldId) {
10603
          case 0: // SUCCESS
10604
            return SUCCESS;
10605
          case 1: // SE
10606
            return SE;
10607
          default:
10608
            return null;
10609
        }
495 rajveer 10610
      }
10611
 
10612
      /**
10613
       * Find the _Fields constant that matches fieldId, throwing an exception
10614
       * if it is not found.
10615
       */
10616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10617
        _Fields fields = findByThriftId(fieldId);
10618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10619
        return fields;
10620
      }
10621
 
10622
      /**
10623
       * Find the _Fields constant that matches name, or null if its not found.
10624
       */
10625
      public static _Fields findByName(String name) {
10626
        return byName.get(name);
10627
      }
10628
 
10629
      private final short _thriftId;
10630
      private final String _fieldName;
10631
 
10632
      _Fields(short thriftId, String fieldName) {
10633
        _thriftId = thriftId;
10634
        _fieldName = fieldName;
10635
      }
10636
 
10637
      public short getThriftFieldId() {
10638
        return _thriftId;
10639
      }
10640
 
10641
      public String getFieldName() {
10642
        return _fieldName;
10643
      }
10644
    }
10645
 
10646
    // isset id assignments
10647
 
3430 rajveer 10648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10649
    static {
3430 rajveer 10650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10651
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10652
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
10653
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 10657
    }
10658
 
2443 chandransh 10659
    public authenticateDashboardUser_result() {
495 rajveer 10660
    }
10661
 
2443 chandransh 10662
    public authenticateDashboardUser_result(
10663
      DashboardUser success,
495 rajveer 10664
      HelperServiceException se)
10665
    {
10666
      this();
10667
      this.success = success;
10668
      this.se = se;
10669
    }
10670
 
10671
    /**
10672
     * Performs a deep copy on <i>other</i>.
10673
     */
2443 chandransh 10674
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
10675
      if (other.isSetSuccess()) {
10676
        this.success = new DashboardUser(other.success);
10677
      }
495 rajveer 10678
      if (other.isSetSe()) {
10679
        this.se = new HelperServiceException(other.se);
10680
      }
10681
    }
10682
 
2443 chandransh 10683
    public authenticateDashboardUser_result deepCopy() {
10684
      return new authenticateDashboardUser_result(this);
495 rajveer 10685
    }
10686
 
3430 rajveer 10687
    @Override
10688
    public void clear() {
10689
      this.success = null;
10690
      this.se = null;
495 rajveer 10691
    }
10692
 
2443 chandransh 10693
    public DashboardUser getSuccess() {
495 rajveer 10694
      return this.success;
10695
    }
10696
 
3430 rajveer 10697
    public void setSuccess(DashboardUser success) {
495 rajveer 10698
      this.success = success;
10699
    }
10700
 
10701
    public void unsetSuccess() {
2443 chandransh 10702
      this.success = null;
495 rajveer 10703
    }
10704
 
3430 rajveer 10705
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10706
    public boolean isSetSuccess() {
2443 chandransh 10707
      return this.success != null;
495 rajveer 10708
    }
10709
 
10710
    public void setSuccessIsSet(boolean value) {
2443 chandransh 10711
      if (!value) {
10712
        this.success = null;
10713
      }
495 rajveer 10714
    }
10715
 
10716
    public HelperServiceException getSe() {
10717
      return this.se;
10718
    }
10719
 
3430 rajveer 10720
    public void setSe(HelperServiceException se) {
495 rajveer 10721
      this.se = se;
10722
    }
10723
 
10724
    public void unsetSe() {
10725
      this.se = null;
10726
    }
10727
 
3430 rajveer 10728
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10729
    public boolean isSetSe() {
10730
      return this.se != null;
10731
    }
10732
 
10733
    public void setSeIsSet(boolean value) {
10734
      if (!value) {
10735
        this.se = null;
10736
      }
10737
    }
10738
 
10739
    public void setFieldValue(_Fields field, Object value) {
10740
      switch (field) {
10741
      case SUCCESS:
10742
        if (value == null) {
10743
          unsetSuccess();
10744
        } else {
2443 chandransh 10745
          setSuccess((DashboardUser)value);
495 rajveer 10746
        }
10747
        break;
10748
 
10749
      case SE:
10750
        if (value == null) {
10751
          unsetSe();
10752
        } else {
10753
          setSe((HelperServiceException)value);
10754
        }
10755
        break;
10756
 
10757
      }
10758
    }
10759
 
10760
    public Object getFieldValue(_Fields field) {
10761
      switch (field) {
10762
      case SUCCESS:
2443 chandransh 10763
        return getSuccess();
495 rajveer 10764
 
10765
      case SE:
10766
        return getSe();
10767
 
10768
      }
10769
      throw new IllegalStateException();
10770
    }
10771
 
3430 rajveer 10772
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10773
    public boolean isSet(_Fields field) {
10774
      if (field == null) {
10775
        throw new IllegalArgumentException();
10776
      }
495 rajveer 10777
 
10778
      switch (field) {
10779
      case SUCCESS:
10780
        return isSetSuccess();
10781
      case SE:
10782
        return isSetSe();
10783
      }
10784
      throw new IllegalStateException();
10785
    }
10786
 
10787
    @Override
10788
    public boolean equals(Object that) {
10789
      if (that == null)
10790
        return false;
2443 chandransh 10791
      if (that instanceof authenticateDashboardUser_result)
10792
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10793
      return false;
10794
    }
10795
 
2443 chandransh 10796
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10797
      if (that == null)
10798
        return false;
10799
 
2443 chandransh 10800
      boolean this_present_success = true && this.isSetSuccess();
10801
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10802
      if (this_present_success || that_present_success) {
10803
        if (!(this_present_success && that_present_success))
10804
          return false;
2443 chandransh 10805
        if (!this.success.equals(that.success))
495 rajveer 10806
          return false;
10807
      }
10808
 
10809
      boolean this_present_se = true && this.isSetSe();
10810
      boolean that_present_se = true && that.isSetSe();
10811
      if (this_present_se || that_present_se) {
10812
        if (!(this_present_se && that_present_se))
10813
          return false;
10814
        if (!this.se.equals(that.se))
10815
          return false;
10816
      }
10817
 
10818
      return true;
10819
    }
10820
 
10821
    @Override
10822
    public int hashCode() {
10823
      return 0;
10824
    }
10825
 
2443 chandransh 10826
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10827
      if (!getClass().equals(other.getClass())) {
10828
        return getClass().getName().compareTo(other.getClass().getName());
10829
      }
10830
 
10831
      int lastComparison = 0;
2443 chandransh 10832
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10833
 
3430 rajveer 10834
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10835
      if (lastComparison != 0) {
10836
        return lastComparison;
10837
      }
3430 rajveer 10838
      if (isSetSuccess()) {
10839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10840
        if (lastComparison != 0) {
10841
          return lastComparison;
10842
        }
495 rajveer 10843
      }
3430 rajveer 10844
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10845
      if (lastComparison != 0) {
10846
        return lastComparison;
10847
      }
3430 rajveer 10848
      if (isSetSe()) {
10849
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10850
        if (lastComparison != 0) {
10851
          return lastComparison;
10852
        }
495 rajveer 10853
      }
10854
      return 0;
10855
    }
10856
 
3430 rajveer 10857
    public _Fields fieldForId(int fieldId) {
10858
      return _Fields.findByThriftId(fieldId);
10859
    }
10860
 
10861
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10862
      org.apache.thrift.protocol.TField field;
495 rajveer 10863
      iprot.readStructBegin();
10864
      while (true)
10865
      {
10866
        field = iprot.readFieldBegin();
3430 rajveer 10867
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10868
          break;
10869
        }
3430 rajveer 10870
        switch (field.id) {
10871
          case 0: // SUCCESS
10872
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10873
              this.success = new DashboardUser();
10874
              this.success.read(iprot);
10875
            } else { 
10876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10877
            }
10878
            break;
10879
          case 1: // SE
10880
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10881
              this.se = new HelperServiceException();
10882
              this.se.read(iprot);
10883
            } else { 
10884
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10885
            }
10886
            break;
10887
          default:
10888
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10889
        }
3430 rajveer 10890
        iprot.readFieldEnd();
495 rajveer 10891
      }
10892
      iprot.readStructEnd();
10893
      validate();
10894
    }
10895
 
3430 rajveer 10896
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10897
      oprot.writeStructBegin(STRUCT_DESC);
10898
 
10899
      if (this.isSetSuccess()) {
10900
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10901
        this.success.write(oprot);
495 rajveer 10902
        oprot.writeFieldEnd();
10903
      } else if (this.isSetSe()) {
10904
        oprot.writeFieldBegin(SE_FIELD_DESC);
10905
        this.se.write(oprot);
10906
        oprot.writeFieldEnd();
10907
      }
10908
      oprot.writeFieldStop();
10909
      oprot.writeStructEnd();
10910
    }
10911
 
10912
    @Override
10913
    public String toString() {
2443 chandransh 10914
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 10915
      boolean first = true;
10916
 
10917
      sb.append("success:");
2443 chandransh 10918
      if (this.success == null) {
10919
        sb.append("null");
10920
      } else {
10921
        sb.append(this.success);
10922
      }
495 rajveer 10923
      first = false;
10924
      if (!first) sb.append(", ");
10925
      sb.append("se:");
10926
      if (this.se == null) {
10927
        sb.append("null");
10928
      } else {
10929
        sb.append(this.se);
10930
      }
10931
      first = false;
10932
      sb.append(")");
10933
      return sb.toString();
10934
    }
10935
 
3430 rajveer 10936
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10937
      // check for required fields
10938
    }
10939
 
3430 rajveer 10940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10941
      try {
10942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10943
      } catch (org.apache.thrift.TException te) {
10944
        throw new java.io.IOException(te);
10945
      }
10946
    }
10947
 
10948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10949
      try {
10950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10951
      } catch (org.apache.thrift.TException te) {
10952
        throw new java.io.IOException(te);
10953
      }
10954
    }
10955
 
495 rajveer 10956
  }
10957
 
3430 rajveer 10958
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
10959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 10960
 
3430 rajveer 10961
    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);
10962
    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);
10963
    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 10964
 
3430 rajveer 10965
    private String username; // required
10966
    private String oldPassword; // required
10967
    private String newPassword; // required
495 rajveer 10968
 
10969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10971
      USERNAME((short)1, "username"),
10972
      OLD_PASSWORD((short)2, "oldPassword"),
10973
      NEW_PASSWORD((short)3, "newPassword");
10974
 
10975
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10976
 
10977
      static {
10978
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10979
          byName.put(field.getFieldName(), field);
10980
        }
10981
      }
10982
 
10983
      /**
10984
       * Find the _Fields constant that matches fieldId, or null if its not found.
10985
       */
10986
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10987
        switch(fieldId) {
10988
          case 1: // USERNAME
10989
            return USERNAME;
10990
          case 2: // OLD_PASSWORD
10991
            return OLD_PASSWORD;
10992
          case 3: // NEW_PASSWORD
10993
            return NEW_PASSWORD;
10994
          default:
10995
            return null;
10996
        }
495 rajveer 10997
      }
10998
 
10999
      /**
11000
       * Find the _Fields constant that matches fieldId, throwing an exception
11001
       * if it is not found.
11002
       */
11003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11004
        _Fields fields = findByThriftId(fieldId);
11005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11006
        return fields;
11007
      }
11008
 
11009
      /**
11010
       * Find the _Fields constant that matches name, or null if its not found.
11011
       */
11012
      public static _Fields findByName(String name) {
11013
        return byName.get(name);
11014
      }
11015
 
11016
      private final short _thriftId;
11017
      private final String _fieldName;
11018
 
11019
      _Fields(short thriftId, String fieldName) {
11020
        _thriftId = thriftId;
11021
        _fieldName = fieldName;
11022
      }
11023
 
11024
      public short getThriftFieldId() {
11025
        return _thriftId;
11026
      }
11027
 
11028
      public String getFieldName() {
11029
        return _fieldName;
11030
      }
11031
    }
11032
 
11033
    // isset id assignments
11034
 
3430 rajveer 11035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11036
    static {
3430 rajveer 11037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11038
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11040
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11042
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11046
    }
11047
 
11048
    public updatePassword_args() {
11049
    }
11050
 
11051
    public updatePassword_args(
11052
      String username,
11053
      String oldPassword,
11054
      String newPassword)
11055
    {
11056
      this();
11057
      this.username = username;
11058
      this.oldPassword = oldPassword;
11059
      this.newPassword = newPassword;
11060
    }
11061
 
11062
    /**
11063
     * Performs a deep copy on <i>other</i>.
11064
     */
11065
    public updatePassword_args(updatePassword_args other) {
11066
      if (other.isSetUsername()) {
11067
        this.username = other.username;
11068
      }
11069
      if (other.isSetOldPassword()) {
11070
        this.oldPassword = other.oldPassword;
11071
      }
11072
      if (other.isSetNewPassword()) {
11073
        this.newPassword = other.newPassword;
11074
      }
11075
    }
11076
 
11077
    public updatePassword_args deepCopy() {
11078
      return new updatePassword_args(this);
11079
    }
11080
 
3430 rajveer 11081
    @Override
11082
    public void clear() {
11083
      this.username = null;
11084
      this.oldPassword = null;
11085
      this.newPassword = null;
495 rajveer 11086
    }
11087
 
11088
    public String getUsername() {
11089
      return this.username;
11090
    }
11091
 
3430 rajveer 11092
    public void setUsername(String username) {
495 rajveer 11093
      this.username = username;
11094
    }
11095
 
11096
    public void unsetUsername() {
11097
      this.username = null;
11098
    }
11099
 
3430 rajveer 11100
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11101
    public boolean isSetUsername() {
11102
      return this.username != null;
11103
    }
11104
 
11105
    public void setUsernameIsSet(boolean value) {
11106
      if (!value) {
11107
        this.username = null;
11108
      }
11109
    }
11110
 
11111
    public String getOldPassword() {
11112
      return this.oldPassword;
11113
    }
11114
 
3430 rajveer 11115
    public void setOldPassword(String oldPassword) {
495 rajveer 11116
      this.oldPassword = oldPassword;
11117
    }
11118
 
11119
    public void unsetOldPassword() {
11120
      this.oldPassword = null;
11121
    }
11122
 
3430 rajveer 11123
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11124
    public boolean isSetOldPassword() {
11125
      return this.oldPassword != null;
11126
    }
11127
 
11128
    public void setOldPasswordIsSet(boolean value) {
11129
      if (!value) {
11130
        this.oldPassword = null;
11131
      }
11132
    }
11133
 
11134
    public String getNewPassword() {
11135
      return this.newPassword;
11136
    }
11137
 
3430 rajveer 11138
    public void setNewPassword(String newPassword) {
495 rajveer 11139
      this.newPassword = newPassword;
11140
    }
11141
 
11142
    public void unsetNewPassword() {
11143
      this.newPassword = null;
11144
    }
11145
 
3430 rajveer 11146
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11147
    public boolean isSetNewPassword() {
11148
      return this.newPassword != null;
11149
    }
11150
 
11151
    public void setNewPasswordIsSet(boolean value) {
11152
      if (!value) {
11153
        this.newPassword = null;
11154
      }
11155
    }
11156
 
11157
    public void setFieldValue(_Fields field, Object value) {
11158
      switch (field) {
11159
      case USERNAME:
11160
        if (value == null) {
11161
          unsetUsername();
11162
        } else {
11163
          setUsername((String)value);
11164
        }
11165
        break;
11166
 
11167
      case OLD_PASSWORD:
11168
        if (value == null) {
11169
          unsetOldPassword();
11170
        } else {
11171
          setOldPassword((String)value);
11172
        }
11173
        break;
11174
 
11175
      case NEW_PASSWORD:
11176
        if (value == null) {
11177
          unsetNewPassword();
11178
        } else {
11179
          setNewPassword((String)value);
11180
        }
11181
        break;
11182
 
11183
      }
11184
    }
11185
 
11186
    public Object getFieldValue(_Fields field) {
11187
      switch (field) {
11188
      case USERNAME:
11189
        return getUsername();
11190
 
11191
      case OLD_PASSWORD:
11192
        return getOldPassword();
11193
 
11194
      case NEW_PASSWORD:
11195
        return getNewPassword();
11196
 
11197
      }
11198
      throw new IllegalStateException();
11199
    }
11200
 
3430 rajveer 11201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11202
    public boolean isSet(_Fields field) {
11203
      if (field == null) {
11204
        throw new IllegalArgumentException();
11205
      }
495 rajveer 11206
 
11207
      switch (field) {
11208
      case USERNAME:
11209
        return isSetUsername();
11210
      case OLD_PASSWORD:
11211
        return isSetOldPassword();
11212
      case NEW_PASSWORD:
11213
        return isSetNewPassword();
11214
      }
11215
      throw new IllegalStateException();
11216
    }
11217
 
11218
    @Override
11219
    public boolean equals(Object that) {
11220
      if (that == null)
11221
        return false;
11222
      if (that instanceof updatePassword_args)
11223
        return this.equals((updatePassword_args)that);
11224
      return false;
11225
    }
11226
 
11227
    public boolean equals(updatePassword_args that) {
11228
      if (that == null)
11229
        return false;
11230
 
11231
      boolean this_present_username = true && this.isSetUsername();
11232
      boolean that_present_username = true && that.isSetUsername();
11233
      if (this_present_username || that_present_username) {
11234
        if (!(this_present_username && that_present_username))
11235
          return false;
11236
        if (!this.username.equals(that.username))
11237
          return false;
11238
      }
11239
 
11240
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11241
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11242
      if (this_present_oldPassword || that_present_oldPassword) {
11243
        if (!(this_present_oldPassword && that_present_oldPassword))
11244
          return false;
11245
        if (!this.oldPassword.equals(that.oldPassword))
11246
          return false;
11247
      }
11248
 
11249
      boolean this_present_newPassword = true && this.isSetNewPassword();
11250
      boolean that_present_newPassword = true && that.isSetNewPassword();
11251
      if (this_present_newPassword || that_present_newPassword) {
11252
        if (!(this_present_newPassword && that_present_newPassword))
11253
          return false;
11254
        if (!this.newPassword.equals(that.newPassword))
11255
          return false;
11256
      }
11257
 
11258
      return true;
11259
    }
11260
 
11261
    @Override
11262
    public int hashCode() {
11263
      return 0;
11264
    }
11265
 
11266
    public int compareTo(updatePassword_args other) {
11267
      if (!getClass().equals(other.getClass())) {
11268
        return getClass().getName().compareTo(other.getClass().getName());
11269
      }
11270
 
11271
      int lastComparison = 0;
11272
      updatePassword_args typedOther = (updatePassword_args)other;
11273
 
3430 rajveer 11274
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11275
      if (lastComparison != 0) {
11276
        return lastComparison;
11277
      }
3430 rajveer 11278
      if (isSetUsername()) {
11279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11280
        if (lastComparison != 0) {
11281
          return lastComparison;
11282
        }
495 rajveer 11283
      }
3430 rajveer 11284
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11285
      if (lastComparison != 0) {
11286
        return lastComparison;
11287
      }
3430 rajveer 11288
      if (isSetOldPassword()) {
11289
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11290
        if (lastComparison != 0) {
11291
          return lastComparison;
11292
        }
495 rajveer 11293
      }
3430 rajveer 11294
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11295
      if (lastComparison != 0) {
11296
        return lastComparison;
11297
      }
3430 rajveer 11298
      if (isSetNewPassword()) {
11299
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11300
        if (lastComparison != 0) {
11301
          return lastComparison;
11302
        }
495 rajveer 11303
      }
11304
      return 0;
11305
    }
11306
 
3430 rajveer 11307
    public _Fields fieldForId(int fieldId) {
11308
      return _Fields.findByThriftId(fieldId);
11309
    }
11310
 
11311
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11312
      org.apache.thrift.protocol.TField field;
495 rajveer 11313
      iprot.readStructBegin();
11314
      while (true)
11315
      {
11316
        field = iprot.readFieldBegin();
3430 rajveer 11317
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11318
          break;
11319
        }
3430 rajveer 11320
        switch (field.id) {
11321
          case 1: // USERNAME
11322
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11323
              this.username = iprot.readString();
11324
            } else { 
11325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11326
            }
11327
            break;
11328
          case 2: // OLD_PASSWORD
11329
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11330
              this.oldPassword = iprot.readString();
11331
            } else { 
11332
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11333
            }
11334
            break;
11335
          case 3: // NEW_PASSWORD
11336
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11337
              this.newPassword = iprot.readString();
11338
            } else { 
11339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11340
            }
11341
            break;
11342
          default:
11343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11344
        }
3430 rajveer 11345
        iprot.readFieldEnd();
495 rajveer 11346
      }
11347
      iprot.readStructEnd();
11348
      validate();
11349
    }
11350
 
3430 rajveer 11351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11352
      validate();
11353
 
11354
      oprot.writeStructBegin(STRUCT_DESC);
11355
      if (this.username != null) {
11356
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11357
        oprot.writeString(this.username);
11358
        oprot.writeFieldEnd();
11359
      }
11360
      if (this.oldPassword != null) {
11361
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11362
        oprot.writeString(this.oldPassword);
11363
        oprot.writeFieldEnd();
11364
      }
11365
      if (this.newPassword != null) {
11366
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11367
        oprot.writeString(this.newPassword);
11368
        oprot.writeFieldEnd();
11369
      }
11370
      oprot.writeFieldStop();
11371
      oprot.writeStructEnd();
11372
    }
11373
 
11374
    @Override
11375
    public String toString() {
11376
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11377
      boolean first = true;
11378
 
11379
      sb.append("username:");
11380
      if (this.username == null) {
11381
        sb.append("null");
11382
      } else {
11383
        sb.append(this.username);
11384
      }
11385
      first = false;
11386
      if (!first) sb.append(", ");
11387
      sb.append("oldPassword:");
11388
      if (this.oldPassword == null) {
11389
        sb.append("null");
11390
      } else {
11391
        sb.append(this.oldPassword);
11392
      }
11393
      first = false;
11394
      if (!first) sb.append(", ");
11395
      sb.append("newPassword:");
11396
      if (this.newPassword == null) {
11397
        sb.append("null");
11398
      } else {
11399
        sb.append(this.newPassword);
11400
      }
11401
      first = false;
11402
      sb.append(")");
11403
      return sb.toString();
11404
    }
11405
 
3430 rajveer 11406
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11407
      // check for required fields
11408
    }
11409
 
3430 rajveer 11410
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11411
      try {
11412
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11413
      } catch (org.apache.thrift.TException te) {
11414
        throw new java.io.IOException(te);
11415
      }
11416
    }
11417
 
11418
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11419
      try {
11420
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11421
      } catch (org.apache.thrift.TException te) {
11422
        throw new java.io.IOException(te);
11423
      }
11424
    }
11425
 
495 rajveer 11426
  }
11427
 
3430 rajveer 11428
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11429
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11430
 
3430 rajveer 11431
    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);
11432
    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 11433
 
3430 rajveer 11434
    private boolean success; // required
11435
    private HelperServiceException se; // required
495 rajveer 11436
 
11437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11439
      SUCCESS((short)0, "success"),
11440
      SE((short)1, "se");
11441
 
11442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11443
 
11444
      static {
11445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11446
          byName.put(field.getFieldName(), field);
11447
        }
11448
      }
11449
 
11450
      /**
11451
       * Find the _Fields constant that matches fieldId, or null if its not found.
11452
       */
11453
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11454
        switch(fieldId) {
11455
          case 0: // SUCCESS
11456
            return SUCCESS;
11457
          case 1: // SE
11458
            return SE;
11459
          default:
11460
            return null;
11461
        }
495 rajveer 11462
      }
11463
 
11464
      /**
11465
       * Find the _Fields constant that matches fieldId, throwing an exception
11466
       * if it is not found.
11467
       */
11468
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11469
        _Fields fields = findByThriftId(fieldId);
11470
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11471
        return fields;
11472
      }
11473
 
11474
      /**
11475
       * Find the _Fields constant that matches name, or null if its not found.
11476
       */
11477
      public static _Fields findByName(String name) {
11478
        return byName.get(name);
11479
      }
11480
 
11481
      private final short _thriftId;
11482
      private final String _fieldName;
11483
 
11484
      _Fields(short thriftId, String fieldName) {
11485
        _thriftId = thriftId;
11486
        _fieldName = fieldName;
11487
      }
11488
 
11489
      public short getThriftFieldId() {
11490
        return _thriftId;
11491
      }
11492
 
11493
      public String getFieldName() {
11494
        return _fieldName;
11495
      }
11496
    }
11497
 
11498
    // isset id assignments
11499
    private static final int __SUCCESS_ISSET_ID = 0;
11500
    private BitSet __isset_bit_vector = new BitSet(1);
11501
 
3430 rajveer 11502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11503
    static {
3430 rajveer 11504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11505
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11507
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11511
    }
11512
 
11513
    public updatePassword_result() {
11514
    }
11515
 
11516
    public updatePassword_result(
11517
      boolean success,
11518
      HelperServiceException se)
11519
    {
11520
      this();
11521
      this.success = success;
11522
      setSuccessIsSet(true);
11523
      this.se = se;
11524
    }
11525
 
11526
    /**
11527
     * Performs a deep copy on <i>other</i>.
11528
     */
11529
    public updatePassword_result(updatePassword_result other) {
11530
      __isset_bit_vector.clear();
11531
      __isset_bit_vector.or(other.__isset_bit_vector);
11532
      this.success = other.success;
11533
      if (other.isSetSe()) {
11534
        this.se = new HelperServiceException(other.se);
11535
      }
11536
    }
11537
 
11538
    public updatePassword_result deepCopy() {
11539
      return new updatePassword_result(this);
11540
    }
11541
 
3430 rajveer 11542
    @Override
11543
    public void clear() {
11544
      setSuccessIsSet(false);
11545
      this.success = false;
11546
      this.se = null;
495 rajveer 11547
    }
11548
 
11549
    public boolean isSuccess() {
11550
      return this.success;
11551
    }
11552
 
3430 rajveer 11553
    public void setSuccess(boolean success) {
495 rajveer 11554
      this.success = success;
11555
      setSuccessIsSet(true);
11556
    }
11557
 
11558
    public void unsetSuccess() {
11559
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11560
    }
11561
 
3430 rajveer 11562
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11563
    public boolean isSetSuccess() {
11564
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11565
    }
11566
 
11567
    public void setSuccessIsSet(boolean value) {
11568
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11569
    }
11570
 
11571
    public HelperServiceException getSe() {
11572
      return this.se;
11573
    }
11574
 
3430 rajveer 11575
    public void setSe(HelperServiceException se) {
495 rajveer 11576
      this.se = se;
11577
    }
11578
 
11579
    public void unsetSe() {
11580
      this.se = null;
11581
    }
11582
 
3430 rajveer 11583
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11584
    public boolean isSetSe() {
11585
      return this.se != null;
11586
    }
11587
 
11588
    public void setSeIsSet(boolean value) {
11589
      if (!value) {
11590
        this.se = null;
11591
      }
11592
    }
11593
 
11594
    public void setFieldValue(_Fields field, Object value) {
11595
      switch (field) {
11596
      case SUCCESS:
11597
        if (value == null) {
11598
          unsetSuccess();
11599
        } else {
11600
          setSuccess((Boolean)value);
11601
        }
11602
        break;
11603
 
11604
      case SE:
11605
        if (value == null) {
11606
          unsetSe();
11607
        } else {
11608
          setSe((HelperServiceException)value);
11609
        }
11610
        break;
11611
 
11612
      }
11613
    }
11614
 
11615
    public Object getFieldValue(_Fields field) {
11616
      switch (field) {
11617
      case SUCCESS:
3430 rajveer 11618
        return Boolean.valueOf(isSuccess());
495 rajveer 11619
 
11620
      case SE:
11621
        return getSe();
11622
 
11623
      }
11624
      throw new IllegalStateException();
11625
    }
11626
 
3430 rajveer 11627
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11628
    public boolean isSet(_Fields field) {
11629
      if (field == null) {
11630
        throw new IllegalArgumentException();
11631
      }
495 rajveer 11632
 
11633
      switch (field) {
11634
      case SUCCESS:
11635
        return isSetSuccess();
11636
      case SE:
11637
        return isSetSe();
11638
      }
11639
      throw new IllegalStateException();
11640
    }
11641
 
11642
    @Override
11643
    public boolean equals(Object that) {
11644
      if (that == null)
11645
        return false;
11646
      if (that instanceof updatePassword_result)
11647
        return this.equals((updatePassword_result)that);
11648
      return false;
11649
    }
11650
 
11651
    public boolean equals(updatePassword_result that) {
11652
      if (that == null)
11653
        return false;
11654
 
11655
      boolean this_present_success = true;
11656
      boolean that_present_success = true;
11657
      if (this_present_success || that_present_success) {
11658
        if (!(this_present_success && that_present_success))
11659
          return false;
11660
        if (this.success != that.success)
11661
          return false;
11662
      }
11663
 
11664
      boolean this_present_se = true && this.isSetSe();
11665
      boolean that_present_se = true && that.isSetSe();
11666
      if (this_present_se || that_present_se) {
11667
        if (!(this_present_se && that_present_se))
11668
          return false;
11669
        if (!this.se.equals(that.se))
11670
          return false;
11671
      }
11672
 
11673
      return true;
11674
    }
11675
 
11676
    @Override
11677
    public int hashCode() {
11678
      return 0;
11679
    }
11680
 
11681
    public int compareTo(updatePassword_result other) {
11682
      if (!getClass().equals(other.getClass())) {
11683
        return getClass().getName().compareTo(other.getClass().getName());
11684
      }
11685
 
11686
      int lastComparison = 0;
11687
      updatePassword_result typedOther = (updatePassword_result)other;
11688
 
3430 rajveer 11689
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11690
      if (lastComparison != 0) {
11691
        return lastComparison;
11692
      }
3430 rajveer 11693
      if (isSetSuccess()) {
11694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11695
        if (lastComparison != 0) {
11696
          return lastComparison;
11697
        }
495 rajveer 11698
      }
3430 rajveer 11699
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11700
      if (lastComparison != 0) {
11701
        return lastComparison;
11702
      }
3430 rajveer 11703
      if (isSetSe()) {
11704
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11705
        if (lastComparison != 0) {
11706
          return lastComparison;
11707
        }
495 rajveer 11708
      }
11709
      return 0;
11710
    }
11711
 
3430 rajveer 11712
    public _Fields fieldForId(int fieldId) {
11713
      return _Fields.findByThriftId(fieldId);
11714
    }
11715
 
11716
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11717
      org.apache.thrift.protocol.TField field;
495 rajveer 11718
      iprot.readStructBegin();
11719
      while (true)
11720
      {
11721
        field = iprot.readFieldBegin();
3430 rajveer 11722
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11723
          break;
11724
        }
3430 rajveer 11725
        switch (field.id) {
11726
          case 0: // SUCCESS
11727
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11728
              this.success = iprot.readBool();
11729
              setSuccessIsSet(true);
11730
            } else { 
11731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11732
            }
11733
            break;
11734
          case 1: // SE
11735
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11736
              this.se = new HelperServiceException();
11737
              this.se.read(iprot);
11738
            } else { 
11739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11740
            }
11741
            break;
11742
          default:
11743
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11744
        }
3430 rajveer 11745
        iprot.readFieldEnd();
495 rajveer 11746
      }
11747
      iprot.readStructEnd();
11748
      validate();
11749
    }
11750
 
3430 rajveer 11751
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11752
      oprot.writeStructBegin(STRUCT_DESC);
11753
 
11754
      if (this.isSetSuccess()) {
11755
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11756
        oprot.writeBool(this.success);
11757
        oprot.writeFieldEnd();
11758
      } else if (this.isSetSe()) {
11759
        oprot.writeFieldBegin(SE_FIELD_DESC);
11760
        this.se.write(oprot);
11761
        oprot.writeFieldEnd();
11762
      }
11763
      oprot.writeFieldStop();
11764
      oprot.writeStructEnd();
11765
    }
11766
 
11767
    @Override
11768
    public String toString() {
11769
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11770
      boolean first = true;
11771
 
11772
      sb.append("success:");
11773
      sb.append(this.success);
11774
      first = false;
11775
      if (!first) sb.append(", ");
11776
      sb.append("se:");
11777
      if (this.se == null) {
11778
        sb.append("null");
11779
      } else {
11780
        sb.append(this.se);
11781
      }
11782
      first = false;
11783
      sb.append(")");
11784
      return sb.toString();
11785
    }
11786
 
3430 rajveer 11787
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11788
      // check for required fields
11789
    }
11790
 
3430 rajveer 11791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11792
      try {
11793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11794
      } catch (org.apache.thrift.TException te) {
11795
        throw new java.io.IOException(te);
11796
      }
11797
    }
11798
 
11799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11800
      try {
11801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11802
      } catch (org.apache.thrift.TException te) {
11803
        throw new java.io.IOException(te);
11804
      }
11805
    }
11806
 
495 rajveer 11807
  }
11808
 
3430 rajveer 11809
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11811
 
3430 rajveer 11812
    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);
11813
    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 11814
 
3430 rajveer 11815
    private String username; // required
11816
    private String password; // required
750 chandransh 11817
 
11818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11820
      USERNAME((short)1, "username"),
11821
      PASSWORD((short)2, "password");
11822
 
11823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11824
 
11825
      static {
11826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11827
          byName.put(field.getFieldName(), field);
11828
        }
11829
      }
11830
 
11831
      /**
11832
       * Find the _Fields constant that matches fieldId, or null if its not found.
11833
       */
11834
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11835
        switch(fieldId) {
11836
          case 1: // USERNAME
11837
            return USERNAME;
11838
          case 2: // PASSWORD
11839
            return PASSWORD;
11840
          default:
11841
            return null;
11842
        }
750 chandransh 11843
      }
11844
 
11845
      /**
11846
       * Find the _Fields constant that matches fieldId, throwing an exception
11847
       * if it is not found.
11848
       */
11849
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11850
        _Fields fields = findByThriftId(fieldId);
11851
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11852
        return fields;
11853
      }
11854
 
11855
      /**
11856
       * Find the _Fields constant that matches name, or null if its not found.
11857
       */
11858
      public static _Fields findByName(String name) {
11859
        return byName.get(name);
11860
      }
11861
 
11862
      private final short _thriftId;
11863
      private final String _fieldName;
11864
 
11865
      _Fields(short thriftId, String fieldName) {
11866
        _thriftId = thriftId;
11867
        _fieldName = fieldName;
11868
      }
11869
 
11870
      public short getThriftFieldId() {
11871
        return _thriftId;
11872
      }
11873
 
11874
      public String getFieldName() {
11875
        return _fieldName;
11876
      }
11877
    }
11878
 
11879
    // isset id assignments
11880
 
3430 rajveer 11881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11882
    static {
3430 rajveer 11883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11884
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11886
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11890
    }
11891
 
11892
    public authenticateLogisticsUser_args() {
11893
    }
11894
 
11895
    public authenticateLogisticsUser_args(
11896
      String username,
11897
      String password)
11898
    {
11899
      this();
11900
      this.username = username;
11901
      this.password = password;
11902
    }
11903
 
11904
    /**
11905
     * Performs a deep copy on <i>other</i>.
11906
     */
11907
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
11908
      if (other.isSetUsername()) {
11909
        this.username = other.username;
11910
      }
11911
      if (other.isSetPassword()) {
11912
        this.password = other.password;
11913
      }
11914
    }
11915
 
11916
    public authenticateLogisticsUser_args deepCopy() {
11917
      return new authenticateLogisticsUser_args(this);
11918
    }
11919
 
3430 rajveer 11920
    @Override
11921
    public void clear() {
11922
      this.username = null;
11923
      this.password = null;
750 chandransh 11924
    }
11925
 
11926
    public String getUsername() {
11927
      return this.username;
11928
    }
11929
 
3430 rajveer 11930
    public void setUsername(String username) {
750 chandransh 11931
      this.username = username;
11932
    }
11933
 
11934
    public void unsetUsername() {
11935
      this.username = null;
11936
    }
11937
 
3430 rajveer 11938
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 11939
    public boolean isSetUsername() {
11940
      return this.username != null;
11941
    }
11942
 
11943
    public void setUsernameIsSet(boolean value) {
11944
      if (!value) {
11945
        this.username = null;
11946
      }
11947
    }
11948
 
11949
    public String getPassword() {
11950
      return this.password;
11951
    }
11952
 
3430 rajveer 11953
    public void setPassword(String password) {
750 chandransh 11954
      this.password = password;
11955
    }
11956
 
11957
    public void unsetPassword() {
11958
      this.password = null;
11959
    }
11960
 
3430 rajveer 11961
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 11962
    public boolean isSetPassword() {
11963
      return this.password != null;
11964
    }
11965
 
11966
    public void setPasswordIsSet(boolean value) {
11967
      if (!value) {
11968
        this.password = null;
11969
      }
11970
    }
11971
 
11972
    public void setFieldValue(_Fields field, Object value) {
11973
      switch (field) {
11974
      case USERNAME:
11975
        if (value == null) {
11976
          unsetUsername();
11977
        } else {
11978
          setUsername((String)value);
11979
        }
11980
        break;
11981
 
11982
      case PASSWORD:
11983
        if (value == null) {
11984
          unsetPassword();
11985
        } else {
11986
          setPassword((String)value);
11987
        }
11988
        break;
11989
 
11990
      }
11991
    }
11992
 
11993
    public Object getFieldValue(_Fields field) {
11994
      switch (field) {
11995
      case USERNAME:
11996
        return getUsername();
11997
 
11998
      case PASSWORD:
11999
        return getPassword();
12000
 
12001
      }
12002
      throw new IllegalStateException();
12003
    }
12004
 
3430 rajveer 12005
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12006
    public boolean isSet(_Fields field) {
12007
      if (field == null) {
12008
        throw new IllegalArgumentException();
12009
      }
750 chandransh 12010
 
12011
      switch (field) {
12012
      case USERNAME:
12013
        return isSetUsername();
12014
      case PASSWORD:
12015
        return isSetPassword();
12016
      }
12017
      throw new IllegalStateException();
12018
    }
12019
 
12020
    @Override
12021
    public boolean equals(Object that) {
12022
      if (that == null)
12023
        return false;
12024
      if (that instanceof authenticateLogisticsUser_args)
12025
        return this.equals((authenticateLogisticsUser_args)that);
12026
      return false;
12027
    }
12028
 
12029
    public boolean equals(authenticateLogisticsUser_args that) {
12030
      if (that == null)
12031
        return false;
12032
 
12033
      boolean this_present_username = true && this.isSetUsername();
12034
      boolean that_present_username = true && that.isSetUsername();
12035
      if (this_present_username || that_present_username) {
12036
        if (!(this_present_username && that_present_username))
12037
          return false;
12038
        if (!this.username.equals(that.username))
12039
          return false;
12040
      }
12041
 
12042
      boolean this_present_password = true && this.isSetPassword();
12043
      boolean that_present_password = true && that.isSetPassword();
12044
      if (this_present_password || that_present_password) {
12045
        if (!(this_present_password && that_present_password))
12046
          return false;
12047
        if (!this.password.equals(that.password))
12048
          return false;
12049
      }
12050
 
12051
      return true;
12052
    }
12053
 
12054
    @Override
12055
    public int hashCode() {
12056
      return 0;
12057
    }
12058
 
12059
    public int compareTo(authenticateLogisticsUser_args other) {
12060
      if (!getClass().equals(other.getClass())) {
12061
        return getClass().getName().compareTo(other.getClass().getName());
12062
      }
12063
 
12064
      int lastComparison = 0;
12065
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12066
 
3430 rajveer 12067
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12068
      if (lastComparison != 0) {
12069
        return lastComparison;
12070
      }
3430 rajveer 12071
      if (isSetUsername()) {
12072
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12073
        if (lastComparison != 0) {
12074
          return lastComparison;
12075
        }
750 chandransh 12076
      }
3430 rajveer 12077
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12078
      if (lastComparison != 0) {
12079
        return lastComparison;
12080
      }
3430 rajveer 12081
      if (isSetPassword()) {
12082
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12083
        if (lastComparison != 0) {
12084
          return lastComparison;
12085
        }
750 chandransh 12086
      }
12087
      return 0;
12088
    }
12089
 
3430 rajveer 12090
    public _Fields fieldForId(int fieldId) {
12091
      return _Fields.findByThriftId(fieldId);
12092
    }
12093
 
12094
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12095
      org.apache.thrift.protocol.TField field;
750 chandransh 12096
      iprot.readStructBegin();
12097
      while (true)
12098
      {
12099
        field = iprot.readFieldBegin();
3430 rajveer 12100
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12101
          break;
12102
        }
3430 rajveer 12103
        switch (field.id) {
12104
          case 1: // USERNAME
12105
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12106
              this.username = iprot.readString();
12107
            } else { 
12108
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12109
            }
12110
            break;
12111
          case 2: // PASSWORD
12112
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12113
              this.password = iprot.readString();
12114
            } else { 
12115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12116
            }
12117
            break;
12118
          default:
12119
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12120
        }
3430 rajveer 12121
        iprot.readFieldEnd();
750 chandransh 12122
      }
12123
      iprot.readStructEnd();
12124
      validate();
12125
    }
12126
 
3430 rajveer 12127
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12128
      validate();
12129
 
12130
      oprot.writeStructBegin(STRUCT_DESC);
12131
      if (this.username != null) {
12132
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12133
        oprot.writeString(this.username);
12134
        oprot.writeFieldEnd();
12135
      }
12136
      if (this.password != null) {
12137
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12138
        oprot.writeString(this.password);
12139
        oprot.writeFieldEnd();
12140
      }
12141
      oprot.writeFieldStop();
12142
      oprot.writeStructEnd();
12143
    }
12144
 
12145
    @Override
12146
    public String toString() {
12147
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12148
      boolean first = true;
12149
 
12150
      sb.append("username:");
12151
      if (this.username == null) {
12152
        sb.append("null");
12153
      } else {
12154
        sb.append(this.username);
12155
      }
12156
      first = false;
12157
      if (!first) sb.append(", ");
12158
      sb.append("password:");
12159
      if (this.password == null) {
12160
        sb.append("null");
12161
      } else {
12162
        sb.append(this.password);
12163
      }
12164
      first = false;
12165
      sb.append(")");
12166
      return sb.toString();
12167
    }
12168
 
3430 rajveer 12169
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12170
      // check for required fields
12171
    }
12172
 
3430 rajveer 12173
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12174
      try {
12175
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12176
      } catch (org.apache.thrift.TException te) {
12177
        throw new java.io.IOException(te);
12178
      }
12179
    }
12180
 
12181
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12182
      try {
12183
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12184
      } catch (org.apache.thrift.TException te) {
12185
        throw new java.io.IOException(te);
12186
      }
12187
    }
12188
 
750 chandransh 12189
  }
12190
 
3430 rajveer 12191
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12192
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12193
 
3430 rajveer 12194
    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);
12195
    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 12196
 
3430 rajveer 12197
    private LogisticsUser success; // required
12198
    private HelperServiceException hse; // required
750 chandransh 12199
 
12200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12202
      SUCCESS((short)0, "success"),
12203
      HSE((short)1, "hse");
12204
 
12205
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12206
 
12207
      static {
12208
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12209
          byName.put(field.getFieldName(), field);
12210
        }
12211
      }
12212
 
12213
      /**
12214
       * Find the _Fields constant that matches fieldId, or null if its not found.
12215
       */
12216
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12217
        switch(fieldId) {
12218
          case 0: // SUCCESS
12219
            return SUCCESS;
12220
          case 1: // HSE
12221
            return HSE;
12222
          default:
12223
            return null;
12224
        }
750 chandransh 12225
      }
12226
 
12227
      /**
12228
       * Find the _Fields constant that matches fieldId, throwing an exception
12229
       * if it is not found.
12230
       */
12231
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12232
        _Fields fields = findByThriftId(fieldId);
12233
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12234
        return fields;
12235
      }
12236
 
12237
      /**
12238
       * Find the _Fields constant that matches name, or null if its not found.
12239
       */
12240
      public static _Fields findByName(String name) {
12241
        return byName.get(name);
12242
      }
12243
 
12244
      private final short _thriftId;
12245
      private final String _fieldName;
12246
 
12247
      _Fields(short thriftId, String fieldName) {
12248
        _thriftId = thriftId;
12249
        _fieldName = fieldName;
12250
      }
12251
 
12252
      public short getThriftFieldId() {
12253
        return _thriftId;
12254
      }
12255
 
12256
      public String getFieldName() {
12257
        return _fieldName;
12258
      }
12259
    }
12260
 
12261
    // isset id assignments
12262
 
3430 rajveer 12263
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12264
    static {
3430 rajveer 12265
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12266
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12267
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12268
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12269
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12270
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12271
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12272
    }
12273
 
12274
    public authenticateLogisticsUser_result() {
12275
    }
12276
 
12277
    public authenticateLogisticsUser_result(
12278
      LogisticsUser success,
12279
      HelperServiceException hse)
12280
    {
12281
      this();
12282
      this.success = success;
12283
      this.hse = hse;
12284
    }
12285
 
12286
    /**
12287
     * Performs a deep copy on <i>other</i>.
12288
     */
12289
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12290
      if (other.isSetSuccess()) {
12291
        this.success = new LogisticsUser(other.success);
12292
      }
12293
      if (other.isSetHse()) {
12294
        this.hse = new HelperServiceException(other.hse);
12295
      }
12296
    }
12297
 
12298
    public authenticateLogisticsUser_result deepCopy() {
12299
      return new authenticateLogisticsUser_result(this);
12300
    }
12301
 
3430 rajveer 12302
    @Override
12303
    public void clear() {
12304
      this.success = null;
12305
      this.hse = null;
750 chandransh 12306
    }
12307
 
12308
    public LogisticsUser getSuccess() {
12309
      return this.success;
12310
    }
12311
 
3430 rajveer 12312
    public void setSuccess(LogisticsUser success) {
750 chandransh 12313
      this.success = success;
12314
    }
12315
 
12316
    public void unsetSuccess() {
12317
      this.success = null;
12318
    }
12319
 
3430 rajveer 12320
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12321
    public boolean isSetSuccess() {
12322
      return this.success != null;
12323
    }
12324
 
12325
    public void setSuccessIsSet(boolean value) {
12326
      if (!value) {
12327
        this.success = null;
12328
      }
12329
    }
12330
 
12331
    public HelperServiceException getHse() {
12332
      return this.hse;
12333
    }
12334
 
3430 rajveer 12335
    public void setHse(HelperServiceException hse) {
750 chandransh 12336
      this.hse = hse;
12337
    }
12338
 
12339
    public void unsetHse() {
12340
      this.hse = null;
12341
    }
12342
 
3430 rajveer 12343
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12344
    public boolean isSetHse() {
12345
      return this.hse != null;
12346
    }
12347
 
12348
    public void setHseIsSet(boolean value) {
12349
      if (!value) {
12350
        this.hse = null;
12351
      }
12352
    }
12353
 
12354
    public void setFieldValue(_Fields field, Object value) {
12355
      switch (field) {
12356
      case SUCCESS:
12357
        if (value == null) {
12358
          unsetSuccess();
12359
        } else {
12360
          setSuccess((LogisticsUser)value);
12361
        }
12362
        break;
12363
 
12364
      case HSE:
12365
        if (value == null) {
12366
          unsetHse();
12367
        } else {
12368
          setHse((HelperServiceException)value);
12369
        }
12370
        break;
12371
 
12372
      }
12373
    }
12374
 
12375
    public Object getFieldValue(_Fields field) {
12376
      switch (field) {
12377
      case SUCCESS:
12378
        return getSuccess();
12379
 
12380
      case HSE:
12381
        return getHse();
12382
 
12383
      }
12384
      throw new IllegalStateException();
12385
    }
12386
 
3430 rajveer 12387
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12388
    public boolean isSet(_Fields field) {
12389
      if (field == null) {
12390
        throw new IllegalArgumentException();
12391
      }
750 chandransh 12392
 
12393
      switch (field) {
12394
      case SUCCESS:
12395
        return isSetSuccess();
12396
      case HSE:
12397
        return isSetHse();
12398
      }
12399
      throw new IllegalStateException();
12400
    }
12401
 
12402
    @Override
12403
    public boolean equals(Object that) {
12404
      if (that == null)
12405
        return false;
12406
      if (that instanceof authenticateLogisticsUser_result)
12407
        return this.equals((authenticateLogisticsUser_result)that);
12408
      return false;
12409
    }
12410
 
12411
    public boolean equals(authenticateLogisticsUser_result that) {
12412
      if (that == null)
12413
        return false;
12414
 
12415
      boolean this_present_success = true && this.isSetSuccess();
12416
      boolean that_present_success = true && that.isSetSuccess();
12417
      if (this_present_success || that_present_success) {
12418
        if (!(this_present_success && that_present_success))
12419
          return false;
12420
        if (!this.success.equals(that.success))
12421
          return false;
12422
      }
12423
 
12424
      boolean this_present_hse = true && this.isSetHse();
12425
      boolean that_present_hse = true && that.isSetHse();
12426
      if (this_present_hse || that_present_hse) {
12427
        if (!(this_present_hse && that_present_hse))
12428
          return false;
12429
        if (!this.hse.equals(that.hse))
12430
          return false;
12431
      }
12432
 
12433
      return true;
12434
    }
12435
 
12436
    @Override
12437
    public int hashCode() {
12438
      return 0;
12439
    }
12440
 
12441
    public int compareTo(authenticateLogisticsUser_result other) {
12442
      if (!getClass().equals(other.getClass())) {
12443
        return getClass().getName().compareTo(other.getClass().getName());
12444
      }
12445
 
12446
      int lastComparison = 0;
12447
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12448
 
3430 rajveer 12449
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12450
      if (lastComparison != 0) {
12451
        return lastComparison;
12452
      }
3430 rajveer 12453
      if (isSetSuccess()) {
12454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12455
        if (lastComparison != 0) {
12456
          return lastComparison;
12457
        }
750 chandransh 12458
      }
3430 rajveer 12459
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12460
      if (lastComparison != 0) {
12461
        return lastComparison;
12462
      }
3430 rajveer 12463
      if (isSetHse()) {
12464
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12465
        if (lastComparison != 0) {
12466
          return lastComparison;
12467
        }
750 chandransh 12468
      }
12469
      return 0;
12470
    }
12471
 
3430 rajveer 12472
    public _Fields fieldForId(int fieldId) {
12473
      return _Fields.findByThriftId(fieldId);
12474
    }
12475
 
12476
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12477
      org.apache.thrift.protocol.TField field;
750 chandransh 12478
      iprot.readStructBegin();
12479
      while (true)
12480
      {
12481
        field = iprot.readFieldBegin();
3430 rajveer 12482
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12483
          break;
12484
        }
3430 rajveer 12485
        switch (field.id) {
12486
          case 0: // SUCCESS
12487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12488
              this.success = new LogisticsUser();
12489
              this.success.read(iprot);
12490
            } else { 
12491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12492
            }
12493
            break;
12494
          case 1: // HSE
12495
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12496
              this.hse = new HelperServiceException();
12497
              this.hse.read(iprot);
12498
            } else { 
12499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12500
            }
12501
            break;
12502
          default:
12503
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12504
        }
3430 rajveer 12505
        iprot.readFieldEnd();
750 chandransh 12506
      }
12507
      iprot.readStructEnd();
12508
      validate();
12509
    }
12510
 
3430 rajveer 12511
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12512
      oprot.writeStructBegin(STRUCT_DESC);
12513
 
12514
      if (this.isSetSuccess()) {
12515
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12516
        this.success.write(oprot);
12517
        oprot.writeFieldEnd();
12518
      } else if (this.isSetHse()) {
12519
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12520
        this.hse.write(oprot);
12521
        oprot.writeFieldEnd();
12522
      }
12523
      oprot.writeFieldStop();
12524
      oprot.writeStructEnd();
12525
    }
12526
 
12527
    @Override
12528
    public String toString() {
12529
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12530
      boolean first = true;
12531
 
12532
      sb.append("success:");
12533
      if (this.success == null) {
12534
        sb.append("null");
12535
      } else {
12536
        sb.append(this.success);
12537
      }
12538
      first = false;
12539
      if (!first) sb.append(", ");
12540
      sb.append("hse:");
12541
      if (this.hse == null) {
12542
        sb.append("null");
12543
      } else {
12544
        sb.append(this.hse);
12545
      }
12546
      first = false;
12547
      sb.append(")");
12548
      return sb.toString();
12549
    }
12550
 
3430 rajveer 12551
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12552
      // check for required fields
12553
    }
12554
 
3430 rajveer 12555
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12556
      try {
12557
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12558
      } catch (org.apache.thrift.TException te) {
12559
        throw new java.io.IOException(te);
12560
      }
12561
    }
12562
 
12563
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12564
      try {
12565
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12566
      } catch (org.apache.thrift.TException te) {
12567
        throw new java.io.IOException(te);
12568
      }
12569
    }
12570
 
750 chandransh 12571
  }
12572
 
3430 rajveer 12573
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12574
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 12575
 
3430 rajveer 12576
    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);
12577
    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 12578
 
3430 rajveer 12579
    private String username; // required
12580
    private String password; // required
1611 ankur.sing 12581
 
12582
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12583
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12584
      USERNAME((short)1, "username"),
12585
      PASSWORD((short)2, "password");
12586
 
12587
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12588
 
12589
      static {
12590
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12591
          byName.put(field.getFieldName(), field);
12592
        }
12593
      }
12594
 
12595
      /**
12596
       * Find the _Fields constant that matches fieldId, or null if its not found.
12597
       */
12598
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12599
        switch(fieldId) {
12600
          case 1: // USERNAME
12601
            return USERNAME;
12602
          case 2: // PASSWORD
12603
            return PASSWORD;
12604
          default:
12605
            return null;
12606
        }
1611 ankur.sing 12607
      }
12608
 
12609
      /**
12610
       * Find the _Fields constant that matches fieldId, throwing an exception
12611
       * if it is not found.
12612
       */
12613
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12614
        _Fields fields = findByThriftId(fieldId);
12615
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12616
        return fields;
12617
      }
12618
 
12619
      /**
12620
       * Find the _Fields constant that matches name, or null if its not found.
12621
       */
12622
      public static _Fields findByName(String name) {
12623
        return byName.get(name);
12624
      }
12625
 
12626
      private final short _thriftId;
12627
      private final String _fieldName;
12628
 
12629
      _Fields(short thriftId, String fieldName) {
12630
        _thriftId = thriftId;
12631
        _fieldName = fieldName;
12632
      }
12633
 
12634
      public short getThriftFieldId() {
12635
        return _thriftId;
12636
      }
12637
 
12638
      public String getFieldName() {
12639
        return _fieldName;
12640
      }
12641
    }
12642
 
12643
    // isset id assignments
12644
 
3430 rajveer 12645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12646
    static {
3430 rajveer 12647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12648
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12649
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12650
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 12654
    }
12655
 
12656
    public authenticateStatisticsUser_args() {
12657
    }
12658
 
12659
    public authenticateStatisticsUser_args(
12660
      String username,
12661
      String password)
12662
    {
12663
      this();
12664
      this.username = username;
12665
      this.password = password;
12666
    }
12667
 
12668
    /**
12669
     * Performs a deep copy on <i>other</i>.
12670
     */
12671
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
12672
      if (other.isSetUsername()) {
12673
        this.username = other.username;
12674
      }
12675
      if (other.isSetPassword()) {
12676
        this.password = other.password;
12677
      }
12678
    }
12679
 
12680
    public authenticateStatisticsUser_args deepCopy() {
12681
      return new authenticateStatisticsUser_args(this);
12682
    }
12683
 
3430 rajveer 12684
    @Override
12685
    public void clear() {
12686
      this.username = null;
12687
      this.password = null;
1611 ankur.sing 12688
    }
12689
 
12690
    public String getUsername() {
12691
      return this.username;
12692
    }
12693
 
3430 rajveer 12694
    public void setUsername(String username) {
1611 ankur.sing 12695
      this.username = username;
12696
    }
12697
 
12698
    public void unsetUsername() {
12699
      this.username = null;
12700
    }
12701
 
3430 rajveer 12702
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12703
    public boolean isSetUsername() {
12704
      return this.username != null;
12705
    }
12706
 
12707
    public void setUsernameIsSet(boolean value) {
12708
      if (!value) {
12709
        this.username = null;
12710
      }
12711
    }
12712
 
12713
    public String getPassword() {
12714
      return this.password;
12715
    }
12716
 
3430 rajveer 12717
    public void setPassword(String password) {
1611 ankur.sing 12718
      this.password = password;
12719
    }
12720
 
12721
    public void unsetPassword() {
12722
      this.password = null;
12723
    }
12724
 
3430 rajveer 12725
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12726
    public boolean isSetPassword() {
12727
      return this.password != null;
12728
    }
12729
 
12730
    public void setPasswordIsSet(boolean value) {
12731
      if (!value) {
12732
        this.password = null;
12733
      }
12734
    }
12735
 
12736
    public void setFieldValue(_Fields field, Object value) {
12737
      switch (field) {
12738
      case USERNAME:
12739
        if (value == null) {
12740
          unsetUsername();
12741
        } else {
12742
          setUsername((String)value);
12743
        }
12744
        break;
12745
 
12746
      case PASSWORD:
12747
        if (value == null) {
12748
          unsetPassword();
12749
        } else {
12750
          setPassword((String)value);
12751
        }
12752
        break;
12753
 
12754
      }
12755
    }
12756
 
12757
    public Object getFieldValue(_Fields field) {
12758
      switch (field) {
12759
      case USERNAME:
12760
        return getUsername();
12761
 
12762
      case PASSWORD:
12763
        return getPassword();
12764
 
12765
      }
12766
      throw new IllegalStateException();
12767
    }
12768
 
3430 rajveer 12769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12770
    public boolean isSet(_Fields field) {
12771
      if (field == null) {
12772
        throw new IllegalArgumentException();
12773
      }
1611 ankur.sing 12774
 
12775
      switch (field) {
12776
      case USERNAME:
12777
        return isSetUsername();
12778
      case PASSWORD:
12779
        return isSetPassword();
12780
      }
12781
      throw new IllegalStateException();
12782
    }
12783
 
12784
    @Override
12785
    public boolean equals(Object that) {
12786
      if (that == null)
12787
        return false;
12788
      if (that instanceof authenticateStatisticsUser_args)
12789
        return this.equals((authenticateStatisticsUser_args)that);
12790
      return false;
12791
    }
12792
 
12793
    public boolean equals(authenticateStatisticsUser_args that) {
12794
      if (that == null)
12795
        return false;
12796
 
12797
      boolean this_present_username = true && this.isSetUsername();
12798
      boolean that_present_username = true && that.isSetUsername();
12799
      if (this_present_username || that_present_username) {
12800
        if (!(this_present_username && that_present_username))
12801
          return false;
12802
        if (!this.username.equals(that.username))
12803
          return false;
12804
      }
12805
 
12806
      boolean this_present_password = true && this.isSetPassword();
12807
      boolean that_present_password = true && that.isSetPassword();
12808
      if (this_present_password || that_present_password) {
12809
        if (!(this_present_password && that_present_password))
12810
          return false;
12811
        if (!this.password.equals(that.password))
12812
          return false;
12813
      }
12814
 
12815
      return true;
12816
    }
12817
 
12818
    @Override
12819
    public int hashCode() {
12820
      return 0;
12821
    }
12822
 
12823
    public int compareTo(authenticateStatisticsUser_args other) {
12824
      if (!getClass().equals(other.getClass())) {
12825
        return getClass().getName().compareTo(other.getClass().getName());
12826
      }
12827
 
12828
      int lastComparison = 0;
12829
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12830
 
3430 rajveer 12831
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12832
      if (lastComparison != 0) {
12833
        return lastComparison;
12834
      }
3430 rajveer 12835
      if (isSetUsername()) {
12836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12837
        if (lastComparison != 0) {
12838
          return lastComparison;
12839
        }
1611 ankur.sing 12840
      }
3430 rajveer 12841
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12842
      if (lastComparison != 0) {
12843
        return lastComparison;
12844
      }
3430 rajveer 12845
      if (isSetPassword()) {
12846
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12847
        if (lastComparison != 0) {
12848
          return lastComparison;
12849
        }
1611 ankur.sing 12850
      }
12851
      return 0;
12852
    }
12853
 
3430 rajveer 12854
    public _Fields fieldForId(int fieldId) {
12855
      return _Fields.findByThriftId(fieldId);
12856
    }
12857
 
12858
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12859
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12860
      iprot.readStructBegin();
12861
      while (true)
12862
      {
12863
        field = iprot.readFieldBegin();
3430 rajveer 12864
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12865
          break;
12866
        }
3430 rajveer 12867
        switch (field.id) {
12868
          case 1: // USERNAME
12869
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12870
              this.username = iprot.readString();
12871
            } else { 
12872
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12873
            }
12874
            break;
12875
          case 2: // PASSWORD
12876
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12877
              this.password = iprot.readString();
12878
            } else { 
12879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12880
            }
12881
            break;
12882
          default:
12883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12884
        }
3430 rajveer 12885
        iprot.readFieldEnd();
1611 ankur.sing 12886
      }
12887
      iprot.readStructEnd();
12888
      validate();
12889
    }
12890
 
3430 rajveer 12891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12892
      validate();
12893
 
12894
      oprot.writeStructBegin(STRUCT_DESC);
12895
      if (this.username != null) {
12896
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12897
        oprot.writeString(this.username);
12898
        oprot.writeFieldEnd();
12899
      }
12900
      if (this.password != null) {
12901
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12902
        oprot.writeString(this.password);
12903
        oprot.writeFieldEnd();
12904
      }
12905
      oprot.writeFieldStop();
12906
      oprot.writeStructEnd();
12907
    }
12908
 
12909
    @Override
12910
    public String toString() {
12911
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
12912
      boolean first = true;
12913
 
12914
      sb.append("username:");
12915
      if (this.username == null) {
12916
        sb.append("null");
12917
      } else {
12918
        sb.append(this.username);
12919
      }
12920
      first = false;
12921
      if (!first) sb.append(", ");
12922
      sb.append("password:");
12923
      if (this.password == null) {
12924
        sb.append("null");
12925
      } else {
12926
        sb.append(this.password);
12927
      }
12928
      first = false;
12929
      sb.append(")");
12930
      return sb.toString();
12931
    }
12932
 
3430 rajveer 12933
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12934
      // check for required fields
12935
    }
12936
 
3430 rajveer 12937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12938
      try {
12939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12940
      } catch (org.apache.thrift.TException te) {
12941
        throw new java.io.IOException(te);
12942
      }
12943
    }
12944
 
12945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12946
      try {
12947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12948
      } catch (org.apache.thrift.TException te) {
12949
        throw new java.io.IOException(te);
12950
      }
12951
    }
12952
 
1611 ankur.sing 12953
  }
12954
 
3430 rajveer 12955
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 12957
 
3430 rajveer 12958
    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);
12959
    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 12960
 
3430 rajveer 12961
    private StatisticsUser success; // required
12962
    private HelperServiceException hse; // required
1611 ankur.sing 12963
 
12964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12966
      SUCCESS((short)0, "success"),
12967
      HSE((short)1, "hse");
12968
 
12969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12970
 
12971
      static {
12972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12973
          byName.put(field.getFieldName(), field);
12974
        }
12975
      }
12976
 
12977
      /**
12978
       * Find the _Fields constant that matches fieldId, or null if its not found.
12979
       */
12980
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12981
        switch(fieldId) {
12982
          case 0: // SUCCESS
12983
            return SUCCESS;
12984
          case 1: // HSE
12985
            return HSE;
12986
          default:
12987
            return null;
12988
        }
1611 ankur.sing 12989
      }
12990
 
12991
      /**
12992
       * Find the _Fields constant that matches fieldId, throwing an exception
12993
       * if it is not found.
12994
       */
12995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12996
        _Fields fields = findByThriftId(fieldId);
12997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12998
        return fields;
12999
      }
13000
 
13001
      /**
13002
       * Find the _Fields constant that matches name, or null if its not found.
13003
       */
13004
      public static _Fields findByName(String name) {
13005
        return byName.get(name);
13006
      }
13007
 
13008
      private final short _thriftId;
13009
      private final String _fieldName;
13010
 
13011
      _Fields(short thriftId, String fieldName) {
13012
        _thriftId = thriftId;
13013
        _fieldName = fieldName;
13014
      }
13015
 
13016
      public short getThriftFieldId() {
13017
        return _thriftId;
13018
      }
13019
 
13020
      public String getFieldName() {
13021
        return _fieldName;
13022
      }
13023
    }
13024
 
13025
    // isset id assignments
13026
 
3430 rajveer 13027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13028
    static {
3430 rajveer 13029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13030
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13031
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13032
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13033
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13034
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13035
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13036
    }
13037
 
13038
    public authenticateStatisticsUser_result() {
13039
    }
13040
 
13041
    public authenticateStatisticsUser_result(
13042
      StatisticsUser success,
13043
      HelperServiceException hse)
13044
    {
13045
      this();
13046
      this.success = success;
13047
      this.hse = hse;
13048
    }
13049
 
13050
    /**
13051
     * Performs a deep copy on <i>other</i>.
13052
     */
13053
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13054
      if (other.isSetSuccess()) {
13055
        this.success = new StatisticsUser(other.success);
13056
      }
13057
      if (other.isSetHse()) {
13058
        this.hse = new HelperServiceException(other.hse);
13059
      }
13060
    }
13061
 
13062
    public authenticateStatisticsUser_result deepCopy() {
13063
      return new authenticateStatisticsUser_result(this);
13064
    }
13065
 
3430 rajveer 13066
    @Override
13067
    public void clear() {
13068
      this.success = null;
13069
      this.hse = null;
1611 ankur.sing 13070
    }
13071
 
13072
    public StatisticsUser getSuccess() {
13073
      return this.success;
13074
    }
13075
 
3430 rajveer 13076
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13077
      this.success = success;
13078
    }
13079
 
13080
    public void unsetSuccess() {
13081
      this.success = null;
13082
    }
13083
 
3430 rajveer 13084
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13085
    public boolean isSetSuccess() {
13086
      return this.success != null;
13087
    }
13088
 
13089
    public void setSuccessIsSet(boolean value) {
13090
      if (!value) {
13091
        this.success = null;
13092
      }
13093
    }
13094
 
13095
    public HelperServiceException getHse() {
13096
      return this.hse;
13097
    }
13098
 
3430 rajveer 13099
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13100
      this.hse = hse;
13101
    }
13102
 
13103
    public void unsetHse() {
13104
      this.hse = null;
13105
    }
13106
 
3430 rajveer 13107
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13108
    public boolean isSetHse() {
13109
      return this.hse != null;
13110
    }
13111
 
13112
    public void setHseIsSet(boolean value) {
13113
      if (!value) {
13114
        this.hse = null;
13115
      }
13116
    }
13117
 
13118
    public void setFieldValue(_Fields field, Object value) {
13119
      switch (field) {
13120
      case SUCCESS:
13121
        if (value == null) {
13122
          unsetSuccess();
13123
        } else {
13124
          setSuccess((StatisticsUser)value);
13125
        }
13126
        break;
13127
 
13128
      case HSE:
13129
        if (value == null) {
13130
          unsetHse();
13131
        } else {
13132
          setHse((HelperServiceException)value);
13133
        }
13134
        break;
13135
 
13136
      }
13137
    }
13138
 
13139
    public Object getFieldValue(_Fields field) {
13140
      switch (field) {
13141
      case SUCCESS:
13142
        return getSuccess();
13143
 
13144
      case HSE:
13145
        return getHse();
13146
 
13147
      }
13148
      throw new IllegalStateException();
13149
    }
13150
 
3430 rajveer 13151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13152
    public boolean isSet(_Fields field) {
13153
      if (field == null) {
13154
        throw new IllegalArgumentException();
13155
      }
1611 ankur.sing 13156
 
13157
      switch (field) {
13158
      case SUCCESS:
13159
        return isSetSuccess();
13160
      case HSE:
13161
        return isSetHse();
13162
      }
13163
      throw new IllegalStateException();
13164
    }
13165
 
13166
    @Override
13167
    public boolean equals(Object that) {
13168
      if (that == null)
13169
        return false;
13170
      if (that instanceof authenticateStatisticsUser_result)
13171
        return this.equals((authenticateStatisticsUser_result)that);
13172
      return false;
13173
    }
13174
 
13175
    public boolean equals(authenticateStatisticsUser_result that) {
13176
      if (that == null)
13177
        return false;
13178
 
13179
      boolean this_present_success = true && this.isSetSuccess();
13180
      boolean that_present_success = true && that.isSetSuccess();
13181
      if (this_present_success || that_present_success) {
13182
        if (!(this_present_success && that_present_success))
13183
          return false;
13184
        if (!this.success.equals(that.success))
13185
          return false;
13186
      }
13187
 
13188
      boolean this_present_hse = true && this.isSetHse();
13189
      boolean that_present_hse = true && that.isSetHse();
13190
      if (this_present_hse || that_present_hse) {
13191
        if (!(this_present_hse && that_present_hse))
13192
          return false;
13193
        if (!this.hse.equals(that.hse))
13194
          return false;
13195
      }
13196
 
13197
      return true;
13198
    }
13199
 
13200
    @Override
13201
    public int hashCode() {
13202
      return 0;
13203
    }
13204
 
13205
    public int compareTo(authenticateStatisticsUser_result other) {
13206
      if (!getClass().equals(other.getClass())) {
13207
        return getClass().getName().compareTo(other.getClass().getName());
13208
      }
13209
 
13210
      int lastComparison = 0;
13211
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13212
 
3430 rajveer 13213
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13214
      if (lastComparison != 0) {
13215
        return lastComparison;
13216
      }
3430 rajveer 13217
      if (isSetSuccess()) {
13218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13219
        if (lastComparison != 0) {
13220
          return lastComparison;
13221
        }
1611 ankur.sing 13222
      }
3430 rajveer 13223
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13224
      if (lastComparison != 0) {
13225
        return lastComparison;
13226
      }
3430 rajveer 13227
      if (isSetHse()) {
13228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13229
        if (lastComparison != 0) {
13230
          return lastComparison;
13231
        }
1611 ankur.sing 13232
      }
13233
      return 0;
13234
    }
13235
 
3430 rajveer 13236
    public _Fields fieldForId(int fieldId) {
13237
      return _Fields.findByThriftId(fieldId);
13238
    }
13239
 
13240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13241
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13242
      iprot.readStructBegin();
13243
      while (true)
13244
      {
13245
        field = iprot.readFieldBegin();
3430 rajveer 13246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13247
          break;
13248
        }
3430 rajveer 13249
        switch (field.id) {
13250
          case 0: // SUCCESS
13251
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13252
              this.success = new StatisticsUser();
13253
              this.success.read(iprot);
13254
            } else { 
13255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13256
            }
13257
            break;
13258
          case 1: // HSE
13259
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13260
              this.hse = new HelperServiceException();
13261
              this.hse.read(iprot);
13262
            } else { 
13263
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13264
            }
13265
            break;
13266
          default:
13267
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13268
        }
3430 rajveer 13269
        iprot.readFieldEnd();
1611 ankur.sing 13270
      }
13271
      iprot.readStructEnd();
13272
      validate();
13273
    }
13274
 
3430 rajveer 13275
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13276
      oprot.writeStructBegin(STRUCT_DESC);
13277
 
13278
      if (this.isSetSuccess()) {
13279
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13280
        this.success.write(oprot);
13281
        oprot.writeFieldEnd();
13282
      } else if (this.isSetHse()) {
13283
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13284
        this.hse.write(oprot);
13285
        oprot.writeFieldEnd();
13286
      }
13287
      oprot.writeFieldStop();
13288
      oprot.writeStructEnd();
13289
    }
13290
 
13291
    @Override
13292
    public String toString() {
13293
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13294
      boolean first = true;
13295
 
13296
      sb.append("success:");
13297
      if (this.success == null) {
13298
        sb.append("null");
13299
      } else {
13300
        sb.append(this.success);
13301
      }
13302
      first = false;
13303
      if (!first) sb.append(", ");
13304
      sb.append("hse:");
13305
      if (this.hse == null) {
13306
        sb.append("null");
13307
      } else {
13308
        sb.append(this.hse);
13309
      }
13310
      first = false;
13311
      sb.append(")");
13312
      return sb.toString();
13313
    }
13314
 
3430 rajveer 13315
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13316
      // check for required fields
13317
    }
13318
 
3430 rajveer 13319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13320
      try {
13321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13322
      } catch (org.apache.thrift.TException te) {
13323
        throw new java.io.IOException(te);
13324
      }
13325
    }
13326
 
13327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13328
      try {
13329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13330
      } catch (org.apache.thrift.TException te) {
13331
        throw new java.io.IOException(te);
13332
      }
13333
    }
13334
 
1611 ankur.sing 13335
  }
13336
 
3430 rajveer 13337
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13339
 
3430 rajveer 13340
    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);
13341
    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 13342
 
3430 rajveer 13343
    private String username; // required
13344
    private String password; // required
1891 ankur.sing 13345
 
13346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13348
      USERNAME((short)1, "username"),
13349
      PASSWORD((short)2, "password");
13350
 
13351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13352
 
13353
      static {
13354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13355
          byName.put(field.getFieldName(), field);
13356
        }
13357
      }
13358
 
13359
      /**
13360
       * Find the _Fields constant that matches fieldId, or null if its not found.
13361
       */
13362
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13363
        switch(fieldId) {
13364
          case 1: // USERNAME
13365
            return USERNAME;
13366
          case 2: // PASSWORD
13367
            return PASSWORD;
13368
          default:
13369
            return null;
13370
        }
1891 ankur.sing 13371
      }
13372
 
13373
      /**
13374
       * Find the _Fields constant that matches fieldId, throwing an exception
13375
       * if it is not found.
13376
       */
13377
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13378
        _Fields fields = findByThriftId(fieldId);
13379
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13380
        return fields;
13381
      }
13382
 
13383
      /**
13384
       * Find the _Fields constant that matches name, or null if its not found.
13385
       */
13386
      public static _Fields findByName(String name) {
13387
        return byName.get(name);
13388
      }
13389
 
13390
      private final short _thriftId;
13391
      private final String _fieldName;
13392
 
13393
      _Fields(short thriftId, String fieldName) {
13394
        _thriftId = thriftId;
13395
        _fieldName = fieldName;
13396
      }
13397
 
13398
      public short getThriftFieldId() {
13399
        return _thriftId;
13400
      }
13401
 
13402
      public String getFieldName() {
13403
        return _fieldName;
13404
      }
13405
    }
13406
 
13407
    // isset id assignments
13408
 
3430 rajveer 13409
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13410
    static {
3430 rajveer 13411
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13412
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13413
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13414
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13416
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13417
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13418
    }
13419
 
13420
    public authenticateReportUser_args() {
13421
    }
13422
 
13423
    public authenticateReportUser_args(
13424
      String username,
13425
      String password)
13426
    {
13427
      this();
13428
      this.username = username;
13429
      this.password = password;
13430
    }
13431
 
13432
    /**
13433
     * Performs a deep copy on <i>other</i>.
13434
     */
13435
    public authenticateReportUser_args(authenticateReportUser_args other) {
13436
      if (other.isSetUsername()) {
13437
        this.username = other.username;
13438
      }
13439
      if (other.isSetPassword()) {
13440
        this.password = other.password;
13441
      }
13442
    }
13443
 
13444
    public authenticateReportUser_args deepCopy() {
13445
      return new authenticateReportUser_args(this);
13446
    }
13447
 
3430 rajveer 13448
    @Override
13449
    public void clear() {
13450
      this.username = null;
13451
      this.password = null;
1891 ankur.sing 13452
    }
13453
 
13454
    public String getUsername() {
13455
      return this.username;
13456
    }
13457
 
3430 rajveer 13458
    public void setUsername(String username) {
1891 ankur.sing 13459
      this.username = username;
13460
    }
13461
 
13462
    public void unsetUsername() {
13463
      this.username = null;
13464
    }
13465
 
3430 rajveer 13466
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13467
    public boolean isSetUsername() {
13468
      return this.username != null;
13469
    }
13470
 
13471
    public void setUsernameIsSet(boolean value) {
13472
      if (!value) {
13473
        this.username = null;
13474
      }
13475
    }
13476
 
13477
    public String getPassword() {
13478
      return this.password;
13479
    }
13480
 
3430 rajveer 13481
    public void setPassword(String password) {
1891 ankur.sing 13482
      this.password = password;
13483
    }
13484
 
13485
    public void unsetPassword() {
13486
      this.password = null;
13487
    }
13488
 
3430 rajveer 13489
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13490
    public boolean isSetPassword() {
13491
      return this.password != null;
13492
    }
13493
 
13494
    public void setPasswordIsSet(boolean value) {
13495
      if (!value) {
13496
        this.password = null;
13497
      }
13498
    }
13499
 
13500
    public void setFieldValue(_Fields field, Object value) {
13501
      switch (field) {
13502
      case USERNAME:
13503
        if (value == null) {
13504
          unsetUsername();
13505
        } else {
13506
          setUsername((String)value);
13507
        }
13508
        break;
13509
 
13510
      case PASSWORD:
13511
        if (value == null) {
13512
          unsetPassword();
13513
        } else {
13514
          setPassword((String)value);
13515
        }
13516
        break;
13517
 
13518
      }
13519
    }
13520
 
13521
    public Object getFieldValue(_Fields field) {
13522
      switch (field) {
13523
      case USERNAME:
13524
        return getUsername();
13525
 
13526
      case PASSWORD:
13527
        return getPassword();
13528
 
13529
      }
13530
      throw new IllegalStateException();
13531
    }
13532
 
3430 rajveer 13533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13534
    public boolean isSet(_Fields field) {
13535
      if (field == null) {
13536
        throw new IllegalArgumentException();
13537
      }
1891 ankur.sing 13538
 
13539
      switch (field) {
13540
      case USERNAME:
13541
        return isSetUsername();
13542
      case PASSWORD:
13543
        return isSetPassword();
13544
      }
13545
      throw new IllegalStateException();
13546
    }
13547
 
13548
    @Override
13549
    public boolean equals(Object that) {
13550
      if (that == null)
13551
        return false;
13552
      if (that instanceof authenticateReportUser_args)
13553
        return this.equals((authenticateReportUser_args)that);
13554
      return false;
13555
    }
13556
 
13557
    public boolean equals(authenticateReportUser_args that) {
13558
      if (that == null)
13559
        return false;
13560
 
13561
      boolean this_present_username = true && this.isSetUsername();
13562
      boolean that_present_username = true && that.isSetUsername();
13563
      if (this_present_username || that_present_username) {
13564
        if (!(this_present_username && that_present_username))
13565
          return false;
13566
        if (!this.username.equals(that.username))
13567
          return false;
13568
      }
13569
 
13570
      boolean this_present_password = true && this.isSetPassword();
13571
      boolean that_present_password = true && that.isSetPassword();
13572
      if (this_present_password || that_present_password) {
13573
        if (!(this_present_password && that_present_password))
13574
          return false;
13575
        if (!this.password.equals(that.password))
13576
          return false;
13577
      }
13578
 
13579
      return true;
13580
    }
13581
 
13582
    @Override
13583
    public int hashCode() {
13584
      return 0;
13585
    }
13586
 
13587
    public int compareTo(authenticateReportUser_args other) {
13588
      if (!getClass().equals(other.getClass())) {
13589
        return getClass().getName().compareTo(other.getClass().getName());
13590
      }
13591
 
13592
      int lastComparison = 0;
13593
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
13594
 
3430 rajveer 13595
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 13596
      if (lastComparison != 0) {
13597
        return lastComparison;
13598
      }
3430 rajveer 13599
      if (isSetUsername()) {
13600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13601
        if (lastComparison != 0) {
13602
          return lastComparison;
13603
        }
1891 ankur.sing 13604
      }
3430 rajveer 13605
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 13606
      if (lastComparison != 0) {
13607
        return lastComparison;
13608
      }
3430 rajveer 13609
      if (isSetPassword()) {
13610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13611
        if (lastComparison != 0) {
13612
          return lastComparison;
13613
        }
1891 ankur.sing 13614
      }
13615
      return 0;
13616
    }
13617
 
3430 rajveer 13618
    public _Fields fieldForId(int fieldId) {
13619
      return _Fields.findByThriftId(fieldId);
13620
    }
13621
 
13622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13623
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13624
      iprot.readStructBegin();
13625
      while (true)
13626
      {
13627
        field = iprot.readFieldBegin();
3430 rajveer 13628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13629
          break;
13630
        }
3430 rajveer 13631
        switch (field.id) {
13632
          case 1: // USERNAME
13633
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13634
              this.username = iprot.readString();
13635
            } else { 
13636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13637
            }
13638
            break;
13639
          case 2: // PASSWORD
13640
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13641
              this.password = iprot.readString();
13642
            } else { 
13643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13644
            }
13645
            break;
13646
          default:
13647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13648
        }
3430 rajveer 13649
        iprot.readFieldEnd();
1891 ankur.sing 13650
      }
13651
      iprot.readStructEnd();
13652
      validate();
13653
    }
13654
 
3430 rajveer 13655
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13656
      validate();
13657
 
13658
      oprot.writeStructBegin(STRUCT_DESC);
13659
      if (this.username != null) {
13660
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13661
        oprot.writeString(this.username);
13662
        oprot.writeFieldEnd();
13663
      }
13664
      if (this.password != null) {
13665
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13666
        oprot.writeString(this.password);
13667
        oprot.writeFieldEnd();
13668
      }
13669
      oprot.writeFieldStop();
13670
      oprot.writeStructEnd();
13671
    }
13672
 
13673
    @Override
13674
    public String toString() {
13675
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
13676
      boolean first = true;
13677
 
13678
      sb.append("username:");
13679
      if (this.username == null) {
13680
        sb.append("null");
13681
      } else {
13682
        sb.append(this.username);
13683
      }
13684
      first = false;
13685
      if (!first) sb.append(", ");
13686
      sb.append("password:");
13687
      if (this.password == null) {
13688
        sb.append("null");
13689
      } else {
13690
        sb.append(this.password);
13691
      }
13692
      first = false;
13693
      sb.append(")");
13694
      return sb.toString();
13695
    }
13696
 
3430 rajveer 13697
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13698
      // check for required fields
13699
    }
13700
 
3430 rajveer 13701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13702
      try {
13703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13704
      } catch (org.apache.thrift.TException te) {
13705
        throw new java.io.IOException(te);
13706
      }
13707
    }
13708
 
13709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13710
      try {
13711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13712
      } catch (org.apache.thrift.TException te) {
13713
        throw new java.io.IOException(te);
13714
      }
13715
    }
13716
 
1891 ankur.sing 13717
  }
13718
 
3430 rajveer 13719
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
13720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 13721
 
3430 rajveer 13722
    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);
13723
    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 13724
 
3430 rajveer 13725
    private ReportUser success; // required
13726
    private HelperServiceException hse; // required
1891 ankur.sing 13727
 
13728
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13729
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13730
      SUCCESS((short)0, "success"),
13731
      HSE((short)1, "hse");
13732
 
13733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13734
 
13735
      static {
13736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13737
          byName.put(field.getFieldName(), field);
13738
        }
13739
      }
13740
 
13741
      /**
13742
       * Find the _Fields constant that matches fieldId, or null if its not found.
13743
       */
13744
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13745
        switch(fieldId) {
13746
          case 0: // SUCCESS
13747
            return SUCCESS;
13748
          case 1: // HSE
13749
            return HSE;
13750
          default:
13751
            return null;
13752
        }
1891 ankur.sing 13753
      }
13754
 
13755
      /**
13756
       * Find the _Fields constant that matches fieldId, throwing an exception
13757
       * if it is not found.
13758
       */
13759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13760
        _Fields fields = findByThriftId(fieldId);
13761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13762
        return fields;
13763
      }
13764
 
13765
      /**
13766
       * Find the _Fields constant that matches name, or null if its not found.
13767
       */
13768
      public static _Fields findByName(String name) {
13769
        return byName.get(name);
13770
      }
13771
 
13772
      private final short _thriftId;
13773
      private final String _fieldName;
13774
 
13775
      _Fields(short thriftId, String fieldName) {
13776
        _thriftId = thriftId;
13777
        _fieldName = fieldName;
13778
      }
13779
 
13780
      public short getThriftFieldId() {
13781
        return _thriftId;
13782
      }
13783
 
13784
      public String getFieldName() {
13785
        return _fieldName;
13786
      }
13787
    }
13788
 
13789
    // isset id assignments
13790
 
3430 rajveer 13791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13792
    static {
3430 rajveer 13793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13794
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13795
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13796
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13800
    }
13801
 
13802
    public authenticateReportUser_result() {
13803
    }
13804
 
13805
    public authenticateReportUser_result(
13806
      ReportUser success,
13807
      HelperServiceException hse)
13808
    {
13809
      this();
13810
      this.success = success;
13811
      this.hse = hse;
13812
    }
13813
 
13814
    /**
13815
     * Performs a deep copy on <i>other</i>.
13816
     */
13817
    public authenticateReportUser_result(authenticateReportUser_result other) {
13818
      if (other.isSetSuccess()) {
13819
        this.success = new ReportUser(other.success);
13820
      }
13821
      if (other.isSetHse()) {
13822
        this.hse = new HelperServiceException(other.hse);
13823
      }
13824
    }
13825
 
13826
    public authenticateReportUser_result deepCopy() {
13827
      return new authenticateReportUser_result(this);
13828
    }
13829
 
3430 rajveer 13830
    @Override
13831
    public void clear() {
13832
      this.success = null;
13833
      this.hse = null;
1891 ankur.sing 13834
    }
13835
 
13836
    public ReportUser getSuccess() {
13837
      return this.success;
13838
    }
13839
 
3430 rajveer 13840
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13841
      this.success = success;
13842
    }
13843
 
13844
    public void unsetSuccess() {
13845
      this.success = null;
13846
    }
13847
 
3430 rajveer 13848
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13849
    public boolean isSetSuccess() {
13850
      return this.success != null;
13851
    }
13852
 
13853
    public void setSuccessIsSet(boolean value) {
13854
      if (!value) {
13855
        this.success = null;
13856
      }
13857
    }
13858
 
13859
    public HelperServiceException getHse() {
13860
      return this.hse;
13861
    }
13862
 
3430 rajveer 13863
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13864
      this.hse = hse;
13865
    }
13866
 
13867
    public void unsetHse() {
13868
      this.hse = null;
13869
    }
13870
 
3430 rajveer 13871
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13872
    public boolean isSetHse() {
13873
      return this.hse != null;
13874
    }
13875
 
13876
    public void setHseIsSet(boolean value) {
13877
      if (!value) {
13878
        this.hse = null;
13879
      }
13880
    }
13881
 
13882
    public void setFieldValue(_Fields field, Object value) {
13883
      switch (field) {
13884
      case SUCCESS:
13885
        if (value == null) {
13886
          unsetSuccess();
13887
        } else {
13888
          setSuccess((ReportUser)value);
13889
        }
13890
        break;
13891
 
13892
      case HSE:
13893
        if (value == null) {
13894
          unsetHse();
13895
        } else {
13896
          setHse((HelperServiceException)value);
13897
        }
13898
        break;
13899
 
13900
      }
13901
    }
13902
 
13903
    public Object getFieldValue(_Fields field) {
13904
      switch (field) {
13905
      case SUCCESS:
13906
        return getSuccess();
13907
 
13908
      case HSE:
13909
        return getHse();
13910
 
13911
      }
13912
      throw new IllegalStateException();
13913
    }
13914
 
3430 rajveer 13915
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13916
    public boolean isSet(_Fields field) {
13917
      if (field == null) {
13918
        throw new IllegalArgumentException();
13919
      }
1891 ankur.sing 13920
 
13921
      switch (field) {
13922
      case SUCCESS:
13923
        return isSetSuccess();
13924
      case HSE:
13925
        return isSetHse();
13926
      }
13927
      throw new IllegalStateException();
13928
    }
13929
 
13930
    @Override
13931
    public boolean equals(Object that) {
13932
      if (that == null)
13933
        return false;
13934
      if (that instanceof authenticateReportUser_result)
13935
        return this.equals((authenticateReportUser_result)that);
13936
      return false;
13937
    }
13938
 
13939
    public boolean equals(authenticateReportUser_result that) {
13940
      if (that == null)
13941
        return false;
13942
 
13943
      boolean this_present_success = true && this.isSetSuccess();
13944
      boolean that_present_success = true && that.isSetSuccess();
13945
      if (this_present_success || that_present_success) {
13946
        if (!(this_present_success && that_present_success))
13947
          return false;
13948
        if (!this.success.equals(that.success))
13949
          return false;
13950
      }
13951
 
13952
      boolean this_present_hse = true && this.isSetHse();
13953
      boolean that_present_hse = true && that.isSetHse();
13954
      if (this_present_hse || that_present_hse) {
13955
        if (!(this_present_hse && that_present_hse))
13956
          return false;
13957
        if (!this.hse.equals(that.hse))
13958
          return false;
13959
      }
13960
 
13961
      return true;
13962
    }
13963
 
13964
    @Override
13965
    public int hashCode() {
13966
      return 0;
13967
    }
13968
 
13969
    public int compareTo(authenticateReportUser_result other) {
13970
      if (!getClass().equals(other.getClass())) {
13971
        return getClass().getName().compareTo(other.getClass().getName());
13972
      }
13973
 
13974
      int lastComparison = 0;
13975
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13976
 
3430 rajveer 13977
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13978
      if (lastComparison != 0) {
13979
        return lastComparison;
13980
      }
3430 rajveer 13981
      if (isSetSuccess()) {
13982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13983
        if (lastComparison != 0) {
13984
          return lastComparison;
13985
        }
1891 ankur.sing 13986
      }
3430 rajveer 13987
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 13988
      if (lastComparison != 0) {
13989
        return lastComparison;
13990
      }
3430 rajveer 13991
      if (isSetHse()) {
13992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13993
        if (lastComparison != 0) {
13994
          return lastComparison;
13995
        }
1891 ankur.sing 13996
      }
13997
      return 0;
13998
    }
13999
 
3430 rajveer 14000
    public _Fields fieldForId(int fieldId) {
14001
      return _Fields.findByThriftId(fieldId);
14002
    }
14003
 
14004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14005
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14006
      iprot.readStructBegin();
14007
      while (true)
14008
      {
14009
        field = iprot.readFieldBegin();
3430 rajveer 14010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14011
          break;
14012
        }
3430 rajveer 14013
        switch (field.id) {
14014
          case 0: // SUCCESS
14015
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14016
              this.success = new ReportUser();
14017
              this.success.read(iprot);
14018
            } else { 
14019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14020
            }
14021
            break;
14022
          case 1: // HSE
14023
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14024
              this.hse = new HelperServiceException();
14025
              this.hse.read(iprot);
14026
            } else { 
14027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14028
            }
14029
            break;
14030
          default:
14031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14032
        }
3430 rajveer 14033
        iprot.readFieldEnd();
1891 ankur.sing 14034
      }
14035
      iprot.readStructEnd();
14036
      validate();
14037
    }
14038
 
3430 rajveer 14039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14040
      oprot.writeStructBegin(STRUCT_DESC);
14041
 
14042
      if (this.isSetSuccess()) {
14043
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14044
        this.success.write(oprot);
14045
        oprot.writeFieldEnd();
14046
      } else if (this.isSetHse()) {
14047
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14048
        this.hse.write(oprot);
14049
        oprot.writeFieldEnd();
14050
      }
14051
      oprot.writeFieldStop();
14052
      oprot.writeStructEnd();
14053
    }
14054
 
14055
    @Override
14056
    public String toString() {
14057
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14058
      boolean first = true;
14059
 
14060
      sb.append("success:");
14061
      if (this.success == null) {
14062
        sb.append("null");
14063
      } else {
14064
        sb.append(this.success);
14065
      }
14066
      first = false;
14067
      if (!first) sb.append(", ");
14068
      sb.append("hse:");
14069
      if (this.hse == null) {
14070
        sb.append("null");
14071
      } else {
14072
        sb.append(this.hse);
14073
      }
14074
      first = false;
14075
      sb.append(")");
14076
      return sb.toString();
14077
    }
14078
 
3430 rajveer 14079
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14080
      // check for required fields
14081
    }
14082
 
3430 rajveer 14083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14084
      try {
14085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14086
      } catch (org.apache.thrift.TException te) {
14087
        throw new java.io.IOException(te);
14088
      }
14089
    }
14090
 
14091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14092
      try {
14093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14094
      } catch (org.apache.thrift.TException te) {
14095
        throw new java.io.IOException(te);
14096
      }
14097
    }
14098
 
1891 ankur.sing 14099
  }
14100
 
3430 rajveer 14101
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14103
 
3430 rajveer 14104
    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 14105
 
3430 rajveer 14106
    private long role; // required
1891 ankur.sing 14107
 
14108
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14109
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14110
      ROLE((short)1, "role");
14111
 
14112
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14113
 
14114
      static {
14115
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14116
          byName.put(field.getFieldName(), field);
14117
        }
14118
      }
14119
 
14120
      /**
14121
       * Find the _Fields constant that matches fieldId, or null if its not found.
14122
       */
14123
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14124
        switch(fieldId) {
14125
          case 1: // ROLE
14126
            return ROLE;
14127
          default:
14128
            return null;
14129
        }
1891 ankur.sing 14130
      }
14131
 
14132
      /**
14133
       * Find the _Fields constant that matches fieldId, throwing an exception
14134
       * if it is not found.
14135
       */
14136
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14137
        _Fields fields = findByThriftId(fieldId);
14138
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14139
        return fields;
14140
      }
14141
 
14142
      /**
14143
       * Find the _Fields constant that matches name, or null if its not found.
14144
       */
14145
      public static _Fields findByName(String name) {
14146
        return byName.get(name);
14147
      }
14148
 
14149
      private final short _thriftId;
14150
      private final String _fieldName;
14151
 
14152
      _Fields(short thriftId, String fieldName) {
14153
        _thriftId = thriftId;
14154
        _fieldName = fieldName;
14155
      }
14156
 
14157
      public short getThriftFieldId() {
14158
        return _thriftId;
14159
      }
14160
 
14161
      public String getFieldName() {
14162
        return _fieldName;
14163
      }
14164
    }
14165
 
14166
    // isset id assignments
14167
    private static final int __ROLE_ISSET_ID = 0;
14168
    private BitSet __isset_bit_vector = new BitSet(1);
14169
 
3430 rajveer 14170
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14171
    static {
3430 rajveer 14172
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14173
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14174
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14175
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14176
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14177
    }
14178
 
14179
    public getReports_args() {
14180
    }
14181
 
14182
    public getReports_args(
14183
      long role)
14184
    {
14185
      this();
14186
      this.role = role;
14187
      setRoleIsSet(true);
14188
    }
14189
 
14190
    /**
14191
     * Performs a deep copy on <i>other</i>.
14192
     */
14193
    public getReports_args(getReports_args other) {
14194
      __isset_bit_vector.clear();
14195
      __isset_bit_vector.or(other.__isset_bit_vector);
14196
      this.role = other.role;
14197
    }
14198
 
14199
    public getReports_args deepCopy() {
14200
      return new getReports_args(this);
14201
    }
14202
 
3430 rajveer 14203
    @Override
14204
    public void clear() {
14205
      setRoleIsSet(false);
14206
      this.role = 0;
1891 ankur.sing 14207
    }
14208
 
14209
    public long getRole() {
14210
      return this.role;
14211
    }
14212
 
3430 rajveer 14213
    public void setRole(long role) {
1891 ankur.sing 14214
      this.role = role;
14215
      setRoleIsSet(true);
14216
    }
14217
 
14218
    public void unsetRole() {
14219
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14220
    }
14221
 
3430 rajveer 14222
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14223
    public boolean isSetRole() {
14224
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14225
    }
14226
 
14227
    public void setRoleIsSet(boolean value) {
14228
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14229
    }
14230
 
14231
    public void setFieldValue(_Fields field, Object value) {
14232
      switch (field) {
14233
      case ROLE:
14234
        if (value == null) {
14235
          unsetRole();
14236
        } else {
14237
          setRole((Long)value);
14238
        }
14239
        break;
14240
 
14241
      }
14242
    }
14243
 
14244
    public Object getFieldValue(_Fields field) {
14245
      switch (field) {
14246
      case ROLE:
3430 rajveer 14247
        return Long.valueOf(getRole());
1891 ankur.sing 14248
 
14249
      }
14250
      throw new IllegalStateException();
14251
    }
14252
 
3430 rajveer 14253
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14254
    public boolean isSet(_Fields field) {
14255
      if (field == null) {
14256
        throw new IllegalArgumentException();
14257
      }
1891 ankur.sing 14258
 
14259
      switch (field) {
14260
      case ROLE:
14261
        return isSetRole();
14262
      }
14263
      throw new IllegalStateException();
14264
    }
14265
 
14266
    @Override
14267
    public boolean equals(Object that) {
14268
      if (that == null)
14269
        return false;
14270
      if (that instanceof getReports_args)
14271
        return this.equals((getReports_args)that);
14272
      return false;
14273
    }
14274
 
14275
    public boolean equals(getReports_args that) {
14276
      if (that == null)
14277
        return false;
14278
 
14279
      boolean this_present_role = true;
14280
      boolean that_present_role = true;
14281
      if (this_present_role || that_present_role) {
14282
        if (!(this_present_role && that_present_role))
14283
          return false;
14284
        if (this.role != that.role)
14285
          return false;
14286
      }
14287
 
14288
      return true;
14289
    }
14290
 
14291
    @Override
14292
    public int hashCode() {
14293
      return 0;
14294
    }
14295
 
14296
    public int compareTo(getReports_args other) {
14297
      if (!getClass().equals(other.getClass())) {
14298
        return getClass().getName().compareTo(other.getClass().getName());
14299
      }
14300
 
14301
      int lastComparison = 0;
14302
      getReports_args typedOther = (getReports_args)other;
14303
 
3430 rajveer 14304
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14305
      if (lastComparison != 0) {
14306
        return lastComparison;
14307
      }
3430 rajveer 14308
      if (isSetRole()) {
14309
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14310
        if (lastComparison != 0) {
14311
          return lastComparison;
14312
        }
1891 ankur.sing 14313
      }
14314
      return 0;
14315
    }
14316
 
3430 rajveer 14317
    public _Fields fieldForId(int fieldId) {
14318
      return _Fields.findByThriftId(fieldId);
14319
    }
14320
 
14321
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14322
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14323
      iprot.readStructBegin();
14324
      while (true)
14325
      {
14326
        field = iprot.readFieldBegin();
3430 rajveer 14327
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14328
          break;
14329
        }
3430 rajveer 14330
        switch (field.id) {
14331
          case 1: // ROLE
14332
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14333
              this.role = iprot.readI64();
14334
              setRoleIsSet(true);
14335
            } else { 
14336
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14337
            }
14338
            break;
14339
          default:
14340
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14341
        }
3430 rajveer 14342
        iprot.readFieldEnd();
1891 ankur.sing 14343
      }
14344
      iprot.readStructEnd();
14345
      validate();
14346
    }
14347
 
3430 rajveer 14348
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14349
      validate();
14350
 
14351
      oprot.writeStructBegin(STRUCT_DESC);
14352
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14353
      oprot.writeI64(this.role);
14354
      oprot.writeFieldEnd();
14355
      oprot.writeFieldStop();
14356
      oprot.writeStructEnd();
14357
    }
14358
 
14359
    @Override
14360
    public String toString() {
14361
      StringBuilder sb = new StringBuilder("getReports_args(");
14362
      boolean first = true;
14363
 
14364
      sb.append("role:");
14365
      sb.append(this.role);
14366
      first = false;
14367
      sb.append(")");
14368
      return sb.toString();
14369
    }
14370
 
3430 rajveer 14371
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14372
      // check for required fields
14373
    }
14374
 
3430 rajveer 14375
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14376
      try {
14377
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14378
      } catch (org.apache.thrift.TException te) {
14379
        throw new java.io.IOException(te);
14380
      }
14381
    }
14382
 
14383
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14384
      try {
14385
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14386
        __isset_bit_vector = new BitSet(1);
14387
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14388
      } catch (org.apache.thrift.TException te) {
14389
        throw new java.io.IOException(te);
14390
      }
14391
    }
14392
 
1891 ankur.sing 14393
  }
14394
 
3430 rajveer 14395
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14396
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14397
 
3430 rajveer 14398
    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 14399
 
3430 rajveer 14400
    private List<Report> success; // required
1891 ankur.sing 14401
 
14402
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14403
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14404
      SUCCESS((short)0, "success");
14405
 
14406
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14407
 
14408
      static {
14409
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14410
          byName.put(field.getFieldName(), field);
14411
        }
14412
      }
14413
 
14414
      /**
14415
       * Find the _Fields constant that matches fieldId, or null if its not found.
14416
       */
14417
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14418
        switch(fieldId) {
14419
          case 0: // SUCCESS
14420
            return SUCCESS;
14421
          default:
14422
            return null;
14423
        }
1891 ankur.sing 14424
      }
14425
 
14426
      /**
14427
       * Find the _Fields constant that matches fieldId, throwing an exception
14428
       * if it is not found.
14429
       */
14430
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14431
        _Fields fields = findByThriftId(fieldId);
14432
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14433
        return fields;
14434
      }
14435
 
14436
      /**
14437
       * Find the _Fields constant that matches name, or null if its not found.
14438
       */
14439
      public static _Fields findByName(String name) {
14440
        return byName.get(name);
14441
      }
14442
 
14443
      private final short _thriftId;
14444
      private final String _fieldName;
14445
 
14446
      _Fields(short thriftId, String fieldName) {
14447
        _thriftId = thriftId;
14448
        _fieldName = fieldName;
14449
      }
14450
 
14451
      public short getThriftFieldId() {
14452
        return _thriftId;
14453
      }
14454
 
14455
      public String getFieldName() {
14456
        return _fieldName;
14457
      }
14458
    }
14459
 
14460
    // isset id assignments
14461
 
3430 rajveer 14462
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14463
    static {
3430 rajveer 14464
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14465
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14466
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14467
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14468
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14469
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14470
    }
14471
 
14472
    public getReports_result() {
14473
    }
14474
 
14475
    public getReports_result(
14476
      List<Report> success)
14477
    {
14478
      this();
14479
      this.success = success;
14480
    }
14481
 
14482
    /**
14483
     * Performs a deep copy on <i>other</i>.
14484
     */
14485
    public getReports_result(getReports_result other) {
14486
      if (other.isSetSuccess()) {
14487
        List<Report> __this__success = new ArrayList<Report>();
14488
        for (Report other_element : other.success) {
14489
          __this__success.add(new Report(other_element));
14490
        }
14491
        this.success = __this__success;
14492
      }
14493
    }
14494
 
14495
    public getReports_result deepCopy() {
14496
      return new getReports_result(this);
14497
    }
14498
 
3430 rajveer 14499
    @Override
14500
    public void clear() {
14501
      this.success = null;
1891 ankur.sing 14502
    }
14503
 
14504
    public int getSuccessSize() {
14505
      return (this.success == null) ? 0 : this.success.size();
14506
    }
14507
 
14508
    public java.util.Iterator<Report> getSuccessIterator() {
14509
      return (this.success == null) ? null : this.success.iterator();
14510
    }
14511
 
14512
    public void addToSuccess(Report elem) {
14513
      if (this.success == null) {
14514
        this.success = new ArrayList<Report>();
14515
      }
14516
      this.success.add(elem);
14517
    }
14518
 
14519
    public List<Report> getSuccess() {
14520
      return this.success;
14521
    }
14522
 
3430 rajveer 14523
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14524
      this.success = success;
14525
    }
14526
 
14527
    public void unsetSuccess() {
14528
      this.success = null;
14529
    }
14530
 
3430 rajveer 14531
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14532
    public boolean isSetSuccess() {
14533
      return this.success != null;
14534
    }
14535
 
14536
    public void setSuccessIsSet(boolean value) {
14537
      if (!value) {
14538
        this.success = null;
14539
      }
14540
    }
14541
 
14542
    public void setFieldValue(_Fields field, Object value) {
14543
      switch (field) {
14544
      case SUCCESS:
14545
        if (value == null) {
14546
          unsetSuccess();
14547
        } else {
14548
          setSuccess((List<Report>)value);
14549
        }
14550
        break;
14551
 
14552
      }
14553
    }
14554
 
14555
    public Object getFieldValue(_Fields field) {
14556
      switch (field) {
14557
      case SUCCESS:
14558
        return getSuccess();
14559
 
14560
      }
14561
      throw new IllegalStateException();
14562
    }
14563
 
3430 rajveer 14564
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14565
    public boolean isSet(_Fields field) {
14566
      if (field == null) {
14567
        throw new IllegalArgumentException();
14568
      }
1891 ankur.sing 14569
 
14570
      switch (field) {
14571
      case SUCCESS:
14572
        return isSetSuccess();
14573
      }
14574
      throw new IllegalStateException();
14575
    }
14576
 
14577
    @Override
14578
    public boolean equals(Object that) {
14579
      if (that == null)
14580
        return false;
14581
      if (that instanceof getReports_result)
14582
        return this.equals((getReports_result)that);
14583
      return false;
14584
    }
14585
 
14586
    public boolean equals(getReports_result that) {
14587
      if (that == null)
14588
        return false;
14589
 
14590
      boolean this_present_success = true && this.isSetSuccess();
14591
      boolean that_present_success = true && that.isSetSuccess();
14592
      if (this_present_success || that_present_success) {
14593
        if (!(this_present_success && that_present_success))
14594
          return false;
14595
        if (!this.success.equals(that.success))
14596
          return false;
14597
      }
14598
 
14599
      return true;
14600
    }
14601
 
14602
    @Override
14603
    public int hashCode() {
14604
      return 0;
14605
    }
14606
 
14607
    public int compareTo(getReports_result other) {
14608
      if (!getClass().equals(other.getClass())) {
14609
        return getClass().getName().compareTo(other.getClass().getName());
14610
      }
14611
 
14612
      int lastComparison = 0;
14613
      getReports_result typedOther = (getReports_result)other;
14614
 
3430 rajveer 14615
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14616
      if (lastComparison != 0) {
14617
        return lastComparison;
14618
      }
3430 rajveer 14619
      if (isSetSuccess()) {
14620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14621
        if (lastComparison != 0) {
14622
          return lastComparison;
14623
        }
1891 ankur.sing 14624
      }
14625
      return 0;
14626
    }
14627
 
3430 rajveer 14628
    public _Fields fieldForId(int fieldId) {
14629
      return _Fields.findByThriftId(fieldId);
14630
    }
14631
 
14632
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14633
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14634
      iprot.readStructBegin();
14635
      while (true)
14636
      {
14637
        field = iprot.readFieldBegin();
3430 rajveer 14638
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14639
          break;
14640
        }
3430 rajveer 14641
        switch (field.id) {
14642
          case 0: // SUCCESS
14643
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14644
              {
14645
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14646
                this.success = new ArrayList<Report>(_list17.size);
14647
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 14648
                {
3430 rajveer 14649
                  Report _elem19; // required
14650
                  _elem19 = new Report();
14651
                  _elem19.read(iprot);
14652
                  this.success.add(_elem19);
1891 ankur.sing 14653
                }
3430 rajveer 14654
                iprot.readListEnd();
1891 ankur.sing 14655
              }
3430 rajveer 14656
            } else { 
14657
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14658
            }
14659
            break;
14660
          default:
14661
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14662
        }
3430 rajveer 14663
        iprot.readFieldEnd();
1891 ankur.sing 14664
      }
14665
      iprot.readStructEnd();
14666
      validate();
14667
    }
14668
 
3430 rajveer 14669
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14670
      oprot.writeStructBegin(STRUCT_DESC);
14671
 
14672
      if (this.isSetSuccess()) {
14673
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14674
        {
3430 rajveer 14675
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 14676
          for (Report _iter20 : this.success)
14677
          {
14678
            _iter20.write(oprot);
14679
          }
14680
          oprot.writeListEnd();
14681
        }
14682
        oprot.writeFieldEnd();
14683
      }
14684
      oprot.writeFieldStop();
14685
      oprot.writeStructEnd();
14686
    }
14687
 
14688
    @Override
14689
    public String toString() {
14690
      StringBuilder sb = new StringBuilder("getReports_result(");
14691
      boolean first = true;
14692
 
14693
      sb.append("success:");
14694
      if (this.success == null) {
14695
        sb.append("null");
14696
      } else {
14697
        sb.append(this.success);
14698
      }
14699
      first = false;
14700
      sb.append(")");
14701
      return sb.toString();
14702
    }
14703
 
3430 rajveer 14704
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14705
      // check for required fields
14706
    }
14707
 
3430 rajveer 14708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14709
      try {
14710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14711
      } catch (org.apache.thrift.TException te) {
14712
        throw new java.io.IOException(te);
14713
      }
14714
    }
14715
 
14716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14717
      try {
14718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14719
      } catch (org.apache.thrift.TException te) {
14720
        throw new java.io.IOException(te);
14721
      }
14722
    }
14723
 
1891 ankur.sing 14724
  }
14725
 
3430 rajveer 14726
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14728
 
3430 rajveer 14729
    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);
14730
    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);
14731
    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 14732
 
3430 rajveer 14733
    private String username; // required
14734
    private String password; // required
14735
    private long role; // required
2024 ankur.sing 14736
 
14737
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14738
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14739
      USERNAME((short)1, "username"),
2357 ankur.sing 14740
      PASSWORD((short)2, "password"),
14741
      ROLE((short)3, "role");
2024 ankur.sing 14742
 
14743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14744
 
14745
      static {
14746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14747
          byName.put(field.getFieldName(), field);
14748
        }
14749
      }
14750
 
14751
      /**
14752
       * Find the _Fields constant that matches fieldId, or null if its not found.
14753
       */
14754
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14755
        switch(fieldId) {
14756
          case 1: // USERNAME
14757
            return USERNAME;
14758
          case 2: // PASSWORD
14759
            return PASSWORD;
14760
          case 3: // ROLE
14761
            return ROLE;
14762
          default:
14763
            return null;
14764
        }
2024 ankur.sing 14765
      }
14766
 
14767
      /**
14768
       * Find the _Fields constant that matches fieldId, throwing an exception
14769
       * if it is not found.
14770
       */
14771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14772
        _Fields fields = findByThriftId(fieldId);
14773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14774
        return fields;
14775
      }
14776
 
14777
      /**
14778
       * Find the _Fields constant that matches name, or null if its not found.
14779
       */
14780
      public static _Fields findByName(String name) {
14781
        return byName.get(name);
14782
      }
14783
 
14784
      private final short _thriftId;
14785
      private final String _fieldName;
14786
 
14787
      _Fields(short thriftId, String fieldName) {
14788
        _thriftId = thriftId;
14789
        _fieldName = fieldName;
14790
      }
14791
 
14792
      public short getThriftFieldId() {
14793
        return _thriftId;
14794
      }
14795
 
14796
      public String getFieldName() {
14797
        return _fieldName;
14798
      }
14799
    }
14800
 
14801
    // isset id assignments
2357 ankur.sing 14802
    private static final int __ROLE_ISSET_ID = 0;
14803
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14804
 
3430 rajveer 14805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14806
    static {
3430 rajveer 14807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14808
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14809
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14810
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14811
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14812
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14813
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14814
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14815
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14816
    }
14817
 
14818
    public authenticateCatalogUser_args() {
14819
    }
14820
 
14821
    public authenticateCatalogUser_args(
14822
      String username,
2357 ankur.sing 14823
      String password,
14824
      long role)
2024 ankur.sing 14825
    {
14826
      this();
14827
      this.username = username;
14828
      this.password = password;
2357 ankur.sing 14829
      this.role = role;
14830
      setRoleIsSet(true);
2024 ankur.sing 14831
    }
14832
 
14833
    /**
14834
     * Performs a deep copy on <i>other</i>.
14835
     */
14836
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14837
      __isset_bit_vector.clear();
14838
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14839
      if (other.isSetUsername()) {
14840
        this.username = other.username;
14841
      }
14842
      if (other.isSetPassword()) {
14843
        this.password = other.password;
14844
      }
2357 ankur.sing 14845
      this.role = other.role;
2024 ankur.sing 14846
    }
14847
 
14848
    public authenticateCatalogUser_args deepCopy() {
14849
      return new authenticateCatalogUser_args(this);
14850
    }
14851
 
3430 rajveer 14852
    @Override
14853
    public void clear() {
14854
      this.username = null;
14855
      this.password = null;
14856
      setRoleIsSet(false);
14857
      this.role = 0;
2024 ankur.sing 14858
    }
14859
 
14860
    public String getUsername() {
14861
      return this.username;
14862
    }
14863
 
3430 rajveer 14864
    public void setUsername(String username) {
2024 ankur.sing 14865
      this.username = username;
14866
    }
14867
 
14868
    public void unsetUsername() {
14869
      this.username = null;
14870
    }
14871
 
3430 rajveer 14872
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14873
    public boolean isSetUsername() {
14874
      return this.username != null;
14875
    }
14876
 
14877
    public void setUsernameIsSet(boolean value) {
14878
      if (!value) {
14879
        this.username = null;
14880
      }
14881
    }
14882
 
14883
    public String getPassword() {
14884
      return this.password;
14885
    }
14886
 
3430 rajveer 14887
    public void setPassword(String password) {
2024 ankur.sing 14888
      this.password = password;
14889
    }
14890
 
14891
    public void unsetPassword() {
14892
      this.password = null;
14893
    }
14894
 
3430 rajveer 14895
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14896
    public boolean isSetPassword() {
14897
      return this.password != null;
14898
    }
14899
 
14900
    public void setPasswordIsSet(boolean value) {
14901
      if (!value) {
14902
        this.password = null;
14903
      }
14904
    }
14905
 
2357 ankur.sing 14906
    public long getRole() {
14907
      return this.role;
14908
    }
14909
 
3430 rajveer 14910
    public void setRole(long role) {
2357 ankur.sing 14911
      this.role = role;
14912
      setRoleIsSet(true);
14913
    }
14914
 
14915
    public void unsetRole() {
14916
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14917
    }
14918
 
3430 rajveer 14919
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 14920
    public boolean isSetRole() {
14921
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14922
    }
14923
 
14924
    public void setRoleIsSet(boolean value) {
14925
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14926
    }
14927
 
2024 ankur.sing 14928
    public void setFieldValue(_Fields field, Object value) {
14929
      switch (field) {
14930
      case USERNAME:
14931
        if (value == null) {
14932
          unsetUsername();
14933
        } else {
14934
          setUsername((String)value);
14935
        }
14936
        break;
14937
 
14938
      case PASSWORD:
14939
        if (value == null) {
14940
          unsetPassword();
14941
        } else {
14942
          setPassword((String)value);
14943
        }
14944
        break;
14945
 
2357 ankur.sing 14946
      case ROLE:
14947
        if (value == null) {
14948
          unsetRole();
14949
        } else {
14950
          setRole((Long)value);
14951
        }
14952
        break;
14953
 
2024 ankur.sing 14954
      }
14955
    }
14956
 
14957
    public Object getFieldValue(_Fields field) {
14958
      switch (field) {
14959
      case USERNAME:
14960
        return getUsername();
14961
 
14962
      case PASSWORD:
14963
        return getPassword();
14964
 
2357 ankur.sing 14965
      case ROLE:
3430 rajveer 14966
        return Long.valueOf(getRole());
2357 ankur.sing 14967
 
2024 ankur.sing 14968
      }
14969
      throw new IllegalStateException();
14970
    }
14971
 
3430 rajveer 14972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14973
    public boolean isSet(_Fields field) {
14974
      if (field == null) {
14975
        throw new IllegalArgumentException();
14976
      }
2024 ankur.sing 14977
 
14978
      switch (field) {
14979
      case USERNAME:
14980
        return isSetUsername();
14981
      case PASSWORD:
14982
        return isSetPassword();
2357 ankur.sing 14983
      case ROLE:
14984
        return isSetRole();
2024 ankur.sing 14985
      }
14986
      throw new IllegalStateException();
14987
    }
14988
 
14989
    @Override
14990
    public boolean equals(Object that) {
14991
      if (that == null)
14992
        return false;
14993
      if (that instanceof authenticateCatalogUser_args)
14994
        return this.equals((authenticateCatalogUser_args)that);
14995
      return false;
14996
    }
14997
 
14998
    public boolean equals(authenticateCatalogUser_args that) {
14999
      if (that == null)
15000
        return false;
15001
 
15002
      boolean this_present_username = true && this.isSetUsername();
15003
      boolean that_present_username = true && that.isSetUsername();
15004
      if (this_present_username || that_present_username) {
15005
        if (!(this_present_username && that_present_username))
15006
          return false;
15007
        if (!this.username.equals(that.username))
15008
          return false;
15009
      }
15010
 
15011
      boolean this_present_password = true && this.isSetPassword();
15012
      boolean that_present_password = true && that.isSetPassword();
15013
      if (this_present_password || that_present_password) {
15014
        if (!(this_present_password && that_present_password))
15015
          return false;
15016
        if (!this.password.equals(that.password))
15017
          return false;
15018
      }
15019
 
2357 ankur.sing 15020
      boolean this_present_role = true;
15021
      boolean that_present_role = true;
15022
      if (this_present_role || that_present_role) {
15023
        if (!(this_present_role && that_present_role))
15024
          return false;
15025
        if (this.role != that.role)
15026
          return false;
15027
      }
15028
 
2024 ankur.sing 15029
      return true;
15030
    }
15031
 
15032
    @Override
15033
    public int hashCode() {
15034
      return 0;
15035
    }
15036
 
15037
    public int compareTo(authenticateCatalogUser_args other) {
15038
      if (!getClass().equals(other.getClass())) {
15039
        return getClass().getName().compareTo(other.getClass().getName());
15040
      }
15041
 
15042
      int lastComparison = 0;
15043
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15044
 
3430 rajveer 15045
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15046
      if (lastComparison != 0) {
15047
        return lastComparison;
15048
      }
3430 rajveer 15049
      if (isSetUsername()) {
15050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15051
        if (lastComparison != 0) {
15052
          return lastComparison;
15053
        }
2024 ankur.sing 15054
      }
3430 rajveer 15055
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15056
      if (lastComparison != 0) {
15057
        return lastComparison;
15058
      }
3430 rajveer 15059
      if (isSetPassword()) {
15060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15061
        if (lastComparison != 0) {
15062
          return lastComparison;
15063
        }
2024 ankur.sing 15064
      }
3430 rajveer 15065
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 15066
      if (lastComparison != 0) {
15067
        return lastComparison;
15068
      }
3430 rajveer 15069
      if (isSetRole()) {
15070
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15071
        if (lastComparison != 0) {
15072
          return lastComparison;
15073
        }
2357 ankur.sing 15074
      }
2024 ankur.sing 15075
      return 0;
15076
    }
15077
 
3430 rajveer 15078
    public _Fields fieldForId(int fieldId) {
15079
      return _Fields.findByThriftId(fieldId);
15080
    }
15081
 
15082
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15083
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15084
      iprot.readStructBegin();
15085
      while (true)
15086
      {
15087
        field = iprot.readFieldBegin();
3430 rajveer 15088
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15089
          break;
15090
        }
3430 rajveer 15091
        switch (field.id) {
15092
          case 1: // USERNAME
15093
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15094
              this.username = iprot.readString();
15095
            } else { 
15096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15097
            }
15098
            break;
15099
          case 2: // PASSWORD
15100
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15101
              this.password = iprot.readString();
15102
            } else { 
15103
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15104
            }
15105
            break;
15106
          case 3: // ROLE
15107
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15108
              this.role = iprot.readI64();
15109
              setRoleIsSet(true);
15110
            } else { 
15111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15112
            }
15113
            break;
15114
          default:
15115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15116
        }
3430 rajveer 15117
        iprot.readFieldEnd();
2024 ankur.sing 15118
      }
15119
      iprot.readStructEnd();
15120
      validate();
15121
    }
15122
 
3430 rajveer 15123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15124
      validate();
15125
 
15126
      oprot.writeStructBegin(STRUCT_DESC);
15127
      if (this.username != null) {
15128
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15129
        oprot.writeString(this.username);
15130
        oprot.writeFieldEnd();
15131
      }
15132
      if (this.password != null) {
15133
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15134
        oprot.writeString(this.password);
15135
        oprot.writeFieldEnd();
15136
      }
2357 ankur.sing 15137
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15138
      oprot.writeI64(this.role);
15139
      oprot.writeFieldEnd();
2024 ankur.sing 15140
      oprot.writeFieldStop();
15141
      oprot.writeStructEnd();
15142
    }
15143
 
15144
    @Override
15145
    public String toString() {
15146
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15147
      boolean first = true;
15148
 
15149
      sb.append("username:");
15150
      if (this.username == null) {
15151
        sb.append("null");
15152
      } else {
15153
        sb.append(this.username);
15154
      }
15155
      first = false;
15156
      if (!first) sb.append(", ");
15157
      sb.append("password:");
15158
      if (this.password == null) {
15159
        sb.append("null");
15160
      } else {
15161
        sb.append(this.password);
15162
      }
15163
      first = false;
2357 ankur.sing 15164
      if (!first) sb.append(", ");
15165
      sb.append("role:");
15166
      sb.append(this.role);
15167
      first = false;
2024 ankur.sing 15168
      sb.append(")");
15169
      return sb.toString();
15170
    }
15171
 
3430 rajveer 15172
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15173
      // check for required fields
15174
    }
15175
 
3430 rajveer 15176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15177
      try {
15178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15179
      } catch (org.apache.thrift.TException te) {
15180
        throw new java.io.IOException(te);
15181
      }
15182
    }
15183
 
15184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15185
      try {
15186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15187
      } catch (org.apache.thrift.TException te) {
15188
        throw new java.io.IOException(te);
15189
      }
15190
    }
15191
 
2024 ankur.sing 15192
  }
15193
 
3430 rajveer 15194
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15196
 
3430 rajveer 15197
    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);
15198
    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 15199
 
3430 rajveer 15200
    private CatalogDashboardUser success; // required
15201
    private HelperServiceException hse; // required
2024 ankur.sing 15202
 
15203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15205
      SUCCESS((short)0, "success"),
15206
      HSE((short)1, "hse");
15207
 
15208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15209
 
15210
      static {
15211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15212
          byName.put(field.getFieldName(), field);
15213
        }
15214
      }
15215
 
15216
      /**
15217
       * Find the _Fields constant that matches fieldId, or null if its not found.
15218
       */
15219
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15220
        switch(fieldId) {
15221
          case 0: // SUCCESS
15222
            return SUCCESS;
15223
          case 1: // HSE
15224
            return HSE;
15225
          default:
15226
            return null;
15227
        }
2024 ankur.sing 15228
      }
15229
 
15230
      /**
15231
       * Find the _Fields constant that matches fieldId, throwing an exception
15232
       * if it is not found.
15233
       */
15234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15235
        _Fields fields = findByThriftId(fieldId);
15236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15237
        return fields;
15238
      }
15239
 
15240
      /**
15241
       * Find the _Fields constant that matches name, or null if its not found.
15242
       */
15243
      public static _Fields findByName(String name) {
15244
        return byName.get(name);
15245
      }
15246
 
15247
      private final short _thriftId;
15248
      private final String _fieldName;
15249
 
15250
      _Fields(short thriftId, String fieldName) {
15251
        _thriftId = thriftId;
15252
        _fieldName = fieldName;
15253
      }
15254
 
15255
      public short getThriftFieldId() {
15256
        return _thriftId;
15257
      }
15258
 
15259
      public String getFieldName() {
15260
        return _fieldName;
15261
      }
15262
    }
15263
 
15264
    // isset id assignments
15265
 
3430 rajveer 15266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15267
    static {
3430 rajveer 15268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15269
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15270
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15271
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15273
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15274
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15275
    }
15276
 
15277
    public authenticateCatalogUser_result() {
15278
    }
15279
 
15280
    public authenticateCatalogUser_result(
15281
      CatalogDashboardUser success,
15282
      HelperServiceException hse)
15283
    {
15284
      this();
15285
      this.success = success;
15286
      this.hse = hse;
15287
    }
15288
 
15289
    /**
15290
     * Performs a deep copy on <i>other</i>.
15291
     */
15292
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15293
      if (other.isSetSuccess()) {
15294
        this.success = new CatalogDashboardUser(other.success);
15295
      }
15296
      if (other.isSetHse()) {
15297
        this.hse = new HelperServiceException(other.hse);
15298
      }
15299
    }
15300
 
15301
    public authenticateCatalogUser_result deepCopy() {
15302
      return new authenticateCatalogUser_result(this);
15303
    }
15304
 
3430 rajveer 15305
    @Override
15306
    public void clear() {
15307
      this.success = null;
15308
      this.hse = null;
2024 ankur.sing 15309
    }
15310
 
15311
    public CatalogDashboardUser getSuccess() {
15312
      return this.success;
15313
    }
15314
 
3430 rajveer 15315
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15316
      this.success = success;
15317
    }
15318
 
15319
    public void unsetSuccess() {
15320
      this.success = null;
15321
    }
15322
 
3430 rajveer 15323
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15324
    public boolean isSetSuccess() {
15325
      return this.success != null;
15326
    }
15327
 
15328
    public void setSuccessIsSet(boolean value) {
15329
      if (!value) {
15330
        this.success = null;
15331
      }
15332
    }
15333
 
15334
    public HelperServiceException getHse() {
15335
      return this.hse;
15336
    }
15337
 
3430 rajveer 15338
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15339
      this.hse = hse;
15340
    }
15341
 
15342
    public void unsetHse() {
15343
      this.hse = null;
15344
    }
15345
 
3430 rajveer 15346
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15347
    public boolean isSetHse() {
15348
      return this.hse != null;
15349
    }
15350
 
15351
    public void setHseIsSet(boolean value) {
15352
      if (!value) {
15353
        this.hse = null;
15354
      }
15355
    }
15356
 
15357
    public void setFieldValue(_Fields field, Object value) {
15358
      switch (field) {
15359
      case SUCCESS:
15360
        if (value == null) {
15361
          unsetSuccess();
15362
        } else {
15363
          setSuccess((CatalogDashboardUser)value);
15364
        }
15365
        break;
15366
 
15367
      case HSE:
15368
        if (value == null) {
15369
          unsetHse();
15370
        } else {
15371
          setHse((HelperServiceException)value);
15372
        }
15373
        break;
15374
 
15375
      }
15376
    }
15377
 
15378
    public Object getFieldValue(_Fields field) {
15379
      switch (field) {
15380
      case SUCCESS:
15381
        return getSuccess();
15382
 
15383
      case HSE:
15384
        return getHse();
15385
 
15386
      }
15387
      throw new IllegalStateException();
15388
    }
15389
 
3430 rajveer 15390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15391
    public boolean isSet(_Fields field) {
15392
      if (field == null) {
15393
        throw new IllegalArgumentException();
15394
      }
2024 ankur.sing 15395
 
15396
      switch (field) {
15397
      case SUCCESS:
15398
        return isSetSuccess();
15399
      case HSE:
15400
        return isSetHse();
15401
      }
15402
      throw new IllegalStateException();
15403
    }
15404
 
15405
    @Override
15406
    public boolean equals(Object that) {
15407
      if (that == null)
15408
        return false;
15409
      if (that instanceof authenticateCatalogUser_result)
15410
        return this.equals((authenticateCatalogUser_result)that);
15411
      return false;
15412
    }
15413
 
15414
    public boolean equals(authenticateCatalogUser_result that) {
15415
      if (that == null)
15416
        return false;
15417
 
15418
      boolean this_present_success = true && this.isSetSuccess();
15419
      boolean that_present_success = true && that.isSetSuccess();
15420
      if (this_present_success || that_present_success) {
15421
        if (!(this_present_success && that_present_success))
15422
          return false;
15423
        if (!this.success.equals(that.success))
15424
          return false;
15425
      }
15426
 
15427
      boolean this_present_hse = true && this.isSetHse();
15428
      boolean that_present_hse = true && that.isSetHse();
15429
      if (this_present_hse || that_present_hse) {
15430
        if (!(this_present_hse && that_present_hse))
15431
          return false;
15432
        if (!this.hse.equals(that.hse))
15433
          return false;
15434
      }
15435
 
15436
      return true;
15437
    }
15438
 
15439
    @Override
15440
    public int hashCode() {
15441
      return 0;
15442
    }
15443
 
15444
    public int compareTo(authenticateCatalogUser_result other) {
15445
      if (!getClass().equals(other.getClass())) {
15446
        return getClass().getName().compareTo(other.getClass().getName());
15447
      }
15448
 
15449
      int lastComparison = 0;
15450
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15451
 
3430 rajveer 15452
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15453
      if (lastComparison != 0) {
15454
        return lastComparison;
15455
      }
3430 rajveer 15456
      if (isSetSuccess()) {
15457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15458
        if (lastComparison != 0) {
15459
          return lastComparison;
15460
        }
2024 ankur.sing 15461
      }
3430 rajveer 15462
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15463
      if (lastComparison != 0) {
15464
        return lastComparison;
15465
      }
3430 rajveer 15466
      if (isSetHse()) {
15467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15468
        if (lastComparison != 0) {
15469
          return lastComparison;
15470
        }
2024 ankur.sing 15471
      }
15472
      return 0;
15473
    }
15474
 
3430 rajveer 15475
    public _Fields fieldForId(int fieldId) {
15476
      return _Fields.findByThriftId(fieldId);
15477
    }
15478
 
15479
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15480
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15481
      iprot.readStructBegin();
15482
      while (true)
15483
      {
15484
        field = iprot.readFieldBegin();
3430 rajveer 15485
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15486
          break;
15487
        }
3430 rajveer 15488
        switch (field.id) {
15489
          case 0: // SUCCESS
15490
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15491
              this.success = new CatalogDashboardUser();
15492
              this.success.read(iprot);
15493
            } else { 
15494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15495
            }
15496
            break;
15497
          case 1: // HSE
15498
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15499
              this.hse = new HelperServiceException();
15500
              this.hse.read(iprot);
15501
            } else { 
15502
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15503
            }
15504
            break;
15505
          default:
15506
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15507
        }
3430 rajveer 15508
        iprot.readFieldEnd();
2024 ankur.sing 15509
      }
15510
      iprot.readStructEnd();
15511
      validate();
15512
    }
15513
 
3430 rajveer 15514
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15515
      oprot.writeStructBegin(STRUCT_DESC);
15516
 
15517
      if (this.isSetSuccess()) {
15518
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15519
        this.success.write(oprot);
15520
        oprot.writeFieldEnd();
15521
      } else if (this.isSetHse()) {
15522
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15523
        this.hse.write(oprot);
15524
        oprot.writeFieldEnd();
15525
      }
15526
      oprot.writeFieldStop();
15527
      oprot.writeStructEnd();
15528
    }
15529
 
15530
    @Override
15531
    public String toString() {
15532
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15533
      boolean first = true;
15534
 
15535
      sb.append("success:");
15536
      if (this.success == null) {
15537
        sb.append("null");
15538
      } else {
15539
        sb.append(this.success);
15540
      }
15541
      first = false;
15542
      if (!first) sb.append(", ");
15543
      sb.append("hse:");
15544
      if (this.hse == null) {
15545
        sb.append("null");
15546
      } else {
15547
        sb.append(this.hse);
15548
      }
15549
      first = false;
15550
      sb.append(")");
15551
      return sb.toString();
15552
    }
15553
 
3430 rajveer 15554
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15555
      // check for required fields
15556
    }
15557
 
3430 rajveer 15558
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15559
      try {
15560
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15561
      } catch (org.apache.thrift.TException te) {
15562
        throw new java.io.IOException(te);
15563
      }
15564
    }
15565
 
15566
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15567
      try {
15568
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15569
      } catch (org.apache.thrift.TException te) {
15570
        throw new java.io.IOException(te);
15571
      }
15572
    }
15573
 
2024 ankur.sing 15574
  }
15575
 
4544 varun.gupt 15576
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15577
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15578
 
15579
    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);
15580
    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);
15581
 
15582
    private List<Long> entityIds; // required
15583
    private String email; // required
15584
 
15585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15587
      ENTITY_IDS((short)1, "entityIds"),
15588
      EMAIL((short)2, "email");
15589
 
15590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15591
 
15592
      static {
15593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15594
          byName.put(field.getFieldName(), field);
15595
        }
15596
      }
15597
 
15598
      /**
15599
       * Find the _Fields constant that matches fieldId, or null if its not found.
15600
       */
15601
      public static _Fields findByThriftId(int fieldId) {
15602
        switch(fieldId) {
15603
          case 1: // ENTITY_IDS
15604
            return ENTITY_IDS;
15605
          case 2: // EMAIL
15606
            return EMAIL;
15607
          default:
15608
            return null;
15609
        }
15610
      }
15611
 
15612
      /**
15613
       * Find the _Fields constant that matches fieldId, throwing an exception
15614
       * if it is not found.
15615
       */
15616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15617
        _Fields fields = findByThriftId(fieldId);
15618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15619
        return fields;
15620
      }
15621
 
15622
      /**
15623
       * Find the _Fields constant that matches name, or null if its not found.
15624
       */
15625
      public static _Fields findByName(String name) {
15626
        return byName.get(name);
15627
      }
15628
 
15629
      private final short _thriftId;
15630
      private final String _fieldName;
15631
 
15632
      _Fields(short thriftId, String fieldName) {
15633
        _thriftId = thriftId;
15634
        _fieldName = fieldName;
15635
      }
15636
 
15637
      public short getThriftFieldId() {
15638
        return _thriftId;
15639
      }
15640
 
15641
      public String getFieldName() {
15642
        return _fieldName;
15643
      }
15644
    }
15645
 
15646
    // isset id assignments
15647
 
15648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15649
    static {
15650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15651
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15652
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15653
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15654
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15655
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15656
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15657
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
15658
    }
15659
 
15660
    public shareEntities_args() {
15661
    }
15662
 
15663
    public shareEntities_args(
15664
      List<Long> entityIds,
15665
      String email)
15666
    {
15667
      this();
15668
      this.entityIds = entityIds;
15669
      this.email = email;
15670
    }
15671
 
15672
    /**
15673
     * Performs a deep copy on <i>other</i>.
15674
     */
15675
    public shareEntities_args(shareEntities_args other) {
15676
      if (other.isSetEntityIds()) {
15677
        List<Long> __this__entityIds = new ArrayList<Long>();
15678
        for (Long other_element : other.entityIds) {
15679
          __this__entityIds.add(other_element);
15680
        }
15681
        this.entityIds = __this__entityIds;
15682
      }
15683
      if (other.isSetEmail()) {
15684
        this.email = other.email;
15685
      }
15686
    }
15687
 
15688
    public shareEntities_args deepCopy() {
15689
      return new shareEntities_args(this);
15690
    }
15691
 
15692
    @Override
15693
    public void clear() {
15694
      this.entityIds = null;
15695
      this.email = null;
15696
    }
15697
 
15698
    public int getEntityIdsSize() {
15699
      return (this.entityIds == null) ? 0 : this.entityIds.size();
15700
    }
15701
 
15702
    public java.util.Iterator<Long> getEntityIdsIterator() {
15703
      return (this.entityIds == null) ? null : this.entityIds.iterator();
15704
    }
15705
 
15706
    public void addToEntityIds(long elem) {
15707
      if (this.entityIds == null) {
15708
        this.entityIds = new ArrayList<Long>();
15709
      }
15710
      this.entityIds.add(elem);
15711
    }
15712
 
15713
    public List<Long> getEntityIds() {
15714
      return this.entityIds;
15715
    }
15716
 
15717
    public void setEntityIds(List<Long> entityIds) {
15718
      this.entityIds = entityIds;
15719
    }
15720
 
15721
    public void unsetEntityIds() {
15722
      this.entityIds = null;
15723
    }
15724
 
15725
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
15726
    public boolean isSetEntityIds() {
15727
      return this.entityIds != null;
15728
    }
15729
 
15730
    public void setEntityIdsIsSet(boolean value) {
15731
      if (!value) {
15732
        this.entityIds = null;
15733
      }
15734
    }
15735
 
15736
    public String getEmail() {
15737
      return this.email;
15738
    }
15739
 
15740
    public void setEmail(String email) {
15741
      this.email = email;
15742
    }
15743
 
15744
    public void unsetEmail() {
15745
      this.email = null;
15746
    }
15747
 
15748
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
15749
    public boolean isSetEmail() {
15750
      return this.email != null;
15751
    }
15752
 
15753
    public void setEmailIsSet(boolean value) {
15754
      if (!value) {
15755
        this.email = null;
15756
      }
15757
    }
15758
 
15759
    public void setFieldValue(_Fields field, Object value) {
15760
      switch (field) {
15761
      case ENTITY_IDS:
15762
        if (value == null) {
15763
          unsetEntityIds();
15764
        } else {
15765
          setEntityIds((List<Long>)value);
15766
        }
15767
        break;
15768
 
15769
      case EMAIL:
15770
        if (value == null) {
15771
          unsetEmail();
15772
        } else {
15773
          setEmail((String)value);
15774
        }
15775
        break;
15776
 
15777
      }
15778
    }
15779
 
15780
    public Object getFieldValue(_Fields field) {
15781
      switch (field) {
15782
      case ENTITY_IDS:
15783
        return getEntityIds();
15784
 
15785
      case EMAIL:
15786
        return getEmail();
15787
 
15788
      }
15789
      throw new IllegalStateException();
15790
    }
15791
 
15792
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15793
    public boolean isSet(_Fields field) {
15794
      if (field == null) {
15795
        throw new IllegalArgumentException();
15796
      }
15797
 
15798
      switch (field) {
15799
      case ENTITY_IDS:
15800
        return isSetEntityIds();
15801
      case EMAIL:
15802
        return isSetEmail();
15803
      }
15804
      throw new IllegalStateException();
15805
    }
15806
 
15807
    @Override
15808
    public boolean equals(Object that) {
15809
      if (that == null)
15810
        return false;
15811
      if (that instanceof shareEntities_args)
15812
        return this.equals((shareEntities_args)that);
15813
      return false;
15814
    }
15815
 
15816
    public boolean equals(shareEntities_args that) {
15817
      if (that == null)
15818
        return false;
15819
 
15820
      boolean this_present_entityIds = true && this.isSetEntityIds();
15821
      boolean that_present_entityIds = true && that.isSetEntityIds();
15822
      if (this_present_entityIds || that_present_entityIds) {
15823
        if (!(this_present_entityIds && that_present_entityIds))
15824
          return false;
15825
        if (!this.entityIds.equals(that.entityIds))
15826
          return false;
15827
      }
15828
 
15829
      boolean this_present_email = true && this.isSetEmail();
15830
      boolean that_present_email = true && that.isSetEmail();
15831
      if (this_present_email || that_present_email) {
15832
        if (!(this_present_email && that_present_email))
15833
          return false;
15834
        if (!this.email.equals(that.email))
15835
          return false;
15836
      }
15837
 
15838
      return true;
15839
    }
15840
 
15841
    @Override
15842
    public int hashCode() {
15843
      return 0;
15844
    }
15845
 
15846
    public int compareTo(shareEntities_args other) {
15847
      if (!getClass().equals(other.getClass())) {
15848
        return getClass().getName().compareTo(other.getClass().getName());
15849
      }
15850
 
15851
      int lastComparison = 0;
15852
      shareEntities_args typedOther = (shareEntities_args)other;
15853
 
15854
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
15855
      if (lastComparison != 0) {
15856
        return lastComparison;
15857
      }
15858
      if (isSetEntityIds()) {
15859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
15860
        if (lastComparison != 0) {
15861
          return lastComparison;
15862
        }
15863
      }
15864
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
15865
      if (lastComparison != 0) {
15866
        return lastComparison;
15867
      }
15868
      if (isSetEmail()) {
15869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
15870
        if (lastComparison != 0) {
15871
          return lastComparison;
15872
        }
15873
      }
15874
      return 0;
15875
    }
15876
 
15877
    public _Fields fieldForId(int fieldId) {
15878
      return _Fields.findByThriftId(fieldId);
15879
    }
15880
 
15881
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15882
      org.apache.thrift.protocol.TField field;
15883
      iprot.readStructBegin();
15884
      while (true)
15885
      {
15886
        field = iprot.readFieldBegin();
15887
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15888
          break;
15889
        }
15890
        switch (field.id) {
15891
          case 1: // ENTITY_IDS
15892
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15893
              {
15894
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15895
                this.entityIds = new ArrayList<Long>(_list21.size);
15896
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15897
                {
15898
                  long _elem23; // required
15899
                  _elem23 = iprot.readI64();
15900
                  this.entityIds.add(_elem23);
15901
                }
15902
                iprot.readListEnd();
15903
              }
15904
            } else { 
15905
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15906
            }
15907
            break;
15908
          case 2: // EMAIL
15909
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15910
              this.email = iprot.readString();
15911
            } else { 
15912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15913
            }
15914
            break;
15915
          default:
15916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15917
        }
15918
        iprot.readFieldEnd();
15919
      }
15920
      iprot.readStructEnd();
15921
      validate();
15922
    }
15923
 
15924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15925
      validate();
15926
 
15927
      oprot.writeStructBegin(STRUCT_DESC);
15928
      if (this.entityIds != null) {
15929
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
15930
        {
15931
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
15932
          for (long _iter24 : this.entityIds)
15933
          {
15934
            oprot.writeI64(_iter24);
15935
          }
15936
          oprot.writeListEnd();
15937
        }
15938
        oprot.writeFieldEnd();
15939
      }
15940
      if (this.email != null) {
15941
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
15942
        oprot.writeString(this.email);
15943
        oprot.writeFieldEnd();
15944
      }
15945
      oprot.writeFieldStop();
15946
      oprot.writeStructEnd();
15947
    }
15948
 
15949
    @Override
15950
    public String toString() {
15951
      StringBuilder sb = new StringBuilder("shareEntities_args(");
15952
      boolean first = true;
15953
 
15954
      sb.append("entityIds:");
15955
      if (this.entityIds == null) {
15956
        sb.append("null");
15957
      } else {
15958
        sb.append(this.entityIds);
15959
      }
15960
      first = false;
15961
      if (!first) sb.append(", ");
15962
      sb.append("email:");
15963
      if (this.email == null) {
15964
        sb.append("null");
15965
      } else {
15966
        sb.append(this.email);
15967
      }
15968
      first = false;
15969
      sb.append(")");
15970
      return sb.toString();
15971
    }
15972
 
15973
    public void validate() throws org.apache.thrift.TException {
15974
      // check for required fields
15975
    }
15976
 
15977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15978
      try {
15979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15980
      } catch (org.apache.thrift.TException te) {
15981
        throw new java.io.IOException(te);
15982
      }
15983
    }
15984
 
15985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15986
      try {
15987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15988
      } catch (org.apache.thrift.TException te) {
15989
        throw new java.io.IOException(te);
15990
      }
15991
    }
15992
 
15993
  }
15994
 
15995
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
15996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
15997
 
15998
    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);
15999
 
16000
    private HelperServiceException hse; // required
16001
 
16002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16004
      HSE((short)1, "hse");
16005
 
16006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16007
 
16008
      static {
16009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16010
          byName.put(field.getFieldName(), field);
16011
        }
16012
      }
16013
 
16014
      /**
16015
       * Find the _Fields constant that matches fieldId, or null if its not found.
16016
       */
16017
      public static _Fields findByThriftId(int fieldId) {
16018
        switch(fieldId) {
16019
          case 1: // HSE
16020
            return HSE;
16021
          default:
16022
            return null;
16023
        }
16024
      }
16025
 
16026
      /**
16027
       * Find the _Fields constant that matches fieldId, throwing an exception
16028
       * if it is not found.
16029
       */
16030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16031
        _Fields fields = findByThriftId(fieldId);
16032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16033
        return fields;
16034
      }
16035
 
16036
      /**
16037
       * Find the _Fields constant that matches name, or null if its not found.
16038
       */
16039
      public static _Fields findByName(String name) {
16040
        return byName.get(name);
16041
      }
16042
 
16043
      private final short _thriftId;
16044
      private final String _fieldName;
16045
 
16046
      _Fields(short thriftId, String fieldName) {
16047
        _thriftId = thriftId;
16048
        _fieldName = fieldName;
16049
      }
16050
 
16051
      public short getThriftFieldId() {
16052
        return _thriftId;
16053
      }
16054
 
16055
      public String getFieldName() {
16056
        return _fieldName;
16057
      }
16058
    }
16059
 
16060
    // isset id assignments
16061
 
16062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16063
    static {
16064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16065
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16069
    }
16070
 
16071
    public shareEntities_result() {
16072
    }
16073
 
16074
    public shareEntities_result(
16075
      HelperServiceException hse)
16076
    {
16077
      this();
16078
      this.hse = hse;
16079
    }
16080
 
16081
    /**
16082
     * Performs a deep copy on <i>other</i>.
16083
     */
16084
    public shareEntities_result(shareEntities_result other) {
16085
      if (other.isSetHse()) {
16086
        this.hse = new HelperServiceException(other.hse);
16087
      }
16088
    }
16089
 
16090
    public shareEntities_result deepCopy() {
16091
      return new shareEntities_result(this);
16092
    }
16093
 
16094
    @Override
16095
    public void clear() {
16096
      this.hse = null;
16097
    }
16098
 
16099
    public HelperServiceException getHse() {
16100
      return this.hse;
16101
    }
16102
 
16103
    public void setHse(HelperServiceException hse) {
16104
      this.hse = hse;
16105
    }
16106
 
16107
    public void unsetHse() {
16108
      this.hse = null;
16109
    }
16110
 
16111
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16112
    public boolean isSetHse() {
16113
      return this.hse != null;
16114
    }
16115
 
16116
    public void setHseIsSet(boolean value) {
16117
      if (!value) {
16118
        this.hse = null;
16119
      }
16120
    }
16121
 
16122
    public void setFieldValue(_Fields field, Object value) {
16123
      switch (field) {
16124
      case HSE:
16125
        if (value == null) {
16126
          unsetHse();
16127
        } else {
16128
          setHse((HelperServiceException)value);
16129
        }
16130
        break;
16131
 
16132
      }
16133
    }
16134
 
16135
    public Object getFieldValue(_Fields field) {
16136
      switch (field) {
16137
      case HSE:
16138
        return getHse();
16139
 
16140
      }
16141
      throw new IllegalStateException();
16142
    }
16143
 
16144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16145
    public boolean isSet(_Fields field) {
16146
      if (field == null) {
16147
        throw new IllegalArgumentException();
16148
      }
16149
 
16150
      switch (field) {
16151
      case HSE:
16152
        return isSetHse();
16153
      }
16154
      throw new IllegalStateException();
16155
    }
16156
 
16157
    @Override
16158
    public boolean equals(Object that) {
16159
      if (that == null)
16160
        return false;
16161
      if (that instanceof shareEntities_result)
16162
        return this.equals((shareEntities_result)that);
16163
      return false;
16164
    }
16165
 
16166
    public boolean equals(shareEntities_result that) {
16167
      if (that == null)
16168
        return false;
16169
 
16170
      boolean this_present_hse = true && this.isSetHse();
16171
      boolean that_present_hse = true && that.isSetHse();
16172
      if (this_present_hse || that_present_hse) {
16173
        if (!(this_present_hse && that_present_hse))
16174
          return false;
16175
        if (!this.hse.equals(that.hse))
16176
          return false;
16177
      }
16178
 
16179
      return true;
16180
    }
16181
 
16182
    @Override
16183
    public int hashCode() {
16184
      return 0;
16185
    }
16186
 
16187
    public int compareTo(shareEntities_result other) {
16188
      if (!getClass().equals(other.getClass())) {
16189
        return getClass().getName().compareTo(other.getClass().getName());
16190
      }
16191
 
16192
      int lastComparison = 0;
16193
      shareEntities_result typedOther = (shareEntities_result)other;
16194
 
16195
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16196
      if (lastComparison != 0) {
16197
        return lastComparison;
16198
      }
16199
      if (isSetHse()) {
16200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16201
        if (lastComparison != 0) {
16202
          return lastComparison;
16203
        }
16204
      }
16205
      return 0;
16206
    }
16207
 
16208
    public _Fields fieldForId(int fieldId) {
16209
      return _Fields.findByThriftId(fieldId);
16210
    }
16211
 
16212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16213
      org.apache.thrift.protocol.TField field;
16214
      iprot.readStructBegin();
16215
      while (true)
16216
      {
16217
        field = iprot.readFieldBegin();
16218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16219
          break;
16220
        }
16221
        switch (field.id) {
16222
          case 1: // HSE
16223
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16224
              this.hse = new HelperServiceException();
16225
              this.hse.read(iprot);
16226
            } else { 
16227
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16228
            }
16229
            break;
16230
          default:
16231
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16232
        }
16233
        iprot.readFieldEnd();
16234
      }
16235
      iprot.readStructEnd();
16236
      validate();
16237
    }
16238
 
16239
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16240
      oprot.writeStructBegin(STRUCT_DESC);
16241
 
16242
      if (this.isSetHse()) {
16243
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16244
        this.hse.write(oprot);
16245
        oprot.writeFieldEnd();
16246
      }
16247
      oprot.writeFieldStop();
16248
      oprot.writeStructEnd();
16249
    }
16250
 
16251
    @Override
16252
    public String toString() {
16253
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16254
      boolean first = true;
16255
 
16256
      sb.append("hse:");
16257
      if (this.hse == null) {
16258
        sb.append("null");
16259
      } else {
16260
        sb.append(this.hse);
16261
      }
16262
      first = false;
16263
      sb.append(")");
16264
      return sb.toString();
16265
    }
16266
 
16267
    public void validate() throws org.apache.thrift.TException {
16268
      // check for required fields
16269
    }
16270
 
16271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16272
      try {
16273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16274
      } catch (org.apache.thrift.TException te) {
16275
        throw new java.io.IOException(te);
16276
      }
16277
    }
16278
 
16279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16280
      try {
16281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16282
      } catch (org.apache.thrift.TException te) {
16283
        throw new java.io.IOException(te);
16284
      }
16285
    }
16286
 
16287
  }
16288
 
4693 mandeep.dh 16289
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16290
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16291
 
16292
 
16293
 
16294
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16295
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16296
;
16297
 
16298
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16299
 
16300
      static {
16301
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16302
          byName.put(field.getFieldName(), field);
16303
        }
16304
      }
16305
 
16306
      /**
16307
       * Find the _Fields constant that matches fieldId, or null if its not found.
16308
       */
16309
      public static _Fields findByThriftId(int fieldId) {
16310
        switch(fieldId) {
16311
          default:
16312
            return null;
16313
        }
16314
      }
16315
 
16316
      /**
16317
       * Find the _Fields constant that matches fieldId, throwing an exception
16318
       * if it is not found.
16319
       */
16320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16321
        _Fields fields = findByThriftId(fieldId);
16322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16323
        return fields;
16324
      }
16325
 
16326
      /**
16327
       * Find the _Fields constant that matches name, or null if its not found.
16328
       */
16329
      public static _Fields findByName(String name) {
16330
        return byName.get(name);
16331
      }
16332
 
16333
      private final short _thriftId;
16334
      private final String _fieldName;
16335
 
16336
      _Fields(short thriftId, String fieldName) {
16337
        _thriftId = thriftId;
16338
        _fieldName = fieldName;
16339
      }
16340
 
16341
      public short getThriftFieldId() {
16342
        return _thriftId;
16343
      }
16344
 
16345
      public String getFieldName() {
16346
        return _fieldName;
16347
      }
16348
    }
16349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16350
    static {
16351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16354
    }
16355
 
16356
    public getAgents_args() {
16357
    }
16358
 
16359
    /**
16360
     * Performs a deep copy on <i>other</i>.
16361
     */
16362
    public getAgents_args(getAgents_args other) {
16363
    }
16364
 
16365
    public getAgents_args deepCopy() {
16366
      return new getAgents_args(this);
16367
    }
16368
 
16369
    @Override
16370
    public void clear() {
16371
    }
16372
 
16373
    public void setFieldValue(_Fields field, Object value) {
16374
      switch (field) {
16375
      }
16376
    }
16377
 
16378
    public Object getFieldValue(_Fields field) {
16379
      switch (field) {
16380
      }
16381
      throw new IllegalStateException();
16382
    }
16383
 
16384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16385
    public boolean isSet(_Fields field) {
16386
      if (field == null) {
16387
        throw new IllegalArgumentException();
16388
      }
16389
 
16390
      switch (field) {
16391
      }
16392
      throw new IllegalStateException();
16393
    }
16394
 
16395
    @Override
16396
    public boolean equals(Object that) {
16397
      if (that == null)
16398
        return false;
16399
      if (that instanceof getAgents_args)
16400
        return this.equals((getAgents_args)that);
16401
      return false;
16402
    }
16403
 
16404
    public boolean equals(getAgents_args that) {
16405
      if (that == null)
16406
        return false;
16407
 
16408
      return true;
16409
    }
16410
 
16411
    @Override
16412
    public int hashCode() {
16413
      return 0;
16414
    }
16415
 
16416
    public int compareTo(getAgents_args other) {
16417
      if (!getClass().equals(other.getClass())) {
16418
        return getClass().getName().compareTo(other.getClass().getName());
16419
      }
16420
 
16421
      int lastComparison = 0;
16422
      getAgents_args typedOther = (getAgents_args)other;
16423
 
16424
      return 0;
16425
    }
16426
 
16427
    public _Fields fieldForId(int fieldId) {
16428
      return _Fields.findByThriftId(fieldId);
16429
    }
16430
 
16431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16432
      org.apache.thrift.protocol.TField field;
16433
      iprot.readStructBegin();
16434
      while (true)
16435
      {
16436
        field = iprot.readFieldBegin();
16437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16438
          break;
16439
        }
16440
        switch (field.id) {
16441
          default:
16442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16443
        }
16444
        iprot.readFieldEnd();
16445
      }
16446
      iprot.readStructEnd();
16447
      validate();
16448
    }
16449
 
16450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16451
      validate();
16452
 
16453
      oprot.writeStructBegin(STRUCT_DESC);
16454
      oprot.writeFieldStop();
16455
      oprot.writeStructEnd();
16456
    }
16457
 
16458
    @Override
16459
    public String toString() {
16460
      StringBuilder sb = new StringBuilder("getAgents_args(");
16461
      boolean first = true;
16462
 
16463
      sb.append(")");
16464
      return sb.toString();
16465
    }
16466
 
16467
    public void validate() throws org.apache.thrift.TException {
16468
      // check for required fields
16469
    }
16470
 
16471
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16472
      try {
16473
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16474
      } catch (org.apache.thrift.TException te) {
16475
        throw new java.io.IOException(te);
16476
      }
16477
    }
16478
 
16479
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16480
      try {
16481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16482
      } catch (org.apache.thrift.TException te) {
16483
        throw new java.io.IOException(te);
16484
      }
16485
    }
16486
 
16487
  }
16488
 
16489
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16491
 
16492
    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);
16493
 
16494
    private List<Agent> success; // required
16495
 
16496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16498
      SUCCESS((short)0, "success");
16499
 
16500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16501
 
16502
      static {
16503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16504
          byName.put(field.getFieldName(), field);
16505
        }
16506
      }
16507
 
16508
      /**
16509
       * Find the _Fields constant that matches fieldId, or null if its not found.
16510
       */
16511
      public static _Fields findByThriftId(int fieldId) {
16512
        switch(fieldId) {
16513
          case 0: // SUCCESS
16514
            return SUCCESS;
16515
          default:
16516
            return null;
16517
        }
16518
      }
16519
 
16520
      /**
16521
       * Find the _Fields constant that matches fieldId, throwing an exception
16522
       * if it is not found.
16523
       */
16524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16525
        _Fields fields = findByThriftId(fieldId);
16526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16527
        return fields;
16528
      }
16529
 
16530
      /**
16531
       * Find the _Fields constant that matches name, or null if its not found.
16532
       */
16533
      public static _Fields findByName(String name) {
16534
        return byName.get(name);
16535
      }
16536
 
16537
      private final short _thriftId;
16538
      private final String _fieldName;
16539
 
16540
      _Fields(short thriftId, String fieldName) {
16541
        _thriftId = thriftId;
16542
        _fieldName = fieldName;
16543
      }
16544
 
16545
      public short getThriftFieldId() {
16546
        return _thriftId;
16547
      }
16548
 
16549
      public String getFieldName() {
16550
        return _fieldName;
16551
      }
16552
    }
16553
 
16554
    // isset id assignments
16555
 
16556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16557
    static {
16558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16559
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16560
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16561
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16564
    }
16565
 
16566
    public getAgents_result() {
16567
    }
16568
 
16569
    public getAgents_result(
16570
      List<Agent> success)
16571
    {
16572
      this();
16573
      this.success = success;
16574
    }
16575
 
16576
    /**
16577
     * Performs a deep copy on <i>other</i>.
16578
     */
16579
    public getAgents_result(getAgents_result other) {
16580
      if (other.isSetSuccess()) {
16581
        List<Agent> __this__success = new ArrayList<Agent>();
16582
        for (Agent other_element : other.success) {
16583
          __this__success.add(new Agent(other_element));
16584
        }
16585
        this.success = __this__success;
16586
      }
16587
    }
16588
 
16589
    public getAgents_result deepCopy() {
16590
      return new getAgents_result(this);
16591
    }
16592
 
16593
    @Override
16594
    public void clear() {
16595
      this.success = null;
16596
    }
16597
 
16598
    public int getSuccessSize() {
16599
      return (this.success == null) ? 0 : this.success.size();
16600
    }
16601
 
16602
    public java.util.Iterator<Agent> getSuccessIterator() {
16603
      return (this.success == null) ? null : this.success.iterator();
16604
    }
16605
 
16606
    public void addToSuccess(Agent elem) {
16607
      if (this.success == null) {
16608
        this.success = new ArrayList<Agent>();
16609
      }
16610
      this.success.add(elem);
16611
    }
16612
 
16613
    public List<Agent> getSuccess() {
16614
      return this.success;
16615
    }
16616
 
16617
    public void setSuccess(List<Agent> success) {
16618
      this.success = success;
16619
    }
16620
 
16621
    public void unsetSuccess() {
16622
      this.success = null;
16623
    }
16624
 
16625
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
16626
    public boolean isSetSuccess() {
16627
      return this.success != null;
16628
    }
16629
 
16630
    public void setSuccessIsSet(boolean value) {
16631
      if (!value) {
16632
        this.success = null;
16633
      }
16634
    }
16635
 
16636
    public void setFieldValue(_Fields field, Object value) {
16637
      switch (field) {
16638
      case SUCCESS:
16639
        if (value == null) {
16640
          unsetSuccess();
16641
        } else {
16642
          setSuccess((List<Agent>)value);
16643
        }
16644
        break;
16645
 
16646
      }
16647
    }
16648
 
16649
    public Object getFieldValue(_Fields field) {
16650
      switch (field) {
16651
      case SUCCESS:
16652
        return getSuccess();
16653
 
16654
      }
16655
      throw new IllegalStateException();
16656
    }
16657
 
16658
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16659
    public boolean isSet(_Fields field) {
16660
      if (field == null) {
16661
        throw new IllegalArgumentException();
16662
      }
16663
 
16664
      switch (field) {
16665
      case SUCCESS:
16666
        return isSetSuccess();
16667
      }
16668
      throw new IllegalStateException();
16669
    }
16670
 
16671
    @Override
16672
    public boolean equals(Object that) {
16673
      if (that == null)
16674
        return false;
16675
      if (that instanceof getAgents_result)
16676
        return this.equals((getAgents_result)that);
16677
      return false;
16678
    }
16679
 
16680
    public boolean equals(getAgents_result that) {
16681
      if (that == null)
16682
        return false;
16683
 
16684
      boolean this_present_success = true && this.isSetSuccess();
16685
      boolean that_present_success = true && that.isSetSuccess();
16686
      if (this_present_success || that_present_success) {
16687
        if (!(this_present_success && that_present_success))
16688
          return false;
16689
        if (!this.success.equals(that.success))
16690
          return false;
16691
      }
16692
 
16693
      return true;
16694
    }
16695
 
16696
    @Override
16697
    public int hashCode() {
16698
      return 0;
16699
    }
16700
 
16701
    public int compareTo(getAgents_result other) {
16702
      if (!getClass().equals(other.getClass())) {
16703
        return getClass().getName().compareTo(other.getClass().getName());
16704
      }
16705
 
16706
      int lastComparison = 0;
16707
      getAgents_result typedOther = (getAgents_result)other;
16708
 
16709
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
16710
      if (lastComparison != 0) {
16711
        return lastComparison;
16712
      }
16713
      if (isSetSuccess()) {
16714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16715
        if (lastComparison != 0) {
16716
          return lastComparison;
16717
        }
16718
      }
16719
      return 0;
16720
    }
16721
 
16722
    public _Fields fieldForId(int fieldId) {
16723
      return _Fields.findByThriftId(fieldId);
16724
    }
16725
 
16726
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16727
      org.apache.thrift.protocol.TField field;
16728
      iprot.readStructBegin();
16729
      while (true)
16730
      {
16731
        field = iprot.readFieldBegin();
16732
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16733
          break;
16734
        }
16735
        switch (field.id) {
16736
          case 0: // SUCCESS
16737
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16738
              {
16739
                org.apache.thrift.protocol.TList _list25 = iprot.readListBegin();
16740
                this.success = new ArrayList<Agent>(_list25.size);
16741
                for (int _i26 = 0; _i26 < _list25.size; ++_i26)
16742
                {
16743
                  Agent _elem27; // required
16744
                  _elem27 = new Agent();
16745
                  _elem27.read(iprot);
16746
                  this.success.add(_elem27);
16747
                }
16748
                iprot.readListEnd();
16749
              }
16750
            } else { 
16751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16752
            }
16753
            break;
16754
          default:
16755
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16756
        }
16757
        iprot.readFieldEnd();
16758
      }
16759
      iprot.readStructEnd();
16760
      validate();
16761
    }
16762
 
16763
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16764
      oprot.writeStructBegin(STRUCT_DESC);
16765
 
16766
      if (this.isSetSuccess()) {
16767
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16768
        {
16769
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
16770
          for (Agent _iter28 : this.success)
16771
          {
16772
            _iter28.write(oprot);
16773
          }
16774
          oprot.writeListEnd();
16775
        }
16776
        oprot.writeFieldEnd();
16777
      }
16778
      oprot.writeFieldStop();
16779
      oprot.writeStructEnd();
16780
    }
16781
 
16782
    @Override
16783
    public String toString() {
16784
      StringBuilder sb = new StringBuilder("getAgents_result(");
16785
      boolean first = true;
16786
 
16787
      sb.append("success:");
16788
      if (this.success == null) {
16789
        sb.append("null");
16790
      } else {
16791
        sb.append(this.success);
16792
      }
16793
      first = false;
16794
      sb.append(")");
16795
      return sb.toString();
16796
    }
16797
 
16798
    public void validate() throws org.apache.thrift.TException {
16799
      // check for required fields
16800
    }
16801
 
16802
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16803
      try {
16804
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16805
      } catch (org.apache.thrift.TException te) {
16806
        throw new java.io.IOException(te);
16807
      }
16808
    }
16809
 
16810
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16811
      try {
16812
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16813
      } catch (org.apache.thrift.TException te) {
16814
        throw new java.io.IOException(te);
16815
      }
16816
    }
16817
 
16818
  }
16819
 
16820
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
16821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
16822
 
16823
    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);
16824
    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);
16825
 
16826
    private String emailId; // required
16827
    private String password; // required
16828
 
16829
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16830
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16831
      EMAIL_ID((short)1, "emailId"),
16832
      PASSWORD((short)2, "password");
16833
 
16834
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16835
 
16836
      static {
16837
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16838
          byName.put(field.getFieldName(), field);
16839
        }
16840
      }
16841
 
16842
      /**
16843
       * Find the _Fields constant that matches fieldId, or null if its not found.
16844
       */
16845
      public static _Fields findByThriftId(int fieldId) {
16846
        switch(fieldId) {
16847
          case 1: // EMAIL_ID
16848
            return EMAIL_ID;
16849
          case 2: // PASSWORD
16850
            return PASSWORD;
16851
          default:
16852
            return null;
16853
        }
16854
      }
16855
 
16856
      /**
16857
       * Find the _Fields constant that matches fieldId, throwing an exception
16858
       * if it is not found.
16859
       */
16860
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16861
        _Fields fields = findByThriftId(fieldId);
16862
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16863
        return fields;
16864
      }
16865
 
16866
      /**
16867
       * Find the _Fields constant that matches name, or null if its not found.
16868
       */
16869
      public static _Fields findByName(String name) {
16870
        return byName.get(name);
16871
      }
16872
 
16873
      private final short _thriftId;
16874
      private final String _fieldName;
16875
 
16876
      _Fields(short thriftId, String fieldName) {
16877
        _thriftId = thriftId;
16878
        _fieldName = fieldName;
16879
      }
16880
 
16881
      public short getThriftFieldId() {
16882
        return _thriftId;
16883
      }
16884
 
16885
      public String getFieldName() {
16886
        return _fieldName;
16887
      }
16888
    }
16889
 
16890
    // isset id assignments
16891
 
16892
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16893
    static {
16894
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16895
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16896
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16897
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16898
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16899
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16900
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
16901
    }
16902
 
16903
    public validateLogIn_args() {
16904
    }
16905
 
16906
    public validateLogIn_args(
16907
      String emailId,
16908
      String password)
16909
    {
16910
      this();
16911
      this.emailId = emailId;
16912
      this.password = password;
16913
    }
16914
 
16915
    /**
16916
     * Performs a deep copy on <i>other</i>.
16917
     */
16918
    public validateLogIn_args(validateLogIn_args other) {
16919
      if (other.isSetEmailId()) {
16920
        this.emailId = other.emailId;
16921
      }
16922
      if (other.isSetPassword()) {
16923
        this.password = other.password;
16924
      }
16925
    }
16926
 
16927
    public validateLogIn_args deepCopy() {
16928
      return new validateLogIn_args(this);
16929
    }
16930
 
16931
    @Override
16932
    public void clear() {
16933
      this.emailId = null;
16934
      this.password = null;
16935
    }
16936
 
16937
    public String getEmailId() {
16938
      return this.emailId;
16939
    }
16940
 
16941
    public void setEmailId(String emailId) {
16942
      this.emailId = emailId;
16943
    }
16944
 
16945
    public void unsetEmailId() {
16946
      this.emailId = null;
16947
    }
16948
 
16949
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
16950
    public boolean isSetEmailId() {
16951
      return this.emailId != null;
16952
    }
16953
 
16954
    public void setEmailIdIsSet(boolean value) {
16955
      if (!value) {
16956
        this.emailId = null;
16957
      }
16958
    }
16959
 
16960
    public String getPassword() {
16961
      return this.password;
16962
    }
16963
 
16964
    public void setPassword(String password) {
16965
      this.password = password;
16966
    }
16967
 
16968
    public void unsetPassword() {
16969
      this.password = null;
16970
    }
16971
 
16972
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
16973
    public boolean isSetPassword() {
16974
      return this.password != null;
16975
    }
16976
 
16977
    public void setPasswordIsSet(boolean value) {
16978
      if (!value) {
16979
        this.password = null;
16980
      }
16981
    }
16982
 
16983
    public void setFieldValue(_Fields field, Object value) {
16984
      switch (field) {
16985
      case EMAIL_ID:
16986
        if (value == null) {
16987
          unsetEmailId();
16988
        } else {
16989
          setEmailId((String)value);
16990
        }
16991
        break;
16992
 
16993
      case PASSWORD:
16994
        if (value == null) {
16995
          unsetPassword();
16996
        } else {
16997
          setPassword((String)value);
16998
        }
16999
        break;
17000
 
17001
      }
17002
    }
17003
 
17004
    public Object getFieldValue(_Fields field) {
17005
      switch (field) {
17006
      case EMAIL_ID:
17007
        return getEmailId();
17008
 
17009
      case PASSWORD:
17010
        return getPassword();
17011
 
17012
      }
17013
      throw new IllegalStateException();
17014
    }
17015
 
17016
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17017
    public boolean isSet(_Fields field) {
17018
      if (field == null) {
17019
        throw new IllegalArgumentException();
17020
      }
17021
 
17022
      switch (field) {
17023
      case EMAIL_ID:
17024
        return isSetEmailId();
17025
      case PASSWORD:
17026
        return isSetPassword();
17027
      }
17028
      throw new IllegalStateException();
17029
    }
17030
 
17031
    @Override
17032
    public boolean equals(Object that) {
17033
      if (that == null)
17034
        return false;
17035
      if (that instanceof validateLogIn_args)
17036
        return this.equals((validateLogIn_args)that);
17037
      return false;
17038
    }
17039
 
17040
    public boolean equals(validateLogIn_args that) {
17041
      if (that == null)
17042
        return false;
17043
 
17044
      boolean this_present_emailId = true && this.isSetEmailId();
17045
      boolean that_present_emailId = true && that.isSetEmailId();
17046
      if (this_present_emailId || that_present_emailId) {
17047
        if (!(this_present_emailId && that_present_emailId))
17048
          return false;
17049
        if (!this.emailId.equals(that.emailId))
17050
          return false;
17051
      }
17052
 
17053
      boolean this_present_password = true && this.isSetPassword();
17054
      boolean that_present_password = true && that.isSetPassword();
17055
      if (this_present_password || that_present_password) {
17056
        if (!(this_present_password && that_present_password))
17057
          return false;
17058
        if (!this.password.equals(that.password))
17059
          return false;
17060
      }
17061
 
17062
      return true;
17063
    }
17064
 
17065
    @Override
17066
    public int hashCode() {
17067
      return 0;
17068
    }
17069
 
17070
    public int compareTo(validateLogIn_args other) {
17071
      if (!getClass().equals(other.getClass())) {
17072
        return getClass().getName().compareTo(other.getClass().getName());
17073
      }
17074
 
17075
      int lastComparison = 0;
17076
      validateLogIn_args typedOther = (validateLogIn_args)other;
17077
 
17078
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17079
      if (lastComparison != 0) {
17080
        return lastComparison;
17081
      }
17082
      if (isSetEmailId()) {
17083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17084
        if (lastComparison != 0) {
17085
          return lastComparison;
17086
        }
17087
      }
17088
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17089
      if (lastComparison != 0) {
17090
        return lastComparison;
17091
      }
17092
      if (isSetPassword()) {
17093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17094
        if (lastComparison != 0) {
17095
          return lastComparison;
17096
        }
17097
      }
17098
      return 0;
17099
    }
17100
 
17101
    public _Fields fieldForId(int fieldId) {
17102
      return _Fields.findByThriftId(fieldId);
17103
    }
17104
 
17105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17106
      org.apache.thrift.protocol.TField field;
17107
      iprot.readStructBegin();
17108
      while (true)
17109
      {
17110
        field = iprot.readFieldBegin();
17111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17112
          break;
17113
        }
17114
        switch (field.id) {
17115
          case 1: // EMAIL_ID
17116
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17117
              this.emailId = iprot.readString();
17118
            } else { 
17119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17120
            }
17121
            break;
17122
          case 2: // PASSWORD
17123
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17124
              this.password = iprot.readString();
17125
            } else { 
17126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17127
            }
17128
            break;
17129
          default:
17130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17131
        }
17132
        iprot.readFieldEnd();
17133
      }
17134
      iprot.readStructEnd();
17135
      validate();
17136
    }
17137
 
17138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17139
      validate();
17140
 
17141
      oprot.writeStructBegin(STRUCT_DESC);
17142
      if (this.emailId != null) {
17143
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17144
        oprot.writeString(this.emailId);
17145
        oprot.writeFieldEnd();
17146
      }
17147
      if (this.password != null) {
17148
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17149
        oprot.writeString(this.password);
17150
        oprot.writeFieldEnd();
17151
      }
17152
      oprot.writeFieldStop();
17153
      oprot.writeStructEnd();
17154
    }
17155
 
17156
    @Override
17157
    public String toString() {
17158
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17159
      boolean first = true;
17160
 
17161
      sb.append("emailId:");
17162
      if (this.emailId == null) {
17163
        sb.append("null");
17164
      } else {
17165
        sb.append(this.emailId);
17166
      }
17167
      first = false;
17168
      if (!first) sb.append(", ");
17169
      sb.append("password:");
17170
      if (this.password == null) {
17171
        sb.append("null");
17172
      } else {
17173
        sb.append(this.password);
17174
      }
17175
      first = false;
17176
      sb.append(")");
17177
      return sb.toString();
17178
    }
17179
 
17180
    public void validate() throws org.apache.thrift.TException {
17181
      // check for required fields
17182
    }
17183
 
17184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17185
      try {
17186
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17187
      } catch (org.apache.thrift.TException te) {
17188
        throw new java.io.IOException(te);
17189
      }
17190
    }
17191
 
17192
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17193
      try {
17194
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17195
      } catch (org.apache.thrift.TException te) {
17196
        throw new java.io.IOException(te);
17197
      }
17198
    }
17199
 
17200
  }
17201
 
17202
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17203
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17204
 
17205
    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);
17206
 
17207
    private boolean success; // required
17208
 
17209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17211
      SUCCESS((short)0, "success");
17212
 
17213
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17214
 
17215
      static {
17216
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17217
          byName.put(field.getFieldName(), field);
17218
        }
17219
      }
17220
 
17221
      /**
17222
       * Find the _Fields constant that matches fieldId, or null if its not found.
17223
       */
17224
      public static _Fields findByThriftId(int fieldId) {
17225
        switch(fieldId) {
17226
          case 0: // SUCCESS
17227
            return SUCCESS;
17228
          default:
17229
            return null;
17230
        }
17231
      }
17232
 
17233
      /**
17234
       * Find the _Fields constant that matches fieldId, throwing an exception
17235
       * if it is not found.
17236
       */
17237
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17238
        _Fields fields = findByThriftId(fieldId);
17239
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17240
        return fields;
17241
      }
17242
 
17243
      /**
17244
       * Find the _Fields constant that matches name, or null if its not found.
17245
       */
17246
      public static _Fields findByName(String name) {
17247
        return byName.get(name);
17248
      }
17249
 
17250
      private final short _thriftId;
17251
      private final String _fieldName;
17252
 
17253
      _Fields(short thriftId, String fieldName) {
17254
        _thriftId = thriftId;
17255
        _fieldName = fieldName;
17256
      }
17257
 
17258
      public short getThriftFieldId() {
17259
        return _thriftId;
17260
      }
17261
 
17262
      public String getFieldName() {
17263
        return _fieldName;
17264
      }
17265
    }
17266
 
17267
    // isset id assignments
17268
    private static final int __SUCCESS_ISSET_ID = 0;
17269
    private BitSet __isset_bit_vector = new BitSet(1);
17270
 
17271
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17272
    static {
17273
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17274
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17275
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17276
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17277
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17278
    }
17279
 
17280
    public validateLogIn_result() {
17281
    }
17282
 
17283
    public validateLogIn_result(
17284
      boolean success)
17285
    {
17286
      this();
17287
      this.success = success;
17288
      setSuccessIsSet(true);
17289
    }
17290
 
17291
    /**
17292
     * Performs a deep copy on <i>other</i>.
17293
     */
17294
    public validateLogIn_result(validateLogIn_result other) {
17295
      __isset_bit_vector.clear();
17296
      __isset_bit_vector.or(other.__isset_bit_vector);
17297
      this.success = other.success;
17298
    }
17299
 
17300
    public validateLogIn_result deepCopy() {
17301
      return new validateLogIn_result(this);
17302
    }
17303
 
17304
    @Override
17305
    public void clear() {
17306
      setSuccessIsSet(false);
17307
      this.success = false;
17308
    }
17309
 
17310
    public boolean isSuccess() {
17311
      return this.success;
17312
    }
17313
 
17314
    public void setSuccess(boolean success) {
17315
      this.success = success;
17316
      setSuccessIsSet(true);
17317
    }
17318
 
17319
    public void unsetSuccess() {
17320
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17321
    }
17322
 
17323
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17324
    public boolean isSetSuccess() {
17325
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17326
    }
17327
 
17328
    public void setSuccessIsSet(boolean value) {
17329
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17330
    }
17331
 
17332
    public void setFieldValue(_Fields field, Object value) {
17333
      switch (field) {
17334
      case SUCCESS:
17335
        if (value == null) {
17336
          unsetSuccess();
17337
        } else {
17338
          setSuccess((Boolean)value);
17339
        }
17340
        break;
17341
 
17342
      }
17343
    }
17344
 
17345
    public Object getFieldValue(_Fields field) {
17346
      switch (field) {
17347
      case SUCCESS:
17348
        return Boolean.valueOf(isSuccess());
17349
 
17350
      }
17351
      throw new IllegalStateException();
17352
    }
17353
 
17354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17355
    public boolean isSet(_Fields field) {
17356
      if (field == null) {
17357
        throw new IllegalArgumentException();
17358
      }
17359
 
17360
      switch (field) {
17361
      case SUCCESS:
17362
        return isSetSuccess();
17363
      }
17364
      throw new IllegalStateException();
17365
    }
17366
 
17367
    @Override
17368
    public boolean equals(Object that) {
17369
      if (that == null)
17370
        return false;
17371
      if (that instanceof validateLogIn_result)
17372
        return this.equals((validateLogIn_result)that);
17373
      return false;
17374
    }
17375
 
17376
    public boolean equals(validateLogIn_result that) {
17377
      if (that == null)
17378
        return false;
17379
 
17380
      boolean this_present_success = true;
17381
      boolean that_present_success = true;
17382
      if (this_present_success || that_present_success) {
17383
        if (!(this_present_success && that_present_success))
17384
          return false;
17385
        if (this.success != that.success)
17386
          return false;
17387
      }
17388
 
17389
      return true;
17390
    }
17391
 
17392
    @Override
17393
    public int hashCode() {
17394
      return 0;
17395
    }
17396
 
17397
    public int compareTo(validateLogIn_result other) {
17398
      if (!getClass().equals(other.getClass())) {
17399
        return getClass().getName().compareTo(other.getClass().getName());
17400
      }
17401
 
17402
      int lastComparison = 0;
17403
      validateLogIn_result typedOther = (validateLogIn_result)other;
17404
 
17405
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17406
      if (lastComparison != 0) {
17407
        return lastComparison;
17408
      }
17409
      if (isSetSuccess()) {
17410
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17411
        if (lastComparison != 0) {
17412
          return lastComparison;
17413
        }
17414
      }
17415
      return 0;
17416
    }
17417
 
17418
    public _Fields fieldForId(int fieldId) {
17419
      return _Fields.findByThriftId(fieldId);
17420
    }
17421
 
17422
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17423
      org.apache.thrift.protocol.TField field;
17424
      iprot.readStructBegin();
17425
      while (true)
17426
      {
17427
        field = iprot.readFieldBegin();
17428
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17429
          break;
17430
        }
17431
        switch (field.id) {
17432
          case 0: // SUCCESS
17433
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17434
              this.success = iprot.readBool();
17435
              setSuccessIsSet(true);
17436
            } else { 
17437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17438
            }
17439
            break;
17440
          default:
17441
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17442
        }
17443
        iprot.readFieldEnd();
17444
      }
17445
      iprot.readStructEnd();
17446
      validate();
17447
    }
17448
 
17449
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17450
      oprot.writeStructBegin(STRUCT_DESC);
17451
 
17452
      if (this.isSetSuccess()) {
17453
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17454
        oprot.writeBool(this.success);
17455
        oprot.writeFieldEnd();
17456
      }
17457
      oprot.writeFieldStop();
17458
      oprot.writeStructEnd();
17459
    }
17460
 
17461
    @Override
17462
    public String toString() {
17463
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17464
      boolean first = true;
17465
 
17466
      sb.append("success:");
17467
      sb.append(this.success);
17468
      first = false;
17469
      sb.append(")");
17470
      return sb.toString();
17471
    }
17472
 
17473
    public void validate() throws org.apache.thrift.TException {
17474
      // check for required fields
17475
    }
17476
 
17477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17478
      try {
17479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17480
      } catch (org.apache.thrift.TException te) {
17481
        throw new java.io.IOException(te);
17482
      }
17483
    }
17484
 
17485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17486
      try {
17487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17488
      } catch (org.apache.thrift.TException te) {
17489
        throw new java.io.IOException(te);
17490
      }
17491
    }
17492
 
17493
  }
17494
 
17495
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17497
 
17498
    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);
17499
    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);
17500
 
17501
    private String agentEmailId; // required
17502
    private String password; // required
17503
 
17504
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17505
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17506
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17507
      PASSWORD((short)2, "password");
17508
 
17509
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17510
 
17511
      static {
17512
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17513
          byName.put(field.getFieldName(), field);
17514
        }
17515
      }
17516
 
17517
      /**
17518
       * Find the _Fields constant that matches fieldId, or null if its not found.
17519
       */
17520
      public static _Fields findByThriftId(int fieldId) {
17521
        switch(fieldId) {
17522
          case 1: // AGENT_EMAIL_ID
17523
            return AGENT_EMAIL_ID;
17524
          case 2: // PASSWORD
17525
            return PASSWORD;
17526
          default:
17527
            return null;
17528
        }
17529
      }
17530
 
17531
      /**
17532
       * Find the _Fields constant that matches fieldId, throwing an exception
17533
       * if it is not found.
17534
       */
17535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17536
        _Fields fields = findByThriftId(fieldId);
17537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17538
        return fields;
17539
      }
17540
 
17541
      /**
17542
       * Find the _Fields constant that matches name, or null if its not found.
17543
       */
17544
      public static _Fields findByName(String name) {
17545
        return byName.get(name);
17546
      }
17547
 
17548
      private final short _thriftId;
17549
      private final String _fieldName;
17550
 
17551
      _Fields(short thriftId, String fieldName) {
17552
        _thriftId = thriftId;
17553
        _fieldName = fieldName;
17554
      }
17555
 
17556
      public short getThriftFieldId() {
17557
        return _thriftId;
17558
      }
17559
 
17560
      public String getFieldName() {
17561
        return _fieldName;
17562
      }
17563
    }
17564
 
17565
    // isset id assignments
17566
 
17567
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17568
    static {
17569
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17570
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17571
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17572
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17573
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17574
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17575
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17576
    }
17577
 
17578
    public updatePasswordForAgent_args() {
17579
    }
17580
 
17581
    public updatePasswordForAgent_args(
17582
      String agentEmailId,
17583
      String password)
17584
    {
17585
      this();
17586
      this.agentEmailId = agentEmailId;
17587
      this.password = password;
17588
    }
17589
 
17590
    /**
17591
     * Performs a deep copy on <i>other</i>.
17592
     */
17593
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17594
      if (other.isSetAgentEmailId()) {
17595
        this.agentEmailId = other.agentEmailId;
17596
      }
17597
      if (other.isSetPassword()) {
17598
        this.password = other.password;
17599
      }
17600
    }
17601
 
17602
    public updatePasswordForAgent_args deepCopy() {
17603
      return new updatePasswordForAgent_args(this);
17604
    }
17605
 
17606
    @Override
17607
    public void clear() {
17608
      this.agentEmailId = null;
17609
      this.password = null;
17610
    }
17611
 
17612
    public String getAgentEmailId() {
17613
      return this.agentEmailId;
17614
    }
17615
 
17616
    public void setAgentEmailId(String agentEmailId) {
17617
      this.agentEmailId = agentEmailId;
17618
    }
17619
 
17620
    public void unsetAgentEmailId() {
17621
      this.agentEmailId = null;
17622
    }
17623
 
17624
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
17625
    public boolean isSetAgentEmailId() {
17626
      return this.agentEmailId != null;
17627
    }
17628
 
17629
    public void setAgentEmailIdIsSet(boolean value) {
17630
      if (!value) {
17631
        this.agentEmailId = null;
17632
      }
17633
    }
17634
 
17635
    public String getPassword() {
17636
      return this.password;
17637
    }
17638
 
17639
    public void setPassword(String password) {
17640
      this.password = password;
17641
    }
17642
 
17643
    public void unsetPassword() {
17644
      this.password = null;
17645
    }
17646
 
17647
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17648
    public boolean isSetPassword() {
17649
      return this.password != null;
17650
    }
17651
 
17652
    public void setPasswordIsSet(boolean value) {
17653
      if (!value) {
17654
        this.password = null;
17655
      }
17656
    }
17657
 
17658
    public void setFieldValue(_Fields field, Object value) {
17659
      switch (field) {
17660
      case AGENT_EMAIL_ID:
17661
        if (value == null) {
17662
          unsetAgentEmailId();
17663
        } else {
17664
          setAgentEmailId((String)value);
17665
        }
17666
        break;
17667
 
17668
      case PASSWORD:
17669
        if (value == null) {
17670
          unsetPassword();
17671
        } else {
17672
          setPassword((String)value);
17673
        }
17674
        break;
17675
 
17676
      }
17677
    }
17678
 
17679
    public Object getFieldValue(_Fields field) {
17680
      switch (field) {
17681
      case AGENT_EMAIL_ID:
17682
        return getAgentEmailId();
17683
 
17684
      case PASSWORD:
17685
        return getPassword();
17686
 
17687
      }
17688
      throw new IllegalStateException();
17689
    }
17690
 
17691
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17692
    public boolean isSet(_Fields field) {
17693
      if (field == null) {
17694
        throw new IllegalArgumentException();
17695
      }
17696
 
17697
      switch (field) {
17698
      case AGENT_EMAIL_ID:
17699
        return isSetAgentEmailId();
17700
      case PASSWORD:
17701
        return isSetPassword();
17702
      }
17703
      throw new IllegalStateException();
17704
    }
17705
 
17706
    @Override
17707
    public boolean equals(Object that) {
17708
      if (that == null)
17709
        return false;
17710
      if (that instanceof updatePasswordForAgent_args)
17711
        return this.equals((updatePasswordForAgent_args)that);
17712
      return false;
17713
    }
17714
 
17715
    public boolean equals(updatePasswordForAgent_args that) {
17716
      if (that == null)
17717
        return false;
17718
 
17719
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
17720
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
17721
      if (this_present_agentEmailId || that_present_agentEmailId) {
17722
        if (!(this_present_agentEmailId && that_present_agentEmailId))
17723
          return false;
17724
        if (!this.agentEmailId.equals(that.agentEmailId))
17725
          return false;
17726
      }
17727
 
17728
      boolean this_present_password = true && this.isSetPassword();
17729
      boolean that_present_password = true && that.isSetPassword();
17730
      if (this_present_password || that_present_password) {
17731
        if (!(this_present_password && that_present_password))
17732
          return false;
17733
        if (!this.password.equals(that.password))
17734
          return false;
17735
      }
17736
 
17737
      return true;
17738
    }
17739
 
17740
    @Override
17741
    public int hashCode() {
17742
      return 0;
17743
    }
17744
 
17745
    public int compareTo(updatePasswordForAgent_args other) {
17746
      if (!getClass().equals(other.getClass())) {
17747
        return getClass().getName().compareTo(other.getClass().getName());
17748
      }
17749
 
17750
      int lastComparison = 0;
17751
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
17752
 
17753
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
17754
      if (lastComparison != 0) {
17755
        return lastComparison;
17756
      }
17757
      if (isSetAgentEmailId()) {
17758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
17759
        if (lastComparison != 0) {
17760
          return lastComparison;
17761
        }
17762
      }
17763
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17764
      if (lastComparison != 0) {
17765
        return lastComparison;
17766
      }
17767
      if (isSetPassword()) {
17768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17769
        if (lastComparison != 0) {
17770
          return lastComparison;
17771
        }
17772
      }
17773
      return 0;
17774
    }
17775
 
17776
    public _Fields fieldForId(int fieldId) {
17777
      return _Fields.findByThriftId(fieldId);
17778
    }
17779
 
17780
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17781
      org.apache.thrift.protocol.TField field;
17782
      iprot.readStructBegin();
17783
      while (true)
17784
      {
17785
        field = iprot.readFieldBegin();
17786
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17787
          break;
17788
        }
17789
        switch (field.id) {
17790
          case 1: // AGENT_EMAIL_ID
17791
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17792
              this.agentEmailId = iprot.readString();
17793
            } else { 
17794
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17795
            }
17796
            break;
17797
          case 2: // PASSWORD
17798
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17799
              this.password = iprot.readString();
17800
            } else { 
17801
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17802
            }
17803
            break;
17804
          default:
17805
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17806
        }
17807
        iprot.readFieldEnd();
17808
      }
17809
      iprot.readStructEnd();
17810
      validate();
17811
    }
17812
 
17813
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17814
      validate();
17815
 
17816
      oprot.writeStructBegin(STRUCT_DESC);
17817
      if (this.agentEmailId != null) {
17818
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
17819
        oprot.writeString(this.agentEmailId);
17820
        oprot.writeFieldEnd();
17821
      }
17822
      if (this.password != null) {
17823
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17824
        oprot.writeString(this.password);
17825
        oprot.writeFieldEnd();
17826
      }
17827
      oprot.writeFieldStop();
17828
      oprot.writeStructEnd();
17829
    }
17830
 
17831
    @Override
17832
    public String toString() {
17833
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
17834
      boolean first = true;
17835
 
17836
      sb.append("agentEmailId:");
17837
      if (this.agentEmailId == null) {
17838
        sb.append("null");
17839
      } else {
17840
        sb.append(this.agentEmailId);
17841
      }
17842
      first = false;
17843
      if (!first) sb.append(", ");
17844
      sb.append("password:");
17845
      if (this.password == null) {
17846
        sb.append("null");
17847
      } else {
17848
        sb.append(this.password);
17849
      }
17850
      first = false;
17851
      sb.append(")");
17852
      return sb.toString();
17853
    }
17854
 
17855
    public void validate() throws org.apache.thrift.TException {
17856
      // check for required fields
17857
    }
17858
 
17859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17860
      try {
17861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17862
      } catch (org.apache.thrift.TException te) {
17863
        throw new java.io.IOException(te);
17864
      }
17865
    }
17866
 
17867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17868
      try {
17869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17870
      } catch (org.apache.thrift.TException te) {
17871
        throw new java.io.IOException(te);
17872
      }
17873
    }
17874
 
17875
  }
17876
 
17877
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
17878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
17879
 
17880
 
17881
 
17882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17884
;
17885
 
17886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17887
 
17888
      static {
17889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17890
          byName.put(field.getFieldName(), field);
17891
        }
17892
      }
17893
 
17894
      /**
17895
       * Find the _Fields constant that matches fieldId, or null if its not found.
17896
       */
17897
      public static _Fields findByThriftId(int fieldId) {
17898
        switch(fieldId) {
17899
          default:
17900
            return null;
17901
        }
17902
      }
17903
 
17904
      /**
17905
       * Find the _Fields constant that matches fieldId, throwing an exception
17906
       * if it is not found.
17907
       */
17908
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17909
        _Fields fields = findByThriftId(fieldId);
17910
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17911
        return fields;
17912
      }
17913
 
17914
      /**
17915
       * Find the _Fields constant that matches name, or null if its not found.
17916
       */
17917
      public static _Fields findByName(String name) {
17918
        return byName.get(name);
17919
      }
17920
 
17921
      private final short _thriftId;
17922
      private final String _fieldName;
17923
 
17924
      _Fields(short thriftId, String fieldName) {
17925
        _thriftId = thriftId;
17926
        _fieldName = fieldName;
17927
      }
17928
 
17929
      public short getThriftFieldId() {
17930
        return _thriftId;
17931
      }
17932
 
17933
      public String getFieldName() {
17934
        return _fieldName;
17935
      }
17936
    }
17937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17938
    static {
17939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
17942
    }
17943
 
17944
    public updatePasswordForAgent_result() {
17945
    }
17946
 
17947
    /**
17948
     * Performs a deep copy on <i>other</i>.
17949
     */
17950
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
17951
    }
17952
 
17953
    public updatePasswordForAgent_result deepCopy() {
17954
      return new updatePasswordForAgent_result(this);
17955
    }
17956
 
17957
    @Override
17958
    public void clear() {
17959
    }
17960
 
17961
    public void setFieldValue(_Fields field, Object value) {
17962
      switch (field) {
17963
      }
17964
    }
17965
 
17966
    public Object getFieldValue(_Fields field) {
17967
      switch (field) {
17968
      }
17969
      throw new IllegalStateException();
17970
    }
17971
 
17972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17973
    public boolean isSet(_Fields field) {
17974
      if (field == null) {
17975
        throw new IllegalArgumentException();
17976
      }
17977
 
17978
      switch (field) {
17979
      }
17980
      throw new IllegalStateException();
17981
    }
17982
 
17983
    @Override
17984
    public boolean equals(Object that) {
17985
      if (that == null)
17986
        return false;
17987
      if (that instanceof updatePasswordForAgent_result)
17988
        return this.equals((updatePasswordForAgent_result)that);
17989
      return false;
17990
    }
17991
 
17992
    public boolean equals(updatePasswordForAgent_result that) {
17993
      if (that == null)
17994
        return false;
17995
 
17996
      return true;
17997
    }
17998
 
17999
    @Override
18000
    public int hashCode() {
18001
      return 0;
18002
    }
18003
 
18004
    public int compareTo(updatePasswordForAgent_result other) {
18005
      if (!getClass().equals(other.getClass())) {
18006
        return getClass().getName().compareTo(other.getClass().getName());
18007
      }
18008
 
18009
      int lastComparison = 0;
18010
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18011
 
18012
      return 0;
18013
    }
18014
 
18015
    public _Fields fieldForId(int fieldId) {
18016
      return _Fields.findByThriftId(fieldId);
18017
    }
18018
 
18019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18020
      org.apache.thrift.protocol.TField field;
18021
      iprot.readStructBegin();
18022
      while (true)
18023
      {
18024
        field = iprot.readFieldBegin();
18025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18026
          break;
18027
        }
18028
        switch (field.id) {
18029
          default:
18030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18031
        }
18032
        iprot.readFieldEnd();
18033
      }
18034
      iprot.readStructEnd();
18035
      validate();
18036
    }
18037
 
18038
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18039
      oprot.writeStructBegin(STRUCT_DESC);
18040
 
18041
      oprot.writeFieldStop();
18042
      oprot.writeStructEnd();
18043
    }
18044
 
18045
    @Override
18046
    public String toString() {
18047
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18048
      boolean first = true;
18049
 
18050
      sb.append(")");
18051
      return sb.toString();
18052
    }
18053
 
18054
    public void validate() throws org.apache.thrift.TException {
18055
      // check for required fields
18056
    }
18057
 
18058
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18059
      try {
18060
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18061
      } catch (org.apache.thrift.TException te) {
18062
        throw new java.io.IOException(te);
18063
      }
18064
    }
18065
 
18066
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18067
      try {
18068
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18069
      } catch (org.apache.thrift.TException te) {
18070
        throw new java.io.IOException(te);
18071
      }
18072
    }
18073
 
18074
  }
18075
 
18076
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18078
 
18079
    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);
18080
 
18081
    private String agentEmailId; // required
18082
 
18083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18085
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18086
 
18087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18088
 
18089
      static {
18090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18091
          byName.put(field.getFieldName(), field);
18092
        }
18093
      }
18094
 
18095
      /**
18096
       * Find the _Fields constant that matches fieldId, or null if its not found.
18097
       */
18098
      public static _Fields findByThriftId(int fieldId) {
18099
        switch(fieldId) {
18100
          case 1: // AGENT_EMAIL_ID
18101
            return AGENT_EMAIL_ID;
18102
          default:
18103
            return null;
18104
        }
18105
      }
18106
 
18107
      /**
18108
       * Find the _Fields constant that matches fieldId, throwing an exception
18109
       * if it is not found.
18110
       */
18111
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18112
        _Fields fields = findByThriftId(fieldId);
18113
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18114
        return fields;
18115
      }
18116
 
18117
      /**
18118
       * Find the _Fields constant that matches name, or null if its not found.
18119
       */
18120
      public static _Fields findByName(String name) {
18121
        return byName.get(name);
18122
      }
18123
 
18124
      private final short _thriftId;
18125
      private final String _fieldName;
18126
 
18127
      _Fields(short thriftId, String fieldName) {
18128
        _thriftId = thriftId;
18129
        _fieldName = fieldName;
18130
      }
18131
 
18132
      public short getThriftFieldId() {
18133
        return _thriftId;
18134
      }
18135
 
18136
      public String getFieldName() {
18137
        return _fieldName;
18138
      }
18139
    }
18140
 
18141
    // isset id assignments
18142
 
18143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18144
    static {
18145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18146
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18147
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18150
    }
18151
 
18152
    public getRoleNamesForAgent_args() {
18153
    }
18154
 
18155
    public getRoleNamesForAgent_args(
18156
      String agentEmailId)
18157
    {
18158
      this();
18159
      this.agentEmailId = agentEmailId;
18160
    }
18161
 
18162
    /**
18163
     * Performs a deep copy on <i>other</i>.
18164
     */
18165
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18166
      if (other.isSetAgentEmailId()) {
18167
        this.agentEmailId = other.agentEmailId;
18168
      }
18169
    }
18170
 
18171
    public getRoleNamesForAgent_args deepCopy() {
18172
      return new getRoleNamesForAgent_args(this);
18173
    }
18174
 
18175
    @Override
18176
    public void clear() {
18177
      this.agentEmailId = null;
18178
    }
18179
 
18180
    public String getAgentEmailId() {
18181
      return this.agentEmailId;
18182
    }
18183
 
18184
    public void setAgentEmailId(String agentEmailId) {
18185
      this.agentEmailId = agentEmailId;
18186
    }
18187
 
18188
    public void unsetAgentEmailId() {
18189
      this.agentEmailId = null;
18190
    }
18191
 
18192
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18193
    public boolean isSetAgentEmailId() {
18194
      return this.agentEmailId != null;
18195
    }
18196
 
18197
    public void setAgentEmailIdIsSet(boolean value) {
18198
      if (!value) {
18199
        this.agentEmailId = null;
18200
      }
18201
    }
18202
 
18203
    public void setFieldValue(_Fields field, Object value) {
18204
      switch (field) {
18205
      case AGENT_EMAIL_ID:
18206
        if (value == null) {
18207
          unsetAgentEmailId();
18208
        } else {
18209
          setAgentEmailId((String)value);
18210
        }
18211
        break;
18212
 
18213
      }
18214
    }
18215
 
18216
    public Object getFieldValue(_Fields field) {
18217
      switch (field) {
18218
      case AGENT_EMAIL_ID:
18219
        return getAgentEmailId();
18220
 
18221
      }
18222
      throw new IllegalStateException();
18223
    }
18224
 
18225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18226
    public boolean isSet(_Fields field) {
18227
      if (field == null) {
18228
        throw new IllegalArgumentException();
18229
      }
18230
 
18231
      switch (field) {
18232
      case AGENT_EMAIL_ID:
18233
        return isSetAgentEmailId();
18234
      }
18235
      throw new IllegalStateException();
18236
    }
18237
 
18238
    @Override
18239
    public boolean equals(Object that) {
18240
      if (that == null)
18241
        return false;
18242
      if (that instanceof getRoleNamesForAgent_args)
18243
        return this.equals((getRoleNamesForAgent_args)that);
18244
      return false;
18245
    }
18246
 
18247
    public boolean equals(getRoleNamesForAgent_args that) {
18248
      if (that == null)
18249
        return false;
18250
 
18251
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18252
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18253
      if (this_present_agentEmailId || that_present_agentEmailId) {
18254
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18255
          return false;
18256
        if (!this.agentEmailId.equals(that.agentEmailId))
18257
          return false;
18258
      }
18259
 
18260
      return true;
18261
    }
18262
 
18263
    @Override
18264
    public int hashCode() {
18265
      return 0;
18266
    }
18267
 
18268
    public int compareTo(getRoleNamesForAgent_args other) {
18269
      if (!getClass().equals(other.getClass())) {
18270
        return getClass().getName().compareTo(other.getClass().getName());
18271
      }
18272
 
18273
      int lastComparison = 0;
18274
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18275
 
18276
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18277
      if (lastComparison != 0) {
18278
        return lastComparison;
18279
      }
18280
      if (isSetAgentEmailId()) {
18281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18282
        if (lastComparison != 0) {
18283
          return lastComparison;
18284
        }
18285
      }
18286
      return 0;
18287
    }
18288
 
18289
    public _Fields fieldForId(int fieldId) {
18290
      return _Fields.findByThriftId(fieldId);
18291
    }
18292
 
18293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18294
      org.apache.thrift.protocol.TField field;
18295
      iprot.readStructBegin();
18296
      while (true)
18297
      {
18298
        field = iprot.readFieldBegin();
18299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18300
          break;
18301
        }
18302
        switch (field.id) {
18303
          case 1: // AGENT_EMAIL_ID
18304
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18305
              this.agentEmailId = iprot.readString();
18306
            } else { 
18307
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18308
            }
18309
            break;
18310
          default:
18311
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18312
        }
18313
        iprot.readFieldEnd();
18314
      }
18315
      iprot.readStructEnd();
18316
      validate();
18317
    }
18318
 
18319
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18320
      validate();
18321
 
18322
      oprot.writeStructBegin(STRUCT_DESC);
18323
      if (this.agentEmailId != null) {
18324
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18325
        oprot.writeString(this.agentEmailId);
18326
        oprot.writeFieldEnd();
18327
      }
18328
      oprot.writeFieldStop();
18329
      oprot.writeStructEnd();
18330
    }
18331
 
18332
    @Override
18333
    public String toString() {
18334
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18335
      boolean first = true;
18336
 
18337
      sb.append("agentEmailId:");
18338
      if (this.agentEmailId == null) {
18339
        sb.append("null");
18340
      } else {
18341
        sb.append(this.agentEmailId);
18342
      }
18343
      first = false;
18344
      sb.append(")");
18345
      return sb.toString();
18346
    }
18347
 
18348
    public void validate() throws org.apache.thrift.TException {
18349
      // check for required fields
18350
    }
18351
 
18352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18353
      try {
18354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18355
      } catch (org.apache.thrift.TException te) {
18356
        throw new java.io.IOException(te);
18357
      }
18358
    }
18359
 
18360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18361
      try {
18362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18363
      } catch (org.apache.thrift.TException te) {
18364
        throw new java.io.IOException(te);
18365
      }
18366
    }
18367
 
18368
  }
18369
 
18370
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18372
 
18373
    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);
18374
 
18375
    private List<String> success; // required
18376
 
18377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18379
      SUCCESS((short)0, "success");
18380
 
18381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18382
 
18383
      static {
18384
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18385
          byName.put(field.getFieldName(), field);
18386
        }
18387
      }
18388
 
18389
      /**
18390
       * Find the _Fields constant that matches fieldId, or null if its not found.
18391
       */
18392
      public static _Fields findByThriftId(int fieldId) {
18393
        switch(fieldId) {
18394
          case 0: // SUCCESS
18395
            return SUCCESS;
18396
          default:
18397
            return null;
18398
        }
18399
      }
18400
 
18401
      /**
18402
       * Find the _Fields constant that matches fieldId, throwing an exception
18403
       * if it is not found.
18404
       */
18405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18406
        _Fields fields = findByThriftId(fieldId);
18407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18408
        return fields;
18409
      }
18410
 
18411
      /**
18412
       * Find the _Fields constant that matches name, or null if its not found.
18413
       */
18414
      public static _Fields findByName(String name) {
18415
        return byName.get(name);
18416
      }
18417
 
18418
      private final short _thriftId;
18419
      private final String _fieldName;
18420
 
18421
      _Fields(short thriftId, String fieldName) {
18422
        _thriftId = thriftId;
18423
        _fieldName = fieldName;
18424
      }
18425
 
18426
      public short getThriftFieldId() {
18427
        return _thriftId;
18428
      }
18429
 
18430
      public String getFieldName() {
18431
        return _fieldName;
18432
      }
18433
    }
18434
 
18435
    // isset id assignments
18436
 
18437
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18438
    static {
18439
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18440
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18441
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18442
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18443
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18444
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18445
    }
18446
 
18447
    public getRoleNamesForAgent_result() {
18448
    }
18449
 
18450
    public getRoleNamesForAgent_result(
18451
      List<String> success)
18452
    {
18453
      this();
18454
      this.success = success;
18455
    }
18456
 
18457
    /**
18458
     * Performs a deep copy on <i>other</i>.
18459
     */
18460
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18461
      if (other.isSetSuccess()) {
18462
        List<String> __this__success = new ArrayList<String>();
18463
        for (String other_element : other.success) {
18464
          __this__success.add(other_element);
18465
        }
18466
        this.success = __this__success;
18467
      }
18468
    }
18469
 
18470
    public getRoleNamesForAgent_result deepCopy() {
18471
      return new getRoleNamesForAgent_result(this);
18472
    }
18473
 
18474
    @Override
18475
    public void clear() {
18476
      this.success = null;
18477
    }
18478
 
18479
    public int getSuccessSize() {
18480
      return (this.success == null) ? 0 : this.success.size();
18481
    }
18482
 
18483
    public java.util.Iterator<String> getSuccessIterator() {
18484
      return (this.success == null) ? null : this.success.iterator();
18485
    }
18486
 
18487
    public void addToSuccess(String elem) {
18488
      if (this.success == null) {
18489
        this.success = new ArrayList<String>();
18490
      }
18491
      this.success.add(elem);
18492
    }
18493
 
18494
    public List<String> getSuccess() {
18495
      return this.success;
18496
    }
18497
 
18498
    public void setSuccess(List<String> success) {
18499
      this.success = success;
18500
    }
18501
 
18502
    public void unsetSuccess() {
18503
      this.success = null;
18504
    }
18505
 
18506
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18507
    public boolean isSetSuccess() {
18508
      return this.success != null;
18509
    }
18510
 
18511
    public void setSuccessIsSet(boolean value) {
18512
      if (!value) {
18513
        this.success = null;
18514
      }
18515
    }
18516
 
18517
    public void setFieldValue(_Fields field, Object value) {
18518
      switch (field) {
18519
      case SUCCESS:
18520
        if (value == null) {
18521
          unsetSuccess();
18522
        } else {
18523
          setSuccess((List<String>)value);
18524
        }
18525
        break;
18526
 
18527
      }
18528
    }
18529
 
18530
    public Object getFieldValue(_Fields field) {
18531
      switch (field) {
18532
      case SUCCESS:
18533
        return getSuccess();
18534
 
18535
      }
18536
      throw new IllegalStateException();
18537
    }
18538
 
18539
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18540
    public boolean isSet(_Fields field) {
18541
      if (field == null) {
18542
        throw new IllegalArgumentException();
18543
      }
18544
 
18545
      switch (field) {
18546
      case SUCCESS:
18547
        return isSetSuccess();
18548
      }
18549
      throw new IllegalStateException();
18550
    }
18551
 
18552
    @Override
18553
    public boolean equals(Object that) {
18554
      if (that == null)
18555
        return false;
18556
      if (that instanceof getRoleNamesForAgent_result)
18557
        return this.equals((getRoleNamesForAgent_result)that);
18558
      return false;
18559
    }
18560
 
18561
    public boolean equals(getRoleNamesForAgent_result that) {
18562
      if (that == null)
18563
        return false;
18564
 
18565
      boolean this_present_success = true && this.isSetSuccess();
18566
      boolean that_present_success = true && that.isSetSuccess();
18567
      if (this_present_success || that_present_success) {
18568
        if (!(this_present_success && that_present_success))
18569
          return false;
18570
        if (!this.success.equals(that.success))
18571
          return false;
18572
      }
18573
 
18574
      return true;
18575
    }
18576
 
18577
    @Override
18578
    public int hashCode() {
18579
      return 0;
18580
    }
18581
 
18582
    public int compareTo(getRoleNamesForAgent_result other) {
18583
      if (!getClass().equals(other.getClass())) {
18584
        return getClass().getName().compareTo(other.getClass().getName());
18585
      }
18586
 
18587
      int lastComparison = 0;
18588
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18589
 
18590
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18591
      if (lastComparison != 0) {
18592
        return lastComparison;
18593
      }
18594
      if (isSetSuccess()) {
18595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18596
        if (lastComparison != 0) {
18597
          return lastComparison;
18598
        }
18599
      }
18600
      return 0;
18601
    }
18602
 
18603
    public _Fields fieldForId(int fieldId) {
18604
      return _Fields.findByThriftId(fieldId);
18605
    }
18606
 
18607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18608
      org.apache.thrift.protocol.TField field;
18609
      iprot.readStructBegin();
18610
      while (true)
18611
      {
18612
        field = iprot.readFieldBegin();
18613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18614
          break;
18615
        }
18616
        switch (field.id) {
18617
          case 0: // SUCCESS
18618
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18619
              {
18620
                org.apache.thrift.protocol.TList _list29 = iprot.readListBegin();
18621
                this.success = new ArrayList<String>(_list29.size);
18622
                for (int _i30 = 0; _i30 < _list29.size; ++_i30)
18623
                {
18624
                  String _elem31; // required
18625
                  _elem31 = iprot.readString();
18626
                  this.success.add(_elem31);
18627
                }
18628
                iprot.readListEnd();
18629
              }
18630
            } else { 
18631
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18632
            }
18633
            break;
18634
          default:
18635
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18636
        }
18637
        iprot.readFieldEnd();
18638
      }
18639
      iprot.readStructEnd();
18640
      validate();
18641
    }
18642
 
18643
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18644
      oprot.writeStructBegin(STRUCT_DESC);
18645
 
18646
      if (this.isSetSuccess()) {
18647
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18648
        {
18649
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
18650
          for (String _iter32 : this.success)
18651
          {
18652
            oprot.writeString(_iter32);
18653
          }
18654
          oprot.writeListEnd();
18655
        }
18656
        oprot.writeFieldEnd();
18657
      }
18658
      oprot.writeFieldStop();
18659
      oprot.writeStructEnd();
18660
    }
18661
 
18662
    @Override
18663
    public String toString() {
18664
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
18665
      boolean first = true;
18666
 
18667
      sb.append("success:");
18668
      if (this.success == null) {
18669
        sb.append("null");
18670
      } else {
18671
        sb.append(this.success);
18672
      }
18673
      first = false;
18674
      sb.append(")");
18675
      return sb.toString();
18676
    }
18677
 
18678
    public void validate() throws org.apache.thrift.TException {
18679
      // check for required fields
18680
    }
18681
 
18682
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18683
      try {
18684
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18685
      } catch (org.apache.thrift.TException te) {
18686
        throw new java.io.IOException(te);
18687
      }
18688
    }
18689
 
18690
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18691
      try {
18692
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18693
      } catch (org.apache.thrift.TException te) {
18694
        throw new java.io.IOException(te);
18695
      }
18696
    }
18697
 
18698
  }
18699
 
18700
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
18701
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
18702
 
18703
    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);
18704
 
18705
    private String roleName; // required
18706
 
18707
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18708
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18709
      ROLE_NAME((short)1, "roleName");
18710
 
18711
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18712
 
18713
      static {
18714
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18715
          byName.put(field.getFieldName(), field);
18716
        }
18717
      }
18718
 
18719
      /**
18720
       * Find the _Fields constant that matches fieldId, or null if its not found.
18721
       */
18722
      public static _Fields findByThriftId(int fieldId) {
18723
        switch(fieldId) {
18724
          case 1: // ROLE_NAME
18725
            return ROLE_NAME;
18726
          default:
18727
            return null;
18728
        }
18729
      }
18730
 
18731
      /**
18732
       * Find the _Fields constant that matches fieldId, throwing an exception
18733
       * if it is not found.
18734
       */
18735
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18736
        _Fields fields = findByThriftId(fieldId);
18737
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18738
        return fields;
18739
      }
18740
 
18741
      /**
18742
       * Find the _Fields constant that matches name, or null if its not found.
18743
       */
18744
      public static _Fields findByName(String name) {
18745
        return byName.get(name);
18746
      }
18747
 
18748
      private final short _thriftId;
18749
      private final String _fieldName;
18750
 
18751
      _Fields(short thriftId, String fieldName) {
18752
        _thriftId = thriftId;
18753
        _fieldName = fieldName;
18754
      }
18755
 
18756
      public short getThriftFieldId() {
18757
        return _thriftId;
18758
      }
18759
 
18760
      public String getFieldName() {
18761
        return _fieldName;
18762
      }
18763
    }
18764
 
18765
    // isset id assignments
18766
 
18767
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18768
    static {
18769
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18770
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18771
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18772
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18773
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
18774
    }
18775
 
18776
    public getPermissionsForRoleName_args() {
18777
    }
18778
 
18779
    public getPermissionsForRoleName_args(
18780
      String roleName)
18781
    {
18782
      this();
18783
      this.roleName = roleName;
18784
    }
18785
 
18786
    /**
18787
     * Performs a deep copy on <i>other</i>.
18788
     */
18789
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
18790
      if (other.isSetRoleName()) {
18791
        this.roleName = other.roleName;
18792
      }
18793
    }
18794
 
18795
    public getPermissionsForRoleName_args deepCopy() {
18796
      return new getPermissionsForRoleName_args(this);
18797
    }
18798
 
18799
    @Override
18800
    public void clear() {
18801
      this.roleName = null;
18802
    }
18803
 
18804
    public String getRoleName() {
18805
      return this.roleName;
18806
    }
18807
 
18808
    public void setRoleName(String roleName) {
18809
      this.roleName = roleName;
18810
    }
18811
 
18812
    public void unsetRoleName() {
18813
      this.roleName = null;
18814
    }
18815
 
18816
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
18817
    public boolean isSetRoleName() {
18818
      return this.roleName != null;
18819
    }
18820
 
18821
    public void setRoleNameIsSet(boolean value) {
18822
      if (!value) {
18823
        this.roleName = null;
18824
      }
18825
    }
18826
 
18827
    public void setFieldValue(_Fields field, Object value) {
18828
      switch (field) {
18829
      case ROLE_NAME:
18830
        if (value == null) {
18831
          unsetRoleName();
18832
        } else {
18833
          setRoleName((String)value);
18834
        }
18835
        break;
18836
 
18837
      }
18838
    }
18839
 
18840
    public Object getFieldValue(_Fields field) {
18841
      switch (field) {
18842
      case ROLE_NAME:
18843
        return getRoleName();
18844
 
18845
      }
18846
      throw new IllegalStateException();
18847
    }
18848
 
18849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18850
    public boolean isSet(_Fields field) {
18851
      if (field == null) {
18852
        throw new IllegalArgumentException();
18853
      }
18854
 
18855
      switch (field) {
18856
      case ROLE_NAME:
18857
        return isSetRoleName();
18858
      }
18859
      throw new IllegalStateException();
18860
    }
18861
 
18862
    @Override
18863
    public boolean equals(Object that) {
18864
      if (that == null)
18865
        return false;
18866
      if (that instanceof getPermissionsForRoleName_args)
18867
        return this.equals((getPermissionsForRoleName_args)that);
18868
      return false;
18869
    }
18870
 
18871
    public boolean equals(getPermissionsForRoleName_args that) {
18872
      if (that == null)
18873
        return false;
18874
 
18875
      boolean this_present_roleName = true && this.isSetRoleName();
18876
      boolean that_present_roleName = true && that.isSetRoleName();
18877
      if (this_present_roleName || that_present_roleName) {
18878
        if (!(this_present_roleName && that_present_roleName))
18879
          return false;
18880
        if (!this.roleName.equals(that.roleName))
18881
          return false;
18882
      }
18883
 
18884
      return true;
18885
    }
18886
 
18887
    @Override
18888
    public int hashCode() {
18889
      return 0;
18890
    }
18891
 
18892
    public int compareTo(getPermissionsForRoleName_args other) {
18893
      if (!getClass().equals(other.getClass())) {
18894
        return getClass().getName().compareTo(other.getClass().getName());
18895
      }
18896
 
18897
      int lastComparison = 0;
18898
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
18899
 
18900
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
18901
      if (lastComparison != 0) {
18902
        return lastComparison;
18903
      }
18904
      if (isSetRoleName()) {
18905
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
18906
        if (lastComparison != 0) {
18907
          return lastComparison;
18908
        }
18909
      }
18910
      return 0;
18911
    }
18912
 
18913
    public _Fields fieldForId(int fieldId) {
18914
      return _Fields.findByThriftId(fieldId);
18915
    }
18916
 
18917
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18918
      org.apache.thrift.protocol.TField field;
18919
      iprot.readStructBegin();
18920
      while (true)
18921
      {
18922
        field = iprot.readFieldBegin();
18923
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18924
          break;
18925
        }
18926
        switch (field.id) {
18927
          case 1: // ROLE_NAME
18928
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18929
              this.roleName = iprot.readString();
18930
            } else { 
18931
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18932
            }
18933
            break;
18934
          default:
18935
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18936
        }
18937
        iprot.readFieldEnd();
18938
      }
18939
      iprot.readStructEnd();
18940
      validate();
18941
    }
18942
 
18943
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18944
      validate();
18945
 
18946
      oprot.writeStructBegin(STRUCT_DESC);
18947
      if (this.roleName != null) {
18948
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
18949
        oprot.writeString(this.roleName);
18950
        oprot.writeFieldEnd();
18951
      }
18952
      oprot.writeFieldStop();
18953
      oprot.writeStructEnd();
18954
    }
18955
 
18956
    @Override
18957
    public String toString() {
18958
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
18959
      boolean first = true;
18960
 
18961
      sb.append("roleName:");
18962
      if (this.roleName == null) {
18963
        sb.append("null");
18964
      } else {
18965
        sb.append(this.roleName);
18966
      }
18967
      first = false;
18968
      sb.append(")");
18969
      return sb.toString();
18970
    }
18971
 
18972
    public void validate() throws org.apache.thrift.TException {
18973
      // check for required fields
18974
    }
18975
 
18976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18977
      try {
18978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18979
      } catch (org.apache.thrift.TException te) {
18980
        throw new java.io.IOException(te);
18981
      }
18982
    }
18983
 
18984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18985
      try {
18986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18987
      } catch (org.apache.thrift.TException te) {
18988
        throw new java.io.IOException(te);
18989
      }
18990
    }
18991
 
18992
  }
18993
 
18994
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
18995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
18996
 
18997
    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);
18998
 
18999
    private List<String> success; // required
19000
 
19001
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19002
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19003
      SUCCESS((short)0, "success");
19004
 
19005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19006
 
19007
      static {
19008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19009
          byName.put(field.getFieldName(), field);
19010
        }
19011
      }
19012
 
19013
      /**
19014
       * Find the _Fields constant that matches fieldId, or null if its not found.
19015
       */
19016
      public static _Fields findByThriftId(int fieldId) {
19017
        switch(fieldId) {
19018
          case 0: // SUCCESS
19019
            return SUCCESS;
19020
          default:
19021
            return null;
19022
        }
19023
      }
19024
 
19025
      /**
19026
       * Find the _Fields constant that matches fieldId, throwing an exception
19027
       * if it is not found.
19028
       */
19029
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19030
        _Fields fields = findByThriftId(fieldId);
19031
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19032
        return fields;
19033
      }
19034
 
19035
      /**
19036
       * Find the _Fields constant that matches name, or null if its not found.
19037
       */
19038
      public static _Fields findByName(String name) {
19039
        return byName.get(name);
19040
      }
19041
 
19042
      private final short _thriftId;
19043
      private final String _fieldName;
19044
 
19045
      _Fields(short thriftId, String fieldName) {
19046
        _thriftId = thriftId;
19047
        _fieldName = fieldName;
19048
      }
19049
 
19050
      public short getThriftFieldId() {
19051
        return _thriftId;
19052
      }
19053
 
19054
      public String getFieldName() {
19055
        return _fieldName;
19056
      }
19057
    }
19058
 
19059
    // isset id assignments
19060
 
19061
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19062
    static {
19063
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19064
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19065
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19066
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19069
    }
19070
 
19071
    public getPermissionsForRoleName_result() {
19072
    }
19073
 
19074
    public getPermissionsForRoleName_result(
19075
      List<String> success)
19076
    {
19077
      this();
19078
      this.success = success;
19079
    }
19080
 
19081
    /**
19082
     * Performs a deep copy on <i>other</i>.
19083
     */
19084
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19085
      if (other.isSetSuccess()) {
19086
        List<String> __this__success = new ArrayList<String>();
19087
        for (String other_element : other.success) {
19088
          __this__success.add(other_element);
19089
        }
19090
        this.success = __this__success;
19091
      }
19092
    }
19093
 
19094
    public getPermissionsForRoleName_result deepCopy() {
19095
      return new getPermissionsForRoleName_result(this);
19096
    }
19097
 
19098
    @Override
19099
    public void clear() {
19100
      this.success = null;
19101
    }
19102
 
19103
    public int getSuccessSize() {
19104
      return (this.success == null) ? 0 : this.success.size();
19105
    }
19106
 
19107
    public java.util.Iterator<String> getSuccessIterator() {
19108
      return (this.success == null) ? null : this.success.iterator();
19109
    }
19110
 
19111
    public void addToSuccess(String elem) {
19112
      if (this.success == null) {
19113
        this.success = new ArrayList<String>();
19114
      }
19115
      this.success.add(elem);
19116
    }
19117
 
19118
    public List<String> getSuccess() {
19119
      return this.success;
19120
    }
19121
 
19122
    public void setSuccess(List<String> success) {
19123
      this.success = success;
19124
    }
19125
 
19126
    public void unsetSuccess() {
19127
      this.success = null;
19128
    }
19129
 
19130
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19131
    public boolean isSetSuccess() {
19132
      return this.success != null;
19133
    }
19134
 
19135
    public void setSuccessIsSet(boolean value) {
19136
      if (!value) {
19137
        this.success = null;
19138
      }
19139
    }
19140
 
19141
    public void setFieldValue(_Fields field, Object value) {
19142
      switch (field) {
19143
      case SUCCESS:
19144
        if (value == null) {
19145
          unsetSuccess();
19146
        } else {
19147
          setSuccess((List<String>)value);
19148
        }
19149
        break;
19150
 
19151
      }
19152
    }
19153
 
19154
    public Object getFieldValue(_Fields field) {
19155
      switch (field) {
19156
      case SUCCESS:
19157
        return getSuccess();
19158
 
19159
      }
19160
      throw new IllegalStateException();
19161
    }
19162
 
19163
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19164
    public boolean isSet(_Fields field) {
19165
      if (field == null) {
19166
        throw new IllegalArgumentException();
19167
      }
19168
 
19169
      switch (field) {
19170
      case SUCCESS:
19171
        return isSetSuccess();
19172
      }
19173
      throw new IllegalStateException();
19174
    }
19175
 
19176
    @Override
19177
    public boolean equals(Object that) {
19178
      if (that == null)
19179
        return false;
19180
      if (that instanceof getPermissionsForRoleName_result)
19181
        return this.equals((getPermissionsForRoleName_result)that);
19182
      return false;
19183
    }
19184
 
19185
    public boolean equals(getPermissionsForRoleName_result that) {
19186
      if (that == null)
19187
        return false;
19188
 
19189
      boolean this_present_success = true && this.isSetSuccess();
19190
      boolean that_present_success = true && that.isSetSuccess();
19191
      if (this_present_success || that_present_success) {
19192
        if (!(this_present_success && that_present_success))
19193
          return false;
19194
        if (!this.success.equals(that.success))
19195
          return false;
19196
      }
19197
 
19198
      return true;
19199
    }
19200
 
19201
    @Override
19202
    public int hashCode() {
19203
      return 0;
19204
    }
19205
 
19206
    public int compareTo(getPermissionsForRoleName_result other) {
19207
      if (!getClass().equals(other.getClass())) {
19208
        return getClass().getName().compareTo(other.getClass().getName());
19209
      }
19210
 
19211
      int lastComparison = 0;
19212
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19213
 
19214
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19215
      if (lastComparison != 0) {
19216
        return lastComparison;
19217
      }
19218
      if (isSetSuccess()) {
19219
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19220
        if (lastComparison != 0) {
19221
          return lastComparison;
19222
        }
19223
      }
19224
      return 0;
19225
    }
19226
 
19227
    public _Fields fieldForId(int fieldId) {
19228
      return _Fields.findByThriftId(fieldId);
19229
    }
19230
 
19231
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19232
      org.apache.thrift.protocol.TField field;
19233
      iprot.readStructBegin();
19234
      while (true)
19235
      {
19236
        field = iprot.readFieldBegin();
19237
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19238
          break;
19239
        }
19240
        switch (field.id) {
19241
          case 0: // SUCCESS
19242
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19243
              {
19244
                org.apache.thrift.protocol.TList _list33 = iprot.readListBegin();
19245
                this.success = new ArrayList<String>(_list33.size);
19246
                for (int _i34 = 0; _i34 < _list33.size; ++_i34)
19247
                {
19248
                  String _elem35; // required
19249
                  _elem35 = iprot.readString();
19250
                  this.success.add(_elem35);
19251
                }
19252
                iprot.readListEnd();
19253
              }
19254
            } else { 
19255
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19256
            }
19257
            break;
19258
          default:
19259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19260
        }
19261
        iprot.readFieldEnd();
19262
      }
19263
      iprot.readStructEnd();
19264
      validate();
19265
    }
19266
 
19267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19268
      oprot.writeStructBegin(STRUCT_DESC);
19269
 
19270
      if (this.isSetSuccess()) {
19271
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19272
        {
19273
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
19274
          for (String _iter36 : this.success)
19275
          {
19276
            oprot.writeString(_iter36);
19277
          }
19278
          oprot.writeListEnd();
19279
        }
19280
        oprot.writeFieldEnd();
19281
      }
19282
      oprot.writeFieldStop();
19283
      oprot.writeStructEnd();
19284
    }
19285
 
19286
    @Override
19287
    public String toString() {
19288
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19289
      boolean first = true;
19290
 
19291
      sb.append("success:");
19292
      if (this.success == null) {
19293
        sb.append("null");
19294
      } else {
19295
        sb.append(this.success);
19296
      }
19297
      first = false;
19298
      sb.append(")");
19299
      return sb.toString();
19300
    }
19301
 
19302
    public void validate() throws org.apache.thrift.TException {
19303
      // check for required fields
19304
    }
19305
 
19306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19307
      try {
19308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19309
      } catch (org.apache.thrift.TException te) {
19310
        throw new java.io.IOException(te);
19311
      }
19312
    }
19313
 
19314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19315
      try {
19316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19317
      } catch (org.apache.thrift.TException te) {
19318
        throw new java.io.IOException(te);
19319
      }
19320
    }
19321
 
19322
  }
19323
 
4806 varun.gupt 19324
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19326
 
19327
    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);
19328
    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);
19329
 
19330
    private String url; // required
19331
    private String text; // required
19332
 
19333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19335
      URL((short)1, "url"),
19336
      TEXT((short)2, "text");
19337
 
19338
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19339
 
19340
      static {
19341
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19342
          byName.put(field.getFieldName(), field);
19343
        }
19344
      }
19345
 
19346
      /**
19347
       * Find the _Fields constant that matches fieldId, or null if its not found.
19348
       */
19349
      public static _Fields findByThriftId(int fieldId) {
19350
        switch(fieldId) {
19351
          case 1: // URL
19352
            return URL;
19353
          case 2: // TEXT
19354
            return TEXT;
19355
          default:
19356
            return null;
19357
        }
19358
      }
19359
 
19360
      /**
19361
       * Find the _Fields constant that matches fieldId, throwing an exception
19362
       * if it is not found.
19363
       */
19364
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19365
        _Fields fields = findByThriftId(fieldId);
19366
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19367
        return fields;
19368
      }
19369
 
19370
      /**
19371
       * Find the _Fields constant that matches name, or null if its not found.
19372
       */
19373
      public static _Fields findByName(String name) {
19374
        return byName.get(name);
19375
      }
19376
 
19377
      private final short _thriftId;
19378
      private final String _fieldName;
19379
 
19380
      _Fields(short thriftId, String fieldName) {
19381
        _thriftId = thriftId;
19382
        _fieldName = fieldName;
19383
      }
19384
 
19385
      public short getThriftFieldId() {
19386
        return _thriftId;
19387
      }
19388
 
19389
      public String getFieldName() {
19390
        return _fieldName;
19391
      }
19392
    }
19393
 
19394
    // isset id assignments
19395
 
19396
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19397
    static {
19398
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19399
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19401
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19405
    }
19406
 
19407
    public saveQuickLink_args() {
19408
    }
19409
 
19410
    public saveQuickLink_args(
19411
      String url,
19412
      String text)
19413
    {
19414
      this();
19415
      this.url = url;
19416
      this.text = text;
19417
    }
19418
 
19419
    /**
19420
     * Performs a deep copy on <i>other</i>.
19421
     */
19422
    public saveQuickLink_args(saveQuickLink_args other) {
19423
      if (other.isSetUrl()) {
19424
        this.url = other.url;
19425
      }
19426
      if (other.isSetText()) {
19427
        this.text = other.text;
19428
      }
19429
    }
19430
 
19431
    public saveQuickLink_args deepCopy() {
19432
      return new saveQuickLink_args(this);
19433
    }
19434
 
19435
    @Override
19436
    public void clear() {
19437
      this.url = null;
19438
      this.text = null;
19439
    }
19440
 
19441
    public String getUrl() {
19442
      return this.url;
19443
    }
19444
 
19445
    public void setUrl(String url) {
19446
      this.url = url;
19447
    }
19448
 
19449
    public void unsetUrl() {
19450
      this.url = null;
19451
    }
19452
 
19453
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19454
    public boolean isSetUrl() {
19455
      return this.url != null;
19456
    }
19457
 
19458
    public void setUrlIsSet(boolean value) {
19459
      if (!value) {
19460
        this.url = null;
19461
      }
19462
    }
19463
 
19464
    public String getText() {
19465
      return this.text;
19466
    }
19467
 
19468
    public void setText(String text) {
19469
      this.text = text;
19470
    }
19471
 
19472
    public void unsetText() {
19473
      this.text = null;
19474
    }
19475
 
19476
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19477
    public boolean isSetText() {
19478
      return this.text != null;
19479
    }
19480
 
19481
    public void setTextIsSet(boolean value) {
19482
      if (!value) {
19483
        this.text = null;
19484
      }
19485
    }
19486
 
19487
    public void setFieldValue(_Fields field, Object value) {
19488
      switch (field) {
19489
      case URL:
19490
        if (value == null) {
19491
          unsetUrl();
19492
        } else {
19493
          setUrl((String)value);
19494
        }
19495
        break;
19496
 
19497
      case TEXT:
19498
        if (value == null) {
19499
          unsetText();
19500
        } else {
19501
          setText((String)value);
19502
        }
19503
        break;
19504
 
19505
      }
19506
    }
19507
 
19508
    public Object getFieldValue(_Fields field) {
19509
      switch (field) {
19510
      case URL:
19511
        return getUrl();
19512
 
19513
      case TEXT:
19514
        return getText();
19515
 
19516
      }
19517
      throw new IllegalStateException();
19518
    }
19519
 
19520
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19521
    public boolean isSet(_Fields field) {
19522
      if (field == null) {
19523
        throw new IllegalArgumentException();
19524
      }
19525
 
19526
      switch (field) {
19527
      case URL:
19528
        return isSetUrl();
19529
      case TEXT:
19530
        return isSetText();
19531
      }
19532
      throw new IllegalStateException();
19533
    }
19534
 
19535
    @Override
19536
    public boolean equals(Object that) {
19537
      if (that == null)
19538
        return false;
19539
      if (that instanceof saveQuickLink_args)
19540
        return this.equals((saveQuickLink_args)that);
19541
      return false;
19542
    }
19543
 
19544
    public boolean equals(saveQuickLink_args that) {
19545
      if (that == null)
19546
        return false;
19547
 
19548
      boolean this_present_url = true && this.isSetUrl();
19549
      boolean that_present_url = true && that.isSetUrl();
19550
      if (this_present_url || that_present_url) {
19551
        if (!(this_present_url && that_present_url))
19552
          return false;
19553
        if (!this.url.equals(that.url))
19554
          return false;
19555
      }
19556
 
19557
      boolean this_present_text = true && this.isSetText();
19558
      boolean that_present_text = true && that.isSetText();
19559
      if (this_present_text || that_present_text) {
19560
        if (!(this_present_text && that_present_text))
19561
          return false;
19562
        if (!this.text.equals(that.text))
19563
          return false;
19564
      }
19565
 
19566
      return true;
19567
    }
19568
 
19569
    @Override
19570
    public int hashCode() {
19571
      return 0;
19572
    }
19573
 
19574
    public int compareTo(saveQuickLink_args other) {
19575
      if (!getClass().equals(other.getClass())) {
19576
        return getClass().getName().compareTo(other.getClass().getName());
19577
      }
19578
 
19579
      int lastComparison = 0;
19580
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
19581
 
19582
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
19583
      if (lastComparison != 0) {
19584
        return lastComparison;
19585
      }
19586
      if (isSetUrl()) {
19587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
19588
        if (lastComparison != 0) {
19589
          return lastComparison;
19590
        }
19591
      }
19592
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
19593
      if (lastComparison != 0) {
19594
        return lastComparison;
19595
      }
19596
      if (isSetText()) {
19597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
19598
        if (lastComparison != 0) {
19599
          return lastComparison;
19600
        }
19601
      }
19602
      return 0;
19603
    }
19604
 
19605
    public _Fields fieldForId(int fieldId) {
19606
      return _Fields.findByThriftId(fieldId);
19607
    }
19608
 
19609
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19610
      org.apache.thrift.protocol.TField field;
19611
      iprot.readStructBegin();
19612
      while (true)
19613
      {
19614
        field = iprot.readFieldBegin();
19615
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19616
          break;
19617
        }
19618
        switch (field.id) {
19619
          case 1: // URL
19620
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19621
              this.url = iprot.readString();
19622
            } else { 
19623
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19624
            }
19625
            break;
19626
          case 2: // TEXT
19627
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19628
              this.text = iprot.readString();
19629
            } else { 
19630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19631
            }
19632
            break;
19633
          default:
19634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19635
        }
19636
        iprot.readFieldEnd();
19637
      }
19638
      iprot.readStructEnd();
19639
      validate();
19640
    }
19641
 
19642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19643
      validate();
19644
 
19645
      oprot.writeStructBegin(STRUCT_DESC);
19646
      if (this.url != null) {
19647
        oprot.writeFieldBegin(URL_FIELD_DESC);
19648
        oprot.writeString(this.url);
19649
        oprot.writeFieldEnd();
19650
      }
19651
      if (this.text != null) {
19652
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
19653
        oprot.writeString(this.text);
19654
        oprot.writeFieldEnd();
19655
      }
19656
      oprot.writeFieldStop();
19657
      oprot.writeStructEnd();
19658
    }
19659
 
19660
    @Override
19661
    public String toString() {
19662
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
19663
      boolean first = true;
19664
 
19665
      sb.append("url:");
19666
      if (this.url == null) {
19667
        sb.append("null");
19668
      } else {
19669
        sb.append(this.url);
19670
      }
19671
      first = false;
19672
      if (!first) sb.append(", ");
19673
      sb.append("text:");
19674
      if (this.text == null) {
19675
        sb.append("null");
19676
      } else {
19677
        sb.append(this.text);
19678
      }
19679
      first = false;
19680
      sb.append(")");
19681
      return sb.toString();
19682
    }
19683
 
19684
    public void validate() throws org.apache.thrift.TException {
19685
      // check for required fields
19686
    }
19687
 
19688
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19689
      try {
19690
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19691
      } catch (org.apache.thrift.TException te) {
19692
        throw new java.io.IOException(te);
19693
      }
19694
    }
19695
 
19696
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19697
      try {
19698
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19699
      } catch (org.apache.thrift.TException te) {
19700
        throw new java.io.IOException(te);
19701
      }
19702
    }
19703
 
19704
  }
19705
 
19706
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
19707
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
19708
 
19709
    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);
19710
 
19711
    private HelperServiceException hse; // required
19712
 
19713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19715
      HSE((short)1, "hse");
19716
 
19717
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19718
 
19719
      static {
19720
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19721
          byName.put(field.getFieldName(), field);
19722
        }
19723
      }
19724
 
19725
      /**
19726
       * Find the _Fields constant that matches fieldId, or null if its not found.
19727
       */
19728
      public static _Fields findByThriftId(int fieldId) {
19729
        switch(fieldId) {
19730
          case 1: // HSE
19731
            return HSE;
19732
          default:
19733
            return null;
19734
        }
19735
      }
19736
 
19737
      /**
19738
       * Find the _Fields constant that matches fieldId, throwing an exception
19739
       * if it is not found.
19740
       */
19741
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19742
        _Fields fields = findByThriftId(fieldId);
19743
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19744
        return fields;
19745
      }
19746
 
19747
      /**
19748
       * Find the _Fields constant that matches name, or null if its not found.
19749
       */
19750
      public static _Fields findByName(String name) {
19751
        return byName.get(name);
19752
      }
19753
 
19754
      private final short _thriftId;
19755
      private final String _fieldName;
19756
 
19757
      _Fields(short thriftId, String fieldName) {
19758
        _thriftId = thriftId;
19759
        _fieldName = fieldName;
19760
      }
19761
 
19762
      public short getThriftFieldId() {
19763
        return _thriftId;
19764
      }
19765
 
19766
      public String getFieldName() {
19767
        return _fieldName;
19768
      }
19769
    }
19770
 
19771
    // isset id assignments
19772
 
19773
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19774
    static {
19775
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19776
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
19778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
19780
    }
19781
 
19782
    public saveQuickLink_result() {
19783
    }
19784
 
19785
    public saveQuickLink_result(
19786
      HelperServiceException hse)
19787
    {
19788
      this();
19789
      this.hse = hse;
19790
    }
19791
 
19792
    /**
19793
     * Performs a deep copy on <i>other</i>.
19794
     */
19795
    public saveQuickLink_result(saveQuickLink_result other) {
19796
      if (other.isSetHse()) {
19797
        this.hse = new HelperServiceException(other.hse);
19798
      }
19799
    }
19800
 
19801
    public saveQuickLink_result deepCopy() {
19802
      return new saveQuickLink_result(this);
19803
    }
19804
 
19805
    @Override
19806
    public void clear() {
19807
      this.hse = null;
19808
    }
19809
 
19810
    public HelperServiceException getHse() {
19811
      return this.hse;
19812
    }
19813
 
19814
    public void setHse(HelperServiceException hse) {
19815
      this.hse = hse;
19816
    }
19817
 
19818
    public void unsetHse() {
19819
      this.hse = null;
19820
    }
19821
 
19822
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
19823
    public boolean isSetHse() {
19824
      return this.hse != null;
19825
    }
19826
 
19827
    public void setHseIsSet(boolean value) {
19828
      if (!value) {
19829
        this.hse = null;
19830
      }
19831
    }
19832
 
19833
    public void setFieldValue(_Fields field, Object value) {
19834
      switch (field) {
19835
      case HSE:
19836
        if (value == null) {
19837
          unsetHse();
19838
        } else {
19839
          setHse((HelperServiceException)value);
19840
        }
19841
        break;
19842
 
19843
      }
19844
    }
19845
 
19846
    public Object getFieldValue(_Fields field) {
19847
      switch (field) {
19848
      case HSE:
19849
        return getHse();
19850
 
19851
      }
19852
      throw new IllegalStateException();
19853
    }
19854
 
19855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19856
    public boolean isSet(_Fields field) {
19857
      if (field == null) {
19858
        throw new IllegalArgumentException();
19859
      }
19860
 
19861
      switch (field) {
19862
      case HSE:
19863
        return isSetHse();
19864
      }
19865
      throw new IllegalStateException();
19866
    }
19867
 
19868
    @Override
19869
    public boolean equals(Object that) {
19870
      if (that == null)
19871
        return false;
19872
      if (that instanceof saveQuickLink_result)
19873
        return this.equals((saveQuickLink_result)that);
19874
      return false;
19875
    }
19876
 
19877
    public boolean equals(saveQuickLink_result that) {
19878
      if (that == null)
19879
        return false;
19880
 
19881
      boolean this_present_hse = true && this.isSetHse();
19882
      boolean that_present_hse = true && that.isSetHse();
19883
      if (this_present_hse || that_present_hse) {
19884
        if (!(this_present_hse && that_present_hse))
19885
          return false;
19886
        if (!this.hse.equals(that.hse))
19887
          return false;
19888
      }
19889
 
19890
      return true;
19891
    }
19892
 
19893
    @Override
19894
    public int hashCode() {
19895
      return 0;
19896
    }
19897
 
19898
    public int compareTo(saveQuickLink_result other) {
19899
      if (!getClass().equals(other.getClass())) {
19900
        return getClass().getName().compareTo(other.getClass().getName());
19901
      }
19902
 
19903
      int lastComparison = 0;
19904
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
19905
 
19906
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
19907
      if (lastComparison != 0) {
19908
        return lastComparison;
19909
      }
19910
      if (isSetHse()) {
19911
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
19912
        if (lastComparison != 0) {
19913
          return lastComparison;
19914
        }
19915
      }
19916
      return 0;
19917
    }
19918
 
19919
    public _Fields fieldForId(int fieldId) {
19920
      return _Fields.findByThriftId(fieldId);
19921
    }
19922
 
19923
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19924
      org.apache.thrift.protocol.TField field;
19925
      iprot.readStructBegin();
19926
      while (true)
19927
      {
19928
        field = iprot.readFieldBegin();
19929
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19930
          break;
19931
        }
19932
        switch (field.id) {
19933
          case 1: // HSE
19934
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
19935
              this.hse = new HelperServiceException();
19936
              this.hse.read(iprot);
19937
            } else { 
19938
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19939
            }
19940
            break;
19941
          default:
19942
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19943
        }
19944
        iprot.readFieldEnd();
19945
      }
19946
      iprot.readStructEnd();
19947
      validate();
19948
    }
19949
 
19950
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19951
      oprot.writeStructBegin(STRUCT_DESC);
19952
 
19953
      if (this.isSetHse()) {
19954
        oprot.writeFieldBegin(HSE_FIELD_DESC);
19955
        this.hse.write(oprot);
19956
        oprot.writeFieldEnd();
19957
      }
19958
      oprot.writeFieldStop();
19959
      oprot.writeStructEnd();
19960
    }
19961
 
19962
    @Override
19963
    public String toString() {
19964
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
19965
      boolean first = true;
19966
 
19967
      sb.append("hse:");
19968
      if (this.hse == null) {
19969
        sb.append("null");
19970
      } else {
19971
        sb.append(this.hse);
19972
      }
19973
      first = false;
19974
      sb.append(")");
19975
      return sb.toString();
19976
    }
19977
 
19978
    public void validate() throws org.apache.thrift.TException {
19979
      // check for required fields
19980
    }
19981
 
19982
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19983
      try {
19984
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19985
      } catch (org.apache.thrift.TException te) {
19986
        throw new java.io.IOException(te);
19987
      }
19988
    }
19989
 
19990
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19991
      try {
19992
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19993
      } catch (org.apache.thrift.TException te) {
19994
        throw new java.io.IOException(te);
19995
      }
19996
    }
19997
 
19998
  }
19999
 
20000
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20001
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20002
 
20003
 
20004
 
20005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20007
;
20008
 
20009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20010
 
20011
      static {
20012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20013
          byName.put(field.getFieldName(), field);
20014
        }
20015
      }
20016
 
20017
      /**
20018
       * Find the _Fields constant that matches fieldId, or null if its not found.
20019
       */
20020
      public static _Fields findByThriftId(int fieldId) {
20021
        switch(fieldId) {
20022
          default:
20023
            return null;
20024
        }
20025
      }
20026
 
20027
      /**
20028
       * Find the _Fields constant that matches fieldId, throwing an exception
20029
       * if it is not found.
20030
       */
20031
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20032
        _Fields fields = findByThriftId(fieldId);
20033
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20034
        return fields;
20035
      }
20036
 
20037
      /**
20038
       * Find the _Fields constant that matches name, or null if its not found.
20039
       */
20040
      public static _Fields findByName(String name) {
20041
        return byName.get(name);
20042
      }
20043
 
20044
      private final short _thriftId;
20045
      private final String _fieldName;
20046
 
20047
      _Fields(short thriftId, String fieldName) {
20048
        _thriftId = thriftId;
20049
        _fieldName = fieldName;
20050
      }
20051
 
20052
      public short getThriftFieldId() {
20053
        return _thriftId;
20054
      }
20055
 
20056
      public String getFieldName() {
20057
        return _fieldName;
20058
      }
20059
    }
20060
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20061
    static {
20062
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20065
    }
20066
 
20067
    public getQuickLinks_args() {
20068
    }
20069
 
20070
    /**
20071
     * Performs a deep copy on <i>other</i>.
20072
     */
20073
    public getQuickLinks_args(getQuickLinks_args other) {
20074
    }
20075
 
20076
    public getQuickLinks_args deepCopy() {
20077
      return new getQuickLinks_args(this);
20078
    }
20079
 
20080
    @Override
20081
    public void clear() {
20082
    }
20083
 
20084
    public void setFieldValue(_Fields field, Object value) {
20085
      switch (field) {
20086
      }
20087
    }
20088
 
20089
    public Object getFieldValue(_Fields field) {
20090
      switch (field) {
20091
      }
20092
      throw new IllegalStateException();
20093
    }
20094
 
20095
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20096
    public boolean isSet(_Fields field) {
20097
      if (field == null) {
20098
        throw new IllegalArgumentException();
20099
      }
20100
 
20101
      switch (field) {
20102
      }
20103
      throw new IllegalStateException();
20104
    }
20105
 
20106
    @Override
20107
    public boolean equals(Object that) {
20108
      if (that == null)
20109
        return false;
20110
      if (that instanceof getQuickLinks_args)
20111
        return this.equals((getQuickLinks_args)that);
20112
      return false;
20113
    }
20114
 
20115
    public boolean equals(getQuickLinks_args that) {
20116
      if (that == null)
20117
        return false;
20118
 
20119
      return true;
20120
    }
20121
 
20122
    @Override
20123
    public int hashCode() {
20124
      return 0;
20125
    }
20126
 
20127
    public int compareTo(getQuickLinks_args other) {
20128
      if (!getClass().equals(other.getClass())) {
20129
        return getClass().getName().compareTo(other.getClass().getName());
20130
      }
20131
 
20132
      int lastComparison = 0;
20133
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20134
 
20135
      return 0;
20136
    }
20137
 
20138
    public _Fields fieldForId(int fieldId) {
20139
      return _Fields.findByThriftId(fieldId);
20140
    }
20141
 
20142
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20143
      org.apache.thrift.protocol.TField field;
20144
      iprot.readStructBegin();
20145
      while (true)
20146
      {
20147
        field = iprot.readFieldBegin();
20148
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20149
          break;
20150
        }
20151
        switch (field.id) {
20152
          default:
20153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20154
        }
20155
        iprot.readFieldEnd();
20156
      }
20157
      iprot.readStructEnd();
20158
      validate();
20159
    }
20160
 
20161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20162
      validate();
20163
 
20164
      oprot.writeStructBegin(STRUCT_DESC);
20165
      oprot.writeFieldStop();
20166
      oprot.writeStructEnd();
20167
    }
20168
 
20169
    @Override
20170
    public String toString() {
20171
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20172
      boolean first = true;
20173
 
20174
      sb.append(")");
20175
      return sb.toString();
20176
    }
20177
 
20178
    public void validate() throws org.apache.thrift.TException {
20179
      // check for required fields
20180
    }
20181
 
20182
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20183
      try {
20184
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20185
      } catch (org.apache.thrift.TException te) {
20186
        throw new java.io.IOException(te);
20187
      }
20188
    }
20189
 
20190
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20191
      try {
20192
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20193
      } catch (org.apache.thrift.TException te) {
20194
        throw new java.io.IOException(te);
20195
      }
20196
    }
20197
 
20198
  }
20199
 
20200
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20201
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20202
 
20203
    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);
20204
    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);
20205
 
20206
    private List<QuickLink> success; // required
20207
    private HelperServiceException hse; // required
20208
 
20209
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20210
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20211
      SUCCESS((short)0, "success"),
20212
      HSE((short)1, "hse");
20213
 
20214
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20215
 
20216
      static {
20217
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20218
          byName.put(field.getFieldName(), field);
20219
        }
20220
      }
20221
 
20222
      /**
20223
       * Find the _Fields constant that matches fieldId, or null if its not found.
20224
       */
20225
      public static _Fields findByThriftId(int fieldId) {
20226
        switch(fieldId) {
20227
          case 0: // SUCCESS
20228
            return SUCCESS;
20229
          case 1: // HSE
20230
            return HSE;
20231
          default:
20232
            return null;
20233
        }
20234
      }
20235
 
20236
      /**
20237
       * Find the _Fields constant that matches fieldId, throwing an exception
20238
       * if it is not found.
20239
       */
20240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20241
        _Fields fields = findByThriftId(fieldId);
20242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20243
        return fields;
20244
      }
20245
 
20246
      /**
20247
       * Find the _Fields constant that matches name, or null if its not found.
20248
       */
20249
      public static _Fields findByName(String name) {
20250
        return byName.get(name);
20251
      }
20252
 
20253
      private final short _thriftId;
20254
      private final String _fieldName;
20255
 
20256
      _Fields(short thriftId, String fieldName) {
20257
        _thriftId = thriftId;
20258
        _fieldName = fieldName;
20259
      }
20260
 
20261
      public short getThriftFieldId() {
20262
        return _thriftId;
20263
      }
20264
 
20265
      public String getFieldName() {
20266
        return _fieldName;
20267
      }
20268
    }
20269
 
20270
    // isset id assignments
20271
 
20272
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20273
    static {
20274
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20275
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20276
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20277
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20278
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20279
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20280
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20281
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20282
    }
20283
 
20284
    public getQuickLinks_result() {
20285
    }
20286
 
20287
    public getQuickLinks_result(
20288
      List<QuickLink> success,
20289
      HelperServiceException hse)
20290
    {
20291
      this();
20292
      this.success = success;
20293
      this.hse = hse;
20294
    }
20295
 
20296
    /**
20297
     * Performs a deep copy on <i>other</i>.
20298
     */
20299
    public getQuickLinks_result(getQuickLinks_result other) {
20300
      if (other.isSetSuccess()) {
20301
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20302
        for (QuickLink other_element : other.success) {
20303
          __this__success.add(new QuickLink(other_element));
20304
        }
20305
        this.success = __this__success;
20306
      }
20307
      if (other.isSetHse()) {
20308
        this.hse = new HelperServiceException(other.hse);
20309
      }
20310
    }
20311
 
20312
    public getQuickLinks_result deepCopy() {
20313
      return new getQuickLinks_result(this);
20314
    }
20315
 
20316
    @Override
20317
    public void clear() {
20318
      this.success = null;
20319
      this.hse = null;
20320
    }
20321
 
20322
    public int getSuccessSize() {
20323
      return (this.success == null) ? 0 : this.success.size();
20324
    }
20325
 
20326
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20327
      return (this.success == null) ? null : this.success.iterator();
20328
    }
20329
 
20330
    public void addToSuccess(QuickLink elem) {
20331
      if (this.success == null) {
20332
        this.success = new ArrayList<QuickLink>();
20333
      }
20334
      this.success.add(elem);
20335
    }
20336
 
20337
    public List<QuickLink> getSuccess() {
20338
      return this.success;
20339
    }
20340
 
20341
    public void setSuccess(List<QuickLink> success) {
20342
      this.success = success;
20343
    }
20344
 
20345
    public void unsetSuccess() {
20346
      this.success = null;
20347
    }
20348
 
20349
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20350
    public boolean isSetSuccess() {
20351
      return this.success != null;
20352
    }
20353
 
20354
    public void setSuccessIsSet(boolean value) {
20355
      if (!value) {
20356
        this.success = null;
20357
      }
20358
    }
20359
 
20360
    public HelperServiceException getHse() {
20361
      return this.hse;
20362
    }
20363
 
20364
    public void setHse(HelperServiceException hse) {
20365
      this.hse = hse;
20366
    }
20367
 
20368
    public void unsetHse() {
20369
      this.hse = null;
20370
    }
20371
 
20372
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20373
    public boolean isSetHse() {
20374
      return this.hse != null;
20375
    }
20376
 
20377
    public void setHseIsSet(boolean value) {
20378
      if (!value) {
20379
        this.hse = null;
20380
      }
20381
    }
20382
 
20383
    public void setFieldValue(_Fields field, Object value) {
20384
      switch (field) {
20385
      case SUCCESS:
20386
        if (value == null) {
20387
          unsetSuccess();
20388
        } else {
20389
          setSuccess((List<QuickLink>)value);
20390
        }
20391
        break;
20392
 
20393
      case HSE:
20394
        if (value == null) {
20395
          unsetHse();
20396
        } else {
20397
          setHse((HelperServiceException)value);
20398
        }
20399
        break;
20400
 
20401
      }
20402
    }
20403
 
20404
    public Object getFieldValue(_Fields field) {
20405
      switch (field) {
20406
      case SUCCESS:
20407
        return getSuccess();
20408
 
20409
      case HSE:
20410
        return getHse();
20411
 
20412
      }
20413
      throw new IllegalStateException();
20414
    }
20415
 
20416
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20417
    public boolean isSet(_Fields field) {
20418
      if (field == null) {
20419
        throw new IllegalArgumentException();
20420
      }
20421
 
20422
      switch (field) {
20423
      case SUCCESS:
20424
        return isSetSuccess();
20425
      case HSE:
20426
        return isSetHse();
20427
      }
20428
      throw new IllegalStateException();
20429
    }
20430
 
20431
    @Override
20432
    public boolean equals(Object that) {
20433
      if (that == null)
20434
        return false;
20435
      if (that instanceof getQuickLinks_result)
20436
        return this.equals((getQuickLinks_result)that);
20437
      return false;
20438
    }
20439
 
20440
    public boolean equals(getQuickLinks_result that) {
20441
      if (that == null)
20442
        return false;
20443
 
20444
      boolean this_present_success = true && this.isSetSuccess();
20445
      boolean that_present_success = true && that.isSetSuccess();
20446
      if (this_present_success || that_present_success) {
20447
        if (!(this_present_success && that_present_success))
20448
          return false;
20449
        if (!this.success.equals(that.success))
20450
          return false;
20451
      }
20452
 
20453
      boolean this_present_hse = true && this.isSetHse();
20454
      boolean that_present_hse = true && that.isSetHse();
20455
      if (this_present_hse || that_present_hse) {
20456
        if (!(this_present_hse && that_present_hse))
20457
          return false;
20458
        if (!this.hse.equals(that.hse))
20459
          return false;
20460
      }
20461
 
20462
      return true;
20463
    }
20464
 
20465
    @Override
20466
    public int hashCode() {
20467
      return 0;
20468
    }
20469
 
20470
    public int compareTo(getQuickLinks_result other) {
20471
      if (!getClass().equals(other.getClass())) {
20472
        return getClass().getName().compareTo(other.getClass().getName());
20473
      }
20474
 
20475
      int lastComparison = 0;
20476
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20477
 
20478
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20479
      if (lastComparison != 0) {
20480
        return lastComparison;
20481
      }
20482
      if (isSetSuccess()) {
20483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20484
        if (lastComparison != 0) {
20485
          return lastComparison;
20486
        }
20487
      }
20488
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20489
      if (lastComparison != 0) {
20490
        return lastComparison;
20491
      }
20492
      if (isSetHse()) {
20493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20494
        if (lastComparison != 0) {
20495
          return lastComparison;
20496
        }
20497
      }
20498
      return 0;
20499
    }
20500
 
20501
    public _Fields fieldForId(int fieldId) {
20502
      return _Fields.findByThriftId(fieldId);
20503
    }
20504
 
20505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20506
      org.apache.thrift.protocol.TField field;
20507
      iprot.readStructBegin();
20508
      while (true)
20509
      {
20510
        field = iprot.readFieldBegin();
20511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20512
          break;
20513
        }
20514
        switch (field.id) {
20515
          case 0: // SUCCESS
20516
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20517
              {
20518
                org.apache.thrift.protocol.TList _list37 = iprot.readListBegin();
20519
                this.success = new ArrayList<QuickLink>(_list37.size);
20520
                for (int _i38 = 0; _i38 < _list37.size; ++_i38)
20521
                {
20522
                  QuickLink _elem39; // required
20523
                  _elem39 = new QuickLink();
20524
                  _elem39.read(iprot);
20525
                  this.success.add(_elem39);
20526
                }
20527
                iprot.readListEnd();
20528
              }
20529
            } else { 
20530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20531
            }
20532
            break;
20533
          case 1: // HSE
20534
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20535
              this.hse = new HelperServiceException();
20536
              this.hse.read(iprot);
20537
            } else { 
20538
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20539
            }
20540
            break;
20541
          default:
20542
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20543
        }
20544
        iprot.readFieldEnd();
20545
      }
20546
      iprot.readStructEnd();
20547
      validate();
20548
    }
20549
 
20550
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20551
      oprot.writeStructBegin(STRUCT_DESC);
20552
 
20553
      if (this.isSetSuccess()) {
20554
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20555
        {
20556
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
20557
          for (QuickLink _iter40 : this.success)
20558
          {
20559
            _iter40.write(oprot);
20560
          }
20561
          oprot.writeListEnd();
20562
        }
20563
        oprot.writeFieldEnd();
20564
      } else if (this.isSetHse()) {
20565
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20566
        this.hse.write(oprot);
20567
        oprot.writeFieldEnd();
20568
      }
20569
      oprot.writeFieldStop();
20570
      oprot.writeStructEnd();
20571
    }
20572
 
20573
    @Override
20574
    public String toString() {
20575
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
20576
      boolean first = true;
20577
 
20578
      sb.append("success:");
20579
      if (this.success == null) {
20580
        sb.append("null");
20581
      } else {
20582
        sb.append(this.success);
20583
      }
20584
      first = false;
20585
      if (!first) sb.append(", ");
20586
      sb.append("hse:");
20587
      if (this.hse == null) {
20588
        sb.append("null");
20589
      } else {
20590
        sb.append(this.hse);
20591
      }
20592
      first = false;
20593
      sb.append(")");
20594
      return sb.toString();
20595
    }
20596
 
20597
    public void validate() throws org.apache.thrift.TException {
20598
      // check for required fields
20599
    }
20600
 
20601
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20602
      try {
20603
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20604
      } catch (org.apache.thrift.TException te) {
20605
        throw new java.io.IOException(te);
20606
      }
20607
    }
20608
 
20609
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20610
      try {
20611
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20612
      } catch (org.apache.thrift.TException te) {
20613
        throw new java.io.IOException(te);
20614
      }
20615
    }
20616
 
20617
  }
20618
 
4996 varun.gupt 20619
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
20621
 
20622
    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);
20623
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)2);
20624
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);
20625
 
20626
    private long id; // required
20627
    private String url; // required
20628
    private String text; // required
20629
 
20630
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20631
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20632
      ID((short)1, "id"),
20633
      URL((short)2, "url"),
20634
      TEXT((short)3, "text");
20635
 
20636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20637
 
20638
      static {
20639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20640
          byName.put(field.getFieldName(), field);
20641
        }
20642
      }
20643
 
20644
      /**
20645
       * Find the _Fields constant that matches fieldId, or null if its not found.
20646
       */
20647
      public static _Fields findByThriftId(int fieldId) {
20648
        switch(fieldId) {
20649
          case 1: // ID
20650
            return ID;
20651
          case 2: // URL
20652
            return URL;
20653
          case 3: // TEXT
20654
            return TEXT;
20655
          default:
20656
            return null;
20657
        }
20658
      }
20659
 
20660
      /**
20661
       * Find the _Fields constant that matches fieldId, throwing an exception
20662
       * if it is not found.
20663
       */
20664
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20665
        _Fields fields = findByThriftId(fieldId);
20666
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20667
        return fields;
20668
      }
20669
 
20670
      /**
20671
       * Find the _Fields constant that matches name, or null if its not found.
20672
       */
20673
      public static _Fields findByName(String name) {
20674
        return byName.get(name);
20675
      }
20676
 
20677
      private final short _thriftId;
20678
      private final String _fieldName;
20679
 
20680
      _Fields(short thriftId, String fieldName) {
20681
        _thriftId = thriftId;
20682
        _fieldName = fieldName;
20683
      }
20684
 
20685
      public short getThriftFieldId() {
20686
        return _thriftId;
20687
      }
20688
 
20689
      public String getFieldName() {
20690
        return _fieldName;
20691
      }
20692
    }
20693
 
20694
    // isset id assignments
20695
    private static final int __ID_ISSET_ID = 0;
20696
    private BitSet __isset_bit_vector = new BitSet(1);
20697
 
20698
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20699
    static {
20700
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20701
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20702
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
20703
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20704
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20705
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20707
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20708
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
20709
    }
20710
 
20711
    public updateQuickLink_args() {
20712
    }
20713
 
20714
    public updateQuickLink_args(
20715
      long id,
20716
      String url,
20717
      String text)
20718
    {
20719
      this();
20720
      this.id = id;
20721
      setIdIsSet(true);
20722
      this.url = url;
20723
      this.text = text;
20724
    }
20725
 
20726
    /**
20727
     * Performs a deep copy on <i>other</i>.
20728
     */
20729
    public updateQuickLink_args(updateQuickLink_args other) {
20730
      __isset_bit_vector.clear();
20731
      __isset_bit_vector.or(other.__isset_bit_vector);
20732
      this.id = other.id;
20733
      if (other.isSetUrl()) {
20734
        this.url = other.url;
20735
      }
20736
      if (other.isSetText()) {
20737
        this.text = other.text;
20738
      }
20739
    }
20740
 
20741
    public updateQuickLink_args deepCopy() {
20742
      return new updateQuickLink_args(this);
20743
    }
20744
 
20745
    @Override
20746
    public void clear() {
20747
      setIdIsSet(false);
20748
      this.id = 0;
20749
      this.url = null;
20750
      this.text = null;
20751
    }
20752
 
20753
    public long getId() {
20754
      return this.id;
20755
    }
20756
 
20757
    public void setId(long id) {
20758
      this.id = id;
20759
      setIdIsSet(true);
20760
    }
20761
 
20762
    public void unsetId() {
20763
      __isset_bit_vector.clear(__ID_ISSET_ID);
20764
    }
20765
 
20766
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
20767
    public boolean isSetId() {
20768
      return __isset_bit_vector.get(__ID_ISSET_ID);
20769
    }
20770
 
20771
    public void setIdIsSet(boolean value) {
20772
      __isset_bit_vector.set(__ID_ISSET_ID, value);
20773
    }
20774
 
20775
    public String getUrl() {
20776
      return this.url;
20777
    }
20778
 
20779
    public void setUrl(String url) {
20780
      this.url = url;
20781
    }
20782
 
20783
    public void unsetUrl() {
20784
      this.url = null;
20785
    }
20786
 
20787
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
20788
    public boolean isSetUrl() {
20789
      return this.url != null;
20790
    }
20791
 
20792
    public void setUrlIsSet(boolean value) {
20793
      if (!value) {
20794
        this.url = null;
20795
      }
20796
    }
20797
 
20798
    public String getText() {
20799
      return this.text;
20800
    }
20801
 
20802
    public void setText(String text) {
20803
      this.text = text;
20804
    }
20805
 
20806
    public void unsetText() {
20807
      this.text = null;
20808
    }
20809
 
20810
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20811
    public boolean isSetText() {
20812
      return this.text != null;
20813
    }
20814
 
20815
    public void setTextIsSet(boolean value) {
20816
      if (!value) {
20817
        this.text = null;
20818
      }
20819
    }
20820
 
20821
    public void setFieldValue(_Fields field, Object value) {
20822
      switch (field) {
20823
      case ID:
20824
        if (value == null) {
20825
          unsetId();
20826
        } else {
20827
          setId((Long)value);
20828
        }
20829
        break;
20830
 
20831
      case URL:
20832
        if (value == null) {
20833
          unsetUrl();
20834
        } else {
20835
          setUrl((String)value);
20836
        }
20837
        break;
20838
 
20839
      case TEXT:
20840
        if (value == null) {
20841
          unsetText();
20842
        } else {
20843
          setText((String)value);
20844
        }
20845
        break;
20846
 
20847
      }
20848
    }
20849
 
20850
    public Object getFieldValue(_Fields field) {
20851
      switch (field) {
20852
      case ID:
20853
        return Long.valueOf(getId());
20854
 
20855
      case URL:
20856
        return getUrl();
20857
 
20858
      case TEXT:
20859
        return getText();
20860
 
20861
      }
20862
      throw new IllegalStateException();
20863
    }
20864
 
20865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20866
    public boolean isSet(_Fields field) {
20867
      if (field == null) {
20868
        throw new IllegalArgumentException();
20869
      }
20870
 
20871
      switch (field) {
20872
      case ID:
20873
        return isSetId();
20874
      case URL:
20875
        return isSetUrl();
20876
      case TEXT:
20877
        return isSetText();
20878
      }
20879
      throw new IllegalStateException();
20880
    }
20881
 
20882
    @Override
20883
    public boolean equals(Object that) {
20884
      if (that == null)
20885
        return false;
20886
      if (that instanceof updateQuickLink_args)
20887
        return this.equals((updateQuickLink_args)that);
20888
      return false;
20889
    }
20890
 
20891
    public boolean equals(updateQuickLink_args that) {
20892
      if (that == null)
20893
        return false;
20894
 
20895
      boolean this_present_id = true;
20896
      boolean that_present_id = true;
20897
      if (this_present_id || that_present_id) {
20898
        if (!(this_present_id && that_present_id))
20899
          return false;
20900
        if (this.id != that.id)
20901
          return false;
20902
      }
20903
 
20904
      boolean this_present_url = true && this.isSetUrl();
20905
      boolean that_present_url = true && that.isSetUrl();
20906
      if (this_present_url || that_present_url) {
20907
        if (!(this_present_url && that_present_url))
20908
          return false;
20909
        if (!this.url.equals(that.url))
20910
          return false;
20911
      }
20912
 
20913
      boolean this_present_text = true && this.isSetText();
20914
      boolean that_present_text = true && that.isSetText();
20915
      if (this_present_text || that_present_text) {
20916
        if (!(this_present_text && that_present_text))
20917
          return false;
20918
        if (!this.text.equals(that.text))
20919
          return false;
20920
      }
20921
 
20922
      return true;
20923
    }
20924
 
20925
    @Override
20926
    public int hashCode() {
20927
      return 0;
20928
    }
20929
 
20930
    public int compareTo(updateQuickLink_args other) {
20931
      if (!getClass().equals(other.getClass())) {
20932
        return getClass().getName().compareTo(other.getClass().getName());
20933
      }
20934
 
20935
      int lastComparison = 0;
20936
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
20937
 
20938
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
20939
      if (lastComparison != 0) {
20940
        return lastComparison;
20941
      }
20942
      if (isSetId()) {
20943
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
20944
        if (lastComparison != 0) {
20945
          return lastComparison;
20946
        }
20947
      }
20948
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20949
      if (lastComparison != 0) {
20950
        return lastComparison;
20951
      }
20952
      if (isSetUrl()) {
20953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20954
        if (lastComparison != 0) {
20955
          return lastComparison;
20956
        }
20957
      }
20958
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20959
      if (lastComparison != 0) {
20960
        return lastComparison;
20961
      }
20962
      if (isSetText()) {
20963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20964
        if (lastComparison != 0) {
20965
          return lastComparison;
20966
        }
20967
      }
20968
      return 0;
20969
    }
20970
 
20971
    public _Fields fieldForId(int fieldId) {
20972
      return _Fields.findByThriftId(fieldId);
20973
    }
20974
 
20975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20976
      org.apache.thrift.protocol.TField field;
20977
      iprot.readStructBegin();
20978
      while (true)
20979
      {
20980
        field = iprot.readFieldBegin();
20981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20982
          break;
20983
        }
20984
        switch (field.id) {
20985
          case 1: // ID
20986
            if (field.type == org.apache.thrift.protocol.TType.I64) {
20987
              this.id = iprot.readI64();
20988
              setIdIsSet(true);
20989
            } else { 
20990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20991
            }
20992
            break;
20993
          case 2: // URL
20994
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20995
              this.url = iprot.readString();
20996
            } else { 
20997
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20998
            }
20999
            break;
21000
          case 3: // TEXT
21001
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21002
              this.text = iprot.readString();
21003
            } else { 
21004
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21005
            }
21006
            break;
21007
          default:
21008
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21009
        }
21010
        iprot.readFieldEnd();
21011
      }
21012
      iprot.readStructEnd();
21013
      validate();
21014
    }
21015
 
21016
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21017
      validate();
21018
 
21019
      oprot.writeStructBegin(STRUCT_DESC);
21020
      oprot.writeFieldBegin(ID_FIELD_DESC);
21021
      oprot.writeI64(this.id);
21022
      oprot.writeFieldEnd();
21023
      if (this.url != null) {
21024
        oprot.writeFieldBegin(URL_FIELD_DESC);
21025
        oprot.writeString(this.url);
21026
        oprot.writeFieldEnd();
21027
      }
21028
      if (this.text != null) {
21029
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21030
        oprot.writeString(this.text);
21031
        oprot.writeFieldEnd();
21032
      }
21033
      oprot.writeFieldStop();
21034
      oprot.writeStructEnd();
21035
    }
21036
 
21037
    @Override
21038
    public String toString() {
21039
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21040
      boolean first = true;
21041
 
21042
      sb.append("id:");
21043
      sb.append(this.id);
21044
      first = false;
21045
      if (!first) sb.append(", ");
21046
      sb.append("url:");
21047
      if (this.url == null) {
21048
        sb.append("null");
21049
      } else {
21050
        sb.append(this.url);
21051
      }
21052
      first = false;
21053
      if (!first) sb.append(", ");
21054
      sb.append("text:");
21055
      if (this.text == null) {
21056
        sb.append("null");
21057
      } else {
21058
        sb.append(this.text);
21059
      }
21060
      first = false;
21061
      sb.append(")");
21062
      return sb.toString();
21063
    }
21064
 
21065
    public void validate() throws org.apache.thrift.TException {
21066
      // check for required fields
21067
    }
21068
 
21069
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21070
      try {
21071
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21072
      } catch (org.apache.thrift.TException te) {
21073
        throw new java.io.IOException(te);
21074
      }
21075
    }
21076
 
21077
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21078
      try {
21079
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21080
        __isset_bit_vector = new BitSet(1);
21081
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21082
      } catch (org.apache.thrift.TException te) {
21083
        throw new java.io.IOException(te);
21084
      }
21085
    }
21086
 
21087
  }
21088
 
21089
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21090
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21091
 
21092
    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);
21093
 
21094
    private HelperServiceException hse; // required
21095
 
21096
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21097
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21098
      HSE((short)1, "hse");
21099
 
21100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21101
 
21102
      static {
21103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21104
          byName.put(field.getFieldName(), field);
21105
        }
21106
      }
21107
 
21108
      /**
21109
       * Find the _Fields constant that matches fieldId, or null if its not found.
21110
       */
21111
      public static _Fields findByThriftId(int fieldId) {
21112
        switch(fieldId) {
21113
          case 1: // HSE
21114
            return HSE;
21115
          default:
21116
            return null;
21117
        }
21118
      }
21119
 
21120
      /**
21121
       * Find the _Fields constant that matches fieldId, throwing an exception
21122
       * if it is not found.
21123
       */
21124
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21125
        _Fields fields = findByThriftId(fieldId);
21126
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21127
        return fields;
21128
      }
21129
 
21130
      /**
21131
       * Find the _Fields constant that matches name, or null if its not found.
21132
       */
21133
      public static _Fields findByName(String name) {
21134
        return byName.get(name);
21135
      }
21136
 
21137
      private final short _thriftId;
21138
      private final String _fieldName;
21139
 
21140
      _Fields(short thriftId, String fieldName) {
21141
        _thriftId = thriftId;
21142
        _fieldName = fieldName;
21143
      }
21144
 
21145
      public short getThriftFieldId() {
21146
        return _thriftId;
21147
      }
21148
 
21149
      public String getFieldName() {
21150
        return _fieldName;
21151
      }
21152
    }
21153
 
21154
    // isset id assignments
21155
 
21156
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21157
    static {
21158
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21159
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21160
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21163
    }
21164
 
21165
    public updateQuickLink_result() {
21166
    }
21167
 
21168
    public updateQuickLink_result(
21169
      HelperServiceException hse)
21170
    {
21171
      this();
21172
      this.hse = hse;
21173
    }
21174
 
21175
    /**
21176
     * Performs a deep copy on <i>other</i>.
21177
     */
21178
    public updateQuickLink_result(updateQuickLink_result other) {
21179
      if (other.isSetHse()) {
21180
        this.hse = new HelperServiceException(other.hse);
21181
      }
21182
    }
21183
 
21184
    public updateQuickLink_result deepCopy() {
21185
      return new updateQuickLink_result(this);
21186
    }
21187
 
21188
    @Override
21189
    public void clear() {
21190
      this.hse = null;
21191
    }
21192
 
21193
    public HelperServiceException getHse() {
21194
      return this.hse;
21195
    }
21196
 
21197
    public void setHse(HelperServiceException hse) {
21198
      this.hse = hse;
21199
    }
21200
 
21201
    public void unsetHse() {
21202
      this.hse = null;
21203
    }
21204
 
21205
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21206
    public boolean isSetHse() {
21207
      return this.hse != null;
21208
    }
21209
 
21210
    public void setHseIsSet(boolean value) {
21211
      if (!value) {
21212
        this.hse = null;
21213
      }
21214
    }
21215
 
21216
    public void setFieldValue(_Fields field, Object value) {
21217
      switch (field) {
21218
      case HSE:
21219
        if (value == null) {
21220
          unsetHse();
21221
        } else {
21222
          setHse((HelperServiceException)value);
21223
        }
21224
        break;
21225
 
21226
      }
21227
    }
21228
 
21229
    public Object getFieldValue(_Fields field) {
21230
      switch (field) {
21231
      case HSE:
21232
        return getHse();
21233
 
21234
      }
21235
      throw new IllegalStateException();
21236
    }
21237
 
21238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21239
    public boolean isSet(_Fields field) {
21240
      if (field == null) {
21241
        throw new IllegalArgumentException();
21242
      }
21243
 
21244
      switch (field) {
21245
      case HSE:
21246
        return isSetHse();
21247
      }
21248
      throw new IllegalStateException();
21249
    }
21250
 
21251
    @Override
21252
    public boolean equals(Object that) {
21253
      if (that == null)
21254
        return false;
21255
      if (that instanceof updateQuickLink_result)
21256
        return this.equals((updateQuickLink_result)that);
21257
      return false;
21258
    }
21259
 
21260
    public boolean equals(updateQuickLink_result that) {
21261
      if (that == null)
21262
        return false;
21263
 
21264
      boolean this_present_hse = true && this.isSetHse();
21265
      boolean that_present_hse = true && that.isSetHse();
21266
      if (this_present_hse || that_present_hse) {
21267
        if (!(this_present_hse && that_present_hse))
21268
          return false;
21269
        if (!this.hse.equals(that.hse))
21270
          return false;
21271
      }
21272
 
21273
      return true;
21274
    }
21275
 
21276
    @Override
21277
    public int hashCode() {
21278
      return 0;
21279
    }
21280
 
21281
    public int compareTo(updateQuickLink_result other) {
21282
      if (!getClass().equals(other.getClass())) {
21283
        return getClass().getName().compareTo(other.getClass().getName());
21284
      }
21285
 
21286
      int lastComparison = 0;
21287
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21288
 
21289
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21290
      if (lastComparison != 0) {
21291
        return lastComparison;
21292
      }
21293
      if (isSetHse()) {
21294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21295
        if (lastComparison != 0) {
21296
          return lastComparison;
21297
        }
21298
      }
21299
      return 0;
21300
    }
21301
 
21302
    public _Fields fieldForId(int fieldId) {
21303
      return _Fields.findByThriftId(fieldId);
21304
    }
21305
 
21306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21307
      org.apache.thrift.protocol.TField field;
21308
      iprot.readStructBegin();
21309
      while (true)
21310
      {
21311
        field = iprot.readFieldBegin();
21312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21313
          break;
21314
        }
21315
        switch (field.id) {
21316
          case 1: // HSE
21317
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21318
              this.hse = new HelperServiceException();
21319
              this.hse.read(iprot);
21320
            } else { 
21321
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21322
            }
21323
            break;
21324
          default:
21325
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21326
        }
21327
        iprot.readFieldEnd();
21328
      }
21329
      iprot.readStructEnd();
21330
      validate();
21331
    }
21332
 
21333
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21334
      oprot.writeStructBegin(STRUCT_DESC);
21335
 
21336
      if (this.isSetHse()) {
21337
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21338
        this.hse.write(oprot);
21339
        oprot.writeFieldEnd();
21340
      }
21341
      oprot.writeFieldStop();
21342
      oprot.writeStructEnd();
21343
    }
21344
 
21345
    @Override
21346
    public String toString() {
21347
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21348
      boolean first = true;
21349
 
21350
      sb.append("hse:");
21351
      if (this.hse == null) {
21352
        sb.append("null");
21353
      } else {
21354
        sb.append(this.hse);
21355
      }
21356
      first = false;
21357
      sb.append(")");
21358
      return sb.toString();
21359
    }
21360
 
21361
    public void validate() throws org.apache.thrift.TException {
21362
      // check for required fields
21363
    }
21364
 
21365
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21366
      try {
21367
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21368
      } catch (org.apache.thrift.TException te) {
21369
        throw new java.io.IOException(te);
21370
      }
21371
    }
21372
 
21373
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21374
      try {
21375
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21376
      } catch (org.apache.thrift.TException te) {
21377
        throw new java.io.IOException(te);
21378
      }
21379
    }
21380
 
21381
  }
21382
 
352 ashish 21383
}