Subversion Repositories SmartDukaan

Rev

Rev 3374 | Rev 4544 | 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
 
352 ashish 129
  }
130
 
3430 rajveer 131
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
132
 
133
    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;
134
 
135
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
136
 
137
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
138
 
139
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
140
 
141
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
142
 
143
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
144
 
145
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
146
 
147
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
148
 
149
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
150
 
151
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
152
 
153
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
154
 
155
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
156
 
157
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
  }
170
 
3374 rajveer 171
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 172
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
173
      public Factory() {}
174
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
175
        return new Client(prot);
176
      }
177
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
178
        return new Client(iprot, oprot);
179
      }
180
    }
181
 
182
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 183
    {
3430 rajveer 184
      super(prot, prot);
352 ashish 185
    }
186
 
3430 rajveer 187
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 188
      super(iprot, oprot);
352 ashish 189
    }
190
 
3430 rajveer 191
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 192
    {
193
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 194
      return recv_saveUserEmailForSending();
1395 varun.gupt 195
    }
196
 
3430 rajveer 197
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 198
    {
199
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 200
      args.setEmailTo(emailTo);
201
      args.setEmailFrom(emailFrom);
202
      args.setSubject(subject);
203
      args.setBody(body);
204
      args.setSource(source);
205
      args.setEmailType(emailType);
206
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 207
    }
208
 
3430 rajveer 209
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 210
    {
211
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 212
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 213
      if (result.isSetSuccess()) {
214
        return result.success;
215
      }
1395 varun.gupt 216
      if (result.se != null) {
217
        throw result.se;
218
      }
3430 rajveer 219
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 220
    }
221
 
3430 rajveer 222
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 223
    {
3086 rajveer 224
      send_getEmailsToBeSent();
1422 varun.gupt 225
      return recv_getEmailsToBeSent();
226
    }
227
 
3430 rajveer 228
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 229
    {
230
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 231
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 232
    }
233
 
3430 rajveer 234
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 235
    {
236
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 237
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 238
      if (result.isSetSuccess()) {
239
        return result.success;
240
      }
241
      if (result.se != null) {
242
        throw result.se;
243
      }
3430 rajveer 244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 245
    }
246
 
3430 rajveer 247
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 248
    {
249
      send_markEmailAsSent(emailId);
250
      recv_markEmailAsSent();
251
    }
252
 
3430 rajveer 253
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 254
    {
255
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 256
      args.setEmailId(emailId);
257
      sendBase("markEmailAsSent", args);
1422 varun.gupt 258
    }
259
 
3430 rajveer 260
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 261
    {
262
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 263
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 264
      if (result.se != null) {
265
        throw result.se;
266
      }
267
      return;
268
    }
269
 
3430 rajveer 270
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 271
    {
272
      send_sendMail(mail);
273
      recv_sendMail();
274
    }
275
 
3430 rajveer 276
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 277
    {
278
      sendMail_args args = new sendMail_args();
3430 rajveer 279
      args.setMail(mail);
280
      sendBase("sendMail", args);
352 ashish 281
    }
282
 
3430 rajveer 283
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 284
    {
285
      sendMail_result result = new sendMail_result();
3430 rajveer 286
      receiveBase(result, "sendMail");
352 ashish 287
      if (result.se != null) {
288
        throw result.se;
289
      }
290
      return;
291
    }
292
 
3430 rajveer 293
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 294
    {
295
      send_sendText(message);
296
      recv_sendText();
297
    }
298
 
3430 rajveer 299
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 300
    {
301
      sendText_args args = new sendText_args();
3430 rajveer 302
      args.setMessage(message);
303
      sendBase("sendText", args);
352 ashish 304
    }
305
 
3430 rajveer 306
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 307
    {
308
      sendText_result result = new sendText_result();
3430 rajveer 309
      receiveBase(result, "sendText");
352 ashish 310
      if (result.se != null) {
311
        throw result.se;
312
      }
313
      return;
314
    }
315
 
3430 rajveer 316
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 317
    {
318
      send_addMessage(message);
319
      recv_addMessage();
320
    }
321
 
3430 rajveer 322
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 323
    {
324
      addMessage_args args = new addMessage_args();
3430 rajveer 325
      args.setMessage(message);
326
      sendBase("addMessage", args);
352 ashish 327
    }
328
 
3430 rajveer 329
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 330
    {
331
      addMessage_result result = new addMessage_result();
3430 rajveer 332
      receiveBase(result, "addMessage");
352 ashish 333
      if (result.se != null) {
334
        throw result.se;
335
      }
336
      return;
337
    }
338
 
3430 rajveer 339
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 340
    {
341
      send_updateMessage(id, message);
342
      recv_updateMessage();
343
    }
344
 
3430 rajveer 345
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 346
    {
347
      updateMessage_args args = new updateMessage_args();
3430 rajveer 348
      args.setId(id);
349
      args.setMessage(message);
350
      sendBase("updateMessage", args);
352 ashish 351
    }
352
 
3430 rajveer 353
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 354
    {
355
      updateMessage_result result = new updateMessage_result();
3430 rajveer 356
      receiveBase(result, "updateMessage");
352 ashish 357
      if (result.se != null) {
358
        throw result.se;
359
      }
360
      return;
361
    }
362
 
3430 rajveer 363
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 364
    {
365
      send_getMessage(id);
366
      return recv_getMessage();
367
    }
368
 
3430 rajveer 369
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 370
    {
371
      getMessage_args args = new getMessage_args();
3430 rajveer 372
      args.setId(id);
373
      sendBase("getMessage", args);
352 ashish 374
    }
375
 
3430 rajveer 376
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 377
    {
378
      getMessage_result result = new getMessage_result();
3430 rajveer 379
      receiveBase(result, "getMessage");
352 ashish 380
      if (result.isSetSuccess()) {
381
        return result.success;
382
      }
383
      if (result.se != null) {
384
        throw result.se;
385
      }
3430 rajveer 386
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 387
    }
388
 
3430 rajveer 389
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 390
    {
391
      send_getSubstitutedMessage(id, params);
392
      return recv_getSubstitutedMessage();
393
    }
394
 
3430 rajveer 395
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 396
    {
397
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 398
      args.setId(id);
399
      args.setParams(params);
400
      sendBase("getSubstitutedMessage", args);
352 ashish 401
    }
402
 
3430 rajveer 403
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 404
    {
405
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 406
      receiveBase(result, "getSubstitutedMessage");
352 ashish 407
      if (result.isSetSuccess()) {
408
        return result.success;
409
      }
410
      if (result.se != null) {
411
        throw result.se;
412
      }
3430 rajveer 413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 414
    }
415
 
3430 rajveer 416
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 417
    {
418
      send_addUser(username, password, warehouseId);
419
      return recv_addUser();
420
    }
421
 
3430 rajveer 422
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 423
    {
424
      addUser_args args = new addUser_args();
3430 rajveer 425
      args.setUsername(username);
426
      args.setPassword(password);
427
      args.setWarehouseId(warehouseId);
428
      sendBase("addUser", args);
495 rajveer 429
    }
430
 
3430 rajveer 431
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 432
    {
433
      addUser_result result = new addUser_result();
3430 rajveer 434
      receiveBase(result, "addUser");
495 rajveer 435
      if (result.isSetSuccess()) {
436
        return result.success;
437
      }
438
      if (result.se != null) {
439
        throw result.se;
440
      }
3430 rajveer 441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 442
    }
443
 
3430 rajveer 444
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 445
    {
446
      send_deleteUser(username);
447
      return recv_deleteUser();
448
    }
449
 
3430 rajveer 450
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 451
    {
452
      deleteUser_args args = new deleteUser_args();
3430 rajveer 453
      args.setUsername(username);
454
      sendBase("deleteUser", args);
495 rajveer 455
    }
456
 
3430 rajveer 457
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 458
    {
459
      deleteUser_result result = new deleteUser_result();
3430 rajveer 460
      receiveBase(result, "deleteUser");
495 rajveer 461
      if (result.isSetSuccess()) {
462
        return result.success;
463
      }
464
      if (result.se != null) {
465
        throw result.se;
466
      }
3430 rajveer 467
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 468
    }
469
 
3430 rajveer 470
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 471
    {
2443 chandransh 472
      send_authenticateDashboardUser(username, password);
473
      return recv_authenticateDashboardUser();
495 rajveer 474
    }
475
 
3430 rajveer 476
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 477
    {
2443 chandransh 478
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 479
      args.setUsername(username);
480
      args.setPassword(password);
481
      sendBase("authenticateDashboardUser", args);
495 rajveer 482
    }
483
 
3430 rajveer 484
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 485
    {
2443 chandransh 486
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 487
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 488
      if (result.isSetSuccess()) {
489
        return result.success;
490
      }
491
      if (result.se != null) {
492
        throw result.se;
493
      }
3430 rajveer 494
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 495
    }
496
 
3430 rajveer 497
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 498
    {
499
      send_updatePassword(username, oldPassword, newPassword);
500
      return recv_updatePassword();
501
    }
502
 
3430 rajveer 503
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 504
    {
505
      updatePassword_args args = new updatePassword_args();
3430 rajveer 506
      args.setUsername(username);
507
      args.setOldPassword(oldPassword);
508
      args.setNewPassword(newPassword);
509
      sendBase("updatePassword", args);
495 rajveer 510
    }
511
 
3430 rajveer 512
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 513
    {
514
      updatePassword_result result = new updatePassword_result();
3430 rajveer 515
      receiveBase(result, "updatePassword");
495 rajveer 516
      if (result.isSetSuccess()) {
517
        return result.success;
518
      }
519
      if (result.se != null) {
520
        throw result.se;
521
      }
3430 rajveer 522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 523
    }
524
 
3430 rajveer 525
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 526
    {
527
      send_authenticateLogisticsUser(username, password);
528
      return recv_authenticateLogisticsUser();
529
    }
530
 
3430 rajveer 531
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 532
    {
533
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 534
      args.setUsername(username);
535
      args.setPassword(password);
536
      sendBase("authenticateLogisticsUser", args);
750 chandransh 537
    }
538
 
3430 rajveer 539
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 540
    {
541
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 542
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 543
      if (result.isSetSuccess()) {
544
        return result.success;
545
      }
546
      if (result.hse != null) {
547
        throw result.hse;
548
      }
3430 rajveer 549
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 550
    }
551
 
3430 rajveer 552
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 553
    {
554
      send_authenticateStatisticsUser(username, password);
555
      return recv_authenticateStatisticsUser();
556
    }
557
 
3430 rajveer 558
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 559
    {
560
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 561
      args.setUsername(username);
562
      args.setPassword(password);
563
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 564
    }
565
 
3430 rajveer 566
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 567
    {
568
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 569
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 570
      if (result.isSetSuccess()) {
571
        return result.success;
572
      }
573
      if (result.hse != null) {
574
        throw result.hse;
575
      }
3430 rajveer 576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 577
    }
578
 
3430 rajveer 579
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 580
    {
581
      send_authenticateReportUser(username, password);
582
      return recv_authenticateReportUser();
583
    }
584
 
3430 rajveer 585
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 586
    {
587
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 588
      args.setUsername(username);
589
      args.setPassword(password);
590
      sendBase("authenticateReportUser", args);
1891 ankur.sing 591
    }
592
 
3430 rajveer 593
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 594
    {
595
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 596
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 597
      if (result.isSetSuccess()) {
598
        return result.success;
599
      }
600
      if (result.hse != null) {
601
        throw result.hse;
602
      }
3430 rajveer 603
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 604
    }
605
 
3430 rajveer 606
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 607
    {
608
      send_getReports(role);
609
      return recv_getReports();
610
    }
611
 
3430 rajveer 612
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 613
    {
614
      getReports_args args = new getReports_args();
3430 rajveer 615
      args.setRole(role);
616
      sendBase("getReports", args);
1891 ankur.sing 617
    }
618
 
3430 rajveer 619
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 620
    {
621
      getReports_result result = new getReports_result();
3430 rajveer 622
      receiveBase(result, "getReports");
1891 ankur.sing 623
      if (result.isSetSuccess()) {
624
        return result.success;
625
      }
3430 rajveer 626
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 627
    }
628
 
3430 rajveer 629
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 630
    {
2357 ankur.sing 631
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 632
      return recv_authenticateCatalogUser();
633
    }
634
 
3430 rajveer 635
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 636
    {
637
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 638
      args.setUsername(username);
639
      args.setPassword(password);
640
      args.setRole(role);
641
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 642
    }
643
 
3430 rajveer 644
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 645
    {
646
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 647
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 648
      if (result.isSetSuccess()) {
649
        return result.success;
650
      }
651
      if (result.hse != null) {
652
        throw result.hse;
653
      }
3430 rajveer 654
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 655
    }
656
 
352 ashish 657
  }
3430 rajveer 658
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
659
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
660
      private org.apache.thrift.async.TAsyncClientManager clientManager;
661
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
662
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
663
        this.clientManager = clientManager;
664
        this.protocolFactory = protocolFactory;
665
      }
666
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
667
        return new AsyncClient(protocolFactory, clientManager, transport);
668
      }
352 ashish 669
    }
670
 
3430 rajveer 671
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
672
      super(protocolFactory, clientManager, transport);
673
    }
352 ashish 674
 
3430 rajveer 675
    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 {
676
      checkReady();
677
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
678
      this.___currentMethod = method_call;
679
      ___manager.call(method_call);
680
    }
681
 
682
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
683
      private String emailTo;
684
      private String emailFrom;
685
      private String subject;
686
      private String body;
687
      private String source;
688
      private String emailType;
689
      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 {
690
        super(client, protocolFactory, transport, resultHandler, false);
691
        this.emailTo = emailTo;
692
        this.emailFrom = emailFrom;
693
        this.subject = subject;
694
        this.body = body;
695
        this.source = source;
696
        this.emailType = emailType;
352 ashish 697
      }
3430 rajveer 698
 
699
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
700
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
701
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
702
        args.setEmailTo(emailTo);
703
        args.setEmailFrom(emailFrom);
704
        args.setSubject(subject);
705
        args.setBody(body);
706
        args.setSource(source);
707
        args.setEmailType(emailType);
708
        args.write(prot);
709
        prot.writeMessageEnd();
710
      }
711
 
712
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
713
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
714
          throw new IllegalStateException("Method call not finished!");
715
        }
716
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
717
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
718
        return (new Client(prot)).recv_saveUserEmailForSending();
719
      }
352 ashish 720
    }
721
 
3430 rajveer 722
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
723
      checkReady();
724
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
725
      this.___currentMethod = method_call;
726
      ___manager.call(method_call);
727
    }
728
 
729
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
730
      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 {
731
        super(client, protocolFactory, transport, resultHandler, false);
732
      }
733
 
734
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
735
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
736
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
737
        args.write(prot);
738
        prot.writeMessageEnd();
739
      }
740
 
741
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
742
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
743
          throw new IllegalStateException("Method call not finished!");
744
        }
745
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
746
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
747
        return (new Client(prot)).recv_getEmailsToBeSent();
748
      }
749
    }
750
 
751
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
752
      checkReady();
753
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
754
      this.___currentMethod = method_call;
755
      ___manager.call(method_call);
756
    }
757
 
758
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
759
      private long emailId;
760
      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 {
761
        super(client, protocolFactory, transport, resultHandler, false);
762
        this.emailId = emailId;
763
      }
764
 
765
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
766
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
767
        markEmailAsSent_args args = new markEmailAsSent_args();
768
        args.setEmailId(emailId);
769
        args.write(prot);
770
        prot.writeMessageEnd();
771
      }
772
 
773
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
774
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
775
          throw new IllegalStateException("Method call not finished!");
776
        }
777
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
778
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
779
        (new Client(prot)).recv_markEmailAsSent();
780
      }
781
    }
782
 
783
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
784
      checkReady();
785
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
786
      this.___currentMethod = method_call;
787
      ___manager.call(method_call);
788
    }
789
 
790
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
791
      private Mail mail;
792
      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 {
793
        super(client, protocolFactory, transport, resultHandler, false);
794
        this.mail = mail;
795
      }
796
 
797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
799
        sendMail_args args = new sendMail_args();
800
        args.setMail(mail);
801
        args.write(prot);
802
        prot.writeMessageEnd();
803
      }
804
 
805
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
806
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
807
          throw new IllegalStateException("Method call not finished!");
808
        }
809
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
811
        (new Client(prot)).recv_sendMail();
812
      }
813
    }
814
 
815
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
816
      checkReady();
817
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
818
      this.___currentMethod = method_call;
819
      ___manager.call(method_call);
820
    }
821
 
822
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
823
      private TextMessage message;
824
      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 {
825
        super(client, protocolFactory, transport, resultHandler, false);
826
        this.message = message;
827
      }
828
 
829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
831
        sendText_args args = new sendText_args();
832
        args.setMessage(message);
833
        args.write(prot);
834
        prot.writeMessageEnd();
835
      }
836
 
837
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
839
          throw new IllegalStateException("Method call not finished!");
840
        }
841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
843
        (new Client(prot)).recv_sendText();
844
      }
845
    }
846
 
847
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
848
      checkReady();
849
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
850
      this.___currentMethod = method_call;
851
      ___manager.call(method_call);
852
    }
853
 
854
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
855
      private Message message;
856
      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 {
857
        super(client, protocolFactory, transport, resultHandler, false);
858
        this.message = message;
859
      }
860
 
861
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
862
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
863
        addMessage_args args = new addMessage_args();
864
        args.setMessage(message);
865
        args.write(prot);
866
        prot.writeMessageEnd();
867
      }
868
 
869
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
870
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
871
          throw new IllegalStateException("Method call not finished!");
872
        }
873
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
874
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
875
        (new Client(prot)).recv_addMessage();
876
      }
877
    }
878
 
879
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
880
      checkReady();
881
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
882
      this.___currentMethod = method_call;
883
      ___manager.call(method_call);
884
    }
885
 
886
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
887
      private long id;
888
      private String message;
889
      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 {
890
        super(client, protocolFactory, transport, resultHandler, false);
891
        this.id = id;
892
        this.message = message;
893
      }
894
 
895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
897
        updateMessage_args args = new updateMessage_args();
898
        args.setId(id);
899
        args.setMessage(message);
900
        args.write(prot);
901
        prot.writeMessageEnd();
902
      }
903
 
904
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
905
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
906
          throw new IllegalStateException("Method call not finished!");
907
        }
908
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
910
        (new Client(prot)).recv_updateMessage();
911
      }
912
    }
913
 
914
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
915
      checkReady();
916
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
917
      this.___currentMethod = method_call;
918
      ___manager.call(method_call);
919
    }
920
 
921
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
922
      private long id;
923
      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 {
924
        super(client, protocolFactory, transport, resultHandler, false);
925
        this.id = id;
926
      }
927
 
928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
930
        getMessage_args args = new getMessage_args();
931
        args.setId(id);
932
        args.write(prot);
933
        prot.writeMessageEnd();
934
      }
935
 
936
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
938
          throw new IllegalStateException("Method call not finished!");
939
        }
940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
942
        return (new Client(prot)).recv_getMessage();
943
      }
944
    }
945
 
946
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
947
      checkReady();
948
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
949
      this.___currentMethod = method_call;
950
      ___manager.call(method_call);
951
    }
952
 
953
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
954
      private long id;
955
      private Map<String,String> params;
956
      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 {
957
        super(client, protocolFactory, transport, resultHandler, false);
958
        this.id = id;
959
        this.params = params;
960
      }
961
 
962
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
963
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
964
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
965
        args.setId(id);
966
        args.setParams(params);
967
        args.write(prot);
968
        prot.writeMessageEnd();
969
      }
970
 
971
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
972
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
973
          throw new IllegalStateException("Method call not finished!");
974
        }
975
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
976
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
977
        return (new Client(prot)).recv_getSubstitutedMessage();
978
      }
979
    }
980
 
981
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
982
      checkReady();
983
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
984
      this.___currentMethod = method_call;
985
      ___manager.call(method_call);
986
    }
987
 
988
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
989
      private String username;
990
      private String password;
991
      private long warehouseId;
992
      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 {
993
        super(client, protocolFactory, transport, resultHandler, false);
994
        this.username = username;
995
        this.password = password;
996
        this.warehouseId = warehouseId;
997
      }
998
 
999
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1000
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1001
        addUser_args args = new addUser_args();
1002
        args.setUsername(username);
1003
        args.setPassword(password);
1004
        args.setWarehouseId(warehouseId);
1005
        args.write(prot);
1006
        prot.writeMessageEnd();
1007
      }
1008
 
1009
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1010
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1011
          throw new IllegalStateException("Method call not finished!");
1012
        }
1013
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1014
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1015
        return (new Client(prot)).recv_addUser();
1016
      }
1017
    }
1018
 
1019
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1020
      checkReady();
1021
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1022
      this.___currentMethod = method_call;
1023
      ___manager.call(method_call);
1024
    }
1025
 
1026
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1027
      private String username;
1028
      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 {
1029
        super(client, protocolFactory, transport, resultHandler, false);
1030
        this.username = username;
1031
      }
1032
 
1033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1035
        deleteUser_args args = new deleteUser_args();
1036
        args.setUsername(username);
1037
        args.write(prot);
1038
        prot.writeMessageEnd();
1039
      }
1040
 
1041
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1043
          throw new IllegalStateException("Method call not finished!");
1044
        }
1045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1047
        return (new Client(prot)).recv_deleteUser();
1048
      }
1049
    }
1050
 
1051
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1052
      checkReady();
1053
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1054
      this.___currentMethod = method_call;
1055
      ___manager.call(method_call);
1056
    }
1057
 
1058
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1059
      private String username;
1060
      private String password;
1061
      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 {
1062
        super(client, protocolFactory, transport, resultHandler, false);
1063
        this.username = username;
1064
        this.password = password;
1065
      }
1066
 
1067
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1068
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1069
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1070
        args.setUsername(username);
1071
        args.setPassword(password);
1072
        args.write(prot);
1073
        prot.writeMessageEnd();
1074
      }
1075
 
1076
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1077
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1078
          throw new IllegalStateException("Method call not finished!");
1079
        }
1080
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1081
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1082
        return (new Client(prot)).recv_authenticateDashboardUser();
1083
      }
1084
    }
1085
 
1086
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1087
      checkReady();
1088
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1089
      this.___currentMethod = method_call;
1090
      ___manager.call(method_call);
1091
    }
1092
 
1093
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1094
      private String username;
1095
      private String oldPassword;
1096
      private String newPassword;
1097
      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 {
1098
        super(client, protocolFactory, transport, resultHandler, false);
1099
        this.username = username;
1100
        this.oldPassword = oldPassword;
1101
        this.newPassword = newPassword;
1102
      }
1103
 
1104
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1105
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1106
        updatePassword_args args = new updatePassword_args();
1107
        args.setUsername(username);
1108
        args.setOldPassword(oldPassword);
1109
        args.setNewPassword(newPassword);
1110
        args.write(prot);
1111
        prot.writeMessageEnd();
1112
      }
1113
 
1114
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1115
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1116
          throw new IllegalStateException("Method call not finished!");
1117
        }
1118
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1119
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1120
        return (new Client(prot)).recv_updatePassword();
1121
      }
1122
    }
1123
 
1124
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1125
      checkReady();
1126
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1127
      this.___currentMethod = method_call;
1128
      ___manager.call(method_call);
1129
    }
1130
 
1131
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1132
      private String username;
1133
      private String password;
1134
      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 {
1135
        super(client, protocolFactory, transport, resultHandler, false);
1136
        this.username = username;
1137
        this.password = password;
1138
      }
1139
 
1140
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1141
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1142
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1143
        args.setUsername(username);
1144
        args.setPassword(password);
1145
        args.write(prot);
1146
        prot.writeMessageEnd();
1147
      }
1148
 
1149
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1150
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1151
          throw new IllegalStateException("Method call not finished!");
1152
        }
1153
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1154
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1155
        return (new Client(prot)).recv_authenticateLogisticsUser();
1156
      }
1157
    }
1158
 
1159
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1160
      checkReady();
1161
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1162
      this.___currentMethod = method_call;
1163
      ___manager.call(method_call);
1164
    }
1165
 
1166
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1167
      private String username;
1168
      private String password;
1169
      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 {
1170
        super(client, protocolFactory, transport, resultHandler, false);
1171
        this.username = username;
1172
        this.password = password;
1173
      }
1174
 
1175
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1176
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1177
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1178
        args.setUsername(username);
1179
        args.setPassword(password);
1180
        args.write(prot);
1181
        prot.writeMessageEnd();
1182
      }
1183
 
1184
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1185
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1186
          throw new IllegalStateException("Method call not finished!");
1187
        }
1188
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1189
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1190
        return (new Client(prot)).recv_authenticateStatisticsUser();
1191
      }
1192
    }
1193
 
1194
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1195
      checkReady();
1196
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1197
      this.___currentMethod = method_call;
1198
      ___manager.call(method_call);
1199
    }
1200
 
1201
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1202
      private String username;
1203
      private String password;
1204
      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 {
1205
        super(client, protocolFactory, transport, resultHandler, false);
1206
        this.username = username;
1207
        this.password = password;
1208
      }
1209
 
1210
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1211
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1212
        authenticateReportUser_args args = new authenticateReportUser_args();
1213
        args.setUsername(username);
1214
        args.setPassword(password);
1215
        args.write(prot);
1216
        prot.writeMessageEnd();
1217
      }
1218
 
1219
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1220
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1221
          throw new IllegalStateException("Method call not finished!");
1222
        }
1223
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1224
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1225
        return (new Client(prot)).recv_authenticateReportUser();
1226
      }
1227
    }
1228
 
1229
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1230
      checkReady();
1231
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1232
      this.___currentMethod = method_call;
1233
      ___manager.call(method_call);
1234
    }
1235
 
1236
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1237
      private long role;
1238
      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 {
1239
        super(client, protocolFactory, transport, resultHandler, false);
1240
        this.role = role;
1241
      }
1242
 
1243
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1244
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1245
        getReports_args args = new getReports_args();
1246
        args.setRole(role);
1247
        args.write(prot);
1248
        prot.writeMessageEnd();
1249
      }
1250
 
1251
      public List<Report> getResult() throws org.apache.thrift.TException {
1252
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1253
          throw new IllegalStateException("Method call not finished!");
1254
        }
1255
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1256
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1257
        return (new Client(prot)).recv_getReports();
1258
      }
1259
    }
1260
 
1261
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1262
      checkReady();
1263
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1264
      this.___currentMethod = method_call;
1265
      ___manager.call(method_call);
1266
    }
1267
 
1268
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1269
      private String username;
1270
      private String password;
1271
      private long role;
1272
      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 {
1273
        super(client, protocolFactory, transport, resultHandler, false);
1274
        this.username = username;
1275
        this.password = password;
1276
        this.role = role;
1277
      }
1278
 
1279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1281
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1282
        args.setUsername(username);
1283
        args.setPassword(password);
1284
        args.setRole(role);
1285
        args.write(prot);
1286
        prot.writeMessageEnd();
1287
      }
1288
 
1289
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1290
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1291
          throw new IllegalStateException("Method call not finished!");
1292
        }
1293
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1294
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1295
        return (new Client(prot)).recv_authenticateCatalogUser();
1296
      }
1297
    }
1298
 
1299
  }
1300
 
1301
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1302
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1303
    public Processor(I iface) {
1304
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1305
    }
1306
 
1307
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1308
      super(iface, getProcessMap(processMap));
1309
    }
1310
 
1311
    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) {
1312
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1313
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1314
      processMap.put("markEmailAsSent", new markEmailAsSent());
1315
      processMap.put("sendMail", new sendMail());
1316
      processMap.put("sendText", new sendText());
1317
      processMap.put("addMessage", new addMessage());
1318
      processMap.put("updateMessage", new updateMessage());
1319
      processMap.put("getMessage", new getMessage());
1320
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1321
      processMap.put("addUser", new addUser());
1322
      processMap.put("deleteUser", new deleteUser());
1323
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1324
      processMap.put("updatePassword", new updatePassword());
1325
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1326
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1327
      processMap.put("authenticateReportUser", new authenticateReportUser());
1328
      processMap.put("getReports", new getReports());
1329
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
1330
      return processMap;
1331
    }
1332
 
1333
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1334
      public saveUserEmailForSending() {
1335
        super("saveUserEmailForSending");
1336
      }
1337
 
1338
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1339
        return new saveUserEmailForSending_args();
1340
      }
1341
 
1342
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1343
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1344
        try {
3430 rajveer 1345
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1346
          result.setSuccessIsSet(true);
1395 varun.gupt 1347
        } catch (HelperServiceException se) {
1348
          result.se = se;
1349
        }
3430 rajveer 1350
        return result;
1395 varun.gupt 1351
      }
1352
    }
1353
 
3430 rajveer 1354
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1355
      public getEmailsToBeSent() {
1356
        super("getEmailsToBeSent");
1357
      }
1358
 
1359
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1360
        return new getEmailsToBeSent_args();
1361
      }
1362
 
1363
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1364
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1365
        try {
3430 rajveer 1366
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 1367
        } catch (HelperServiceException se) {
1368
          result.se = se;
1369
        }
3430 rajveer 1370
        return result;
1422 varun.gupt 1371
      }
1372
    }
1373
 
3430 rajveer 1374
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
1375
      public markEmailAsSent() {
1376
        super("markEmailAsSent");
1377
      }
1378
 
1379
      protected markEmailAsSent_args getEmptyArgsInstance() {
1380
        return new markEmailAsSent_args();
1381
      }
1382
 
1383
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1384
        markEmailAsSent_result result = new markEmailAsSent_result();
1385
        try {
3430 rajveer 1386
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 1387
        } catch (HelperServiceException se) {
1388
          result.se = se;
1389
        }
3430 rajveer 1390
        return result;
1422 varun.gupt 1391
      }
1392
    }
1393
 
3430 rajveer 1394
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
1395
      public sendMail() {
1396
        super("sendMail");
1397
      }
1398
 
1399
      protected sendMail_args getEmptyArgsInstance() {
1400
        return new sendMail_args();
1401
      }
1402
 
1403
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 1404
        sendMail_result result = new sendMail_result();
1405
        try {
3430 rajveer 1406
          iface.sendMail(args.mail);
352 ashish 1407
        } catch (HelperServiceException se) {
1408
          result.se = se;
1409
        }
3430 rajveer 1410
        return result;
352 ashish 1411
      }
1412
    }
1413
 
3430 rajveer 1414
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
1415
      public sendText() {
1416
        super("sendText");
1417
      }
1418
 
1419
      protected sendText_args getEmptyArgsInstance() {
1420
        return new sendText_args();
1421
      }
1422
 
1423
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 1424
        sendText_result result = new sendText_result();
1425
        try {
3430 rajveer 1426
          iface.sendText(args.message);
352 ashish 1427
        } catch (HelperServiceException se) {
1428
          result.se = se;
1429
        }
3430 rajveer 1430
        return result;
352 ashish 1431
      }
1432
    }
1433
 
3430 rajveer 1434
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
1435
      public addMessage() {
1436
        super("addMessage");
1437
      }
1438
 
1439
      protected addMessage_args getEmptyArgsInstance() {
1440
        return new addMessage_args();
1441
      }
1442
 
1443
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 1444
        addMessage_result result = new addMessage_result();
1445
        try {
3430 rajveer 1446
          iface.addMessage(args.message);
352 ashish 1447
        } catch (HelperServiceException se) {
1448
          result.se = se;
1449
        }
3430 rajveer 1450
        return result;
352 ashish 1451
      }
1452
    }
1453
 
3430 rajveer 1454
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
1455
      public updateMessage() {
1456
        super("updateMessage");
1457
      }
1458
 
1459
      protected updateMessage_args getEmptyArgsInstance() {
1460
        return new updateMessage_args();
1461
      }
1462
 
1463
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 1464
        updateMessage_result result = new updateMessage_result();
1465
        try {
3430 rajveer 1466
          iface.updateMessage(args.id, args.message);
352 ashish 1467
        } catch (HelperServiceException se) {
1468
          result.se = se;
1469
        }
3430 rajveer 1470
        return result;
352 ashish 1471
      }
1472
    }
1473
 
3430 rajveer 1474
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
1475
      public getMessage() {
1476
        super("getMessage");
1477
      }
1478
 
1479
      protected getMessage_args getEmptyArgsInstance() {
1480
        return new getMessage_args();
1481
      }
1482
 
1483
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 1484
        getMessage_result result = new getMessage_result();
1485
        try {
3430 rajveer 1486
          result.success = iface.getMessage(args.id);
352 ashish 1487
        } catch (HelperServiceException se) {
1488
          result.se = se;
1489
        }
3430 rajveer 1490
        return result;
352 ashish 1491
      }
1492
    }
1493
 
3430 rajveer 1494
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
1495
      public getSubstitutedMessage() {
1496
        super("getSubstitutedMessage");
1497
      }
1498
 
1499
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
1500
        return new getSubstitutedMessage_args();
1501
      }
1502
 
1503
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 1504
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1505
        try {
3430 rajveer 1506
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 1507
        } catch (HelperServiceException se) {
1508
          result.se = se;
1509
        }
3430 rajveer 1510
        return result;
352 ashish 1511
      }
1512
    }
1513
 
3430 rajveer 1514
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
1515
      public addUser() {
1516
        super("addUser");
1517
      }
1518
 
1519
      protected addUser_args getEmptyArgsInstance() {
1520
        return new addUser_args();
1521
      }
1522
 
1523
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 1524
        addUser_result result = new addUser_result();
1525
        try {
3430 rajveer 1526
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 1527
          result.setSuccessIsSet(true);
1528
        } catch (HelperServiceException se) {
1529
          result.se = se;
1530
        }
3430 rajveer 1531
        return result;
495 rajveer 1532
      }
1533
    }
1534
 
3430 rajveer 1535
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
1536
      public deleteUser() {
1537
        super("deleteUser");
1538
      }
1539
 
1540
      protected deleteUser_args getEmptyArgsInstance() {
1541
        return new deleteUser_args();
1542
      }
1543
 
1544
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 1545
        deleteUser_result result = new deleteUser_result();
1546
        try {
3430 rajveer 1547
          result.success = iface.deleteUser(args.username);
495 rajveer 1548
          result.setSuccessIsSet(true);
1549
        } catch (HelperServiceException se) {
1550
          result.se = se;
1551
        }
3430 rajveer 1552
        return result;
495 rajveer 1553
      }
1554
    }
1555
 
3430 rajveer 1556
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
1557
      public authenticateDashboardUser() {
1558
        super("authenticateDashboardUser");
1559
      }
1560
 
1561
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
1562
        return new authenticateDashboardUser_args();
1563
      }
1564
 
1565
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 1566
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 1567
        try {
3430 rajveer 1568
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 1569
        } catch (HelperServiceException se) {
1570
          result.se = se;
1571
        }
3430 rajveer 1572
        return result;
495 rajveer 1573
      }
1574
    }
1575
 
3430 rajveer 1576
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
1577
      public updatePassword() {
1578
        super("updatePassword");
1579
      }
1580
 
1581
      protected updatePassword_args getEmptyArgsInstance() {
1582
        return new updatePassword_args();
1583
      }
1584
 
1585
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 1586
        updatePassword_result result = new updatePassword_result();
1587
        try {
3430 rajveer 1588
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 1589
          result.setSuccessIsSet(true);
1590
        } catch (HelperServiceException se) {
1591
          result.se = se;
1592
        }
3430 rajveer 1593
        return result;
495 rajveer 1594
      }
1595
    }
1596
 
3430 rajveer 1597
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
1598
      public authenticateLogisticsUser() {
1599
        super("authenticateLogisticsUser");
1600
      }
1601
 
1602
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
1603
        return new authenticateLogisticsUser_args();
1604
      }
1605
 
1606
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 1607
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
1608
        try {
3430 rajveer 1609
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 1610
        } catch (HelperServiceException hse) {
1611
          result.hse = hse;
1612
        }
3430 rajveer 1613
        return result;
750 chandransh 1614
      }
1615
    }
1616
 
3430 rajveer 1617
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
1618
      public authenticateStatisticsUser() {
1619
        super("authenticateStatisticsUser");
1620
      }
1621
 
1622
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
1623
        return new authenticateStatisticsUser_args();
1624
      }
1625
 
1626
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 1627
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
1628
        try {
3430 rajveer 1629
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 1630
        } catch (HelperServiceException hse) {
1631
          result.hse = hse;
1632
        }
3430 rajveer 1633
        return result;
1611 ankur.sing 1634
      }
1635
    }
1636
 
3430 rajveer 1637
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
1638
      public authenticateReportUser() {
1639
        super("authenticateReportUser");
1640
      }
1641
 
1642
      protected authenticateReportUser_args getEmptyArgsInstance() {
1643
        return new authenticateReportUser_args();
1644
      }
1645
 
1646
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 1647
        authenticateReportUser_result result = new authenticateReportUser_result();
1648
        try {
3430 rajveer 1649
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 1650
        } catch (HelperServiceException hse) {
1651
          result.hse = hse;
1652
        }
3430 rajveer 1653
        return result;
1891 ankur.sing 1654
      }
1655
    }
1656
 
3430 rajveer 1657
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
1658
      public getReports() {
1659
        super("getReports");
1660
      }
1661
 
1662
      protected getReports_args getEmptyArgsInstance() {
1663
        return new getReports_args();
1664
      }
1665
 
1666
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 1667
        getReports_result result = new getReports_result();
3430 rajveer 1668
        result.success = iface.getReports(args.role);
1669
        return result;
1891 ankur.sing 1670
      }
1671
    }
1672
 
3430 rajveer 1673
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
1674
      public authenticateCatalogUser() {
1675
        super("authenticateCatalogUser");
1676
      }
1677
 
1678
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
1679
        return new authenticateCatalogUser_args();
1680
      }
1681
 
1682
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 1683
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
1684
        try {
3430 rajveer 1685
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 1686
        } catch (HelperServiceException hse) {
1687
          result.hse = hse;
1688
        }
3430 rajveer 1689
        return result;
2024 ankur.sing 1690
      }
1691
    }
1692
 
352 ashish 1693
  }
1694
 
3430 rajveer 1695
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 1697
 
3430 rajveer 1698
    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);
1699
    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);
1700
    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);
1701
    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);
1702
    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);
1703
    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 1704
 
3430 rajveer 1705
    private String emailTo; // required
1706
    private String emailFrom; // required
1707
    private String subject; // required
1708
    private String body; // required
1709
    private String source; // required
1710
    private String emailType; // required
1395 varun.gupt 1711
 
1712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1713
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 1714
      EMAIL_TO((short)1, "emailTo"),
1715
      EMAIL_FROM((short)2, "emailFrom"),
1716
      SUBJECT((short)3, "subject"),
1717
      BODY((short)4, "body"),
1718
      SOURCE((short)5, "source"),
1719
      EMAIL_TYPE((short)6, "emailType");
1720
 
1721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1722
 
1723
      static {
1724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1725
          byName.put(field.getFieldName(), field);
1726
        }
1727
      }
1728
 
1729
      /**
1730
       * Find the _Fields constant that matches fieldId, or null if its not found.
1731
       */
1732
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1733
        switch(fieldId) {
1734
          case 1: // EMAIL_TO
1735
            return EMAIL_TO;
1736
          case 2: // EMAIL_FROM
1737
            return EMAIL_FROM;
1738
          case 3: // SUBJECT
1739
            return SUBJECT;
1740
          case 4: // BODY
1741
            return BODY;
1742
          case 5: // SOURCE
1743
            return SOURCE;
1744
          case 6: // EMAIL_TYPE
1745
            return EMAIL_TYPE;
1746
          default:
1747
            return null;
1748
        }
1395 varun.gupt 1749
      }
1750
 
1751
      /**
1752
       * Find the _Fields constant that matches fieldId, throwing an exception
1753
       * if it is not found.
1754
       */
1755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1756
        _Fields fields = findByThriftId(fieldId);
1757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1758
        return fields;
1759
      }
1760
 
1761
      /**
1762
       * Find the _Fields constant that matches name, or null if its not found.
1763
       */
1764
      public static _Fields findByName(String name) {
1765
        return byName.get(name);
1766
      }
1767
 
1768
      private final short _thriftId;
1769
      private final String _fieldName;
1770
 
1771
      _Fields(short thriftId, String fieldName) {
1772
        _thriftId = thriftId;
1773
        _fieldName = fieldName;
1774
      }
1775
 
1776
      public short getThriftFieldId() {
1777
        return _thriftId;
1778
      }
1779
 
1780
      public String getFieldName() {
1781
        return _fieldName;
1782
      }
1783
    }
1784
 
1785
    // isset id assignments
1786
 
3430 rajveer 1787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 1788
    static {
3430 rajveer 1789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1790
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1792
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1794
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1796
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1798
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1800
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1802
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1803
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 1804
    }
1805
 
1806
    public saveUserEmailForSending_args() {
1807
    }
1808
 
1809
    public saveUserEmailForSending_args(
1810
      String emailTo,
1811
      String emailFrom,
1812
      String subject,
1813
      String body,
1814
      String source,
1815
      String emailType)
1816
    {
1817
      this();
1818
      this.emailTo = emailTo;
1819
      this.emailFrom = emailFrom;
1820
      this.subject = subject;
1821
      this.body = body;
1822
      this.source = source;
1823
      this.emailType = emailType;
1824
    }
1825
 
1826
    /**
1827
     * Performs a deep copy on <i>other</i>.
1828
     */
1829
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
1830
      if (other.isSetEmailTo()) {
1831
        this.emailTo = other.emailTo;
1832
      }
1833
      if (other.isSetEmailFrom()) {
1834
        this.emailFrom = other.emailFrom;
1835
      }
1836
      if (other.isSetSubject()) {
1837
        this.subject = other.subject;
1838
      }
1839
      if (other.isSetBody()) {
1840
        this.body = other.body;
1841
      }
1842
      if (other.isSetSource()) {
1843
        this.source = other.source;
1844
      }
1845
      if (other.isSetEmailType()) {
1846
        this.emailType = other.emailType;
1847
      }
1848
    }
1849
 
1850
    public saveUserEmailForSending_args deepCopy() {
1851
      return new saveUserEmailForSending_args(this);
1852
    }
1853
 
3430 rajveer 1854
    @Override
1855
    public void clear() {
1856
      this.emailTo = null;
1857
      this.emailFrom = null;
1858
      this.subject = null;
1859
      this.body = null;
1860
      this.source = null;
1861
      this.emailType = null;
1395 varun.gupt 1862
    }
1863
 
1864
    public String getEmailTo() {
1865
      return this.emailTo;
1866
    }
1867
 
3430 rajveer 1868
    public void setEmailTo(String emailTo) {
1395 varun.gupt 1869
      this.emailTo = emailTo;
1870
    }
1871
 
1872
    public void unsetEmailTo() {
1873
      this.emailTo = null;
1874
    }
1875
 
3430 rajveer 1876
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1877
    public boolean isSetEmailTo() {
1878
      return this.emailTo != null;
1879
    }
1880
 
1881
    public void setEmailToIsSet(boolean value) {
1882
      if (!value) {
1883
        this.emailTo = null;
1884
      }
1885
    }
1886
 
1887
    public String getEmailFrom() {
1888
      return this.emailFrom;
1889
    }
1890
 
3430 rajveer 1891
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 1892
      this.emailFrom = emailFrom;
1893
    }
1894
 
1895
    public void unsetEmailFrom() {
1896
      this.emailFrom = null;
1897
    }
1898
 
3430 rajveer 1899
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1900
    public boolean isSetEmailFrom() {
1901
      return this.emailFrom != null;
1902
    }
1903
 
1904
    public void setEmailFromIsSet(boolean value) {
1905
      if (!value) {
1906
        this.emailFrom = null;
1907
      }
1908
    }
1909
 
1910
    public String getSubject() {
1911
      return this.subject;
1912
    }
1913
 
3430 rajveer 1914
    public void setSubject(String subject) {
1395 varun.gupt 1915
      this.subject = subject;
1916
    }
1917
 
1918
    public void unsetSubject() {
1919
      this.subject = null;
1920
    }
1921
 
3430 rajveer 1922
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1923
    public boolean isSetSubject() {
1924
      return this.subject != null;
1925
    }
1926
 
1927
    public void setSubjectIsSet(boolean value) {
1928
      if (!value) {
1929
        this.subject = null;
1930
      }
1931
    }
1932
 
1933
    public String getBody() {
1934
      return this.body;
1935
    }
1936
 
3430 rajveer 1937
    public void setBody(String body) {
1395 varun.gupt 1938
      this.body = body;
1939
    }
1940
 
1941
    public void unsetBody() {
1942
      this.body = null;
1943
    }
1944
 
3430 rajveer 1945
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1946
    public boolean isSetBody() {
1947
      return this.body != null;
1948
    }
1949
 
1950
    public void setBodyIsSet(boolean value) {
1951
      if (!value) {
1952
        this.body = null;
1953
      }
1954
    }
1955
 
1956
    public String getSource() {
1957
      return this.source;
1958
    }
1959
 
3430 rajveer 1960
    public void setSource(String source) {
1395 varun.gupt 1961
      this.source = source;
1962
    }
1963
 
1964
    public void unsetSource() {
1965
      this.source = null;
1966
    }
1967
 
3430 rajveer 1968
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1969
    public boolean isSetSource() {
1970
      return this.source != null;
1971
    }
1972
 
1973
    public void setSourceIsSet(boolean value) {
1974
      if (!value) {
1975
        this.source = null;
1976
      }
1977
    }
1978
 
1979
    public String getEmailType() {
1980
      return this.emailType;
1981
    }
1982
 
3430 rajveer 1983
    public void setEmailType(String emailType) {
1395 varun.gupt 1984
      this.emailType = emailType;
1985
    }
1986
 
1987
    public void unsetEmailType() {
1988
      this.emailType = null;
1989
    }
1990
 
3430 rajveer 1991
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1992
    public boolean isSetEmailType() {
1993
      return this.emailType != null;
1994
    }
1995
 
1996
    public void setEmailTypeIsSet(boolean value) {
1997
      if (!value) {
1998
        this.emailType = null;
1999
      }
2000
    }
2001
 
2002
    public void setFieldValue(_Fields field, Object value) {
2003
      switch (field) {
2004
      case EMAIL_TO:
2005
        if (value == null) {
2006
          unsetEmailTo();
2007
        } else {
2008
          setEmailTo((String)value);
2009
        }
2010
        break;
2011
 
2012
      case EMAIL_FROM:
2013
        if (value == null) {
2014
          unsetEmailFrom();
2015
        } else {
2016
          setEmailFrom((String)value);
2017
        }
2018
        break;
2019
 
2020
      case SUBJECT:
2021
        if (value == null) {
2022
          unsetSubject();
2023
        } else {
2024
          setSubject((String)value);
2025
        }
2026
        break;
2027
 
2028
      case BODY:
2029
        if (value == null) {
2030
          unsetBody();
2031
        } else {
2032
          setBody((String)value);
2033
        }
2034
        break;
2035
 
2036
      case SOURCE:
2037
        if (value == null) {
2038
          unsetSource();
2039
        } else {
2040
          setSource((String)value);
2041
        }
2042
        break;
2043
 
2044
      case EMAIL_TYPE:
2045
        if (value == null) {
2046
          unsetEmailType();
2047
        } else {
2048
          setEmailType((String)value);
2049
        }
2050
        break;
2051
 
2052
      }
2053
    }
2054
 
2055
    public Object getFieldValue(_Fields field) {
2056
      switch (field) {
2057
      case EMAIL_TO:
2058
        return getEmailTo();
2059
 
2060
      case EMAIL_FROM:
2061
        return getEmailFrom();
2062
 
2063
      case SUBJECT:
2064
        return getSubject();
2065
 
2066
      case BODY:
2067
        return getBody();
2068
 
2069
      case SOURCE:
2070
        return getSource();
2071
 
2072
      case EMAIL_TYPE:
2073
        return getEmailType();
2074
 
2075
      }
2076
      throw new IllegalStateException();
2077
    }
2078
 
3430 rajveer 2079
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2080
    public boolean isSet(_Fields field) {
2081
      if (field == null) {
2082
        throw new IllegalArgumentException();
2083
      }
1395 varun.gupt 2084
 
2085
      switch (field) {
2086
      case EMAIL_TO:
2087
        return isSetEmailTo();
2088
      case EMAIL_FROM:
2089
        return isSetEmailFrom();
2090
      case SUBJECT:
2091
        return isSetSubject();
2092
      case BODY:
2093
        return isSetBody();
2094
      case SOURCE:
2095
        return isSetSource();
2096
      case EMAIL_TYPE:
2097
        return isSetEmailType();
2098
      }
2099
      throw new IllegalStateException();
2100
    }
2101
 
2102
    @Override
2103
    public boolean equals(Object that) {
2104
      if (that == null)
2105
        return false;
2106
      if (that instanceof saveUserEmailForSending_args)
2107
        return this.equals((saveUserEmailForSending_args)that);
2108
      return false;
2109
    }
2110
 
2111
    public boolean equals(saveUserEmailForSending_args that) {
2112
      if (that == null)
2113
        return false;
2114
 
2115
      boolean this_present_emailTo = true && this.isSetEmailTo();
2116
      boolean that_present_emailTo = true && that.isSetEmailTo();
2117
      if (this_present_emailTo || that_present_emailTo) {
2118
        if (!(this_present_emailTo && that_present_emailTo))
2119
          return false;
2120
        if (!this.emailTo.equals(that.emailTo))
2121
          return false;
2122
      }
2123
 
2124
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2125
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2126
      if (this_present_emailFrom || that_present_emailFrom) {
2127
        if (!(this_present_emailFrom && that_present_emailFrom))
2128
          return false;
2129
        if (!this.emailFrom.equals(that.emailFrom))
2130
          return false;
2131
      }
2132
 
2133
      boolean this_present_subject = true && this.isSetSubject();
2134
      boolean that_present_subject = true && that.isSetSubject();
2135
      if (this_present_subject || that_present_subject) {
2136
        if (!(this_present_subject && that_present_subject))
2137
          return false;
2138
        if (!this.subject.equals(that.subject))
2139
          return false;
2140
      }
2141
 
2142
      boolean this_present_body = true && this.isSetBody();
2143
      boolean that_present_body = true && that.isSetBody();
2144
      if (this_present_body || that_present_body) {
2145
        if (!(this_present_body && that_present_body))
2146
          return false;
2147
        if (!this.body.equals(that.body))
2148
          return false;
2149
      }
2150
 
2151
      boolean this_present_source = true && this.isSetSource();
2152
      boolean that_present_source = true && that.isSetSource();
2153
      if (this_present_source || that_present_source) {
2154
        if (!(this_present_source && that_present_source))
2155
          return false;
2156
        if (!this.source.equals(that.source))
2157
          return false;
2158
      }
2159
 
2160
      boolean this_present_emailType = true && this.isSetEmailType();
2161
      boolean that_present_emailType = true && that.isSetEmailType();
2162
      if (this_present_emailType || that_present_emailType) {
2163
        if (!(this_present_emailType && that_present_emailType))
2164
          return false;
2165
        if (!this.emailType.equals(that.emailType))
2166
          return false;
2167
      }
2168
 
2169
      return true;
2170
    }
2171
 
2172
    @Override
2173
    public int hashCode() {
2174
      return 0;
2175
    }
2176
 
2177
    public int compareTo(saveUserEmailForSending_args other) {
2178
      if (!getClass().equals(other.getClass())) {
2179
        return getClass().getName().compareTo(other.getClass().getName());
2180
      }
2181
 
2182
      int lastComparison = 0;
2183
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2184
 
3430 rajveer 2185
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 2186
      if (lastComparison != 0) {
2187
        return lastComparison;
2188
      }
3430 rajveer 2189
      if (isSetEmailTo()) {
2190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
2191
        if (lastComparison != 0) {
2192
          return lastComparison;
2193
        }
1395 varun.gupt 2194
      }
3430 rajveer 2195
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 2196
      if (lastComparison != 0) {
2197
        return lastComparison;
2198
      }
3430 rajveer 2199
      if (isSetEmailFrom()) {
2200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
2201
        if (lastComparison != 0) {
2202
          return lastComparison;
2203
        }
1395 varun.gupt 2204
      }
3430 rajveer 2205
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 2206
      if (lastComparison != 0) {
2207
        return lastComparison;
2208
      }
3430 rajveer 2209
      if (isSetSubject()) {
2210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
2211
        if (lastComparison != 0) {
2212
          return lastComparison;
2213
        }
1395 varun.gupt 2214
      }
3430 rajveer 2215
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 2216
      if (lastComparison != 0) {
2217
        return lastComparison;
2218
      }
3430 rajveer 2219
      if (isSetBody()) {
2220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
2221
        if (lastComparison != 0) {
2222
          return lastComparison;
2223
        }
1395 varun.gupt 2224
      }
3430 rajveer 2225
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 2226
      if (lastComparison != 0) {
2227
        return lastComparison;
2228
      }
3430 rajveer 2229
      if (isSetSource()) {
2230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2231
        if (lastComparison != 0) {
2232
          return lastComparison;
2233
        }
1395 varun.gupt 2234
      }
3430 rajveer 2235
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 2236
      if (lastComparison != 0) {
2237
        return lastComparison;
2238
      }
3430 rajveer 2239
      if (isSetEmailType()) {
2240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
2241
        if (lastComparison != 0) {
2242
          return lastComparison;
2243
        }
1395 varun.gupt 2244
      }
2245
      return 0;
2246
    }
2247
 
3430 rajveer 2248
    public _Fields fieldForId(int fieldId) {
2249
      return _Fields.findByThriftId(fieldId);
2250
    }
2251
 
2252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2253
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2254
      iprot.readStructBegin();
2255
      while (true)
2256
      {
2257
        field = iprot.readFieldBegin();
3430 rajveer 2258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2259
          break;
2260
        }
3430 rajveer 2261
        switch (field.id) {
2262
          case 1: // EMAIL_TO
2263
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2264
              this.emailTo = iprot.readString();
2265
            } else { 
2266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2267
            }
2268
            break;
2269
          case 2: // EMAIL_FROM
2270
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2271
              this.emailFrom = iprot.readString();
2272
            } else { 
2273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2274
            }
2275
            break;
2276
          case 3: // SUBJECT
2277
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2278
              this.subject = iprot.readString();
2279
            } else { 
2280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2281
            }
2282
            break;
2283
          case 4: // BODY
2284
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2285
              this.body = iprot.readString();
2286
            } else { 
2287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2288
            }
2289
            break;
2290
          case 5: // SOURCE
2291
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2292
              this.source = iprot.readString();
2293
            } else { 
2294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2295
            }
2296
            break;
2297
          case 6: // EMAIL_TYPE
2298
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2299
              this.emailType = iprot.readString();
2300
            } else { 
2301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2302
            }
2303
            break;
2304
          default:
2305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2306
        }
3430 rajveer 2307
        iprot.readFieldEnd();
1395 varun.gupt 2308
      }
2309
      iprot.readStructEnd();
2310
      validate();
2311
    }
2312
 
3430 rajveer 2313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2314
      validate();
2315
 
2316
      oprot.writeStructBegin(STRUCT_DESC);
2317
      if (this.emailTo != null) {
2318
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
2319
        oprot.writeString(this.emailTo);
2320
        oprot.writeFieldEnd();
2321
      }
2322
      if (this.emailFrom != null) {
2323
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
2324
        oprot.writeString(this.emailFrom);
2325
        oprot.writeFieldEnd();
2326
      }
2327
      if (this.subject != null) {
2328
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
2329
        oprot.writeString(this.subject);
2330
        oprot.writeFieldEnd();
2331
      }
2332
      if (this.body != null) {
2333
        oprot.writeFieldBegin(BODY_FIELD_DESC);
2334
        oprot.writeString(this.body);
2335
        oprot.writeFieldEnd();
2336
      }
2337
      if (this.source != null) {
2338
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
2339
        oprot.writeString(this.source);
2340
        oprot.writeFieldEnd();
2341
      }
2342
      if (this.emailType != null) {
2343
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
2344
        oprot.writeString(this.emailType);
2345
        oprot.writeFieldEnd();
2346
      }
2347
      oprot.writeFieldStop();
2348
      oprot.writeStructEnd();
2349
    }
2350
 
2351
    @Override
2352
    public String toString() {
2353
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
2354
      boolean first = true;
2355
 
2356
      sb.append("emailTo:");
2357
      if (this.emailTo == null) {
2358
        sb.append("null");
2359
      } else {
2360
        sb.append(this.emailTo);
2361
      }
2362
      first = false;
2363
      if (!first) sb.append(", ");
2364
      sb.append("emailFrom:");
2365
      if (this.emailFrom == null) {
2366
        sb.append("null");
2367
      } else {
2368
        sb.append(this.emailFrom);
2369
      }
2370
      first = false;
2371
      if (!first) sb.append(", ");
2372
      sb.append("subject:");
2373
      if (this.subject == null) {
2374
        sb.append("null");
2375
      } else {
2376
        sb.append(this.subject);
2377
      }
2378
      first = false;
2379
      if (!first) sb.append(", ");
2380
      sb.append("body:");
2381
      if (this.body == null) {
2382
        sb.append("null");
2383
      } else {
2384
        sb.append(this.body);
2385
      }
2386
      first = false;
2387
      if (!first) sb.append(", ");
2388
      sb.append("source:");
2389
      if (this.source == null) {
2390
        sb.append("null");
2391
      } else {
2392
        sb.append(this.source);
2393
      }
2394
      first = false;
2395
      if (!first) sb.append(", ");
2396
      sb.append("emailType:");
2397
      if (this.emailType == null) {
2398
        sb.append("null");
2399
      } else {
2400
        sb.append(this.emailType);
2401
      }
2402
      first = false;
2403
      sb.append(")");
2404
      return sb.toString();
2405
    }
2406
 
3430 rajveer 2407
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 2408
      // check for required fields
2409
    }
2410
 
3430 rajveer 2411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2412
      try {
2413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2414
      } catch (org.apache.thrift.TException te) {
2415
        throw new java.io.IOException(te);
2416
      }
2417
    }
2418
 
2419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2420
      try {
2421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2422
      } catch (org.apache.thrift.TException te) {
2423
        throw new java.io.IOException(te);
2424
      }
2425
    }
2426
 
1395 varun.gupt 2427
  }
2428
 
3430 rajveer 2429
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
2430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 2431
 
3430 rajveer 2432
    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);
2433
    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 2434
 
3430 rajveer 2435
    private long success; // required
2436
    private HelperServiceException se; // required
1395 varun.gupt 2437
 
2438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2440
      SUCCESS((short)0, "success"),
1395 varun.gupt 2441
      SE((short)1, "se");
2442
 
2443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2444
 
2445
      static {
2446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2447
          byName.put(field.getFieldName(), field);
2448
        }
2449
      }
2450
 
2451
      /**
2452
       * Find the _Fields constant that matches fieldId, or null if its not found.
2453
       */
2454
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2455
        switch(fieldId) {
2456
          case 0: // SUCCESS
2457
            return SUCCESS;
2458
          case 1: // SE
2459
            return SE;
2460
          default:
2461
            return null;
2462
        }
1395 varun.gupt 2463
      }
2464
 
2465
      /**
2466
       * Find the _Fields constant that matches fieldId, throwing an exception
2467
       * if it is not found.
2468
       */
2469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2470
        _Fields fields = findByThriftId(fieldId);
2471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2472
        return fields;
2473
      }
2474
 
2475
      /**
2476
       * Find the _Fields constant that matches name, or null if its not found.
2477
       */
2478
      public static _Fields findByName(String name) {
2479
        return byName.get(name);
2480
      }
2481
 
2482
      private final short _thriftId;
2483
      private final String _fieldName;
2484
 
2485
      _Fields(short thriftId, String fieldName) {
2486
        _thriftId = thriftId;
2487
        _fieldName = fieldName;
2488
      }
2489
 
2490
      public short getThriftFieldId() {
2491
        return _thriftId;
2492
      }
2493
 
2494
      public String getFieldName() {
2495
        return _fieldName;
2496
      }
2497
    }
2498
 
2499
    // isset id assignments
3206 mandeep.dh 2500
    private static final int __SUCCESS_ISSET_ID = 0;
2501
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 2502
 
3430 rajveer 2503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2504
    static {
3430 rajveer 2505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2506
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2508
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 2512
    }
2513
 
2514
    public saveUserEmailForSending_result() {
2515
    }
2516
 
2517
    public saveUserEmailForSending_result(
3206 mandeep.dh 2518
      long success,
1395 varun.gupt 2519
      HelperServiceException se)
2520
    {
2521
      this();
3206 mandeep.dh 2522
      this.success = success;
2523
      setSuccessIsSet(true);
1395 varun.gupt 2524
      this.se = se;
2525
    }
2526
 
2527
    /**
2528
     * Performs a deep copy on <i>other</i>.
2529
     */
2530
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 2531
      __isset_bit_vector.clear();
2532
      __isset_bit_vector.or(other.__isset_bit_vector);
2533
      this.success = other.success;
1395 varun.gupt 2534
      if (other.isSetSe()) {
2535
        this.se = new HelperServiceException(other.se);
2536
      }
2537
    }
2538
 
2539
    public saveUserEmailForSending_result deepCopy() {
2540
      return new saveUserEmailForSending_result(this);
2541
    }
2542
 
3430 rajveer 2543
    @Override
2544
    public void clear() {
2545
      setSuccessIsSet(false);
2546
      this.success = 0;
2547
      this.se = null;
1395 varun.gupt 2548
    }
2549
 
3206 mandeep.dh 2550
    public long getSuccess() {
2551
      return this.success;
2552
    }
2553
 
3430 rajveer 2554
    public void setSuccess(long success) {
3206 mandeep.dh 2555
      this.success = success;
2556
      setSuccessIsSet(true);
2557
    }
2558
 
2559
    public void unsetSuccess() {
2560
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2561
    }
2562
 
3430 rajveer 2563
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 2564
    public boolean isSetSuccess() {
2565
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2566
    }
2567
 
2568
    public void setSuccessIsSet(boolean value) {
2569
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2570
    }
2571
 
1395 varun.gupt 2572
    public HelperServiceException getSe() {
2573
      return this.se;
2574
    }
2575
 
3430 rajveer 2576
    public void setSe(HelperServiceException se) {
1395 varun.gupt 2577
      this.se = se;
2578
    }
2579
 
2580
    public void unsetSe() {
2581
      this.se = null;
2582
    }
2583
 
3430 rajveer 2584
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2585
    public boolean isSetSe() {
2586
      return this.se != null;
2587
    }
2588
 
2589
    public void setSeIsSet(boolean value) {
2590
      if (!value) {
2591
        this.se = null;
2592
      }
2593
    }
2594
 
2595
    public void setFieldValue(_Fields field, Object value) {
2596
      switch (field) {
3206 mandeep.dh 2597
      case SUCCESS:
2598
        if (value == null) {
2599
          unsetSuccess();
2600
        } else {
2601
          setSuccess((Long)value);
2602
        }
2603
        break;
2604
 
1395 varun.gupt 2605
      case SE:
2606
        if (value == null) {
2607
          unsetSe();
2608
        } else {
2609
          setSe((HelperServiceException)value);
2610
        }
2611
        break;
2612
 
2613
      }
2614
    }
2615
 
2616
    public Object getFieldValue(_Fields field) {
2617
      switch (field) {
3206 mandeep.dh 2618
      case SUCCESS:
3430 rajveer 2619
        return Long.valueOf(getSuccess());
3206 mandeep.dh 2620
 
1395 varun.gupt 2621
      case SE:
2622
        return getSe();
2623
 
2624
      }
2625
      throw new IllegalStateException();
2626
    }
2627
 
3430 rajveer 2628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2629
    public boolean isSet(_Fields field) {
2630
      if (field == null) {
2631
        throw new IllegalArgumentException();
2632
      }
1395 varun.gupt 2633
 
2634
      switch (field) {
3206 mandeep.dh 2635
      case SUCCESS:
2636
        return isSetSuccess();
1395 varun.gupt 2637
      case SE:
2638
        return isSetSe();
2639
      }
2640
      throw new IllegalStateException();
2641
    }
2642
 
2643
    @Override
2644
    public boolean equals(Object that) {
2645
      if (that == null)
2646
        return false;
2647
      if (that instanceof saveUserEmailForSending_result)
2648
        return this.equals((saveUserEmailForSending_result)that);
2649
      return false;
2650
    }
2651
 
2652
    public boolean equals(saveUserEmailForSending_result that) {
2653
      if (that == null)
2654
        return false;
2655
 
3206 mandeep.dh 2656
      boolean this_present_success = true;
2657
      boolean that_present_success = true;
2658
      if (this_present_success || that_present_success) {
2659
        if (!(this_present_success && that_present_success))
2660
          return false;
2661
        if (this.success != that.success)
2662
          return false;
2663
      }
2664
 
1395 varun.gupt 2665
      boolean this_present_se = true && this.isSetSe();
2666
      boolean that_present_se = true && that.isSetSe();
2667
      if (this_present_se || that_present_se) {
2668
        if (!(this_present_se && that_present_se))
2669
          return false;
2670
        if (!this.se.equals(that.se))
2671
          return false;
2672
      }
2673
 
2674
      return true;
2675
    }
2676
 
2677
    @Override
2678
    public int hashCode() {
2679
      return 0;
2680
    }
2681
 
2682
    public int compareTo(saveUserEmailForSending_result other) {
2683
      if (!getClass().equals(other.getClass())) {
2684
        return getClass().getName().compareTo(other.getClass().getName());
2685
      }
2686
 
2687
      int lastComparison = 0;
2688
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
2689
 
3430 rajveer 2690
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 2691
      if (lastComparison != 0) {
2692
        return lastComparison;
2693
      }
3430 rajveer 2694
      if (isSetSuccess()) {
2695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2696
        if (lastComparison != 0) {
2697
          return lastComparison;
2698
        }
3206 mandeep.dh 2699
      }
3430 rajveer 2700
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 2701
      if (lastComparison != 0) {
2702
        return lastComparison;
2703
      }
3430 rajveer 2704
      if (isSetSe()) {
2705
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
2706
        if (lastComparison != 0) {
2707
          return lastComparison;
2708
        }
1395 varun.gupt 2709
      }
2710
      return 0;
2711
    }
2712
 
3430 rajveer 2713
    public _Fields fieldForId(int fieldId) {
2714
      return _Fields.findByThriftId(fieldId);
2715
    }
2716
 
2717
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2718
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2719
      iprot.readStructBegin();
2720
      while (true)
2721
      {
2722
        field = iprot.readFieldBegin();
3430 rajveer 2723
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2724
          break;
2725
        }
3430 rajveer 2726
        switch (field.id) {
2727
          case 0: // SUCCESS
2728
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2729
              this.success = iprot.readI64();
2730
              setSuccessIsSet(true);
2731
            } else { 
2732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2733
            }
2734
            break;
2735
          case 1: // SE
2736
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2737
              this.se = new HelperServiceException();
2738
              this.se.read(iprot);
2739
            } else { 
2740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2741
            }
2742
            break;
2743
          default:
2744
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2745
        }
3430 rajveer 2746
        iprot.readFieldEnd();
1395 varun.gupt 2747
      }
2748
      iprot.readStructEnd();
2749
      validate();
2750
    }
2751
 
3430 rajveer 2752
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2753
      oprot.writeStructBegin(STRUCT_DESC);
2754
 
3206 mandeep.dh 2755
      if (this.isSetSuccess()) {
2756
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2757
        oprot.writeI64(this.success);
2758
        oprot.writeFieldEnd();
2759
      } else if (this.isSetSe()) {
1395 varun.gupt 2760
        oprot.writeFieldBegin(SE_FIELD_DESC);
2761
        this.se.write(oprot);
2762
        oprot.writeFieldEnd();
2763
      }
2764
      oprot.writeFieldStop();
2765
      oprot.writeStructEnd();
2766
    }
2767
 
2768
    @Override
2769
    public String toString() {
2770
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
2771
      boolean first = true;
2772
 
3206 mandeep.dh 2773
      sb.append("success:");
2774
      sb.append(this.success);
2775
      first = false;
2776
      if (!first) sb.append(", ");
1395 varun.gupt 2777
      sb.append("se:");
2778
      if (this.se == null) {
2779
        sb.append("null");
2780
      } else {
2781
        sb.append(this.se);
2782
      }
2783
      first = false;
2784
      sb.append(")");
2785
      return sb.toString();
2786
    }
2787
 
3430 rajveer 2788
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 2789
      // check for required fields
2790
    }
2791
 
3430 rajveer 2792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2793
      try {
2794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2795
      } catch (org.apache.thrift.TException te) {
2796
        throw new java.io.IOException(te);
2797
      }
2798
    }
2799
 
2800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2801
      try {
2802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2803
      } catch (org.apache.thrift.TException te) {
2804
        throw new java.io.IOException(te);
2805
      }
2806
    }
2807
 
1395 varun.gupt 2808
  }
2809
 
3430 rajveer 2810
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
2811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 2812
 
2813
 
2814
 
2815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 2817
;
1422 varun.gupt 2818
 
2819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2820
 
2821
      static {
2822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2823
          byName.put(field.getFieldName(), field);
2824
        }
2825
      }
2826
 
2827
      /**
2828
       * Find the _Fields constant that matches fieldId, or null if its not found.
2829
       */
2830
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2831
        switch(fieldId) {
2832
          default:
2833
            return null;
2834
        }
1422 varun.gupt 2835
      }
2836
 
2837
      /**
2838
       * Find the _Fields constant that matches fieldId, throwing an exception
2839
       * if it is not found.
2840
       */
2841
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2842
        _Fields fields = findByThriftId(fieldId);
2843
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2844
        return fields;
2845
      }
2846
 
2847
      /**
2848
       * Find the _Fields constant that matches name, or null if its not found.
2849
       */
2850
      public static _Fields findByName(String name) {
2851
        return byName.get(name);
2852
      }
2853
 
2854
      private final short _thriftId;
2855
      private final String _fieldName;
2856
 
2857
      _Fields(short thriftId, String fieldName) {
2858
        _thriftId = thriftId;
2859
        _fieldName = fieldName;
2860
      }
2861
 
2862
      public short getThriftFieldId() {
2863
        return _thriftId;
2864
      }
2865
 
2866
      public String getFieldName() {
2867
        return _fieldName;
2868
      }
2869
    }
3430 rajveer 2870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 2871
    static {
3430 rajveer 2872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 2875
    }
2876
 
2877
    public getEmailsToBeSent_args() {
2878
    }
2879
 
2880
    /**
2881
     * Performs a deep copy on <i>other</i>.
2882
     */
2883
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
2884
    }
2885
 
2886
    public getEmailsToBeSent_args deepCopy() {
2887
      return new getEmailsToBeSent_args(this);
2888
    }
2889
 
3430 rajveer 2890
    @Override
2891
    public void clear() {
1422 varun.gupt 2892
    }
2893
 
2894
    public void setFieldValue(_Fields field, Object value) {
2895
      switch (field) {
2896
      }
2897
    }
2898
 
2899
    public Object getFieldValue(_Fields field) {
2900
      switch (field) {
2901
      }
2902
      throw new IllegalStateException();
2903
    }
2904
 
3430 rajveer 2905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2906
    public boolean isSet(_Fields field) {
2907
      if (field == null) {
2908
        throw new IllegalArgumentException();
2909
      }
1422 varun.gupt 2910
 
2911
      switch (field) {
2912
      }
2913
      throw new IllegalStateException();
2914
    }
2915
 
2916
    @Override
2917
    public boolean equals(Object that) {
2918
      if (that == null)
2919
        return false;
2920
      if (that instanceof getEmailsToBeSent_args)
2921
        return this.equals((getEmailsToBeSent_args)that);
2922
      return false;
2923
    }
2924
 
2925
    public boolean equals(getEmailsToBeSent_args that) {
2926
      if (that == null)
2927
        return false;
2928
 
2929
      return true;
2930
    }
2931
 
2932
    @Override
2933
    public int hashCode() {
2934
      return 0;
2935
    }
2936
 
2937
    public int compareTo(getEmailsToBeSent_args other) {
2938
      if (!getClass().equals(other.getClass())) {
2939
        return getClass().getName().compareTo(other.getClass().getName());
2940
      }
2941
 
2942
      int lastComparison = 0;
2943
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
2944
 
2945
      return 0;
2946
    }
2947
 
3430 rajveer 2948
    public _Fields fieldForId(int fieldId) {
2949
      return _Fields.findByThriftId(fieldId);
2950
    }
2951
 
2952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2953
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 2954
      iprot.readStructBegin();
2955
      while (true)
2956
      {
2957
        field = iprot.readFieldBegin();
3430 rajveer 2958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 2959
          break;
2960
        }
3430 rajveer 2961
        switch (field.id) {
2962
          default:
2963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 2964
        }
3430 rajveer 2965
        iprot.readFieldEnd();
1422 varun.gupt 2966
      }
2967
      iprot.readStructEnd();
2968
      validate();
2969
    }
2970
 
3430 rajveer 2971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 2972
      validate();
2973
 
2974
      oprot.writeStructBegin(STRUCT_DESC);
2975
      oprot.writeFieldStop();
2976
      oprot.writeStructEnd();
2977
    }
2978
 
2979
    @Override
2980
    public String toString() {
2981
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
2982
      boolean first = true;
2983
 
2984
      sb.append(")");
2985
      return sb.toString();
2986
    }
2987
 
3430 rajveer 2988
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 2989
      // check for required fields
2990
    }
2991
 
3430 rajveer 2992
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2993
      try {
2994
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2995
      } catch (org.apache.thrift.TException te) {
2996
        throw new java.io.IOException(te);
2997
      }
2998
    }
2999
 
3000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3001
      try {
3002
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3003
      } catch (org.apache.thrift.TException te) {
3004
        throw new java.io.IOException(te);
3005
      }
3006
    }
3007
 
1422 varun.gupt 3008
  }
3009
 
3430 rajveer 3010
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3011
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3012
 
3430 rajveer 3013
    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);
3014
    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 3015
 
3430 rajveer 3016
    private List<UserEmail> success; // required
3017
    private HelperServiceException se; // required
1422 varun.gupt 3018
 
3019
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3020
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3021
      SUCCESS((short)0, "success"),
3022
      SE((short)1, "se");
3023
 
3024
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3025
 
3026
      static {
3027
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3028
          byName.put(field.getFieldName(), field);
3029
        }
3030
      }
3031
 
3032
      /**
3033
       * Find the _Fields constant that matches fieldId, or null if its not found.
3034
       */
3035
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3036
        switch(fieldId) {
3037
          case 0: // SUCCESS
3038
            return SUCCESS;
3039
          case 1: // SE
3040
            return SE;
3041
          default:
3042
            return null;
3043
        }
1422 varun.gupt 3044
      }
3045
 
3046
      /**
3047
       * Find the _Fields constant that matches fieldId, throwing an exception
3048
       * if it is not found.
3049
       */
3050
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3051
        _Fields fields = findByThriftId(fieldId);
3052
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3053
        return fields;
3054
      }
3055
 
3056
      /**
3057
       * Find the _Fields constant that matches name, or null if its not found.
3058
       */
3059
      public static _Fields findByName(String name) {
3060
        return byName.get(name);
3061
      }
3062
 
3063
      private final short _thriftId;
3064
      private final String _fieldName;
3065
 
3066
      _Fields(short thriftId, String fieldName) {
3067
        _thriftId = thriftId;
3068
        _fieldName = fieldName;
3069
      }
3070
 
3071
      public short getThriftFieldId() {
3072
        return _thriftId;
3073
      }
3074
 
3075
      public String getFieldName() {
3076
        return _fieldName;
3077
      }
3078
    }
3079
 
3080
    // isset id assignments
3081
 
3430 rajveer 3082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3083
    static {
3430 rajveer 3084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3085
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3086
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3087
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3088
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3092
    }
3093
 
3094
    public getEmailsToBeSent_result() {
3095
    }
3096
 
3097
    public getEmailsToBeSent_result(
3098
      List<UserEmail> success,
3099
      HelperServiceException se)
3100
    {
3101
      this();
3102
      this.success = success;
3103
      this.se = se;
3104
    }
3105
 
3106
    /**
3107
     * Performs a deep copy on <i>other</i>.
3108
     */
3109
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3110
      if (other.isSetSuccess()) {
3111
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3112
        for (UserEmail other_element : other.success) {
3113
          __this__success.add(new UserEmail(other_element));
3114
        }
3115
        this.success = __this__success;
3116
      }
3117
      if (other.isSetSe()) {
3118
        this.se = new HelperServiceException(other.se);
3119
      }
3120
    }
3121
 
3122
    public getEmailsToBeSent_result deepCopy() {
3123
      return new getEmailsToBeSent_result(this);
3124
    }
3125
 
3430 rajveer 3126
    @Override
3127
    public void clear() {
3128
      this.success = null;
3129
      this.se = null;
1422 varun.gupt 3130
    }
3131
 
3132
    public int getSuccessSize() {
3133
      return (this.success == null) ? 0 : this.success.size();
3134
    }
3135
 
3136
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3137
      return (this.success == null) ? null : this.success.iterator();
3138
    }
3139
 
3140
    public void addToSuccess(UserEmail elem) {
3141
      if (this.success == null) {
3142
        this.success = new ArrayList<UserEmail>();
3143
      }
3144
      this.success.add(elem);
3145
    }
3146
 
3147
    public List<UserEmail> getSuccess() {
3148
      return this.success;
3149
    }
3150
 
3430 rajveer 3151
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3152
      this.success = success;
3153
    }
3154
 
3155
    public void unsetSuccess() {
3156
      this.success = null;
3157
    }
3158
 
3430 rajveer 3159
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3160
    public boolean isSetSuccess() {
3161
      return this.success != null;
3162
    }
3163
 
3164
    public void setSuccessIsSet(boolean value) {
3165
      if (!value) {
3166
        this.success = null;
3167
      }
3168
    }
3169
 
3170
    public HelperServiceException getSe() {
3171
      return this.se;
3172
    }
3173
 
3430 rajveer 3174
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3175
      this.se = se;
3176
    }
3177
 
3178
    public void unsetSe() {
3179
      this.se = null;
3180
    }
3181
 
3430 rajveer 3182
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3183
    public boolean isSetSe() {
3184
      return this.se != null;
3185
    }
3186
 
3187
    public void setSeIsSet(boolean value) {
3188
      if (!value) {
3189
        this.se = null;
3190
      }
3191
    }
3192
 
3193
    public void setFieldValue(_Fields field, Object value) {
3194
      switch (field) {
3195
      case SUCCESS:
3196
        if (value == null) {
3197
          unsetSuccess();
3198
        } else {
3199
          setSuccess((List<UserEmail>)value);
3200
        }
3201
        break;
3202
 
3203
      case SE:
3204
        if (value == null) {
3205
          unsetSe();
3206
        } else {
3207
          setSe((HelperServiceException)value);
3208
        }
3209
        break;
3210
 
3211
      }
3212
    }
3213
 
3214
    public Object getFieldValue(_Fields field) {
3215
      switch (field) {
3216
      case SUCCESS:
3217
        return getSuccess();
3218
 
3219
      case SE:
3220
        return getSe();
3221
 
3222
      }
3223
      throw new IllegalStateException();
3224
    }
3225
 
3430 rajveer 3226
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3227
    public boolean isSet(_Fields field) {
3228
      if (field == null) {
3229
        throw new IllegalArgumentException();
3230
      }
1422 varun.gupt 3231
 
3232
      switch (field) {
3233
      case SUCCESS:
3234
        return isSetSuccess();
3235
      case SE:
3236
        return isSetSe();
3237
      }
3238
      throw new IllegalStateException();
3239
    }
3240
 
3241
    @Override
3242
    public boolean equals(Object that) {
3243
      if (that == null)
3244
        return false;
3245
      if (that instanceof getEmailsToBeSent_result)
3246
        return this.equals((getEmailsToBeSent_result)that);
3247
      return false;
3248
    }
3249
 
3250
    public boolean equals(getEmailsToBeSent_result that) {
3251
      if (that == null)
3252
        return false;
3253
 
3254
      boolean this_present_success = true && this.isSetSuccess();
3255
      boolean that_present_success = true && that.isSetSuccess();
3256
      if (this_present_success || that_present_success) {
3257
        if (!(this_present_success && that_present_success))
3258
          return false;
3259
        if (!this.success.equals(that.success))
3260
          return false;
3261
      }
3262
 
3263
      boolean this_present_se = true && this.isSetSe();
3264
      boolean that_present_se = true && that.isSetSe();
3265
      if (this_present_se || that_present_se) {
3266
        if (!(this_present_se && that_present_se))
3267
          return false;
3268
        if (!this.se.equals(that.se))
3269
          return false;
3270
      }
3271
 
3272
      return true;
3273
    }
3274
 
3275
    @Override
3276
    public int hashCode() {
3277
      return 0;
3278
    }
3279
 
3280
    public int compareTo(getEmailsToBeSent_result other) {
3281
      if (!getClass().equals(other.getClass())) {
3282
        return getClass().getName().compareTo(other.getClass().getName());
3283
      }
3284
 
3285
      int lastComparison = 0;
3286
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
3287
 
3430 rajveer 3288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 3289
      if (lastComparison != 0) {
3290
        return lastComparison;
3291
      }
3430 rajveer 3292
      if (isSetSuccess()) {
3293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3294
        if (lastComparison != 0) {
3295
          return lastComparison;
3296
        }
1422 varun.gupt 3297
      }
3430 rajveer 3298
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 3299
      if (lastComparison != 0) {
3300
        return lastComparison;
3301
      }
3430 rajveer 3302
      if (isSetSe()) {
3303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3304
        if (lastComparison != 0) {
3305
          return lastComparison;
3306
        }
1422 varun.gupt 3307
      }
3308
      return 0;
3309
    }
3310
 
3430 rajveer 3311
    public _Fields fieldForId(int fieldId) {
3312
      return _Fields.findByThriftId(fieldId);
3313
    }
3314
 
3315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3316
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3317
      iprot.readStructBegin();
3318
      while (true)
3319
      {
3320
        field = iprot.readFieldBegin();
3430 rajveer 3321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3322
          break;
3323
        }
3430 rajveer 3324
        switch (field.id) {
3325
          case 0: // SUCCESS
3326
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3327
              {
3328
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
3329
                this.success = new ArrayList<UserEmail>(_list8.size);
3330
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 3331
                {
3430 rajveer 3332
                  UserEmail _elem10; // required
3333
                  _elem10 = new UserEmail();
3334
                  _elem10.read(iprot);
3335
                  this.success.add(_elem10);
1422 varun.gupt 3336
                }
3430 rajveer 3337
                iprot.readListEnd();
1422 varun.gupt 3338
              }
3430 rajveer 3339
            } else { 
3340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3341
            }
3342
            break;
3343
          case 1: // SE
3344
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3345
              this.se = new HelperServiceException();
3346
              this.se.read(iprot);
3347
            } else { 
3348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3349
            }
3350
            break;
3351
          default:
3352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3353
        }
3430 rajveer 3354
        iprot.readFieldEnd();
1422 varun.gupt 3355
      }
3356
      iprot.readStructEnd();
3357
      validate();
3358
    }
3359
 
3430 rajveer 3360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3361
      oprot.writeStructBegin(STRUCT_DESC);
3362
 
3363
      if (this.isSetSuccess()) {
3364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3365
        {
3430 rajveer 3366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 3367
          for (UserEmail _iter11 : this.success)
3368
          {
3369
            _iter11.write(oprot);
3370
          }
3371
          oprot.writeListEnd();
3372
        }
3373
        oprot.writeFieldEnd();
3374
      } else if (this.isSetSe()) {
3375
        oprot.writeFieldBegin(SE_FIELD_DESC);
3376
        this.se.write(oprot);
3377
        oprot.writeFieldEnd();
3378
      }
3379
      oprot.writeFieldStop();
3380
      oprot.writeStructEnd();
3381
    }
3382
 
3383
    @Override
3384
    public String toString() {
3385
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
3386
      boolean first = true;
3387
 
3388
      sb.append("success:");
3389
      if (this.success == null) {
3390
        sb.append("null");
3391
      } else {
3392
        sb.append(this.success);
3393
      }
3394
      first = false;
3395
      if (!first) sb.append(", ");
3396
      sb.append("se:");
3397
      if (this.se == null) {
3398
        sb.append("null");
3399
      } else {
3400
        sb.append(this.se);
3401
      }
3402
      first = false;
3403
      sb.append(")");
3404
      return sb.toString();
3405
    }
3406
 
3430 rajveer 3407
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3408
      // check for required fields
3409
    }
3410
 
3430 rajveer 3411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3412
      try {
3413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3414
      } catch (org.apache.thrift.TException te) {
3415
        throw new java.io.IOException(te);
3416
      }
3417
    }
3418
 
3419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3420
      try {
3421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3422
      } catch (org.apache.thrift.TException te) {
3423
        throw new java.io.IOException(te);
3424
      }
3425
    }
3426
 
1422 varun.gupt 3427
  }
3428
 
3430 rajveer 3429
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
3430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 3431
 
3430 rajveer 3432
    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 3433
 
3430 rajveer 3434
    private long emailId; // required
1422 varun.gupt 3435
 
3436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3438
      EMAIL_ID((short)1, "emailId");
3439
 
3440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3441
 
3442
      static {
3443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3444
          byName.put(field.getFieldName(), field);
3445
        }
3446
      }
3447
 
3448
      /**
3449
       * Find the _Fields constant that matches fieldId, or null if its not found.
3450
       */
3451
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3452
        switch(fieldId) {
3453
          case 1: // EMAIL_ID
3454
            return EMAIL_ID;
3455
          default:
3456
            return null;
3457
        }
1422 varun.gupt 3458
      }
3459
 
3460
      /**
3461
       * Find the _Fields constant that matches fieldId, throwing an exception
3462
       * if it is not found.
3463
       */
3464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3465
        _Fields fields = findByThriftId(fieldId);
3466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3467
        return fields;
3468
      }
3469
 
3470
      /**
3471
       * Find the _Fields constant that matches name, or null if its not found.
3472
       */
3473
      public static _Fields findByName(String name) {
3474
        return byName.get(name);
3475
      }
3476
 
3477
      private final short _thriftId;
3478
      private final String _fieldName;
3479
 
3480
      _Fields(short thriftId, String fieldName) {
3481
        _thriftId = thriftId;
3482
        _fieldName = fieldName;
3483
      }
3484
 
3485
      public short getThriftFieldId() {
3486
        return _thriftId;
3487
      }
3488
 
3489
      public String getFieldName() {
3490
        return _fieldName;
3491
      }
3492
    }
3493
 
3494
    // isset id assignments
3495
    private static final int __EMAILID_ISSET_ID = 0;
3496
    private BitSet __isset_bit_vector = new BitSet(1);
3497
 
3430 rajveer 3498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3499
    static {
3430 rajveer 3500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3501
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 3505
    }
3506
 
3507
    public markEmailAsSent_args() {
3508
    }
3509
 
3510
    public markEmailAsSent_args(
3511
      long emailId)
3512
    {
3513
      this();
3514
      this.emailId = emailId;
3515
      setEmailIdIsSet(true);
3516
    }
3517
 
3518
    /**
3519
     * Performs a deep copy on <i>other</i>.
3520
     */
3521
    public markEmailAsSent_args(markEmailAsSent_args other) {
3522
      __isset_bit_vector.clear();
3523
      __isset_bit_vector.or(other.__isset_bit_vector);
3524
      this.emailId = other.emailId;
3525
    }
3526
 
3527
    public markEmailAsSent_args deepCopy() {
3528
      return new markEmailAsSent_args(this);
3529
    }
3530
 
3430 rajveer 3531
    @Override
3532
    public void clear() {
3533
      setEmailIdIsSet(false);
3534
      this.emailId = 0;
1422 varun.gupt 3535
    }
3536
 
3537
    public long getEmailId() {
3538
      return this.emailId;
3539
    }
3540
 
3430 rajveer 3541
    public void setEmailId(long emailId) {
1422 varun.gupt 3542
      this.emailId = emailId;
3543
      setEmailIdIsSet(true);
3544
    }
3545
 
3546
    public void unsetEmailId() {
3547
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
3548
    }
3549
 
3430 rajveer 3550
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3551
    public boolean isSetEmailId() {
3552
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
3553
    }
3554
 
3555
    public void setEmailIdIsSet(boolean value) {
3556
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
3557
    }
3558
 
3559
    public void setFieldValue(_Fields field, Object value) {
3560
      switch (field) {
3561
      case EMAIL_ID:
3562
        if (value == null) {
3563
          unsetEmailId();
3564
        } else {
3565
          setEmailId((Long)value);
3566
        }
3567
        break;
3568
 
3569
      }
3570
    }
3571
 
3572
    public Object getFieldValue(_Fields field) {
3573
      switch (field) {
3574
      case EMAIL_ID:
3430 rajveer 3575
        return Long.valueOf(getEmailId());
1422 varun.gupt 3576
 
3577
      }
3578
      throw new IllegalStateException();
3579
    }
3580
 
3430 rajveer 3581
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3582
    public boolean isSet(_Fields field) {
3583
      if (field == null) {
3584
        throw new IllegalArgumentException();
3585
      }
1422 varun.gupt 3586
 
3587
      switch (field) {
3588
      case EMAIL_ID:
3589
        return isSetEmailId();
3590
      }
3591
      throw new IllegalStateException();
3592
    }
3593
 
3594
    @Override
3595
    public boolean equals(Object that) {
3596
      if (that == null)
3597
        return false;
3598
      if (that instanceof markEmailAsSent_args)
3599
        return this.equals((markEmailAsSent_args)that);
3600
      return false;
3601
    }
3602
 
3603
    public boolean equals(markEmailAsSent_args that) {
3604
      if (that == null)
3605
        return false;
3606
 
3607
      boolean this_present_emailId = true;
3608
      boolean that_present_emailId = true;
3609
      if (this_present_emailId || that_present_emailId) {
3610
        if (!(this_present_emailId && that_present_emailId))
3611
          return false;
3612
        if (this.emailId != that.emailId)
3613
          return false;
3614
      }
3615
 
3616
      return true;
3617
    }
3618
 
3619
    @Override
3620
    public int hashCode() {
3621
      return 0;
3622
    }
3623
 
3624
    public int compareTo(markEmailAsSent_args other) {
3625
      if (!getClass().equals(other.getClass())) {
3626
        return getClass().getName().compareTo(other.getClass().getName());
3627
      }
3628
 
3629
      int lastComparison = 0;
3630
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
3631
 
3430 rajveer 3632
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 3633
      if (lastComparison != 0) {
3634
        return lastComparison;
3635
      }
3430 rajveer 3636
      if (isSetEmailId()) {
3637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
3638
        if (lastComparison != 0) {
3639
          return lastComparison;
3640
        }
1422 varun.gupt 3641
      }
3642
      return 0;
3643
    }
3644
 
3430 rajveer 3645
    public _Fields fieldForId(int fieldId) {
3646
      return _Fields.findByThriftId(fieldId);
3647
    }
3648
 
3649
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3650
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3651
      iprot.readStructBegin();
3652
      while (true)
3653
      {
3654
        field = iprot.readFieldBegin();
3430 rajveer 3655
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3656
          break;
3657
        }
3430 rajveer 3658
        switch (field.id) {
3659
          case 1: // EMAIL_ID
3660
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3661
              this.emailId = iprot.readI64();
3662
              setEmailIdIsSet(true);
3663
            } else { 
3664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3665
            }
3666
            break;
3667
          default:
3668
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3669
        }
3430 rajveer 3670
        iprot.readFieldEnd();
1422 varun.gupt 3671
      }
3672
      iprot.readStructEnd();
3673
      validate();
3674
    }
3675
 
3430 rajveer 3676
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3677
      validate();
3678
 
3679
      oprot.writeStructBegin(STRUCT_DESC);
3680
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
3681
      oprot.writeI64(this.emailId);
3682
      oprot.writeFieldEnd();
3683
      oprot.writeFieldStop();
3684
      oprot.writeStructEnd();
3685
    }
3686
 
3687
    @Override
3688
    public String toString() {
3689
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
3690
      boolean first = true;
3691
 
3692
      sb.append("emailId:");
3693
      sb.append(this.emailId);
3694
      first = false;
3695
      sb.append(")");
3696
      return sb.toString();
3697
    }
3698
 
3430 rajveer 3699
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3700
      // check for required fields
3701
    }
3702
 
3430 rajveer 3703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3704
      try {
3705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3706
      } catch (org.apache.thrift.TException te) {
3707
        throw new java.io.IOException(te);
3708
      }
3709
    }
3710
 
3711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3712
      try {
3713
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3714
        __isset_bit_vector = new BitSet(1);
3715
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3716
      } catch (org.apache.thrift.TException te) {
3717
        throw new java.io.IOException(te);
3718
      }
3719
    }
3720
 
1422 varun.gupt 3721
  }
3722
 
3430 rajveer 3723
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
3724
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 3725
 
3430 rajveer 3726
    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 3727
 
3430 rajveer 3728
    private HelperServiceException se; // required
1422 varun.gupt 3729
 
3730
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3731
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3732
      SE((short)1, "se");
3733
 
3734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3735
 
3736
      static {
3737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3738
          byName.put(field.getFieldName(), field);
3739
        }
3740
      }
3741
 
3742
      /**
3743
       * Find the _Fields constant that matches fieldId, or null if its not found.
3744
       */
3745
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3746
        switch(fieldId) {
3747
          case 1: // SE
3748
            return SE;
3749
          default:
3750
            return null;
3751
        }
1422 varun.gupt 3752
      }
3753
 
3754
      /**
3755
       * Find the _Fields constant that matches fieldId, throwing an exception
3756
       * if it is not found.
3757
       */
3758
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3759
        _Fields fields = findByThriftId(fieldId);
3760
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3761
        return fields;
3762
      }
3763
 
3764
      /**
3765
       * Find the _Fields constant that matches name, or null if its not found.
3766
       */
3767
      public static _Fields findByName(String name) {
3768
        return byName.get(name);
3769
      }
3770
 
3771
      private final short _thriftId;
3772
      private final String _fieldName;
3773
 
3774
      _Fields(short thriftId, String fieldName) {
3775
        _thriftId = thriftId;
3776
        _fieldName = fieldName;
3777
      }
3778
 
3779
      public short getThriftFieldId() {
3780
        return _thriftId;
3781
      }
3782
 
3783
      public String getFieldName() {
3784
        return _fieldName;
3785
      }
3786
    }
3787
 
3788
    // isset id assignments
3789
 
3430 rajveer 3790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3791
    static {
3430 rajveer 3792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3793
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 3797
    }
3798
 
3799
    public markEmailAsSent_result() {
3800
    }
3801
 
3802
    public markEmailAsSent_result(
3803
      HelperServiceException se)
3804
    {
3805
      this();
3806
      this.se = se;
3807
    }
3808
 
3809
    /**
3810
     * Performs a deep copy on <i>other</i>.
3811
     */
3812
    public markEmailAsSent_result(markEmailAsSent_result other) {
3813
      if (other.isSetSe()) {
3814
        this.se = new HelperServiceException(other.se);
3815
      }
3816
    }
3817
 
3818
    public markEmailAsSent_result deepCopy() {
3819
      return new markEmailAsSent_result(this);
3820
    }
3821
 
3430 rajveer 3822
    @Override
3823
    public void clear() {
3824
      this.se = null;
1422 varun.gupt 3825
    }
3826
 
3827
    public HelperServiceException getSe() {
3828
      return this.se;
3829
    }
3830
 
3430 rajveer 3831
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3832
      this.se = se;
3833
    }
3834
 
3835
    public void unsetSe() {
3836
      this.se = null;
3837
    }
3838
 
3430 rajveer 3839
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3840
    public boolean isSetSe() {
3841
      return this.se != null;
3842
    }
3843
 
3844
    public void setSeIsSet(boolean value) {
3845
      if (!value) {
3846
        this.se = null;
3847
      }
3848
    }
3849
 
3850
    public void setFieldValue(_Fields field, Object value) {
3851
      switch (field) {
3852
      case SE:
3853
        if (value == null) {
3854
          unsetSe();
3855
        } else {
3856
          setSe((HelperServiceException)value);
3857
        }
3858
        break;
3859
 
3860
      }
3861
    }
3862
 
3863
    public Object getFieldValue(_Fields field) {
3864
      switch (field) {
3865
      case SE:
3866
        return getSe();
3867
 
3868
      }
3869
      throw new IllegalStateException();
3870
    }
3871
 
3430 rajveer 3872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3873
    public boolean isSet(_Fields field) {
3874
      if (field == null) {
3875
        throw new IllegalArgumentException();
3876
      }
1422 varun.gupt 3877
 
3878
      switch (field) {
3879
      case SE:
3880
        return isSetSe();
3881
      }
3882
      throw new IllegalStateException();
3883
    }
3884
 
3885
    @Override
3886
    public boolean equals(Object that) {
3887
      if (that == null)
3888
        return false;
3889
      if (that instanceof markEmailAsSent_result)
3890
        return this.equals((markEmailAsSent_result)that);
3891
      return false;
3892
    }
3893
 
3894
    public boolean equals(markEmailAsSent_result that) {
3895
      if (that == null)
3896
        return false;
3897
 
3898
      boolean this_present_se = true && this.isSetSe();
3899
      boolean that_present_se = true && that.isSetSe();
3900
      if (this_present_se || that_present_se) {
3901
        if (!(this_present_se && that_present_se))
3902
          return false;
3903
        if (!this.se.equals(that.se))
3904
          return false;
3905
      }
3906
 
3907
      return true;
3908
    }
3909
 
3910
    @Override
3911
    public int hashCode() {
3912
      return 0;
3913
    }
3914
 
3915
    public int compareTo(markEmailAsSent_result other) {
3916
      if (!getClass().equals(other.getClass())) {
3917
        return getClass().getName().compareTo(other.getClass().getName());
3918
      }
3919
 
3920
      int lastComparison = 0;
3921
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
3922
 
3430 rajveer 3923
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 3924
      if (lastComparison != 0) {
3925
        return lastComparison;
3926
      }
3430 rajveer 3927
      if (isSetSe()) {
3928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3929
        if (lastComparison != 0) {
3930
          return lastComparison;
3931
        }
1422 varun.gupt 3932
      }
3933
      return 0;
3934
    }
3935
 
3430 rajveer 3936
    public _Fields fieldForId(int fieldId) {
3937
      return _Fields.findByThriftId(fieldId);
3938
    }
3939
 
3940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3941
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3942
      iprot.readStructBegin();
3943
      while (true)
3944
      {
3945
        field = iprot.readFieldBegin();
3430 rajveer 3946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3947
          break;
3948
        }
3430 rajveer 3949
        switch (field.id) {
3950
          case 1: // SE
3951
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3952
              this.se = new HelperServiceException();
3953
              this.se.read(iprot);
3954
            } else { 
3955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3956
            }
3957
            break;
3958
          default:
3959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3960
        }
3430 rajveer 3961
        iprot.readFieldEnd();
1422 varun.gupt 3962
      }
3963
      iprot.readStructEnd();
3964
      validate();
3965
    }
3966
 
3430 rajveer 3967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3968
      oprot.writeStructBegin(STRUCT_DESC);
3969
 
3970
      if (this.isSetSe()) {
3971
        oprot.writeFieldBegin(SE_FIELD_DESC);
3972
        this.se.write(oprot);
3973
        oprot.writeFieldEnd();
3974
      }
3975
      oprot.writeFieldStop();
3976
      oprot.writeStructEnd();
3977
    }
3978
 
3979
    @Override
3980
    public String toString() {
3981
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
3982
      boolean first = true;
3983
 
3984
      sb.append("se:");
3985
      if (this.se == null) {
3986
        sb.append("null");
3987
      } else {
3988
        sb.append(this.se);
3989
      }
3990
      first = false;
3991
      sb.append(")");
3992
      return sb.toString();
3993
    }
3994
 
3430 rajveer 3995
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3996
      // check for required fields
3997
    }
3998
 
3430 rajveer 3999
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4000
      try {
4001
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4002
      } catch (org.apache.thrift.TException te) {
4003
        throw new java.io.IOException(te);
4004
      }
4005
    }
4006
 
4007
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4008
      try {
4009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4010
      } catch (org.apache.thrift.TException te) {
4011
        throw new java.io.IOException(te);
4012
      }
4013
    }
4014
 
1422 varun.gupt 4015
  }
4016
 
3430 rajveer 4017
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4018
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4019
 
3430 rajveer 4020
    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 4021
 
3430 rajveer 4022
    private Mail mail; // required
352 ashish 4023
 
4024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4026
      MAIL((short)1, "mail");
4027
 
4028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4029
 
4030
      static {
4031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4032
          byName.put(field.getFieldName(), field);
4033
        }
4034
      }
4035
 
4036
      /**
4037
       * Find the _Fields constant that matches fieldId, or null if its not found.
4038
       */
4039
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4040
        switch(fieldId) {
4041
          case 1: // MAIL
4042
            return MAIL;
4043
          default:
4044
            return null;
4045
        }
352 ashish 4046
      }
4047
 
4048
      /**
4049
       * Find the _Fields constant that matches fieldId, throwing an exception
4050
       * if it is not found.
4051
       */
4052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4053
        _Fields fields = findByThriftId(fieldId);
4054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4055
        return fields;
4056
      }
4057
 
4058
      /**
4059
       * Find the _Fields constant that matches name, or null if its not found.
4060
       */
4061
      public static _Fields findByName(String name) {
4062
        return byName.get(name);
4063
      }
4064
 
4065
      private final short _thriftId;
4066
      private final String _fieldName;
4067
 
4068
      _Fields(short thriftId, String fieldName) {
4069
        _thriftId = thriftId;
4070
        _fieldName = fieldName;
4071
      }
4072
 
4073
      public short getThriftFieldId() {
4074
        return _thriftId;
4075
      }
4076
 
4077
      public String getFieldName() {
4078
        return _fieldName;
4079
      }
4080
    }
4081
 
4082
    // isset id assignments
4083
 
3430 rajveer 4084
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4085
    static {
3430 rajveer 4086
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4087
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4088
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4089
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4090
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4091
    }
4092
 
4093
    public sendMail_args() {
4094
    }
4095
 
4096
    public sendMail_args(
4097
      Mail mail)
4098
    {
4099
      this();
4100
      this.mail = mail;
4101
    }
4102
 
4103
    /**
4104
     * Performs a deep copy on <i>other</i>.
4105
     */
4106
    public sendMail_args(sendMail_args other) {
4107
      if (other.isSetMail()) {
4108
        this.mail = new Mail(other.mail);
4109
      }
4110
    }
4111
 
4112
    public sendMail_args deepCopy() {
4113
      return new sendMail_args(this);
4114
    }
4115
 
3430 rajveer 4116
    @Override
4117
    public void clear() {
4118
      this.mail = null;
352 ashish 4119
    }
4120
 
4121
    public Mail getMail() {
4122
      return this.mail;
4123
    }
4124
 
3430 rajveer 4125
    public void setMail(Mail mail) {
352 ashish 4126
      this.mail = mail;
4127
    }
4128
 
4129
    public void unsetMail() {
4130
      this.mail = null;
4131
    }
4132
 
3430 rajveer 4133
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4134
    public boolean isSetMail() {
4135
      return this.mail != null;
4136
    }
4137
 
4138
    public void setMailIsSet(boolean value) {
4139
      if (!value) {
4140
        this.mail = null;
4141
      }
4142
    }
4143
 
4144
    public void setFieldValue(_Fields field, Object value) {
4145
      switch (field) {
4146
      case MAIL:
4147
        if (value == null) {
4148
          unsetMail();
4149
        } else {
4150
          setMail((Mail)value);
4151
        }
4152
        break;
4153
 
4154
      }
4155
    }
4156
 
4157
    public Object getFieldValue(_Fields field) {
4158
      switch (field) {
4159
      case MAIL:
4160
        return getMail();
4161
 
4162
      }
4163
      throw new IllegalStateException();
4164
    }
4165
 
3430 rajveer 4166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4167
    public boolean isSet(_Fields field) {
4168
      if (field == null) {
4169
        throw new IllegalArgumentException();
4170
      }
352 ashish 4171
 
4172
      switch (field) {
4173
      case MAIL:
4174
        return isSetMail();
4175
      }
4176
      throw new IllegalStateException();
4177
    }
4178
 
4179
    @Override
4180
    public boolean equals(Object that) {
4181
      if (that == null)
4182
        return false;
4183
      if (that instanceof sendMail_args)
4184
        return this.equals((sendMail_args)that);
4185
      return false;
4186
    }
4187
 
4188
    public boolean equals(sendMail_args that) {
4189
      if (that == null)
4190
        return false;
4191
 
4192
      boolean this_present_mail = true && this.isSetMail();
4193
      boolean that_present_mail = true && that.isSetMail();
4194
      if (this_present_mail || that_present_mail) {
4195
        if (!(this_present_mail && that_present_mail))
4196
          return false;
4197
        if (!this.mail.equals(that.mail))
4198
          return false;
4199
      }
4200
 
4201
      return true;
4202
    }
4203
 
4204
    @Override
4205
    public int hashCode() {
4206
      return 0;
4207
    }
4208
 
4209
    public int compareTo(sendMail_args other) {
4210
      if (!getClass().equals(other.getClass())) {
4211
        return getClass().getName().compareTo(other.getClass().getName());
4212
      }
4213
 
4214
      int lastComparison = 0;
4215
      sendMail_args typedOther = (sendMail_args)other;
4216
 
3430 rajveer 4217
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 4218
      if (lastComparison != 0) {
4219
        return lastComparison;
4220
      }
3430 rajveer 4221
      if (isSetMail()) {
4222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
4223
        if (lastComparison != 0) {
4224
          return lastComparison;
4225
        }
352 ashish 4226
      }
4227
      return 0;
4228
    }
4229
 
3430 rajveer 4230
    public _Fields fieldForId(int fieldId) {
4231
      return _Fields.findByThriftId(fieldId);
4232
    }
4233
 
4234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4235
      org.apache.thrift.protocol.TField field;
352 ashish 4236
      iprot.readStructBegin();
4237
      while (true)
4238
      {
4239
        field = iprot.readFieldBegin();
3430 rajveer 4240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4241
          break;
4242
        }
3430 rajveer 4243
        switch (field.id) {
4244
          case 1: // MAIL
4245
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4246
              this.mail = new Mail();
4247
              this.mail.read(iprot);
4248
            } else { 
4249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4250
            }
4251
            break;
4252
          default:
4253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4254
        }
3430 rajveer 4255
        iprot.readFieldEnd();
352 ashish 4256
      }
4257
      iprot.readStructEnd();
4258
      validate();
4259
    }
4260
 
3430 rajveer 4261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4262
      validate();
4263
 
4264
      oprot.writeStructBegin(STRUCT_DESC);
4265
      if (this.mail != null) {
4266
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4267
        this.mail.write(oprot);
4268
        oprot.writeFieldEnd();
4269
      }
4270
      oprot.writeFieldStop();
4271
      oprot.writeStructEnd();
4272
    }
4273
 
4274
    @Override
4275
    public String toString() {
4276
      StringBuilder sb = new StringBuilder("sendMail_args(");
4277
      boolean first = true;
4278
 
4279
      sb.append("mail:");
4280
      if (this.mail == null) {
4281
        sb.append("null");
4282
      } else {
4283
        sb.append(this.mail);
4284
      }
4285
      first = false;
4286
      sb.append(")");
4287
      return sb.toString();
4288
    }
4289
 
3430 rajveer 4290
    public void validate() throws org.apache.thrift.TException {
352 ashish 4291
      // check for required fields
4292
    }
4293
 
3430 rajveer 4294
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4295
      try {
4296
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4297
      } catch (org.apache.thrift.TException te) {
4298
        throw new java.io.IOException(te);
4299
      }
4300
    }
4301
 
4302
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4303
      try {
4304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4305
      } catch (org.apache.thrift.TException te) {
4306
        throw new java.io.IOException(te);
4307
      }
4308
    }
4309
 
352 ashish 4310
  }
4311
 
3430 rajveer 4312
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
4313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 4314
 
3430 rajveer 4315
    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 4316
 
3430 rajveer 4317
    private HelperServiceException se; // required
352 ashish 4318
 
4319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4321
      SE((short)1, "se");
4322
 
4323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4324
 
4325
      static {
4326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4327
          byName.put(field.getFieldName(), field);
4328
        }
4329
      }
4330
 
4331
      /**
4332
       * Find the _Fields constant that matches fieldId, or null if its not found.
4333
       */
4334
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4335
        switch(fieldId) {
4336
          case 1: // SE
4337
            return SE;
4338
          default:
4339
            return null;
4340
        }
352 ashish 4341
      }
4342
 
4343
      /**
4344
       * Find the _Fields constant that matches fieldId, throwing an exception
4345
       * if it is not found.
4346
       */
4347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4348
        _Fields fields = findByThriftId(fieldId);
4349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4350
        return fields;
4351
      }
4352
 
4353
      /**
4354
       * Find the _Fields constant that matches name, or null if its not found.
4355
       */
4356
      public static _Fields findByName(String name) {
4357
        return byName.get(name);
4358
      }
4359
 
4360
      private final short _thriftId;
4361
      private final String _fieldName;
4362
 
4363
      _Fields(short thriftId, String fieldName) {
4364
        _thriftId = thriftId;
4365
        _fieldName = fieldName;
4366
      }
4367
 
4368
      public short getThriftFieldId() {
4369
        return _thriftId;
4370
      }
4371
 
4372
      public String getFieldName() {
4373
        return _fieldName;
4374
      }
4375
    }
4376
 
4377
    // isset id assignments
4378
 
3430 rajveer 4379
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4380
    static {
3430 rajveer 4381
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4382
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4384
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4385
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 4386
    }
4387
 
4388
    public sendMail_result() {
4389
    }
4390
 
4391
    public sendMail_result(
4392
      HelperServiceException se)
4393
    {
4394
      this();
4395
      this.se = se;
4396
    }
4397
 
4398
    /**
4399
     * Performs a deep copy on <i>other</i>.
4400
     */
4401
    public sendMail_result(sendMail_result other) {
4402
      if (other.isSetSe()) {
4403
        this.se = new HelperServiceException(other.se);
4404
      }
4405
    }
4406
 
4407
    public sendMail_result deepCopy() {
4408
      return new sendMail_result(this);
4409
    }
4410
 
3430 rajveer 4411
    @Override
4412
    public void clear() {
4413
      this.se = null;
352 ashish 4414
    }
4415
 
4416
    public HelperServiceException getSe() {
4417
      return this.se;
4418
    }
4419
 
3430 rajveer 4420
    public void setSe(HelperServiceException se) {
352 ashish 4421
      this.se = se;
4422
    }
4423
 
4424
    public void unsetSe() {
4425
      this.se = null;
4426
    }
4427
 
3430 rajveer 4428
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 4429
    public boolean isSetSe() {
4430
      return this.se != null;
4431
    }
4432
 
4433
    public void setSeIsSet(boolean value) {
4434
      if (!value) {
4435
        this.se = null;
4436
      }
4437
    }
4438
 
4439
    public void setFieldValue(_Fields field, Object value) {
4440
      switch (field) {
4441
      case SE:
4442
        if (value == null) {
4443
          unsetSe();
4444
        } else {
4445
          setSe((HelperServiceException)value);
4446
        }
4447
        break;
4448
 
4449
      }
4450
    }
4451
 
4452
    public Object getFieldValue(_Fields field) {
4453
      switch (field) {
4454
      case SE:
4455
        return getSe();
4456
 
4457
      }
4458
      throw new IllegalStateException();
4459
    }
4460
 
3430 rajveer 4461
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4462
    public boolean isSet(_Fields field) {
4463
      if (field == null) {
4464
        throw new IllegalArgumentException();
4465
      }
352 ashish 4466
 
4467
      switch (field) {
4468
      case SE:
4469
        return isSetSe();
4470
      }
4471
      throw new IllegalStateException();
4472
    }
4473
 
4474
    @Override
4475
    public boolean equals(Object that) {
4476
      if (that == null)
4477
        return false;
4478
      if (that instanceof sendMail_result)
4479
        return this.equals((sendMail_result)that);
4480
      return false;
4481
    }
4482
 
4483
    public boolean equals(sendMail_result that) {
4484
      if (that == null)
4485
        return false;
4486
 
4487
      boolean this_present_se = true && this.isSetSe();
4488
      boolean that_present_se = true && that.isSetSe();
4489
      if (this_present_se || that_present_se) {
4490
        if (!(this_present_se && that_present_se))
4491
          return false;
4492
        if (!this.se.equals(that.se))
4493
          return false;
4494
      }
4495
 
4496
      return true;
4497
    }
4498
 
4499
    @Override
4500
    public int hashCode() {
4501
      return 0;
4502
    }
4503
 
4504
    public int compareTo(sendMail_result other) {
4505
      if (!getClass().equals(other.getClass())) {
4506
        return getClass().getName().compareTo(other.getClass().getName());
4507
      }
4508
 
4509
      int lastComparison = 0;
4510
      sendMail_result typedOther = (sendMail_result)other;
4511
 
3430 rajveer 4512
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 4513
      if (lastComparison != 0) {
4514
        return lastComparison;
4515
      }
3430 rajveer 4516
      if (isSetSe()) {
4517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4518
        if (lastComparison != 0) {
4519
          return lastComparison;
4520
        }
352 ashish 4521
      }
4522
      return 0;
4523
    }
4524
 
3430 rajveer 4525
    public _Fields fieldForId(int fieldId) {
4526
      return _Fields.findByThriftId(fieldId);
4527
    }
4528
 
4529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4530
      org.apache.thrift.protocol.TField field;
352 ashish 4531
      iprot.readStructBegin();
4532
      while (true)
4533
      {
4534
        field = iprot.readFieldBegin();
3430 rajveer 4535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4536
          break;
4537
        }
3430 rajveer 4538
        switch (field.id) {
4539
          case 1: // SE
4540
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4541
              this.se = new HelperServiceException();
4542
              this.se.read(iprot);
4543
            } else { 
4544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4545
            }
4546
            break;
4547
          default:
4548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4549
        }
3430 rajveer 4550
        iprot.readFieldEnd();
352 ashish 4551
      }
4552
      iprot.readStructEnd();
4553
      validate();
4554
    }
4555
 
3430 rajveer 4556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4557
      oprot.writeStructBegin(STRUCT_DESC);
4558
 
4559
      if (this.isSetSe()) {
4560
        oprot.writeFieldBegin(SE_FIELD_DESC);
4561
        this.se.write(oprot);
4562
        oprot.writeFieldEnd();
4563
      }
4564
      oprot.writeFieldStop();
4565
      oprot.writeStructEnd();
4566
    }
4567
 
4568
    @Override
4569
    public String toString() {
4570
      StringBuilder sb = new StringBuilder("sendMail_result(");
4571
      boolean first = true;
4572
 
4573
      sb.append("se:");
4574
      if (this.se == null) {
4575
        sb.append("null");
4576
      } else {
4577
        sb.append(this.se);
4578
      }
4579
      first = false;
4580
      sb.append(")");
4581
      return sb.toString();
4582
    }
4583
 
3430 rajveer 4584
    public void validate() throws org.apache.thrift.TException {
352 ashish 4585
      // check for required fields
4586
    }
4587
 
3430 rajveer 4588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4589
      try {
4590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4591
      } catch (org.apache.thrift.TException te) {
4592
        throw new java.io.IOException(te);
4593
      }
4594
    }
4595
 
4596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4597
      try {
4598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4599
      } catch (org.apache.thrift.TException te) {
4600
        throw new java.io.IOException(te);
4601
      }
4602
    }
4603
 
352 ashish 4604
  }
4605
 
3430 rajveer 4606
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
4607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 4608
 
3430 rajveer 4609
    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 4610
 
3430 rajveer 4611
    private TextMessage message; // required
352 ashish 4612
 
4613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4615
      MESSAGE((short)1, "message");
4616
 
4617
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4618
 
4619
      static {
4620
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4621
          byName.put(field.getFieldName(), field);
4622
        }
4623
      }
4624
 
4625
      /**
4626
       * Find the _Fields constant that matches fieldId, or null if its not found.
4627
       */
4628
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4629
        switch(fieldId) {
4630
          case 1: // MESSAGE
4631
            return MESSAGE;
4632
          default:
4633
            return null;
4634
        }
352 ashish 4635
      }
4636
 
4637
      /**
4638
       * Find the _Fields constant that matches fieldId, throwing an exception
4639
       * if it is not found.
4640
       */
4641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4642
        _Fields fields = findByThriftId(fieldId);
4643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4644
        return fields;
4645
      }
4646
 
4647
      /**
4648
       * Find the _Fields constant that matches name, or null if its not found.
4649
       */
4650
      public static _Fields findByName(String name) {
4651
        return byName.get(name);
4652
      }
4653
 
4654
      private final short _thriftId;
4655
      private final String _fieldName;
4656
 
4657
      _Fields(short thriftId, String fieldName) {
4658
        _thriftId = thriftId;
4659
        _fieldName = fieldName;
4660
      }
4661
 
4662
      public short getThriftFieldId() {
4663
        return _thriftId;
4664
      }
4665
 
4666
      public String getFieldName() {
4667
        return _fieldName;
4668
      }
4669
    }
4670
 
4671
    // isset id assignments
4672
 
3430 rajveer 4673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4674
    static {
3430 rajveer 4675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4676
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4677
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
4678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 4680
    }
4681
 
4682
    public sendText_args() {
4683
    }
4684
 
4685
    public sendText_args(
4686
      TextMessage message)
4687
    {
4688
      this();
4689
      this.message = message;
4690
    }
4691
 
4692
    /**
4693
     * Performs a deep copy on <i>other</i>.
4694
     */
4695
    public sendText_args(sendText_args other) {
4696
      if (other.isSetMessage()) {
4697
        this.message = new TextMessage(other.message);
4698
      }
4699
    }
4700
 
4701
    public sendText_args deepCopy() {
4702
      return new sendText_args(this);
4703
    }
4704
 
3430 rajveer 4705
    @Override
4706
    public void clear() {
4707
      this.message = null;
352 ashish 4708
    }
4709
 
4710
    public TextMessage getMessage() {
4711
      return this.message;
4712
    }
4713
 
3430 rajveer 4714
    public void setMessage(TextMessage message) {
352 ashish 4715
      this.message = message;
4716
    }
4717
 
4718
    public void unsetMessage() {
4719
      this.message = null;
4720
    }
4721
 
3430 rajveer 4722
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 4723
    public boolean isSetMessage() {
4724
      return this.message != null;
4725
    }
4726
 
4727
    public void setMessageIsSet(boolean value) {
4728
      if (!value) {
4729
        this.message = null;
4730
      }
4731
    }
4732
 
4733
    public void setFieldValue(_Fields field, Object value) {
4734
      switch (field) {
4735
      case MESSAGE:
4736
        if (value == null) {
4737
          unsetMessage();
4738
        } else {
4739
          setMessage((TextMessage)value);
4740
        }
4741
        break;
4742
 
4743
      }
4744
    }
4745
 
4746
    public Object getFieldValue(_Fields field) {
4747
      switch (field) {
4748
      case MESSAGE:
4749
        return getMessage();
4750
 
4751
      }
4752
      throw new IllegalStateException();
4753
    }
4754
 
3430 rajveer 4755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4756
    public boolean isSet(_Fields field) {
4757
      if (field == null) {
4758
        throw new IllegalArgumentException();
4759
      }
352 ashish 4760
 
4761
      switch (field) {
4762
      case MESSAGE:
4763
        return isSetMessage();
4764
      }
4765
      throw new IllegalStateException();
4766
    }
4767
 
4768
    @Override
4769
    public boolean equals(Object that) {
4770
      if (that == null)
4771
        return false;
4772
      if (that instanceof sendText_args)
4773
        return this.equals((sendText_args)that);
4774
      return false;
4775
    }
4776
 
4777
    public boolean equals(sendText_args that) {
4778
      if (that == null)
4779
        return false;
4780
 
4781
      boolean this_present_message = true && this.isSetMessage();
4782
      boolean that_present_message = true && that.isSetMessage();
4783
      if (this_present_message || that_present_message) {
4784
        if (!(this_present_message && that_present_message))
4785
          return false;
4786
        if (!this.message.equals(that.message))
4787
          return false;
4788
      }
4789
 
4790
      return true;
4791
    }
4792
 
4793
    @Override
4794
    public int hashCode() {
4795
      return 0;
4796
    }
4797
 
4798
    public int compareTo(sendText_args other) {
4799
      if (!getClass().equals(other.getClass())) {
4800
        return getClass().getName().compareTo(other.getClass().getName());
4801
      }
4802
 
4803
      int lastComparison = 0;
4804
      sendText_args typedOther = (sendText_args)other;
4805
 
3430 rajveer 4806
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 4807
      if (lastComparison != 0) {
4808
        return lastComparison;
4809
      }
3430 rajveer 4810
      if (isSetMessage()) {
4811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
4812
        if (lastComparison != 0) {
4813
          return lastComparison;
4814
        }
352 ashish 4815
      }
4816
      return 0;
4817
    }
4818
 
3430 rajveer 4819
    public _Fields fieldForId(int fieldId) {
4820
      return _Fields.findByThriftId(fieldId);
4821
    }
4822
 
4823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4824
      org.apache.thrift.protocol.TField field;
352 ashish 4825
      iprot.readStructBegin();
4826
      while (true)
4827
      {
4828
        field = iprot.readFieldBegin();
3430 rajveer 4829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4830
          break;
4831
        }
3430 rajveer 4832
        switch (field.id) {
4833
          case 1: // MESSAGE
4834
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4835
              this.message = new TextMessage();
4836
              this.message.read(iprot);
4837
            } else { 
4838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4839
            }
4840
            break;
4841
          default:
4842
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4843
        }
3430 rajveer 4844
        iprot.readFieldEnd();
352 ashish 4845
      }
4846
      iprot.readStructEnd();
4847
      validate();
4848
    }
4849
 
3430 rajveer 4850
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4851
      validate();
4852
 
4853
      oprot.writeStructBegin(STRUCT_DESC);
4854
      if (this.message != null) {
4855
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
4856
        this.message.write(oprot);
4857
        oprot.writeFieldEnd();
4858
      }
4859
      oprot.writeFieldStop();
4860
      oprot.writeStructEnd();
4861
    }
4862
 
4863
    @Override
4864
    public String toString() {
4865
      StringBuilder sb = new StringBuilder("sendText_args(");
4866
      boolean first = true;
4867
 
4868
      sb.append("message:");
4869
      if (this.message == null) {
4870
        sb.append("null");
4871
      } else {
4872
        sb.append(this.message);
4873
      }
4874
      first = false;
4875
      sb.append(")");
4876
      return sb.toString();
4877
    }
4878
 
3430 rajveer 4879
    public void validate() throws org.apache.thrift.TException {
352 ashish 4880
      // check for required fields
4881
    }
4882
 
3430 rajveer 4883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4884
      try {
4885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4886
      } catch (org.apache.thrift.TException te) {
4887
        throw new java.io.IOException(te);
4888
      }
4889
    }
4890
 
4891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4892
      try {
4893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4894
      } catch (org.apache.thrift.TException te) {
4895
        throw new java.io.IOException(te);
4896
      }
4897
    }
4898
 
352 ashish 4899
  }
4900
 
3430 rajveer 4901
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
4902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 4903
 
3430 rajveer 4904
    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 4905
 
3430 rajveer 4906
    private HelperServiceException se; // required
352 ashish 4907
 
4908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4910
      SE((short)1, "se");
4911
 
4912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4913
 
4914
      static {
4915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4916
          byName.put(field.getFieldName(), field);
4917
        }
4918
      }
4919
 
4920
      /**
4921
       * Find the _Fields constant that matches fieldId, or null if its not found.
4922
       */
4923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4924
        switch(fieldId) {
4925
          case 1: // SE
4926
            return SE;
4927
          default:
4928
            return null;
4929
        }
352 ashish 4930
      }
4931
 
4932
      /**
4933
       * Find the _Fields constant that matches fieldId, throwing an exception
4934
       * if it is not found.
4935
       */
4936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4937
        _Fields fields = findByThriftId(fieldId);
4938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4939
        return fields;
4940
      }
4941
 
4942
      /**
4943
       * Find the _Fields constant that matches name, or null if its not found.
4944
       */
4945
      public static _Fields findByName(String name) {
4946
        return byName.get(name);
4947
      }
4948
 
4949
      private final short _thriftId;
4950
      private final String _fieldName;
4951
 
4952
      _Fields(short thriftId, String fieldName) {
4953
        _thriftId = thriftId;
4954
        _fieldName = fieldName;
4955
      }
4956
 
4957
      public short getThriftFieldId() {
4958
        return _thriftId;
4959
      }
4960
 
4961
      public String getFieldName() {
4962
        return _fieldName;
4963
      }
4964
    }
4965
 
4966
    // isset id assignments
4967
 
3430 rajveer 4968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4969
    static {
3430 rajveer 4970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4971
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 4975
    }
4976
 
4977
    public sendText_result() {
4978
    }
4979
 
4980
    public sendText_result(
4981
      HelperServiceException se)
4982
    {
4983
      this();
4984
      this.se = se;
4985
    }
4986
 
4987
    /**
4988
     * Performs a deep copy on <i>other</i>.
4989
     */
4990
    public sendText_result(sendText_result other) {
4991
      if (other.isSetSe()) {
4992
        this.se = new HelperServiceException(other.se);
4993
      }
4994
    }
4995
 
4996
    public sendText_result deepCopy() {
4997
      return new sendText_result(this);
4998
    }
4999
 
3430 rajveer 5000
    @Override
5001
    public void clear() {
5002
      this.se = null;
352 ashish 5003
    }
5004
 
5005
    public HelperServiceException getSe() {
5006
      return this.se;
5007
    }
5008
 
3430 rajveer 5009
    public void setSe(HelperServiceException se) {
352 ashish 5010
      this.se = se;
5011
    }
5012
 
5013
    public void unsetSe() {
5014
      this.se = null;
5015
    }
5016
 
3430 rajveer 5017
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5018
    public boolean isSetSe() {
5019
      return this.se != null;
5020
    }
5021
 
5022
    public void setSeIsSet(boolean value) {
5023
      if (!value) {
5024
        this.se = null;
5025
      }
5026
    }
5027
 
5028
    public void setFieldValue(_Fields field, Object value) {
5029
      switch (field) {
5030
      case SE:
5031
        if (value == null) {
5032
          unsetSe();
5033
        } else {
5034
          setSe((HelperServiceException)value);
5035
        }
5036
        break;
5037
 
5038
      }
5039
    }
5040
 
5041
    public Object getFieldValue(_Fields field) {
5042
      switch (field) {
5043
      case SE:
5044
        return getSe();
5045
 
5046
      }
5047
      throw new IllegalStateException();
5048
    }
5049
 
3430 rajveer 5050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5051
    public boolean isSet(_Fields field) {
5052
      if (field == null) {
5053
        throw new IllegalArgumentException();
5054
      }
352 ashish 5055
 
5056
      switch (field) {
5057
      case SE:
5058
        return isSetSe();
5059
      }
5060
      throw new IllegalStateException();
5061
    }
5062
 
5063
    @Override
5064
    public boolean equals(Object that) {
5065
      if (that == null)
5066
        return false;
5067
      if (that instanceof sendText_result)
5068
        return this.equals((sendText_result)that);
5069
      return false;
5070
    }
5071
 
5072
    public boolean equals(sendText_result that) {
5073
      if (that == null)
5074
        return false;
5075
 
5076
      boolean this_present_se = true && this.isSetSe();
5077
      boolean that_present_se = true && that.isSetSe();
5078
      if (this_present_se || that_present_se) {
5079
        if (!(this_present_se && that_present_se))
5080
          return false;
5081
        if (!this.se.equals(that.se))
5082
          return false;
5083
      }
5084
 
5085
      return true;
5086
    }
5087
 
5088
    @Override
5089
    public int hashCode() {
5090
      return 0;
5091
    }
5092
 
5093
    public int compareTo(sendText_result other) {
5094
      if (!getClass().equals(other.getClass())) {
5095
        return getClass().getName().compareTo(other.getClass().getName());
5096
      }
5097
 
5098
      int lastComparison = 0;
5099
      sendText_result typedOther = (sendText_result)other;
5100
 
3430 rajveer 5101
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5102
      if (lastComparison != 0) {
5103
        return lastComparison;
5104
      }
3430 rajveer 5105
      if (isSetSe()) {
5106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5107
        if (lastComparison != 0) {
5108
          return lastComparison;
5109
        }
352 ashish 5110
      }
5111
      return 0;
5112
    }
5113
 
3430 rajveer 5114
    public _Fields fieldForId(int fieldId) {
5115
      return _Fields.findByThriftId(fieldId);
5116
    }
5117
 
5118
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5119
      org.apache.thrift.protocol.TField field;
352 ashish 5120
      iprot.readStructBegin();
5121
      while (true)
5122
      {
5123
        field = iprot.readFieldBegin();
3430 rajveer 5124
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5125
          break;
5126
        }
3430 rajveer 5127
        switch (field.id) {
5128
          case 1: // SE
5129
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5130
              this.se = new HelperServiceException();
5131
              this.se.read(iprot);
5132
            } else { 
5133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5134
            }
5135
            break;
5136
          default:
5137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5138
        }
3430 rajveer 5139
        iprot.readFieldEnd();
352 ashish 5140
      }
5141
      iprot.readStructEnd();
5142
      validate();
5143
    }
5144
 
3430 rajveer 5145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5146
      oprot.writeStructBegin(STRUCT_DESC);
5147
 
5148
      if (this.isSetSe()) {
5149
        oprot.writeFieldBegin(SE_FIELD_DESC);
5150
        this.se.write(oprot);
5151
        oprot.writeFieldEnd();
5152
      }
5153
      oprot.writeFieldStop();
5154
      oprot.writeStructEnd();
5155
    }
5156
 
5157
    @Override
5158
    public String toString() {
5159
      StringBuilder sb = new StringBuilder("sendText_result(");
5160
      boolean first = true;
5161
 
5162
      sb.append("se:");
5163
      if (this.se == null) {
5164
        sb.append("null");
5165
      } else {
5166
        sb.append(this.se);
5167
      }
5168
      first = false;
5169
      sb.append(")");
5170
      return sb.toString();
5171
    }
5172
 
3430 rajveer 5173
    public void validate() throws org.apache.thrift.TException {
352 ashish 5174
      // check for required fields
5175
    }
5176
 
3430 rajveer 5177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5178
      try {
5179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5180
      } catch (org.apache.thrift.TException te) {
5181
        throw new java.io.IOException(te);
5182
      }
5183
    }
5184
 
5185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5186
      try {
5187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5188
      } catch (org.apache.thrift.TException te) {
5189
        throw new java.io.IOException(te);
5190
      }
5191
    }
5192
 
352 ashish 5193
  }
5194
 
3430 rajveer 5195
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
5196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 5197
 
3430 rajveer 5198
    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 5199
 
3430 rajveer 5200
    private Message message; // required
352 ashish 5201
 
5202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5204
      MESSAGE((short)1, "message");
5205
 
5206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5207
 
5208
      static {
5209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5210
          byName.put(field.getFieldName(), field);
5211
        }
5212
      }
5213
 
5214
      /**
5215
       * Find the _Fields constant that matches fieldId, or null if its not found.
5216
       */
5217
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5218
        switch(fieldId) {
5219
          case 1: // MESSAGE
5220
            return MESSAGE;
5221
          default:
5222
            return null;
5223
        }
352 ashish 5224
      }
5225
 
5226
      /**
5227
       * Find the _Fields constant that matches fieldId, throwing an exception
5228
       * if it is not found.
5229
       */
5230
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5231
        _Fields fields = findByThriftId(fieldId);
5232
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5233
        return fields;
5234
      }
5235
 
5236
      /**
5237
       * Find the _Fields constant that matches name, or null if its not found.
5238
       */
5239
      public static _Fields findByName(String name) {
5240
        return byName.get(name);
5241
      }
5242
 
5243
      private final short _thriftId;
5244
      private final String _fieldName;
5245
 
5246
      _Fields(short thriftId, String fieldName) {
5247
        _thriftId = thriftId;
5248
        _fieldName = fieldName;
5249
      }
5250
 
5251
      public short getThriftFieldId() {
5252
        return _thriftId;
5253
      }
5254
 
5255
      public String getFieldName() {
5256
        return _fieldName;
5257
      }
5258
    }
5259
 
5260
    // isset id assignments
5261
 
3430 rajveer 5262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5263
    static {
3430 rajveer 5264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5265
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5266
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
5267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 5269
    }
5270
 
5271
    public addMessage_args() {
5272
    }
5273
 
5274
    public addMessage_args(
5275
      Message message)
5276
    {
5277
      this();
5278
      this.message = message;
5279
    }
5280
 
5281
    /**
5282
     * Performs a deep copy on <i>other</i>.
5283
     */
5284
    public addMessage_args(addMessage_args other) {
5285
      if (other.isSetMessage()) {
5286
        this.message = new Message(other.message);
5287
      }
5288
    }
5289
 
5290
    public addMessage_args deepCopy() {
5291
      return new addMessage_args(this);
5292
    }
5293
 
3430 rajveer 5294
    @Override
5295
    public void clear() {
5296
      this.message = null;
352 ashish 5297
    }
5298
 
5299
    public Message getMessage() {
5300
      return this.message;
5301
    }
5302
 
3430 rajveer 5303
    public void setMessage(Message message) {
352 ashish 5304
      this.message = message;
5305
    }
5306
 
5307
    public void unsetMessage() {
5308
      this.message = null;
5309
    }
5310
 
3430 rajveer 5311
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5312
    public boolean isSetMessage() {
5313
      return this.message != null;
5314
    }
5315
 
5316
    public void setMessageIsSet(boolean value) {
5317
      if (!value) {
5318
        this.message = null;
5319
      }
5320
    }
5321
 
5322
    public void setFieldValue(_Fields field, Object value) {
5323
      switch (field) {
5324
      case MESSAGE:
5325
        if (value == null) {
5326
          unsetMessage();
5327
        } else {
5328
          setMessage((Message)value);
5329
        }
5330
        break;
5331
 
5332
      }
5333
    }
5334
 
5335
    public Object getFieldValue(_Fields field) {
5336
      switch (field) {
5337
      case MESSAGE:
5338
        return getMessage();
5339
 
5340
      }
5341
      throw new IllegalStateException();
5342
    }
5343
 
3430 rajveer 5344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5345
    public boolean isSet(_Fields field) {
5346
      if (field == null) {
5347
        throw new IllegalArgumentException();
5348
      }
352 ashish 5349
 
5350
      switch (field) {
5351
      case MESSAGE:
5352
        return isSetMessage();
5353
      }
5354
      throw new IllegalStateException();
5355
    }
5356
 
5357
    @Override
5358
    public boolean equals(Object that) {
5359
      if (that == null)
5360
        return false;
5361
      if (that instanceof addMessage_args)
5362
        return this.equals((addMessage_args)that);
5363
      return false;
5364
    }
5365
 
5366
    public boolean equals(addMessage_args that) {
5367
      if (that == null)
5368
        return false;
5369
 
5370
      boolean this_present_message = true && this.isSetMessage();
5371
      boolean that_present_message = true && that.isSetMessage();
5372
      if (this_present_message || that_present_message) {
5373
        if (!(this_present_message && that_present_message))
5374
          return false;
5375
        if (!this.message.equals(that.message))
5376
          return false;
5377
      }
5378
 
5379
      return true;
5380
    }
5381
 
5382
    @Override
5383
    public int hashCode() {
5384
      return 0;
5385
    }
5386
 
5387
    public int compareTo(addMessage_args other) {
5388
      if (!getClass().equals(other.getClass())) {
5389
        return getClass().getName().compareTo(other.getClass().getName());
5390
      }
5391
 
5392
      int lastComparison = 0;
5393
      addMessage_args typedOther = (addMessage_args)other;
5394
 
3430 rajveer 5395
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5396
      if (lastComparison != 0) {
5397
        return lastComparison;
5398
      }
3430 rajveer 5399
      if (isSetMessage()) {
5400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5401
        if (lastComparison != 0) {
5402
          return lastComparison;
5403
        }
352 ashish 5404
      }
5405
      return 0;
5406
    }
5407
 
3430 rajveer 5408
    public _Fields fieldForId(int fieldId) {
5409
      return _Fields.findByThriftId(fieldId);
5410
    }
5411
 
5412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5413
      org.apache.thrift.protocol.TField field;
352 ashish 5414
      iprot.readStructBegin();
5415
      while (true)
5416
      {
5417
        field = iprot.readFieldBegin();
3430 rajveer 5418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5419
          break;
5420
        }
3430 rajveer 5421
        switch (field.id) {
5422
          case 1: // MESSAGE
5423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5424
              this.message = new Message();
5425
              this.message.read(iprot);
5426
            } else { 
5427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5428
            }
5429
            break;
5430
          default:
5431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5432
        }
3430 rajveer 5433
        iprot.readFieldEnd();
352 ashish 5434
      }
5435
      iprot.readStructEnd();
5436
      validate();
5437
    }
5438
 
3430 rajveer 5439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5440
      validate();
5441
 
5442
      oprot.writeStructBegin(STRUCT_DESC);
5443
      if (this.message != null) {
5444
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5445
        this.message.write(oprot);
5446
        oprot.writeFieldEnd();
5447
      }
5448
      oprot.writeFieldStop();
5449
      oprot.writeStructEnd();
5450
    }
5451
 
5452
    @Override
5453
    public String toString() {
5454
      StringBuilder sb = new StringBuilder("addMessage_args(");
5455
      boolean first = true;
5456
 
5457
      sb.append("message:");
5458
      if (this.message == null) {
5459
        sb.append("null");
5460
      } else {
5461
        sb.append(this.message);
5462
      }
5463
      first = false;
5464
      sb.append(")");
5465
      return sb.toString();
5466
    }
5467
 
3430 rajveer 5468
    public void validate() throws org.apache.thrift.TException {
352 ashish 5469
      // check for required fields
5470
    }
5471
 
3430 rajveer 5472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5473
      try {
5474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5475
      } catch (org.apache.thrift.TException te) {
5476
        throw new java.io.IOException(te);
5477
      }
5478
    }
5479
 
5480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5481
      try {
5482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5483
      } catch (org.apache.thrift.TException te) {
5484
        throw new java.io.IOException(te);
5485
      }
5486
    }
5487
 
352 ashish 5488
  }
5489
 
3430 rajveer 5490
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
5491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 5492
 
3430 rajveer 5493
    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 5494
 
3430 rajveer 5495
    private HelperServiceException se; // required
352 ashish 5496
 
5497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5499
      SE((short)1, "se");
5500
 
5501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5502
 
5503
      static {
5504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5505
          byName.put(field.getFieldName(), field);
5506
        }
5507
      }
5508
 
5509
      /**
5510
       * Find the _Fields constant that matches fieldId, or null if its not found.
5511
       */
5512
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5513
        switch(fieldId) {
5514
          case 1: // SE
5515
            return SE;
5516
          default:
5517
            return null;
5518
        }
352 ashish 5519
      }
5520
 
5521
      /**
5522
       * Find the _Fields constant that matches fieldId, throwing an exception
5523
       * if it is not found.
5524
       */
5525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5526
        _Fields fields = findByThriftId(fieldId);
5527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5528
        return fields;
5529
      }
5530
 
5531
      /**
5532
       * Find the _Fields constant that matches name, or null if its not found.
5533
       */
5534
      public static _Fields findByName(String name) {
5535
        return byName.get(name);
5536
      }
5537
 
5538
      private final short _thriftId;
5539
      private final String _fieldName;
5540
 
5541
      _Fields(short thriftId, String fieldName) {
5542
        _thriftId = thriftId;
5543
        _fieldName = fieldName;
5544
      }
5545
 
5546
      public short getThriftFieldId() {
5547
        return _thriftId;
5548
      }
5549
 
5550
      public String getFieldName() {
5551
        return _fieldName;
5552
      }
5553
    }
5554
 
5555
    // isset id assignments
5556
 
3430 rajveer 5557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5558
    static {
3430 rajveer 5559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5560
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 5564
    }
5565
 
5566
    public addMessage_result() {
5567
    }
5568
 
5569
    public addMessage_result(
5570
      HelperServiceException se)
5571
    {
5572
      this();
5573
      this.se = se;
5574
    }
5575
 
5576
    /**
5577
     * Performs a deep copy on <i>other</i>.
5578
     */
5579
    public addMessage_result(addMessage_result other) {
5580
      if (other.isSetSe()) {
5581
        this.se = new HelperServiceException(other.se);
5582
      }
5583
    }
5584
 
5585
    public addMessage_result deepCopy() {
5586
      return new addMessage_result(this);
5587
    }
5588
 
3430 rajveer 5589
    @Override
5590
    public void clear() {
5591
      this.se = null;
352 ashish 5592
    }
5593
 
5594
    public HelperServiceException getSe() {
5595
      return this.se;
5596
    }
5597
 
3430 rajveer 5598
    public void setSe(HelperServiceException se) {
352 ashish 5599
      this.se = se;
5600
    }
5601
 
5602
    public void unsetSe() {
5603
      this.se = null;
5604
    }
5605
 
3430 rajveer 5606
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5607
    public boolean isSetSe() {
5608
      return this.se != null;
5609
    }
5610
 
5611
    public void setSeIsSet(boolean value) {
5612
      if (!value) {
5613
        this.se = null;
5614
      }
5615
    }
5616
 
5617
    public void setFieldValue(_Fields field, Object value) {
5618
      switch (field) {
5619
      case SE:
5620
        if (value == null) {
5621
          unsetSe();
5622
        } else {
5623
          setSe((HelperServiceException)value);
5624
        }
5625
        break;
5626
 
5627
      }
5628
    }
5629
 
5630
    public Object getFieldValue(_Fields field) {
5631
      switch (field) {
5632
      case SE:
5633
        return getSe();
5634
 
5635
      }
5636
      throw new IllegalStateException();
5637
    }
5638
 
3430 rajveer 5639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5640
    public boolean isSet(_Fields field) {
5641
      if (field == null) {
5642
        throw new IllegalArgumentException();
5643
      }
352 ashish 5644
 
5645
      switch (field) {
5646
      case SE:
5647
        return isSetSe();
5648
      }
5649
      throw new IllegalStateException();
5650
    }
5651
 
5652
    @Override
5653
    public boolean equals(Object that) {
5654
      if (that == null)
5655
        return false;
5656
      if (that instanceof addMessage_result)
5657
        return this.equals((addMessage_result)that);
5658
      return false;
5659
    }
5660
 
5661
    public boolean equals(addMessage_result that) {
5662
      if (that == null)
5663
        return false;
5664
 
5665
      boolean this_present_se = true && this.isSetSe();
5666
      boolean that_present_se = true && that.isSetSe();
5667
      if (this_present_se || that_present_se) {
5668
        if (!(this_present_se && that_present_se))
5669
          return false;
5670
        if (!this.se.equals(that.se))
5671
          return false;
5672
      }
5673
 
5674
      return true;
5675
    }
5676
 
5677
    @Override
5678
    public int hashCode() {
5679
      return 0;
5680
    }
5681
 
5682
    public int compareTo(addMessage_result other) {
5683
      if (!getClass().equals(other.getClass())) {
5684
        return getClass().getName().compareTo(other.getClass().getName());
5685
      }
5686
 
5687
      int lastComparison = 0;
5688
      addMessage_result typedOther = (addMessage_result)other;
5689
 
3430 rajveer 5690
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5691
      if (lastComparison != 0) {
5692
        return lastComparison;
5693
      }
3430 rajveer 5694
      if (isSetSe()) {
5695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5696
        if (lastComparison != 0) {
5697
          return lastComparison;
5698
        }
352 ashish 5699
      }
5700
      return 0;
5701
    }
5702
 
3430 rajveer 5703
    public _Fields fieldForId(int fieldId) {
5704
      return _Fields.findByThriftId(fieldId);
5705
    }
5706
 
5707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5708
      org.apache.thrift.protocol.TField field;
352 ashish 5709
      iprot.readStructBegin();
5710
      while (true)
5711
      {
5712
        field = iprot.readFieldBegin();
3430 rajveer 5713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5714
          break;
5715
        }
3430 rajveer 5716
        switch (field.id) {
5717
          case 1: // SE
5718
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5719
              this.se = new HelperServiceException();
5720
              this.se.read(iprot);
5721
            } else { 
5722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5723
            }
5724
            break;
5725
          default:
5726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5727
        }
3430 rajveer 5728
        iprot.readFieldEnd();
352 ashish 5729
      }
5730
      iprot.readStructEnd();
5731
      validate();
5732
    }
5733
 
3430 rajveer 5734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5735
      oprot.writeStructBegin(STRUCT_DESC);
5736
 
5737
      if (this.isSetSe()) {
5738
        oprot.writeFieldBegin(SE_FIELD_DESC);
5739
        this.se.write(oprot);
5740
        oprot.writeFieldEnd();
5741
      }
5742
      oprot.writeFieldStop();
5743
      oprot.writeStructEnd();
5744
    }
5745
 
5746
    @Override
5747
    public String toString() {
5748
      StringBuilder sb = new StringBuilder("addMessage_result(");
5749
      boolean first = true;
5750
 
5751
      sb.append("se:");
5752
      if (this.se == null) {
5753
        sb.append("null");
5754
      } else {
5755
        sb.append(this.se);
5756
      }
5757
      first = false;
5758
      sb.append(")");
5759
      return sb.toString();
5760
    }
5761
 
3430 rajveer 5762
    public void validate() throws org.apache.thrift.TException {
352 ashish 5763
      // check for required fields
5764
    }
5765
 
3430 rajveer 5766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5767
      try {
5768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5769
      } catch (org.apache.thrift.TException te) {
5770
        throw new java.io.IOException(te);
5771
      }
5772
    }
5773
 
5774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5775
      try {
5776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5777
      } catch (org.apache.thrift.TException te) {
5778
        throw new java.io.IOException(te);
5779
      }
5780
    }
5781
 
352 ashish 5782
  }
5783
 
3430 rajveer 5784
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
5785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 5786
 
3430 rajveer 5787
    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);
5788
    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 5789
 
3430 rajveer 5790
    private long id; // required
5791
    private String message; // required
352 ashish 5792
 
5793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5795
      ID((short)1, "id"),
5796
      MESSAGE((short)2, "message");
5797
 
5798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5799
 
5800
      static {
5801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5802
          byName.put(field.getFieldName(), field);
5803
        }
5804
      }
5805
 
5806
      /**
5807
       * Find the _Fields constant that matches fieldId, or null if its not found.
5808
       */
5809
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5810
        switch(fieldId) {
5811
          case 1: // ID
5812
            return ID;
5813
          case 2: // MESSAGE
5814
            return MESSAGE;
5815
          default:
5816
            return null;
5817
        }
352 ashish 5818
      }
5819
 
5820
      /**
5821
       * Find the _Fields constant that matches fieldId, throwing an exception
5822
       * if it is not found.
5823
       */
5824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5825
        _Fields fields = findByThriftId(fieldId);
5826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5827
        return fields;
5828
      }
5829
 
5830
      /**
5831
       * Find the _Fields constant that matches name, or null if its not found.
5832
       */
5833
      public static _Fields findByName(String name) {
5834
        return byName.get(name);
5835
      }
5836
 
5837
      private final short _thriftId;
5838
      private final String _fieldName;
5839
 
5840
      _Fields(short thriftId, String fieldName) {
5841
        _thriftId = thriftId;
5842
        _fieldName = fieldName;
5843
      }
5844
 
5845
      public short getThriftFieldId() {
5846
        return _thriftId;
5847
      }
5848
 
5849
      public String getFieldName() {
5850
        return _fieldName;
5851
      }
5852
    }
5853
 
5854
    // isset id assignments
5855
    private static final int __ID_ISSET_ID = 0;
5856
    private BitSet __isset_bit_vector = new BitSet(1);
5857
 
3430 rajveer 5858
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5859
    static {
3430 rajveer 5860
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5861
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5862
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5863
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5865
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5866
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 5867
    }
5868
 
5869
    public updateMessage_args() {
5870
    }
5871
 
5872
    public updateMessage_args(
5873
      long id,
5874
      String message)
5875
    {
5876
      this();
5877
      this.id = id;
5878
      setIdIsSet(true);
5879
      this.message = message;
5880
    }
5881
 
5882
    /**
5883
     * Performs a deep copy on <i>other</i>.
5884
     */
5885
    public updateMessage_args(updateMessage_args other) {
5886
      __isset_bit_vector.clear();
5887
      __isset_bit_vector.or(other.__isset_bit_vector);
5888
      this.id = other.id;
5889
      if (other.isSetMessage()) {
5890
        this.message = other.message;
5891
      }
5892
    }
5893
 
5894
    public updateMessage_args deepCopy() {
5895
      return new updateMessage_args(this);
5896
    }
5897
 
3430 rajveer 5898
    @Override
5899
    public void clear() {
5900
      setIdIsSet(false);
5901
      this.id = 0;
5902
      this.message = null;
352 ashish 5903
    }
5904
 
5905
    public long getId() {
5906
      return this.id;
5907
    }
5908
 
3430 rajveer 5909
    public void setId(long id) {
352 ashish 5910
      this.id = id;
5911
      setIdIsSet(true);
5912
    }
5913
 
5914
    public void unsetId() {
5915
      __isset_bit_vector.clear(__ID_ISSET_ID);
5916
    }
5917
 
3430 rajveer 5918
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 5919
    public boolean isSetId() {
5920
      return __isset_bit_vector.get(__ID_ISSET_ID);
5921
    }
5922
 
5923
    public void setIdIsSet(boolean value) {
5924
      __isset_bit_vector.set(__ID_ISSET_ID, value);
5925
    }
5926
 
5927
    public String getMessage() {
5928
      return this.message;
5929
    }
5930
 
3430 rajveer 5931
    public void setMessage(String message) {
352 ashish 5932
      this.message = message;
5933
    }
5934
 
5935
    public void unsetMessage() {
5936
      this.message = null;
5937
    }
5938
 
3430 rajveer 5939
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5940
    public boolean isSetMessage() {
5941
      return this.message != null;
5942
    }
5943
 
5944
    public void setMessageIsSet(boolean value) {
5945
      if (!value) {
5946
        this.message = null;
5947
      }
5948
    }
5949
 
5950
    public void setFieldValue(_Fields field, Object value) {
5951
      switch (field) {
5952
      case ID:
5953
        if (value == null) {
5954
          unsetId();
5955
        } else {
5956
          setId((Long)value);
5957
        }
5958
        break;
5959
 
5960
      case MESSAGE:
5961
        if (value == null) {
5962
          unsetMessage();
5963
        } else {
5964
          setMessage((String)value);
5965
        }
5966
        break;
5967
 
5968
      }
5969
    }
5970
 
5971
    public Object getFieldValue(_Fields field) {
5972
      switch (field) {
5973
      case ID:
3430 rajveer 5974
        return Long.valueOf(getId());
352 ashish 5975
 
5976
      case MESSAGE:
5977
        return getMessage();
5978
 
5979
      }
5980
      throw new IllegalStateException();
5981
    }
5982
 
3430 rajveer 5983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5984
    public boolean isSet(_Fields field) {
5985
      if (field == null) {
5986
        throw new IllegalArgumentException();
5987
      }
352 ashish 5988
 
5989
      switch (field) {
5990
      case ID:
5991
        return isSetId();
5992
      case MESSAGE:
5993
        return isSetMessage();
5994
      }
5995
      throw new IllegalStateException();
5996
    }
5997
 
5998
    @Override
5999
    public boolean equals(Object that) {
6000
      if (that == null)
6001
        return false;
6002
      if (that instanceof updateMessage_args)
6003
        return this.equals((updateMessage_args)that);
6004
      return false;
6005
    }
6006
 
6007
    public boolean equals(updateMessage_args that) {
6008
      if (that == null)
6009
        return false;
6010
 
6011
      boolean this_present_id = true;
6012
      boolean that_present_id = true;
6013
      if (this_present_id || that_present_id) {
6014
        if (!(this_present_id && that_present_id))
6015
          return false;
6016
        if (this.id != that.id)
6017
          return false;
6018
      }
6019
 
6020
      boolean this_present_message = true && this.isSetMessage();
6021
      boolean that_present_message = true && that.isSetMessage();
6022
      if (this_present_message || that_present_message) {
6023
        if (!(this_present_message && that_present_message))
6024
          return false;
6025
        if (!this.message.equals(that.message))
6026
          return false;
6027
      }
6028
 
6029
      return true;
6030
    }
6031
 
6032
    @Override
6033
    public int hashCode() {
6034
      return 0;
6035
    }
6036
 
6037
    public int compareTo(updateMessage_args other) {
6038
      if (!getClass().equals(other.getClass())) {
6039
        return getClass().getName().compareTo(other.getClass().getName());
6040
      }
6041
 
6042
      int lastComparison = 0;
6043
      updateMessage_args typedOther = (updateMessage_args)other;
6044
 
3430 rajveer 6045
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6046
      if (lastComparison != 0) {
6047
        return lastComparison;
6048
      }
3430 rajveer 6049
      if (isSetId()) {
6050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6051
        if (lastComparison != 0) {
6052
          return lastComparison;
6053
        }
352 ashish 6054
      }
3430 rajveer 6055
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6056
      if (lastComparison != 0) {
6057
        return lastComparison;
6058
      }
3430 rajveer 6059
      if (isSetMessage()) {
6060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6061
        if (lastComparison != 0) {
6062
          return lastComparison;
6063
        }
352 ashish 6064
      }
6065
      return 0;
6066
    }
6067
 
3430 rajveer 6068
    public _Fields fieldForId(int fieldId) {
6069
      return _Fields.findByThriftId(fieldId);
6070
    }
6071
 
6072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6073
      org.apache.thrift.protocol.TField field;
352 ashish 6074
      iprot.readStructBegin();
6075
      while (true)
6076
      {
6077
        field = iprot.readFieldBegin();
3430 rajveer 6078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6079
          break;
6080
        }
3430 rajveer 6081
        switch (field.id) {
6082
          case 1: // ID
6083
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6084
              this.id = iprot.readI64();
6085
              setIdIsSet(true);
6086
            } else { 
6087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6088
            }
6089
            break;
6090
          case 2: // MESSAGE
6091
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6092
              this.message = iprot.readString();
6093
            } else { 
6094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6095
            }
6096
            break;
6097
          default:
6098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6099
        }
3430 rajveer 6100
        iprot.readFieldEnd();
352 ashish 6101
      }
6102
      iprot.readStructEnd();
6103
      validate();
6104
    }
6105
 
3430 rajveer 6106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6107
      validate();
6108
 
6109
      oprot.writeStructBegin(STRUCT_DESC);
6110
      oprot.writeFieldBegin(ID_FIELD_DESC);
6111
      oprot.writeI64(this.id);
6112
      oprot.writeFieldEnd();
6113
      if (this.message != null) {
6114
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6115
        oprot.writeString(this.message);
6116
        oprot.writeFieldEnd();
6117
      }
6118
      oprot.writeFieldStop();
6119
      oprot.writeStructEnd();
6120
    }
6121
 
6122
    @Override
6123
    public String toString() {
6124
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6125
      boolean first = true;
6126
 
6127
      sb.append("id:");
6128
      sb.append(this.id);
6129
      first = false;
6130
      if (!first) sb.append(", ");
6131
      sb.append("message:");
6132
      if (this.message == null) {
6133
        sb.append("null");
6134
      } else {
6135
        sb.append(this.message);
6136
      }
6137
      first = false;
6138
      sb.append(")");
6139
      return sb.toString();
6140
    }
6141
 
3430 rajveer 6142
    public void validate() throws org.apache.thrift.TException {
352 ashish 6143
      // check for required fields
6144
    }
6145
 
3430 rajveer 6146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6147
      try {
6148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6149
      } catch (org.apache.thrift.TException te) {
6150
        throw new java.io.IOException(te);
6151
      }
6152
    }
6153
 
6154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6155
      try {
6156
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6157
        __isset_bit_vector = new BitSet(1);
6158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6159
      } catch (org.apache.thrift.TException te) {
6160
        throw new java.io.IOException(te);
6161
      }
6162
    }
6163
 
352 ashish 6164
  }
6165
 
3430 rajveer 6166
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6168
 
3430 rajveer 6169
    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 6170
 
3430 rajveer 6171
    private HelperServiceException se; // required
352 ashish 6172
 
6173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6175
      SE((short)1, "se");
6176
 
6177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6178
 
6179
      static {
6180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6181
          byName.put(field.getFieldName(), field);
6182
        }
6183
      }
6184
 
6185
      /**
6186
       * Find the _Fields constant that matches fieldId, or null if its not found.
6187
       */
6188
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6189
        switch(fieldId) {
6190
          case 1: // SE
6191
            return SE;
6192
          default:
6193
            return null;
6194
        }
352 ashish 6195
      }
6196
 
6197
      /**
6198
       * Find the _Fields constant that matches fieldId, throwing an exception
6199
       * if it is not found.
6200
       */
6201
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6202
        _Fields fields = findByThriftId(fieldId);
6203
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6204
        return fields;
6205
      }
6206
 
6207
      /**
6208
       * Find the _Fields constant that matches name, or null if its not found.
6209
       */
6210
      public static _Fields findByName(String name) {
6211
        return byName.get(name);
6212
      }
6213
 
6214
      private final short _thriftId;
6215
      private final String _fieldName;
6216
 
6217
      _Fields(short thriftId, String fieldName) {
6218
        _thriftId = thriftId;
6219
        _fieldName = fieldName;
6220
      }
6221
 
6222
      public short getThriftFieldId() {
6223
        return _thriftId;
6224
      }
6225
 
6226
      public String getFieldName() {
6227
        return _fieldName;
6228
      }
6229
    }
6230
 
6231
    // isset id assignments
6232
 
3430 rajveer 6233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6234
    static {
3430 rajveer 6235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6236
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 6240
    }
6241
 
6242
    public updateMessage_result() {
6243
    }
6244
 
6245
    public updateMessage_result(
6246
      HelperServiceException se)
6247
    {
6248
      this();
6249
      this.se = se;
6250
    }
6251
 
6252
    /**
6253
     * Performs a deep copy on <i>other</i>.
6254
     */
6255
    public updateMessage_result(updateMessage_result other) {
6256
      if (other.isSetSe()) {
6257
        this.se = new HelperServiceException(other.se);
6258
      }
6259
    }
6260
 
6261
    public updateMessage_result deepCopy() {
6262
      return new updateMessage_result(this);
6263
    }
6264
 
3430 rajveer 6265
    @Override
6266
    public void clear() {
6267
      this.se = null;
352 ashish 6268
    }
6269
 
6270
    public HelperServiceException getSe() {
6271
      return this.se;
6272
    }
6273
 
3430 rajveer 6274
    public void setSe(HelperServiceException se) {
352 ashish 6275
      this.se = se;
6276
    }
6277
 
6278
    public void unsetSe() {
6279
      this.se = null;
6280
    }
6281
 
3430 rajveer 6282
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6283
    public boolean isSetSe() {
6284
      return this.se != null;
6285
    }
6286
 
6287
    public void setSeIsSet(boolean value) {
6288
      if (!value) {
6289
        this.se = null;
6290
      }
6291
    }
6292
 
6293
    public void setFieldValue(_Fields field, Object value) {
6294
      switch (field) {
6295
      case SE:
6296
        if (value == null) {
6297
          unsetSe();
6298
        } else {
6299
          setSe((HelperServiceException)value);
6300
        }
6301
        break;
6302
 
6303
      }
6304
    }
6305
 
6306
    public Object getFieldValue(_Fields field) {
6307
      switch (field) {
6308
      case SE:
6309
        return getSe();
6310
 
6311
      }
6312
      throw new IllegalStateException();
6313
    }
6314
 
3430 rajveer 6315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6316
    public boolean isSet(_Fields field) {
6317
      if (field == null) {
6318
        throw new IllegalArgumentException();
6319
      }
352 ashish 6320
 
6321
      switch (field) {
6322
      case SE:
6323
        return isSetSe();
6324
      }
6325
      throw new IllegalStateException();
6326
    }
6327
 
6328
    @Override
6329
    public boolean equals(Object that) {
6330
      if (that == null)
6331
        return false;
6332
      if (that instanceof updateMessage_result)
6333
        return this.equals((updateMessage_result)that);
6334
      return false;
6335
    }
6336
 
6337
    public boolean equals(updateMessage_result that) {
6338
      if (that == null)
6339
        return false;
6340
 
6341
      boolean this_present_se = true && this.isSetSe();
6342
      boolean that_present_se = true && that.isSetSe();
6343
      if (this_present_se || that_present_se) {
6344
        if (!(this_present_se && that_present_se))
6345
          return false;
6346
        if (!this.se.equals(that.se))
6347
          return false;
6348
      }
6349
 
6350
      return true;
6351
    }
6352
 
6353
    @Override
6354
    public int hashCode() {
6355
      return 0;
6356
    }
6357
 
6358
    public int compareTo(updateMessage_result other) {
6359
      if (!getClass().equals(other.getClass())) {
6360
        return getClass().getName().compareTo(other.getClass().getName());
6361
      }
6362
 
6363
      int lastComparison = 0;
6364
      updateMessage_result typedOther = (updateMessage_result)other;
6365
 
3430 rajveer 6366
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6367
      if (lastComparison != 0) {
6368
        return lastComparison;
6369
      }
3430 rajveer 6370
      if (isSetSe()) {
6371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6372
        if (lastComparison != 0) {
6373
          return lastComparison;
6374
        }
352 ashish 6375
      }
6376
      return 0;
6377
    }
6378
 
3430 rajveer 6379
    public _Fields fieldForId(int fieldId) {
6380
      return _Fields.findByThriftId(fieldId);
6381
    }
6382
 
6383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6384
      org.apache.thrift.protocol.TField field;
352 ashish 6385
      iprot.readStructBegin();
6386
      while (true)
6387
      {
6388
        field = iprot.readFieldBegin();
3430 rajveer 6389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6390
          break;
6391
        }
3430 rajveer 6392
        switch (field.id) {
6393
          case 1: // SE
6394
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6395
              this.se = new HelperServiceException();
6396
              this.se.read(iprot);
6397
            } else { 
6398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6399
            }
6400
            break;
6401
          default:
6402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6403
        }
3430 rajveer 6404
        iprot.readFieldEnd();
352 ashish 6405
      }
6406
      iprot.readStructEnd();
6407
      validate();
6408
    }
6409
 
3430 rajveer 6410
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6411
      oprot.writeStructBegin(STRUCT_DESC);
6412
 
6413
      if (this.isSetSe()) {
6414
        oprot.writeFieldBegin(SE_FIELD_DESC);
6415
        this.se.write(oprot);
6416
        oprot.writeFieldEnd();
6417
      }
6418
      oprot.writeFieldStop();
6419
      oprot.writeStructEnd();
6420
    }
6421
 
6422
    @Override
6423
    public String toString() {
6424
      StringBuilder sb = new StringBuilder("updateMessage_result(");
6425
      boolean first = true;
6426
 
6427
      sb.append("se:");
6428
      if (this.se == null) {
6429
        sb.append("null");
6430
      } else {
6431
        sb.append(this.se);
6432
      }
6433
      first = false;
6434
      sb.append(")");
6435
      return sb.toString();
6436
    }
6437
 
3430 rajveer 6438
    public void validate() throws org.apache.thrift.TException {
352 ashish 6439
      // check for required fields
6440
    }
6441
 
3430 rajveer 6442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6443
      try {
6444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6445
      } catch (org.apache.thrift.TException te) {
6446
        throw new java.io.IOException(te);
6447
      }
6448
    }
6449
 
6450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6451
      try {
6452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6453
      } catch (org.apache.thrift.TException te) {
6454
        throw new java.io.IOException(te);
6455
      }
6456
    }
6457
 
352 ashish 6458
  }
6459
 
3430 rajveer 6460
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
6461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 6462
 
3430 rajveer 6463
    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 6464
 
3430 rajveer 6465
    private long id; // required
352 ashish 6466
 
6467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6469
      ID((short)1, "id");
6470
 
6471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6472
 
6473
      static {
6474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6475
          byName.put(field.getFieldName(), field);
6476
        }
6477
      }
6478
 
6479
      /**
6480
       * Find the _Fields constant that matches fieldId, or null if its not found.
6481
       */
6482
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6483
        switch(fieldId) {
6484
          case 1: // ID
6485
            return ID;
6486
          default:
6487
            return null;
6488
        }
352 ashish 6489
      }
6490
 
6491
      /**
6492
       * Find the _Fields constant that matches fieldId, throwing an exception
6493
       * if it is not found.
6494
       */
6495
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6496
        _Fields fields = findByThriftId(fieldId);
6497
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6498
        return fields;
6499
      }
6500
 
6501
      /**
6502
       * Find the _Fields constant that matches name, or null if its not found.
6503
       */
6504
      public static _Fields findByName(String name) {
6505
        return byName.get(name);
6506
      }
6507
 
6508
      private final short _thriftId;
6509
      private final String _fieldName;
6510
 
6511
      _Fields(short thriftId, String fieldName) {
6512
        _thriftId = thriftId;
6513
        _fieldName = fieldName;
6514
      }
6515
 
6516
      public short getThriftFieldId() {
6517
        return _thriftId;
6518
      }
6519
 
6520
      public String getFieldName() {
6521
        return _fieldName;
6522
      }
6523
    }
6524
 
6525
    // isset id assignments
6526
    private static final int __ID_ISSET_ID = 0;
6527
    private BitSet __isset_bit_vector = new BitSet(1);
6528
 
3430 rajveer 6529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6530
    static {
3430 rajveer 6531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6532
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 6536
    }
6537
 
6538
    public getMessage_args() {
6539
    }
6540
 
6541
    public getMessage_args(
6542
      long id)
6543
    {
6544
      this();
6545
      this.id = id;
6546
      setIdIsSet(true);
6547
    }
6548
 
6549
    /**
6550
     * Performs a deep copy on <i>other</i>.
6551
     */
6552
    public getMessage_args(getMessage_args other) {
6553
      __isset_bit_vector.clear();
6554
      __isset_bit_vector.or(other.__isset_bit_vector);
6555
      this.id = other.id;
6556
    }
6557
 
6558
    public getMessage_args deepCopy() {
6559
      return new getMessage_args(this);
6560
    }
6561
 
3430 rajveer 6562
    @Override
6563
    public void clear() {
6564
      setIdIsSet(false);
6565
      this.id = 0;
352 ashish 6566
    }
6567
 
6568
    public long getId() {
6569
      return this.id;
6570
    }
6571
 
3430 rajveer 6572
    public void setId(long id) {
352 ashish 6573
      this.id = id;
6574
      setIdIsSet(true);
6575
    }
6576
 
6577
    public void unsetId() {
6578
      __isset_bit_vector.clear(__ID_ISSET_ID);
6579
    }
6580
 
3430 rajveer 6581
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6582
    public boolean isSetId() {
6583
      return __isset_bit_vector.get(__ID_ISSET_ID);
6584
    }
6585
 
6586
    public void setIdIsSet(boolean value) {
6587
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6588
    }
6589
 
6590
    public void setFieldValue(_Fields field, Object value) {
6591
      switch (field) {
6592
      case ID:
6593
        if (value == null) {
6594
          unsetId();
6595
        } else {
6596
          setId((Long)value);
6597
        }
6598
        break;
6599
 
6600
      }
6601
    }
6602
 
6603
    public Object getFieldValue(_Fields field) {
6604
      switch (field) {
6605
      case ID:
3430 rajveer 6606
        return Long.valueOf(getId());
352 ashish 6607
 
6608
      }
6609
      throw new IllegalStateException();
6610
    }
6611
 
3430 rajveer 6612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6613
    public boolean isSet(_Fields field) {
6614
      if (field == null) {
6615
        throw new IllegalArgumentException();
6616
      }
352 ashish 6617
 
6618
      switch (field) {
6619
      case ID:
6620
        return isSetId();
6621
      }
6622
      throw new IllegalStateException();
6623
    }
6624
 
6625
    @Override
6626
    public boolean equals(Object that) {
6627
      if (that == null)
6628
        return false;
6629
      if (that instanceof getMessage_args)
6630
        return this.equals((getMessage_args)that);
6631
      return false;
6632
    }
6633
 
6634
    public boolean equals(getMessage_args that) {
6635
      if (that == null)
6636
        return false;
6637
 
6638
      boolean this_present_id = true;
6639
      boolean that_present_id = true;
6640
      if (this_present_id || that_present_id) {
6641
        if (!(this_present_id && that_present_id))
6642
          return false;
6643
        if (this.id != that.id)
6644
          return false;
6645
      }
6646
 
6647
      return true;
6648
    }
6649
 
6650
    @Override
6651
    public int hashCode() {
6652
      return 0;
6653
    }
6654
 
6655
    public int compareTo(getMessage_args other) {
6656
      if (!getClass().equals(other.getClass())) {
6657
        return getClass().getName().compareTo(other.getClass().getName());
6658
      }
6659
 
6660
      int lastComparison = 0;
6661
      getMessage_args typedOther = (getMessage_args)other;
6662
 
3430 rajveer 6663
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6664
      if (lastComparison != 0) {
6665
        return lastComparison;
6666
      }
3430 rajveer 6667
      if (isSetId()) {
6668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6669
        if (lastComparison != 0) {
6670
          return lastComparison;
6671
        }
352 ashish 6672
      }
6673
      return 0;
6674
    }
6675
 
3430 rajveer 6676
    public _Fields fieldForId(int fieldId) {
6677
      return _Fields.findByThriftId(fieldId);
6678
    }
6679
 
6680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6681
      org.apache.thrift.protocol.TField field;
352 ashish 6682
      iprot.readStructBegin();
6683
      while (true)
6684
      {
6685
        field = iprot.readFieldBegin();
3430 rajveer 6686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6687
          break;
6688
        }
3430 rajveer 6689
        switch (field.id) {
6690
          case 1: // ID
6691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6692
              this.id = iprot.readI64();
6693
              setIdIsSet(true);
6694
            } else { 
6695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6696
            }
6697
            break;
6698
          default:
6699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6700
        }
3430 rajveer 6701
        iprot.readFieldEnd();
352 ashish 6702
      }
6703
      iprot.readStructEnd();
6704
      validate();
6705
    }
6706
 
3430 rajveer 6707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6708
      validate();
6709
 
6710
      oprot.writeStructBegin(STRUCT_DESC);
6711
      oprot.writeFieldBegin(ID_FIELD_DESC);
6712
      oprot.writeI64(this.id);
6713
      oprot.writeFieldEnd();
6714
      oprot.writeFieldStop();
6715
      oprot.writeStructEnd();
6716
    }
6717
 
6718
    @Override
6719
    public String toString() {
6720
      StringBuilder sb = new StringBuilder("getMessage_args(");
6721
      boolean first = true;
6722
 
6723
      sb.append("id:");
6724
      sb.append(this.id);
6725
      first = false;
6726
      sb.append(")");
6727
      return sb.toString();
6728
    }
6729
 
3430 rajveer 6730
    public void validate() throws org.apache.thrift.TException {
352 ashish 6731
      // check for required fields
6732
    }
6733
 
3430 rajveer 6734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6735
      try {
6736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6737
      } catch (org.apache.thrift.TException te) {
6738
        throw new java.io.IOException(te);
6739
      }
6740
    }
6741
 
6742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6743
      try {
6744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6745
        __isset_bit_vector = new BitSet(1);
6746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6747
      } catch (org.apache.thrift.TException te) {
6748
        throw new java.io.IOException(te);
6749
      }
6750
    }
6751
 
352 ashish 6752
  }
6753
 
3430 rajveer 6754
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
6755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 6756
 
3430 rajveer 6757
    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);
6758
    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 6759
 
3430 rajveer 6760
    private Message success; // required
6761
    private HelperServiceException se; // required
352 ashish 6762
 
6763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6765
      SUCCESS((short)0, "success"),
6766
      SE((short)1, "se");
6767
 
6768
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6769
 
6770
      static {
6771
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6772
          byName.put(field.getFieldName(), field);
6773
        }
6774
      }
6775
 
6776
      /**
6777
       * Find the _Fields constant that matches fieldId, or null if its not found.
6778
       */
6779
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6780
        switch(fieldId) {
6781
          case 0: // SUCCESS
6782
            return SUCCESS;
6783
          case 1: // SE
6784
            return SE;
6785
          default:
6786
            return null;
6787
        }
352 ashish 6788
      }
6789
 
6790
      /**
6791
       * Find the _Fields constant that matches fieldId, throwing an exception
6792
       * if it is not found.
6793
       */
6794
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6795
        _Fields fields = findByThriftId(fieldId);
6796
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6797
        return fields;
6798
      }
6799
 
6800
      /**
6801
       * Find the _Fields constant that matches name, or null if its not found.
6802
       */
6803
      public static _Fields findByName(String name) {
6804
        return byName.get(name);
6805
      }
6806
 
6807
      private final short _thriftId;
6808
      private final String _fieldName;
6809
 
6810
      _Fields(short thriftId, String fieldName) {
6811
        _thriftId = thriftId;
6812
        _fieldName = fieldName;
6813
      }
6814
 
6815
      public short getThriftFieldId() {
6816
        return _thriftId;
6817
      }
6818
 
6819
      public String getFieldName() {
6820
        return _fieldName;
6821
      }
6822
    }
6823
 
6824
    // isset id assignments
6825
 
3430 rajveer 6826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6827
    static {
3430 rajveer 6828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6829
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6830
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6831
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 6835
    }
6836
 
6837
    public getMessage_result() {
6838
    }
6839
 
6840
    public getMessage_result(
6841
      Message success,
6842
      HelperServiceException se)
6843
    {
6844
      this();
6845
      this.success = success;
6846
      this.se = se;
6847
    }
6848
 
6849
    /**
6850
     * Performs a deep copy on <i>other</i>.
6851
     */
6852
    public getMessage_result(getMessage_result other) {
6853
      if (other.isSetSuccess()) {
6854
        this.success = new Message(other.success);
6855
      }
6856
      if (other.isSetSe()) {
6857
        this.se = new HelperServiceException(other.se);
6858
      }
6859
    }
6860
 
6861
    public getMessage_result deepCopy() {
6862
      return new getMessage_result(this);
6863
    }
6864
 
3430 rajveer 6865
    @Override
6866
    public void clear() {
6867
      this.success = null;
6868
      this.se = null;
352 ashish 6869
    }
6870
 
6871
    public Message getSuccess() {
6872
      return this.success;
6873
    }
6874
 
3430 rajveer 6875
    public void setSuccess(Message success) {
352 ashish 6876
      this.success = success;
6877
    }
6878
 
6879
    public void unsetSuccess() {
6880
      this.success = null;
6881
    }
6882
 
3430 rajveer 6883
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 6884
    public boolean isSetSuccess() {
6885
      return this.success != null;
6886
    }
6887
 
6888
    public void setSuccessIsSet(boolean value) {
6889
      if (!value) {
6890
        this.success = null;
6891
      }
6892
    }
6893
 
6894
    public HelperServiceException getSe() {
6895
      return this.se;
6896
    }
6897
 
3430 rajveer 6898
    public void setSe(HelperServiceException se) {
352 ashish 6899
      this.se = se;
6900
    }
6901
 
6902
    public void unsetSe() {
6903
      this.se = null;
6904
    }
6905
 
3430 rajveer 6906
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6907
    public boolean isSetSe() {
6908
      return this.se != null;
6909
    }
6910
 
6911
    public void setSeIsSet(boolean value) {
6912
      if (!value) {
6913
        this.se = null;
6914
      }
6915
    }
6916
 
6917
    public void setFieldValue(_Fields field, Object value) {
6918
      switch (field) {
6919
      case SUCCESS:
6920
        if (value == null) {
6921
          unsetSuccess();
6922
        } else {
6923
          setSuccess((Message)value);
6924
        }
6925
        break;
6926
 
6927
      case SE:
6928
        if (value == null) {
6929
          unsetSe();
6930
        } else {
6931
          setSe((HelperServiceException)value);
6932
        }
6933
        break;
6934
 
6935
      }
6936
    }
6937
 
6938
    public Object getFieldValue(_Fields field) {
6939
      switch (field) {
6940
      case SUCCESS:
6941
        return getSuccess();
6942
 
6943
      case SE:
6944
        return getSe();
6945
 
6946
      }
6947
      throw new IllegalStateException();
6948
    }
6949
 
3430 rajveer 6950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6951
    public boolean isSet(_Fields field) {
6952
      if (field == null) {
6953
        throw new IllegalArgumentException();
6954
      }
352 ashish 6955
 
6956
      switch (field) {
6957
      case SUCCESS:
6958
        return isSetSuccess();
6959
      case SE:
6960
        return isSetSe();
6961
      }
6962
      throw new IllegalStateException();
6963
    }
6964
 
6965
    @Override
6966
    public boolean equals(Object that) {
6967
      if (that == null)
6968
        return false;
6969
      if (that instanceof getMessage_result)
6970
        return this.equals((getMessage_result)that);
6971
      return false;
6972
    }
6973
 
6974
    public boolean equals(getMessage_result that) {
6975
      if (that == null)
6976
        return false;
6977
 
6978
      boolean this_present_success = true && this.isSetSuccess();
6979
      boolean that_present_success = true && that.isSetSuccess();
6980
      if (this_present_success || that_present_success) {
6981
        if (!(this_present_success && that_present_success))
6982
          return false;
6983
        if (!this.success.equals(that.success))
6984
          return false;
6985
      }
6986
 
6987
      boolean this_present_se = true && this.isSetSe();
6988
      boolean that_present_se = true && that.isSetSe();
6989
      if (this_present_se || that_present_se) {
6990
        if (!(this_present_se && that_present_se))
6991
          return false;
6992
        if (!this.se.equals(that.se))
6993
          return false;
6994
      }
6995
 
6996
      return true;
6997
    }
6998
 
6999
    @Override
7000
    public int hashCode() {
7001
      return 0;
7002
    }
7003
 
7004
    public int compareTo(getMessage_result other) {
7005
      if (!getClass().equals(other.getClass())) {
7006
        return getClass().getName().compareTo(other.getClass().getName());
7007
      }
7008
 
7009
      int lastComparison = 0;
7010
      getMessage_result typedOther = (getMessage_result)other;
7011
 
3430 rajveer 7012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7013
      if (lastComparison != 0) {
7014
        return lastComparison;
7015
      }
3430 rajveer 7016
      if (isSetSuccess()) {
7017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7018
        if (lastComparison != 0) {
7019
          return lastComparison;
7020
        }
352 ashish 7021
      }
3430 rajveer 7022
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7023
      if (lastComparison != 0) {
7024
        return lastComparison;
7025
      }
3430 rajveer 7026
      if (isSetSe()) {
7027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7028
        if (lastComparison != 0) {
7029
          return lastComparison;
7030
        }
352 ashish 7031
      }
7032
      return 0;
7033
    }
7034
 
3430 rajveer 7035
    public _Fields fieldForId(int fieldId) {
7036
      return _Fields.findByThriftId(fieldId);
7037
    }
7038
 
7039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7040
      org.apache.thrift.protocol.TField field;
352 ashish 7041
      iprot.readStructBegin();
7042
      while (true)
7043
      {
7044
        field = iprot.readFieldBegin();
3430 rajveer 7045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7046
          break;
7047
        }
3430 rajveer 7048
        switch (field.id) {
7049
          case 0: // SUCCESS
7050
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7051
              this.success = new Message();
7052
              this.success.read(iprot);
7053
            } else { 
7054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7055
            }
7056
            break;
7057
          case 1: // SE
7058
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7059
              this.se = new HelperServiceException();
7060
              this.se.read(iprot);
7061
            } else { 
7062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7063
            }
7064
            break;
7065
          default:
7066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7067
        }
3430 rajveer 7068
        iprot.readFieldEnd();
352 ashish 7069
      }
7070
      iprot.readStructEnd();
7071
      validate();
7072
    }
7073
 
3430 rajveer 7074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7075
      oprot.writeStructBegin(STRUCT_DESC);
7076
 
7077
      if (this.isSetSuccess()) {
7078
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7079
        this.success.write(oprot);
7080
        oprot.writeFieldEnd();
7081
      } else if (this.isSetSe()) {
7082
        oprot.writeFieldBegin(SE_FIELD_DESC);
7083
        this.se.write(oprot);
7084
        oprot.writeFieldEnd();
7085
      }
7086
      oprot.writeFieldStop();
7087
      oprot.writeStructEnd();
7088
    }
7089
 
7090
    @Override
7091
    public String toString() {
7092
      StringBuilder sb = new StringBuilder("getMessage_result(");
7093
      boolean first = true;
7094
 
7095
      sb.append("success:");
7096
      if (this.success == null) {
7097
        sb.append("null");
7098
      } else {
7099
        sb.append(this.success);
7100
      }
7101
      first = false;
7102
      if (!first) sb.append(", ");
7103
      sb.append("se:");
7104
      if (this.se == null) {
7105
        sb.append("null");
7106
      } else {
7107
        sb.append(this.se);
7108
      }
7109
      first = false;
7110
      sb.append(")");
7111
      return sb.toString();
7112
    }
7113
 
3430 rajveer 7114
    public void validate() throws org.apache.thrift.TException {
352 ashish 7115
      // check for required fields
7116
    }
7117
 
3430 rajveer 7118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7119
      try {
7120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7121
      } catch (org.apache.thrift.TException te) {
7122
        throw new java.io.IOException(te);
7123
      }
7124
    }
7125
 
7126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7127
      try {
7128
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7129
      } catch (org.apache.thrift.TException te) {
7130
        throw new java.io.IOException(te);
7131
      }
7132
    }
7133
 
352 ashish 7134
  }
7135
 
3430 rajveer 7136
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7137
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7138
 
3430 rajveer 7139
    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);
7140
    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 7141
 
3430 rajveer 7142
    private long id; // required
7143
    private Map<String,String> params; // required
352 ashish 7144
 
7145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7147
      ID((short)1, "id"),
7148
      PARAMS((short)2, "params");
7149
 
7150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7151
 
7152
      static {
7153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7154
          byName.put(field.getFieldName(), field);
7155
        }
7156
      }
7157
 
7158
      /**
7159
       * Find the _Fields constant that matches fieldId, or null if its not found.
7160
       */
7161
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7162
        switch(fieldId) {
7163
          case 1: // ID
7164
            return ID;
7165
          case 2: // PARAMS
7166
            return PARAMS;
7167
          default:
7168
            return null;
7169
        }
352 ashish 7170
      }
7171
 
7172
      /**
7173
       * Find the _Fields constant that matches fieldId, throwing an exception
7174
       * if it is not found.
7175
       */
7176
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7177
        _Fields fields = findByThriftId(fieldId);
7178
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7179
        return fields;
7180
      }
7181
 
7182
      /**
7183
       * Find the _Fields constant that matches name, or null if its not found.
7184
       */
7185
      public static _Fields findByName(String name) {
7186
        return byName.get(name);
7187
      }
7188
 
7189
      private final short _thriftId;
7190
      private final String _fieldName;
7191
 
7192
      _Fields(short thriftId, String fieldName) {
7193
        _thriftId = thriftId;
7194
        _fieldName = fieldName;
7195
      }
7196
 
7197
      public short getThriftFieldId() {
7198
        return _thriftId;
7199
      }
7200
 
7201
      public String getFieldName() {
7202
        return _fieldName;
7203
      }
7204
    }
7205
 
7206
    // isset id assignments
7207
    private static final int __ID_ISSET_ID = 0;
7208
    private BitSet __isset_bit_vector = new BitSet(1);
7209
 
3430 rajveer 7210
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7211
    static {
3430 rajveer 7212
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7213
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7215
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7216
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7217
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7218
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 7221
    }
7222
 
7223
    public getSubstitutedMessage_args() {
7224
    }
7225
 
7226
    public getSubstitutedMessage_args(
7227
      long id,
7228
      Map<String,String> params)
7229
    {
7230
      this();
7231
      this.id = id;
7232
      setIdIsSet(true);
7233
      this.params = params;
7234
    }
7235
 
7236
    /**
7237
     * Performs a deep copy on <i>other</i>.
7238
     */
7239
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
7240
      __isset_bit_vector.clear();
7241
      __isset_bit_vector.or(other.__isset_bit_vector);
7242
      this.id = other.id;
7243
      if (other.isSetParams()) {
7244
        Map<String,String> __this__params = new HashMap<String,String>();
7245
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
7246
 
7247
          String other_element_key = other_element.getKey();
7248
          String other_element_value = other_element.getValue();
7249
 
7250
          String __this__params_copy_key = other_element_key;
7251
 
7252
          String __this__params_copy_value = other_element_value;
7253
 
7254
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
7255
        }
7256
        this.params = __this__params;
7257
      }
7258
    }
7259
 
7260
    public getSubstitutedMessage_args deepCopy() {
7261
      return new getSubstitutedMessage_args(this);
7262
    }
7263
 
3430 rajveer 7264
    @Override
7265
    public void clear() {
7266
      setIdIsSet(false);
7267
      this.id = 0;
7268
      this.params = null;
352 ashish 7269
    }
7270
 
7271
    public long getId() {
7272
      return this.id;
7273
    }
7274
 
3430 rajveer 7275
    public void setId(long id) {
352 ashish 7276
      this.id = id;
7277
      setIdIsSet(true);
7278
    }
7279
 
7280
    public void unsetId() {
7281
      __isset_bit_vector.clear(__ID_ISSET_ID);
7282
    }
7283
 
3430 rajveer 7284
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7285
    public boolean isSetId() {
7286
      return __isset_bit_vector.get(__ID_ISSET_ID);
7287
    }
7288
 
7289
    public void setIdIsSet(boolean value) {
7290
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7291
    }
7292
 
7293
    public int getParamsSize() {
7294
      return (this.params == null) ? 0 : this.params.size();
7295
    }
7296
 
7297
    public void putToParams(String key, String val) {
7298
      if (this.params == null) {
7299
        this.params = new HashMap<String,String>();
7300
      }
7301
      this.params.put(key, val);
7302
    }
7303
 
7304
    public Map<String,String> getParams() {
7305
      return this.params;
7306
    }
7307
 
3430 rajveer 7308
    public void setParams(Map<String,String> params) {
352 ashish 7309
      this.params = params;
7310
    }
7311
 
7312
    public void unsetParams() {
7313
      this.params = null;
7314
    }
7315
 
3430 rajveer 7316
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 7317
    public boolean isSetParams() {
7318
      return this.params != null;
7319
    }
7320
 
7321
    public void setParamsIsSet(boolean value) {
7322
      if (!value) {
7323
        this.params = null;
7324
      }
7325
    }
7326
 
7327
    public void setFieldValue(_Fields field, Object value) {
7328
      switch (field) {
7329
      case ID:
7330
        if (value == null) {
7331
          unsetId();
7332
        } else {
7333
          setId((Long)value);
7334
        }
7335
        break;
7336
 
7337
      case PARAMS:
7338
        if (value == null) {
7339
          unsetParams();
7340
        } else {
7341
          setParams((Map<String,String>)value);
7342
        }
7343
        break;
7344
 
7345
      }
7346
    }
7347
 
7348
    public Object getFieldValue(_Fields field) {
7349
      switch (field) {
7350
      case ID:
3430 rajveer 7351
        return Long.valueOf(getId());
352 ashish 7352
 
7353
      case PARAMS:
7354
        return getParams();
7355
 
7356
      }
7357
      throw new IllegalStateException();
7358
    }
7359
 
3430 rajveer 7360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7361
    public boolean isSet(_Fields field) {
7362
      if (field == null) {
7363
        throw new IllegalArgumentException();
7364
      }
352 ashish 7365
 
7366
      switch (field) {
7367
      case ID:
7368
        return isSetId();
7369
      case PARAMS:
7370
        return isSetParams();
7371
      }
7372
      throw new IllegalStateException();
7373
    }
7374
 
7375
    @Override
7376
    public boolean equals(Object that) {
7377
      if (that == null)
7378
        return false;
7379
      if (that instanceof getSubstitutedMessage_args)
7380
        return this.equals((getSubstitutedMessage_args)that);
7381
      return false;
7382
    }
7383
 
7384
    public boolean equals(getSubstitutedMessage_args that) {
7385
      if (that == null)
7386
        return false;
7387
 
7388
      boolean this_present_id = true;
7389
      boolean that_present_id = true;
7390
      if (this_present_id || that_present_id) {
7391
        if (!(this_present_id && that_present_id))
7392
          return false;
7393
        if (this.id != that.id)
7394
          return false;
7395
      }
7396
 
7397
      boolean this_present_params = true && this.isSetParams();
7398
      boolean that_present_params = true && that.isSetParams();
7399
      if (this_present_params || that_present_params) {
7400
        if (!(this_present_params && that_present_params))
7401
          return false;
7402
        if (!this.params.equals(that.params))
7403
          return false;
7404
      }
7405
 
7406
      return true;
7407
    }
7408
 
7409
    @Override
7410
    public int hashCode() {
7411
      return 0;
7412
    }
7413
 
3430 rajveer 7414
    public int compareTo(getSubstitutedMessage_args other) {
7415
      if (!getClass().equals(other.getClass())) {
7416
        return getClass().getName().compareTo(other.getClass().getName());
7417
      }
7418
 
7419
      int lastComparison = 0;
7420
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
7421
 
7422
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
7423
      if (lastComparison != 0) {
7424
        return lastComparison;
7425
      }
7426
      if (isSetId()) {
7427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7428
        if (lastComparison != 0) {
7429
          return lastComparison;
7430
        }
7431
      }
7432
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
7433
      if (lastComparison != 0) {
7434
        return lastComparison;
7435
      }
7436
      if (isSetParams()) {
7437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
7438
        if (lastComparison != 0) {
7439
          return lastComparison;
7440
        }
7441
      }
7442
      return 0;
7443
    }
7444
 
7445
    public _Fields fieldForId(int fieldId) {
7446
      return _Fields.findByThriftId(fieldId);
7447
    }
7448
 
7449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7450
      org.apache.thrift.protocol.TField field;
352 ashish 7451
      iprot.readStructBegin();
7452
      while (true)
7453
      {
7454
        field = iprot.readFieldBegin();
3430 rajveer 7455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7456
          break;
7457
        }
3430 rajveer 7458
        switch (field.id) {
7459
          case 1: // ID
7460
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7461
              this.id = iprot.readI64();
7462
              setIdIsSet(true);
7463
            } else { 
7464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7465
            }
7466
            break;
7467
          case 2: // PARAMS
7468
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
7469
              {
7470
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
7471
                this.params = new HashMap<String,String>(2*_map12.size);
7472
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 7473
                {
3430 rajveer 7474
                  String _key14; // required
7475
                  String _val15; // required
7476
                  _key14 = iprot.readString();
7477
                  _val15 = iprot.readString();
7478
                  this.params.put(_key14, _val15);
352 ashish 7479
                }
3430 rajveer 7480
                iprot.readMapEnd();
352 ashish 7481
              }
3430 rajveer 7482
            } else { 
7483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7484
            }
7485
            break;
7486
          default:
7487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7488
        }
3430 rajveer 7489
        iprot.readFieldEnd();
352 ashish 7490
      }
7491
      iprot.readStructEnd();
7492
      validate();
7493
    }
7494
 
3430 rajveer 7495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7496
      validate();
7497
 
7498
      oprot.writeStructBegin(STRUCT_DESC);
7499
      oprot.writeFieldBegin(ID_FIELD_DESC);
7500
      oprot.writeI64(this.id);
7501
      oprot.writeFieldEnd();
7502
      if (this.params != null) {
7503
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
7504
        {
3430 rajveer 7505
          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 7506
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 7507
          {
1422 varun.gupt 7508
            oprot.writeString(_iter16.getKey());
7509
            oprot.writeString(_iter16.getValue());
352 ashish 7510
          }
7511
          oprot.writeMapEnd();
7512
        }
7513
        oprot.writeFieldEnd();
7514
      }
7515
      oprot.writeFieldStop();
7516
      oprot.writeStructEnd();
7517
    }
7518
 
7519
    @Override
7520
    public String toString() {
7521
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
7522
      boolean first = true;
7523
 
7524
      sb.append("id:");
7525
      sb.append(this.id);
7526
      first = false;
7527
      if (!first) sb.append(", ");
7528
      sb.append("params:");
7529
      if (this.params == null) {
7530
        sb.append("null");
7531
      } else {
7532
        sb.append(this.params);
7533
      }
7534
      first = false;
7535
      sb.append(")");
7536
      return sb.toString();
7537
    }
7538
 
3430 rajveer 7539
    public void validate() throws org.apache.thrift.TException {
352 ashish 7540
      // check for required fields
7541
    }
7542
 
3430 rajveer 7543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7544
      try {
7545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7546
      } catch (org.apache.thrift.TException te) {
7547
        throw new java.io.IOException(te);
7548
      }
7549
    }
7550
 
7551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7552
      try {
7553
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7554
        __isset_bit_vector = new BitSet(1);
7555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7556
      } catch (org.apache.thrift.TException te) {
7557
        throw new java.io.IOException(te);
7558
      }
7559
    }
7560
 
352 ashish 7561
  }
7562
 
3430 rajveer 7563
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
7564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 7565
 
3430 rajveer 7566
    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);
7567
    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 7568
 
3430 rajveer 7569
    private Message success; // required
7570
    private HelperServiceException se; // required
352 ashish 7571
 
7572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7574
      SUCCESS((short)0, "success"),
7575
      SE((short)1, "se");
7576
 
7577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7578
 
7579
      static {
7580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7581
          byName.put(field.getFieldName(), field);
7582
        }
7583
      }
7584
 
7585
      /**
7586
       * Find the _Fields constant that matches fieldId, or null if its not found.
7587
       */
7588
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7589
        switch(fieldId) {
7590
          case 0: // SUCCESS
7591
            return SUCCESS;
7592
          case 1: // SE
7593
            return SE;
7594
          default:
7595
            return null;
7596
        }
352 ashish 7597
      }
7598
 
7599
      /**
7600
       * Find the _Fields constant that matches fieldId, throwing an exception
7601
       * if it is not found.
7602
       */
7603
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7604
        _Fields fields = findByThriftId(fieldId);
7605
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7606
        return fields;
7607
      }
7608
 
7609
      /**
7610
       * Find the _Fields constant that matches name, or null if its not found.
7611
       */
7612
      public static _Fields findByName(String name) {
7613
        return byName.get(name);
7614
      }
7615
 
7616
      private final short _thriftId;
7617
      private final String _fieldName;
7618
 
7619
      _Fields(short thriftId, String fieldName) {
7620
        _thriftId = thriftId;
7621
        _fieldName = fieldName;
7622
      }
7623
 
7624
      public short getThriftFieldId() {
7625
        return _thriftId;
7626
      }
7627
 
7628
      public String getFieldName() {
7629
        return _fieldName;
7630
      }
7631
    }
7632
 
7633
    // isset id assignments
7634
 
3430 rajveer 7635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7636
    static {
3430 rajveer 7637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7638
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7639
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7640
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 7644
    }
7645
 
7646
    public getSubstitutedMessage_result() {
7647
    }
7648
 
7649
    public getSubstitutedMessage_result(
7650
      Message success,
7651
      HelperServiceException se)
7652
    {
7653
      this();
7654
      this.success = success;
7655
      this.se = se;
7656
    }
7657
 
7658
    /**
7659
     * Performs a deep copy on <i>other</i>.
7660
     */
7661
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
7662
      if (other.isSetSuccess()) {
7663
        this.success = new Message(other.success);
7664
      }
7665
      if (other.isSetSe()) {
7666
        this.se = new HelperServiceException(other.se);
7667
      }
7668
    }
7669
 
7670
    public getSubstitutedMessage_result deepCopy() {
7671
      return new getSubstitutedMessage_result(this);
7672
    }
7673
 
3430 rajveer 7674
    @Override
7675
    public void clear() {
7676
      this.success = null;
7677
      this.se = null;
352 ashish 7678
    }
7679
 
7680
    public Message getSuccess() {
7681
      return this.success;
7682
    }
7683
 
3430 rajveer 7684
    public void setSuccess(Message success) {
352 ashish 7685
      this.success = success;
7686
    }
7687
 
7688
    public void unsetSuccess() {
7689
      this.success = null;
7690
    }
7691
 
3430 rajveer 7692
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7693
    public boolean isSetSuccess() {
7694
      return this.success != null;
7695
    }
7696
 
7697
    public void setSuccessIsSet(boolean value) {
7698
      if (!value) {
7699
        this.success = null;
7700
      }
7701
    }
7702
 
7703
    public HelperServiceException getSe() {
7704
      return this.se;
7705
    }
7706
 
3430 rajveer 7707
    public void setSe(HelperServiceException se) {
352 ashish 7708
      this.se = se;
7709
    }
7710
 
7711
    public void unsetSe() {
7712
      this.se = null;
7713
    }
7714
 
3430 rajveer 7715
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7716
    public boolean isSetSe() {
7717
      return this.se != null;
7718
    }
7719
 
7720
    public void setSeIsSet(boolean value) {
7721
      if (!value) {
7722
        this.se = null;
7723
      }
7724
    }
7725
 
7726
    public void setFieldValue(_Fields field, Object value) {
7727
      switch (field) {
7728
      case SUCCESS:
7729
        if (value == null) {
7730
          unsetSuccess();
7731
        } else {
7732
          setSuccess((Message)value);
7733
        }
7734
        break;
7735
 
7736
      case SE:
7737
        if (value == null) {
7738
          unsetSe();
7739
        } else {
7740
          setSe((HelperServiceException)value);
7741
        }
7742
        break;
7743
 
7744
      }
7745
    }
7746
 
7747
    public Object getFieldValue(_Fields field) {
7748
      switch (field) {
7749
      case SUCCESS:
7750
        return getSuccess();
7751
 
7752
      case SE:
7753
        return getSe();
7754
 
7755
      }
7756
      throw new IllegalStateException();
7757
    }
7758
 
3430 rajveer 7759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7760
    public boolean isSet(_Fields field) {
7761
      if (field == null) {
7762
        throw new IllegalArgumentException();
7763
      }
352 ashish 7764
 
7765
      switch (field) {
7766
      case SUCCESS:
7767
        return isSetSuccess();
7768
      case SE:
7769
        return isSetSe();
7770
      }
7771
      throw new IllegalStateException();
7772
    }
7773
 
7774
    @Override
7775
    public boolean equals(Object that) {
7776
      if (that == null)
7777
        return false;
7778
      if (that instanceof getSubstitutedMessage_result)
7779
        return this.equals((getSubstitutedMessage_result)that);
7780
      return false;
7781
    }
7782
 
7783
    public boolean equals(getSubstitutedMessage_result that) {
7784
      if (that == null)
7785
        return false;
7786
 
7787
      boolean this_present_success = true && this.isSetSuccess();
7788
      boolean that_present_success = true && that.isSetSuccess();
7789
      if (this_present_success || that_present_success) {
7790
        if (!(this_present_success && that_present_success))
7791
          return false;
7792
        if (!this.success.equals(that.success))
7793
          return false;
7794
      }
7795
 
7796
      boolean this_present_se = true && this.isSetSe();
7797
      boolean that_present_se = true && that.isSetSe();
7798
      if (this_present_se || that_present_se) {
7799
        if (!(this_present_se && that_present_se))
7800
          return false;
7801
        if (!this.se.equals(that.se))
7802
          return false;
7803
      }
7804
 
7805
      return true;
7806
    }
7807
 
7808
    @Override
7809
    public int hashCode() {
7810
      return 0;
7811
    }
7812
 
7813
    public int compareTo(getSubstitutedMessage_result other) {
7814
      if (!getClass().equals(other.getClass())) {
7815
        return getClass().getName().compareTo(other.getClass().getName());
7816
      }
7817
 
7818
      int lastComparison = 0;
7819
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
7820
 
3430 rajveer 7821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7822
      if (lastComparison != 0) {
7823
        return lastComparison;
7824
      }
3430 rajveer 7825
      if (isSetSuccess()) {
7826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7827
        if (lastComparison != 0) {
7828
          return lastComparison;
7829
        }
352 ashish 7830
      }
3430 rajveer 7831
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7832
      if (lastComparison != 0) {
7833
        return lastComparison;
7834
      }
3430 rajveer 7835
      if (isSetSe()) {
7836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7837
        if (lastComparison != 0) {
7838
          return lastComparison;
7839
        }
352 ashish 7840
      }
7841
      return 0;
7842
    }
7843
 
3430 rajveer 7844
    public _Fields fieldForId(int fieldId) {
7845
      return _Fields.findByThriftId(fieldId);
7846
    }
7847
 
7848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7849
      org.apache.thrift.protocol.TField field;
352 ashish 7850
      iprot.readStructBegin();
7851
      while (true)
7852
      {
7853
        field = iprot.readFieldBegin();
3430 rajveer 7854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7855
          break;
7856
        }
3430 rajveer 7857
        switch (field.id) {
7858
          case 0: // SUCCESS
7859
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7860
              this.success = new Message();
7861
              this.success.read(iprot);
7862
            } else { 
7863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7864
            }
7865
            break;
7866
          case 1: // SE
7867
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7868
              this.se = new HelperServiceException();
7869
              this.se.read(iprot);
7870
            } else { 
7871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7872
            }
7873
            break;
7874
          default:
7875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7876
        }
3430 rajveer 7877
        iprot.readFieldEnd();
352 ashish 7878
      }
7879
      iprot.readStructEnd();
7880
      validate();
7881
    }
7882
 
3430 rajveer 7883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7884
      oprot.writeStructBegin(STRUCT_DESC);
7885
 
7886
      if (this.isSetSuccess()) {
7887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7888
        this.success.write(oprot);
7889
        oprot.writeFieldEnd();
7890
      } else if (this.isSetSe()) {
7891
        oprot.writeFieldBegin(SE_FIELD_DESC);
7892
        this.se.write(oprot);
7893
        oprot.writeFieldEnd();
7894
      }
7895
      oprot.writeFieldStop();
7896
      oprot.writeStructEnd();
7897
    }
7898
 
7899
    @Override
7900
    public String toString() {
7901
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
7902
      boolean first = true;
7903
 
7904
      sb.append("success:");
7905
      if (this.success == null) {
7906
        sb.append("null");
7907
      } else {
7908
        sb.append(this.success);
7909
      }
7910
      first = false;
7911
      if (!first) sb.append(", ");
7912
      sb.append("se:");
7913
      if (this.se == null) {
7914
        sb.append("null");
7915
      } else {
7916
        sb.append(this.se);
7917
      }
7918
      first = false;
7919
      sb.append(")");
7920
      return sb.toString();
7921
    }
7922
 
3430 rajveer 7923
    public void validate() throws org.apache.thrift.TException {
352 ashish 7924
      // check for required fields
7925
    }
7926
 
3430 rajveer 7927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7928
      try {
7929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7930
      } catch (org.apache.thrift.TException te) {
7931
        throw new java.io.IOException(te);
7932
      }
7933
    }
7934
 
7935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7936
      try {
7937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7938
      } catch (org.apache.thrift.TException te) {
7939
        throw new java.io.IOException(te);
7940
      }
7941
    }
7942
 
352 ashish 7943
  }
7944
 
3430 rajveer 7945
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
7946
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 7947
 
3430 rajveer 7948
    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);
7949
    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);
7950
    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 7951
 
3430 rajveer 7952
    private String username; // required
7953
    private String password; // required
7954
    private long warehouseId; // required
495 rajveer 7955
 
7956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 7958
      USERNAME((short)1, "username"),
7959
      PASSWORD((short)2, "password"),
7960
      WAREHOUSE_ID((short)3, "warehouseId");
7961
 
7962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7963
 
7964
      static {
7965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7966
          byName.put(field.getFieldName(), field);
7967
        }
7968
      }
7969
 
7970
      /**
7971
       * Find the _Fields constant that matches fieldId, or null if its not found.
7972
       */
7973
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7974
        switch(fieldId) {
7975
          case 1: // USERNAME
7976
            return USERNAME;
7977
          case 2: // PASSWORD
7978
            return PASSWORD;
7979
          case 3: // WAREHOUSE_ID
7980
            return WAREHOUSE_ID;
7981
          default:
7982
            return null;
7983
        }
495 rajveer 7984
      }
7985
 
7986
      /**
7987
       * Find the _Fields constant that matches fieldId, throwing an exception
7988
       * if it is not found.
7989
       */
7990
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7991
        _Fields fields = findByThriftId(fieldId);
7992
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7993
        return fields;
7994
      }
7995
 
7996
      /**
7997
       * Find the _Fields constant that matches name, or null if its not found.
7998
       */
7999
      public static _Fields findByName(String name) {
8000
        return byName.get(name);
8001
      }
8002
 
8003
      private final short _thriftId;
8004
      private final String _fieldName;
8005
 
8006
      _Fields(short thriftId, String fieldName) {
8007
        _thriftId = thriftId;
8008
        _fieldName = fieldName;
8009
      }
8010
 
8011
      public short getThriftFieldId() {
8012
        return _thriftId;
8013
      }
8014
 
8015
      public String getFieldName() {
8016
        return _fieldName;
8017
      }
8018
    }
8019
 
8020
    // isset id assignments
8021
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8022
    private BitSet __isset_bit_vector = new BitSet(1);
8023
 
3430 rajveer 8024
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8025
    static {
3430 rajveer 8026
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8027
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8029
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8031
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8035
    }
8036
 
8037
    public addUser_args() {
8038
    }
8039
 
8040
    public addUser_args(
8041
      String username,
8042
      String password,
8043
      long warehouseId)
8044
    {
8045
      this();
8046
      this.username = username;
8047
      this.password = password;
8048
      this.warehouseId = warehouseId;
8049
      setWarehouseIdIsSet(true);
8050
    }
8051
 
8052
    /**
8053
     * Performs a deep copy on <i>other</i>.
8054
     */
8055
    public addUser_args(addUser_args other) {
8056
      __isset_bit_vector.clear();
8057
      __isset_bit_vector.or(other.__isset_bit_vector);
8058
      if (other.isSetUsername()) {
8059
        this.username = other.username;
8060
      }
8061
      if (other.isSetPassword()) {
8062
        this.password = other.password;
8063
      }
8064
      this.warehouseId = other.warehouseId;
8065
    }
8066
 
8067
    public addUser_args deepCopy() {
8068
      return new addUser_args(this);
8069
    }
8070
 
3430 rajveer 8071
    @Override
8072
    public void clear() {
8073
      this.username = null;
8074
      this.password = null;
8075
      setWarehouseIdIsSet(false);
8076
      this.warehouseId = 0;
495 rajveer 8077
    }
8078
 
8079
    public String getUsername() {
8080
      return this.username;
8081
    }
8082
 
3430 rajveer 8083
    public void setUsername(String username) {
495 rajveer 8084
      this.username = username;
8085
    }
8086
 
8087
    public void unsetUsername() {
8088
      this.username = null;
8089
    }
8090
 
3430 rajveer 8091
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8092
    public boolean isSetUsername() {
8093
      return this.username != null;
8094
    }
8095
 
8096
    public void setUsernameIsSet(boolean value) {
8097
      if (!value) {
8098
        this.username = null;
8099
      }
8100
    }
8101
 
8102
    public String getPassword() {
8103
      return this.password;
8104
    }
8105
 
3430 rajveer 8106
    public void setPassword(String password) {
495 rajveer 8107
      this.password = password;
8108
    }
8109
 
8110
    public void unsetPassword() {
8111
      this.password = null;
8112
    }
8113
 
3430 rajveer 8114
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8115
    public boolean isSetPassword() {
8116
      return this.password != null;
8117
    }
8118
 
8119
    public void setPasswordIsSet(boolean value) {
8120
      if (!value) {
8121
        this.password = null;
8122
      }
8123
    }
8124
 
8125
    public long getWarehouseId() {
8126
      return this.warehouseId;
8127
    }
8128
 
3430 rajveer 8129
    public void setWarehouseId(long warehouseId) {
495 rajveer 8130
      this.warehouseId = warehouseId;
8131
      setWarehouseIdIsSet(true);
8132
    }
8133
 
8134
    public void unsetWarehouseId() {
8135
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8136
    }
8137
 
3430 rajveer 8138
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8139
    public boolean isSetWarehouseId() {
8140
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8141
    }
8142
 
8143
    public void setWarehouseIdIsSet(boolean value) {
8144
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8145
    }
8146
 
8147
    public void setFieldValue(_Fields field, Object value) {
8148
      switch (field) {
8149
      case USERNAME:
8150
        if (value == null) {
8151
          unsetUsername();
8152
        } else {
8153
          setUsername((String)value);
8154
        }
8155
        break;
8156
 
8157
      case PASSWORD:
8158
        if (value == null) {
8159
          unsetPassword();
8160
        } else {
8161
          setPassword((String)value);
8162
        }
8163
        break;
8164
 
8165
      case WAREHOUSE_ID:
8166
        if (value == null) {
8167
          unsetWarehouseId();
8168
        } else {
8169
          setWarehouseId((Long)value);
8170
        }
8171
        break;
8172
 
8173
      }
8174
    }
8175
 
8176
    public Object getFieldValue(_Fields field) {
8177
      switch (field) {
8178
      case USERNAME:
8179
        return getUsername();
8180
 
8181
      case PASSWORD:
8182
        return getPassword();
8183
 
8184
      case WAREHOUSE_ID:
3430 rajveer 8185
        return Long.valueOf(getWarehouseId());
495 rajveer 8186
 
8187
      }
8188
      throw new IllegalStateException();
8189
    }
8190
 
3430 rajveer 8191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8192
    public boolean isSet(_Fields field) {
8193
      if (field == null) {
8194
        throw new IllegalArgumentException();
8195
      }
495 rajveer 8196
 
8197
      switch (field) {
8198
      case USERNAME:
8199
        return isSetUsername();
8200
      case PASSWORD:
8201
        return isSetPassword();
8202
      case WAREHOUSE_ID:
8203
        return isSetWarehouseId();
8204
      }
8205
      throw new IllegalStateException();
8206
    }
8207
 
8208
    @Override
8209
    public boolean equals(Object that) {
8210
      if (that == null)
8211
        return false;
8212
      if (that instanceof addUser_args)
8213
        return this.equals((addUser_args)that);
8214
      return false;
8215
    }
8216
 
8217
    public boolean equals(addUser_args that) {
8218
      if (that == null)
8219
        return false;
8220
 
8221
      boolean this_present_username = true && this.isSetUsername();
8222
      boolean that_present_username = true && that.isSetUsername();
8223
      if (this_present_username || that_present_username) {
8224
        if (!(this_present_username && that_present_username))
8225
          return false;
8226
        if (!this.username.equals(that.username))
8227
          return false;
8228
      }
8229
 
8230
      boolean this_present_password = true && this.isSetPassword();
8231
      boolean that_present_password = true && that.isSetPassword();
8232
      if (this_present_password || that_present_password) {
8233
        if (!(this_present_password && that_present_password))
8234
          return false;
8235
        if (!this.password.equals(that.password))
8236
          return false;
8237
      }
8238
 
8239
      boolean this_present_warehouseId = true;
8240
      boolean that_present_warehouseId = true;
8241
      if (this_present_warehouseId || that_present_warehouseId) {
8242
        if (!(this_present_warehouseId && that_present_warehouseId))
8243
          return false;
8244
        if (this.warehouseId != that.warehouseId)
8245
          return false;
8246
      }
8247
 
8248
      return true;
8249
    }
8250
 
8251
    @Override
8252
    public int hashCode() {
8253
      return 0;
8254
    }
8255
 
8256
    public int compareTo(addUser_args other) {
8257
      if (!getClass().equals(other.getClass())) {
8258
        return getClass().getName().compareTo(other.getClass().getName());
8259
      }
8260
 
8261
      int lastComparison = 0;
8262
      addUser_args typedOther = (addUser_args)other;
8263
 
3430 rajveer 8264
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8265
      if (lastComparison != 0) {
8266
        return lastComparison;
8267
      }
3430 rajveer 8268
      if (isSetUsername()) {
8269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8270
        if (lastComparison != 0) {
8271
          return lastComparison;
8272
        }
495 rajveer 8273
      }
3430 rajveer 8274
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 8275
      if (lastComparison != 0) {
8276
        return lastComparison;
8277
      }
3430 rajveer 8278
      if (isSetPassword()) {
8279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
8280
        if (lastComparison != 0) {
8281
          return lastComparison;
8282
        }
495 rajveer 8283
      }
3430 rajveer 8284
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 8285
      if (lastComparison != 0) {
8286
        return lastComparison;
8287
      }
3430 rajveer 8288
      if (isSetWarehouseId()) {
8289
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
8290
        if (lastComparison != 0) {
8291
          return lastComparison;
8292
        }
495 rajveer 8293
      }
8294
      return 0;
8295
    }
8296
 
3430 rajveer 8297
    public _Fields fieldForId(int fieldId) {
8298
      return _Fields.findByThriftId(fieldId);
8299
    }
8300
 
8301
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8302
      org.apache.thrift.protocol.TField field;
495 rajveer 8303
      iprot.readStructBegin();
8304
      while (true)
8305
      {
8306
        field = iprot.readFieldBegin();
3430 rajveer 8307
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8308
          break;
8309
        }
3430 rajveer 8310
        switch (field.id) {
8311
          case 1: // USERNAME
8312
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8313
              this.username = iprot.readString();
8314
            } else { 
8315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8316
            }
8317
            break;
8318
          case 2: // PASSWORD
8319
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8320
              this.password = iprot.readString();
8321
            } else { 
8322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8323
            }
8324
            break;
8325
          case 3: // WAREHOUSE_ID
8326
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8327
              this.warehouseId = iprot.readI64();
8328
              setWarehouseIdIsSet(true);
8329
            } else { 
8330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8331
            }
8332
            break;
8333
          default:
8334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8335
        }
3430 rajveer 8336
        iprot.readFieldEnd();
495 rajveer 8337
      }
8338
      iprot.readStructEnd();
8339
      validate();
8340
    }
8341
 
3430 rajveer 8342
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8343
      validate();
8344
 
8345
      oprot.writeStructBegin(STRUCT_DESC);
8346
      if (this.username != null) {
8347
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
8348
        oprot.writeString(this.username);
8349
        oprot.writeFieldEnd();
8350
      }
8351
      if (this.password != null) {
8352
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
8353
        oprot.writeString(this.password);
8354
        oprot.writeFieldEnd();
8355
      }
8356
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8357
      oprot.writeI64(this.warehouseId);
8358
      oprot.writeFieldEnd();
8359
      oprot.writeFieldStop();
8360
      oprot.writeStructEnd();
8361
    }
8362
 
8363
    @Override
8364
    public String toString() {
8365
      StringBuilder sb = new StringBuilder("addUser_args(");
8366
      boolean first = true;
8367
 
8368
      sb.append("username:");
8369
      if (this.username == null) {
8370
        sb.append("null");
8371
      } else {
8372
        sb.append(this.username);
8373
      }
8374
      first = false;
8375
      if (!first) sb.append(", ");
8376
      sb.append("password:");
8377
      if (this.password == null) {
8378
        sb.append("null");
8379
      } else {
8380
        sb.append(this.password);
8381
      }
8382
      first = false;
8383
      if (!first) sb.append(", ");
8384
      sb.append("warehouseId:");
8385
      sb.append(this.warehouseId);
8386
      first = false;
8387
      sb.append(")");
8388
      return sb.toString();
8389
    }
8390
 
3430 rajveer 8391
    public void validate() throws org.apache.thrift.TException {
495 rajveer 8392
      // check for required fields
8393
    }
8394
 
3430 rajveer 8395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8396
      try {
8397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8398
      } catch (org.apache.thrift.TException te) {
8399
        throw new java.io.IOException(te);
8400
      }
8401
    }
8402
 
8403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8404
      try {
8405
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8406
        __isset_bit_vector = new BitSet(1);
8407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8408
      } catch (org.apache.thrift.TException te) {
8409
        throw new java.io.IOException(te);
8410
      }
8411
    }
8412
 
495 rajveer 8413
  }
8414
 
3430 rajveer 8415
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
8416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 8417
 
3430 rajveer 8418
    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);
8419
    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 8420
 
3430 rajveer 8421
    private boolean success; // required
8422
    private HelperServiceException se; // required
495 rajveer 8423
 
8424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8426
      SUCCESS((short)0, "success"),
8427
      SE((short)1, "se");
8428
 
8429
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8430
 
8431
      static {
8432
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8433
          byName.put(field.getFieldName(), field);
8434
        }
8435
      }
8436
 
8437
      /**
8438
       * Find the _Fields constant that matches fieldId, or null if its not found.
8439
       */
8440
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8441
        switch(fieldId) {
8442
          case 0: // SUCCESS
8443
            return SUCCESS;
8444
          case 1: // SE
8445
            return SE;
8446
          default:
8447
            return null;
8448
        }
495 rajveer 8449
      }
8450
 
8451
      /**
8452
       * Find the _Fields constant that matches fieldId, throwing an exception
8453
       * if it is not found.
8454
       */
8455
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8456
        _Fields fields = findByThriftId(fieldId);
8457
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8458
        return fields;
8459
      }
8460
 
8461
      /**
8462
       * Find the _Fields constant that matches name, or null if its not found.
8463
       */
8464
      public static _Fields findByName(String name) {
8465
        return byName.get(name);
8466
      }
8467
 
8468
      private final short _thriftId;
8469
      private final String _fieldName;
8470
 
8471
      _Fields(short thriftId, String fieldName) {
8472
        _thriftId = thriftId;
8473
        _fieldName = fieldName;
8474
      }
8475
 
8476
      public short getThriftFieldId() {
8477
        return _thriftId;
8478
      }
8479
 
8480
      public String getFieldName() {
8481
        return _fieldName;
8482
      }
8483
    }
8484
 
8485
    // isset id assignments
8486
    private static final int __SUCCESS_ISSET_ID = 0;
8487
    private BitSet __isset_bit_vector = new BitSet(1);
8488
 
3430 rajveer 8489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8490
    static {
3430 rajveer 8491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
8494
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 8498
    }
8499
 
8500
    public addUser_result() {
8501
    }
8502
 
8503
    public addUser_result(
8504
      boolean success,
8505
      HelperServiceException se)
8506
    {
8507
      this();
8508
      this.success = success;
8509
      setSuccessIsSet(true);
8510
      this.se = se;
8511
    }
8512
 
8513
    /**
8514
     * Performs a deep copy on <i>other</i>.
8515
     */
8516
    public addUser_result(addUser_result other) {
8517
      __isset_bit_vector.clear();
8518
      __isset_bit_vector.or(other.__isset_bit_vector);
8519
      this.success = other.success;
8520
      if (other.isSetSe()) {
8521
        this.se = new HelperServiceException(other.se);
8522
      }
8523
    }
8524
 
8525
    public addUser_result deepCopy() {
8526
      return new addUser_result(this);
8527
    }
8528
 
3430 rajveer 8529
    @Override
8530
    public void clear() {
8531
      setSuccessIsSet(false);
8532
      this.success = false;
8533
      this.se = null;
495 rajveer 8534
    }
8535
 
8536
    public boolean isSuccess() {
8537
      return this.success;
8538
    }
8539
 
3430 rajveer 8540
    public void setSuccess(boolean success) {
495 rajveer 8541
      this.success = success;
8542
      setSuccessIsSet(true);
8543
    }
8544
 
8545
    public void unsetSuccess() {
8546
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8547
    }
8548
 
3430 rajveer 8549
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 8550
    public boolean isSetSuccess() {
8551
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8552
    }
8553
 
8554
    public void setSuccessIsSet(boolean value) {
8555
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8556
    }
8557
 
8558
    public HelperServiceException getSe() {
8559
      return this.se;
8560
    }
8561
 
3430 rajveer 8562
    public void setSe(HelperServiceException se) {
495 rajveer 8563
      this.se = se;
8564
    }
8565
 
8566
    public void unsetSe() {
8567
      this.se = null;
8568
    }
8569
 
3430 rajveer 8570
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 8571
    public boolean isSetSe() {
8572
      return this.se != null;
8573
    }
8574
 
8575
    public void setSeIsSet(boolean value) {
8576
      if (!value) {
8577
        this.se = null;
8578
      }
8579
    }
8580
 
8581
    public void setFieldValue(_Fields field, Object value) {
8582
      switch (field) {
8583
      case SUCCESS:
8584
        if (value == null) {
8585
          unsetSuccess();
8586
        } else {
8587
          setSuccess((Boolean)value);
8588
        }
8589
        break;
8590
 
8591
      case SE:
8592
        if (value == null) {
8593
          unsetSe();
8594
        } else {
8595
          setSe((HelperServiceException)value);
8596
        }
8597
        break;
8598
 
8599
      }
8600
    }
8601
 
8602
    public Object getFieldValue(_Fields field) {
8603
      switch (field) {
8604
      case SUCCESS:
3430 rajveer 8605
        return Boolean.valueOf(isSuccess());
495 rajveer 8606
 
8607
      case SE:
8608
        return getSe();
8609
 
8610
      }
8611
      throw new IllegalStateException();
8612
    }
8613
 
3430 rajveer 8614
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8615
    public boolean isSet(_Fields field) {
8616
      if (field == null) {
8617
        throw new IllegalArgumentException();
8618
      }
495 rajveer 8619
 
8620
      switch (field) {
8621
      case SUCCESS:
8622
        return isSetSuccess();
8623
      case SE:
8624
        return isSetSe();
8625
      }
8626
      throw new IllegalStateException();
8627
    }
8628
 
8629
    @Override
8630
    public boolean equals(Object that) {
8631
      if (that == null)
8632
        return false;
8633
      if (that instanceof addUser_result)
8634
        return this.equals((addUser_result)that);
8635
      return false;
8636
    }
8637
 
8638
    public boolean equals(addUser_result that) {
8639
      if (that == null)
8640
        return false;
8641
 
8642
      boolean this_present_success = true;
8643
      boolean that_present_success = true;
8644
      if (this_present_success || that_present_success) {
8645
        if (!(this_present_success && that_present_success))
8646
          return false;
8647
        if (this.success != that.success)
8648
          return false;
8649
      }
8650
 
8651
      boolean this_present_se = true && this.isSetSe();
8652
      boolean that_present_se = true && that.isSetSe();
8653
      if (this_present_se || that_present_se) {
8654
        if (!(this_present_se && that_present_se))
8655
          return false;
8656
        if (!this.se.equals(that.se))
8657
          return false;
8658
      }
8659
 
8660
      return true;
8661
    }
8662
 
8663
    @Override
8664
    public int hashCode() {
8665
      return 0;
8666
    }
8667
 
8668
    public int compareTo(addUser_result other) {
8669
      if (!getClass().equals(other.getClass())) {
8670
        return getClass().getName().compareTo(other.getClass().getName());
8671
      }
8672
 
8673
      int lastComparison = 0;
8674
      addUser_result typedOther = (addUser_result)other;
8675
 
3430 rajveer 8676
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 8677
      if (lastComparison != 0) {
8678
        return lastComparison;
8679
      }
3430 rajveer 8680
      if (isSetSuccess()) {
8681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8682
        if (lastComparison != 0) {
8683
          return lastComparison;
8684
        }
495 rajveer 8685
      }
3430 rajveer 8686
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 8687
      if (lastComparison != 0) {
8688
        return lastComparison;
8689
      }
3430 rajveer 8690
      if (isSetSe()) {
8691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8692
        if (lastComparison != 0) {
8693
          return lastComparison;
8694
        }
495 rajveer 8695
      }
8696
      return 0;
8697
    }
8698
 
3430 rajveer 8699
    public _Fields fieldForId(int fieldId) {
8700
      return _Fields.findByThriftId(fieldId);
8701
    }
8702
 
8703
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8704
      org.apache.thrift.protocol.TField field;
495 rajveer 8705
      iprot.readStructBegin();
8706
      while (true)
8707
      {
8708
        field = iprot.readFieldBegin();
3430 rajveer 8709
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8710
          break;
8711
        }
3430 rajveer 8712
        switch (field.id) {
8713
          case 0: // SUCCESS
8714
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8715
              this.success = iprot.readBool();
8716
              setSuccessIsSet(true);
8717
            } else { 
8718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8719
            }
8720
            break;
8721
          case 1: // SE
8722
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8723
              this.se = new HelperServiceException();
8724
              this.se.read(iprot);
8725
            } else { 
8726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8727
            }
8728
            break;
8729
          default:
8730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8731
        }
3430 rajveer 8732
        iprot.readFieldEnd();
495 rajveer 8733
      }
8734
      iprot.readStructEnd();
8735
      validate();
8736
    }
8737
 
3430 rajveer 8738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8739
      oprot.writeStructBegin(STRUCT_DESC);
8740
 
8741
      if (this.isSetSuccess()) {
8742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8743
        oprot.writeBool(this.success);
8744
        oprot.writeFieldEnd();
8745
      } else if (this.isSetSe()) {
8746
        oprot.writeFieldBegin(SE_FIELD_DESC);
8747
        this.se.write(oprot);
8748
        oprot.writeFieldEnd();
8749
      }
8750
      oprot.writeFieldStop();
8751
      oprot.writeStructEnd();
8752
    }
8753
 
8754
    @Override
8755
    public String toString() {
8756
      StringBuilder sb = new StringBuilder("addUser_result(");
8757
      boolean first = true;
8758
 
8759
      sb.append("success:");
8760
      sb.append(this.success);
8761
      first = false;
8762
      if (!first) sb.append(", ");
8763
      sb.append("se:");
8764
      if (this.se == null) {
8765
        sb.append("null");
8766
      } else {
8767
        sb.append(this.se);
8768
      }
8769
      first = false;
8770
      sb.append(")");
8771
      return sb.toString();
8772
    }
8773
 
3430 rajveer 8774
    public void validate() throws org.apache.thrift.TException {
495 rajveer 8775
      // check for required fields
8776
    }
8777
 
3430 rajveer 8778
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8779
      try {
8780
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8781
      } catch (org.apache.thrift.TException te) {
8782
        throw new java.io.IOException(te);
8783
      }
8784
    }
8785
 
8786
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8787
      try {
8788
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8789
      } catch (org.apache.thrift.TException te) {
8790
        throw new java.io.IOException(te);
8791
      }
8792
    }
8793
 
495 rajveer 8794
  }
8795
 
3430 rajveer 8796
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
8797
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 8798
 
3430 rajveer 8799
    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 8800
 
3430 rajveer 8801
    private String username; // required
495 rajveer 8802
 
8803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8804
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8805
      USERNAME((short)1, "username");
8806
 
8807
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8808
 
8809
      static {
8810
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8811
          byName.put(field.getFieldName(), field);
8812
        }
8813
      }
8814
 
8815
      /**
8816
       * Find the _Fields constant that matches fieldId, or null if its not found.
8817
       */
8818
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8819
        switch(fieldId) {
8820
          case 1: // USERNAME
8821
            return USERNAME;
8822
          default:
8823
            return null;
8824
        }
495 rajveer 8825
      }
8826
 
8827
      /**
8828
       * Find the _Fields constant that matches fieldId, throwing an exception
8829
       * if it is not found.
8830
       */
8831
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8832
        _Fields fields = findByThriftId(fieldId);
8833
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8834
        return fields;
8835
      }
8836
 
8837
      /**
8838
       * Find the _Fields constant that matches name, or null if its not found.
8839
       */
8840
      public static _Fields findByName(String name) {
8841
        return byName.get(name);
8842
      }
8843
 
8844
      private final short _thriftId;
8845
      private final String _fieldName;
8846
 
8847
      _Fields(short thriftId, String fieldName) {
8848
        _thriftId = thriftId;
8849
        _fieldName = fieldName;
8850
      }
8851
 
8852
      public short getThriftFieldId() {
8853
        return _thriftId;
8854
      }
8855
 
8856
      public String getFieldName() {
8857
        return _fieldName;
8858
      }
8859
    }
8860
 
8861
    // isset id assignments
8862
 
3430 rajveer 8863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8864
    static {
3430 rajveer 8865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8866
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 8870
    }
8871
 
8872
    public deleteUser_args() {
8873
    }
8874
 
8875
    public deleteUser_args(
8876
      String username)
8877
    {
8878
      this();
8879
      this.username = username;
8880
    }
8881
 
8882
    /**
8883
     * Performs a deep copy on <i>other</i>.
8884
     */
8885
    public deleteUser_args(deleteUser_args other) {
8886
      if (other.isSetUsername()) {
8887
        this.username = other.username;
8888
      }
8889
    }
8890
 
8891
    public deleteUser_args deepCopy() {
8892
      return new deleteUser_args(this);
8893
    }
8894
 
3430 rajveer 8895
    @Override
8896
    public void clear() {
8897
      this.username = null;
495 rajveer 8898
    }
8899
 
8900
    public String getUsername() {
8901
      return this.username;
8902
    }
8903
 
3430 rajveer 8904
    public void setUsername(String username) {
495 rajveer 8905
      this.username = username;
8906
    }
8907
 
8908
    public void unsetUsername() {
8909
      this.username = null;
8910
    }
8911
 
3430 rajveer 8912
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8913
    public boolean isSetUsername() {
8914
      return this.username != null;
8915
    }
8916
 
8917
    public void setUsernameIsSet(boolean value) {
8918
      if (!value) {
8919
        this.username = null;
8920
      }
8921
    }
8922
 
8923
    public void setFieldValue(_Fields field, Object value) {
8924
      switch (field) {
8925
      case USERNAME:
8926
        if (value == null) {
8927
          unsetUsername();
8928
        } else {
8929
          setUsername((String)value);
8930
        }
8931
        break;
8932
 
8933
      }
8934
    }
8935
 
8936
    public Object getFieldValue(_Fields field) {
8937
      switch (field) {
8938
      case USERNAME:
8939
        return getUsername();
8940
 
8941
      }
8942
      throw new IllegalStateException();
8943
    }
8944
 
3430 rajveer 8945
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8946
    public boolean isSet(_Fields field) {
8947
      if (field == null) {
8948
        throw new IllegalArgumentException();
8949
      }
495 rajveer 8950
 
8951
      switch (field) {
8952
      case USERNAME:
8953
        return isSetUsername();
8954
      }
8955
      throw new IllegalStateException();
8956
    }
8957
 
8958
    @Override
8959
    public boolean equals(Object that) {
8960
      if (that == null)
8961
        return false;
8962
      if (that instanceof deleteUser_args)
8963
        return this.equals((deleteUser_args)that);
8964
      return false;
8965
    }
8966
 
8967
    public boolean equals(deleteUser_args that) {
8968
      if (that == null)
8969
        return false;
8970
 
8971
      boolean this_present_username = true && this.isSetUsername();
8972
      boolean that_present_username = true && that.isSetUsername();
8973
      if (this_present_username || that_present_username) {
8974
        if (!(this_present_username && that_present_username))
8975
          return false;
8976
        if (!this.username.equals(that.username))
8977
          return false;
8978
      }
8979
 
8980
      return true;
8981
    }
8982
 
8983
    @Override
8984
    public int hashCode() {
8985
      return 0;
8986
    }
8987
 
8988
    public int compareTo(deleteUser_args other) {
8989
      if (!getClass().equals(other.getClass())) {
8990
        return getClass().getName().compareTo(other.getClass().getName());
8991
      }
8992
 
8993
      int lastComparison = 0;
8994
      deleteUser_args typedOther = (deleteUser_args)other;
8995
 
3430 rajveer 8996
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8997
      if (lastComparison != 0) {
8998
        return lastComparison;
8999
      }
3430 rajveer 9000
      if (isSetUsername()) {
9001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9002
        if (lastComparison != 0) {
9003
          return lastComparison;
9004
        }
495 rajveer 9005
      }
9006
      return 0;
9007
    }
9008
 
3430 rajveer 9009
    public _Fields fieldForId(int fieldId) {
9010
      return _Fields.findByThriftId(fieldId);
9011
    }
9012
 
9013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9014
      org.apache.thrift.protocol.TField field;
495 rajveer 9015
      iprot.readStructBegin();
9016
      while (true)
9017
      {
9018
        field = iprot.readFieldBegin();
3430 rajveer 9019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9020
          break;
9021
        }
3430 rajveer 9022
        switch (field.id) {
9023
          case 1: // USERNAME
9024
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9025
              this.username = iprot.readString();
9026
            } else { 
9027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9028
            }
9029
            break;
9030
          default:
9031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9032
        }
3430 rajveer 9033
        iprot.readFieldEnd();
495 rajveer 9034
      }
9035
      iprot.readStructEnd();
9036
      validate();
9037
    }
9038
 
3430 rajveer 9039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9040
      validate();
9041
 
9042
      oprot.writeStructBegin(STRUCT_DESC);
9043
      if (this.username != null) {
9044
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9045
        oprot.writeString(this.username);
9046
        oprot.writeFieldEnd();
9047
      }
9048
      oprot.writeFieldStop();
9049
      oprot.writeStructEnd();
9050
    }
9051
 
9052
    @Override
9053
    public String toString() {
9054
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9055
      boolean first = true;
9056
 
9057
      sb.append("username:");
9058
      if (this.username == null) {
9059
        sb.append("null");
9060
      } else {
9061
        sb.append(this.username);
9062
      }
9063
      first = false;
9064
      sb.append(")");
9065
      return sb.toString();
9066
    }
9067
 
3430 rajveer 9068
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9069
      // check for required fields
9070
    }
9071
 
3430 rajveer 9072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9073
      try {
9074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9075
      } catch (org.apache.thrift.TException te) {
9076
        throw new java.io.IOException(te);
9077
      }
9078
    }
9079
 
9080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9081
      try {
9082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9083
      } catch (org.apache.thrift.TException te) {
9084
        throw new java.io.IOException(te);
9085
      }
9086
    }
9087
 
495 rajveer 9088
  }
9089
 
3430 rajveer 9090
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9092
 
3430 rajveer 9093
    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);
9094
    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 9095
 
3430 rajveer 9096
    private boolean success; // required
9097
    private HelperServiceException se; // required
495 rajveer 9098
 
9099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9101
      SUCCESS((short)0, "success"),
9102
      SE((short)1, "se");
9103
 
9104
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9105
 
9106
      static {
9107
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9108
          byName.put(field.getFieldName(), field);
9109
        }
9110
      }
9111
 
9112
      /**
9113
       * Find the _Fields constant that matches fieldId, or null if its not found.
9114
       */
9115
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9116
        switch(fieldId) {
9117
          case 0: // SUCCESS
9118
            return SUCCESS;
9119
          case 1: // SE
9120
            return SE;
9121
          default:
9122
            return null;
9123
        }
495 rajveer 9124
      }
9125
 
9126
      /**
9127
       * Find the _Fields constant that matches fieldId, throwing an exception
9128
       * if it is not found.
9129
       */
9130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9131
        _Fields fields = findByThriftId(fieldId);
9132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9133
        return fields;
9134
      }
9135
 
9136
      /**
9137
       * Find the _Fields constant that matches name, or null if its not found.
9138
       */
9139
      public static _Fields findByName(String name) {
9140
        return byName.get(name);
9141
      }
9142
 
9143
      private final short _thriftId;
9144
      private final String _fieldName;
9145
 
9146
      _Fields(short thriftId, String fieldName) {
9147
        _thriftId = thriftId;
9148
        _fieldName = fieldName;
9149
      }
9150
 
9151
      public short getThriftFieldId() {
9152
        return _thriftId;
9153
      }
9154
 
9155
      public String getFieldName() {
9156
        return _fieldName;
9157
      }
9158
    }
9159
 
9160
    // isset id assignments
9161
    private static final int __SUCCESS_ISSET_ID = 0;
9162
    private BitSet __isset_bit_vector = new BitSet(1);
9163
 
3430 rajveer 9164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9165
    static {
3430 rajveer 9166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9167
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9169
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9173
    }
9174
 
9175
    public deleteUser_result() {
9176
    }
9177
 
9178
    public deleteUser_result(
9179
      boolean success,
9180
      HelperServiceException se)
9181
    {
9182
      this();
9183
      this.success = success;
9184
      setSuccessIsSet(true);
9185
      this.se = se;
9186
    }
9187
 
9188
    /**
9189
     * Performs a deep copy on <i>other</i>.
9190
     */
9191
    public deleteUser_result(deleteUser_result other) {
9192
      __isset_bit_vector.clear();
9193
      __isset_bit_vector.or(other.__isset_bit_vector);
9194
      this.success = other.success;
9195
      if (other.isSetSe()) {
9196
        this.se = new HelperServiceException(other.se);
9197
      }
9198
    }
9199
 
9200
    public deleteUser_result deepCopy() {
9201
      return new deleteUser_result(this);
9202
    }
9203
 
3430 rajveer 9204
    @Override
9205
    public void clear() {
9206
      setSuccessIsSet(false);
9207
      this.success = false;
9208
      this.se = null;
495 rajveer 9209
    }
9210
 
9211
    public boolean isSuccess() {
9212
      return this.success;
9213
    }
9214
 
3430 rajveer 9215
    public void setSuccess(boolean success) {
495 rajveer 9216
      this.success = success;
9217
      setSuccessIsSet(true);
9218
    }
9219
 
9220
    public void unsetSuccess() {
9221
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9222
    }
9223
 
3430 rajveer 9224
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9225
    public boolean isSetSuccess() {
9226
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9227
    }
9228
 
9229
    public void setSuccessIsSet(boolean value) {
9230
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9231
    }
9232
 
9233
    public HelperServiceException getSe() {
9234
      return this.se;
9235
    }
9236
 
3430 rajveer 9237
    public void setSe(HelperServiceException se) {
495 rajveer 9238
      this.se = se;
9239
    }
9240
 
9241
    public void unsetSe() {
9242
      this.se = null;
9243
    }
9244
 
3430 rajveer 9245
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9246
    public boolean isSetSe() {
9247
      return this.se != null;
9248
    }
9249
 
9250
    public void setSeIsSet(boolean value) {
9251
      if (!value) {
9252
        this.se = null;
9253
      }
9254
    }
9255
 
9256
    public void setFieldValue(_Fields field, Object value) {
9257
      switch (field) {
9258
      case SUCCESS:
9259
        if (value == null) {
9260
          unsetSuccess();
9261
        } else {
9262
          setSuccess((Boolean)value);
9263
        }
9264
        break;
9265
 
9266
      case SE:
9267
        if (value == null) {
9268
          unsetSe();
9269
        } else {
9270
          setSe((HelperServiceException)value);
9271
        }
9272
        break;
9273
 
9274
      }
9275
    }
9276
 
9277
    public Object getFieldValue(_Fields field) {
9278
      switch (field) {
9279
      case SUCCESS:
3430 rajveer 9280
        return Boolean.valueOf(isSuccess());
495 rajveer 9281
 
9282
      case SE:
9283
        return getSe();
9284
 
9285
      }
9286
      throw new IllegalStateException();
9287
    }
9288
 
3430 rajveer 9289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9290
    public boolean isSet(_Fields field) {
9291
      if (field == null) {
9292
        throw new IllegalArgumentException();
9293
      }
495 rajveer 9294
 
9295
      switch (field) {
9296
      case SUCCESS:
9297
        return isSetSuccess();
9298
      case SE:
9299
        return isSetSe();
9300
      }
9301
      throw new IllegalStateException();
9302
    }
9303
 
9304
    @Override
9305
    public boolean equals(Object that) {
9306
      if (that == null)
9307
        return false;
9308
      if (that instanceof deleteUser_result)
9309
        return this.equals((deleteUser_result)that);
9310
      return false;
9311
    }
9312
 
9313
    public boolean equals(deleteUser_result that) {
9314
      if (that == null)
9315
        return false;
9316
 
9317
      boolean this_present_success = true;
9318
      boolean that_present_success = true;
9319
      if (this_present_success || that_present_success) {
9320
        if (!(this_present_success && that_present_success))
9321
          return false;
9322
        if (this.success != that.success)
9323
          return false;
9324
      }
9325
 
9326
      boolean this_present_se = true && this.isSetSe();
9327
      boolean that_present_se = true && that.isSetSe();
9328
      if (this_present_se || that_present_se) {
9329
        if (!(this_present_se && that_present_se))
9330
          return false;
9331
        if (!this.se.equals(that.se))
9332
          return false;
9333
      }
9334
 
9335
      return true;
9336
    }
9337
 
9338
    @Override
9339
    public int hashCode() {
9340
      return 0;
9341
    }
9342
 
9343
    public int compareTo(deleteUser_result other) {
9344
      if (!getClass().equals(other.getClass())) {
9345
        return getClass().getName().compareTo(other.getClass().getName());
9346
      }
9347
 
9348
      int lastComparison = 0;
9349
      deleteUser_result typedOther = (deleteUser_result)other;
9350
 
3430 rajveer 9351
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9352
      if (lastComparison != 0) {
9353
        return lastComparison;
9354
      }
3430 rajveer 9355
      if (isSetSuccess()) {
9356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9357
        if (lastComparison != 0) {
9358
          return lastComparison;
9359
        }
495 rajveer 9360
      }
3430 rajveer 9361
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9362
      if (lastComparison != 0) {
9363
        return lastComparison;
9364
      }
3430 rajveer 9365
      if (isSetSe()) {
9366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9367
        if (lastComparison != 0) {
9368
          return lastComparison;
9369
        }
495 rajveer 9370
      }
9371
      return 0;
9372
    }
9373
 
3430 rajveer 9374
    public _Fields fieldForId(int fieldId) {
9375
      return _Fields.findByThriftId(fieldId);
9376
    }
9377
 
9378
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9379
      org.apache.thrift.protocol.TField field;
495 rajveer 9380
      iprot.readStructBegin();
9381
      while (true)
9382
      {
9383
        field = iprot.readFieldBegin();
3430 rajveer 9384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9385
          break;
9386
        }
3430 rajveer 9387
        switch (field.id) {
9388
          case 0: // SUCCESS
9389
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9390
              this.success = iprot.readBool();
9391
              setSuccessIsSet(true);
9392
            } else { 
9393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9394
            }
9395
            break;
9396
          case 1: // SE
9397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9398
              this.se = new HelperServiceException();
9399
              this.se.read(iprot);
9400
            } else { 
9401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9402
            }
9403
            break;
9404
          default:
9405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9406
        }
3430 rajveer 9407
        iprot.readFieldEnd();
495 rajveer 9408
      }
9409
      iprot.readStructEnd();
9410
      validate();
9411
    }
9412
 
3430 rajveer 9413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9414
      oprot.writeStructBegin(STRUCT_DESC);
9415
 
9416
      if (this.isSetSuccess()) {
9417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9418
        oprot.writeBool(this.success);
9419
        oprot.writeFieldEnd();
9420
      } else if (this.isSetSe()) {
9421
        oprot.writeFieldBegin(SE_FIELD_DESC);
9422
        this.se.write(oprot);
9423
        oprot.writeFieldEnd();
9424
      }
9425
      oprot.writeFieldStop();
9426
      oprot.writeStructEnd();
9427
    }
9428
 
9429
    @Override
9430
    public String toString() {
9431
      StringBuilder sb = new StringBuilder("deleteUser_result(");
9432
      boolean first = true;
9433
 
9434
      sb.append("success:");
9435
      sb.append(this.success);
9436
      first = false;
9437
      if (!first) sb.append(", ");
9438
      sb.append("se:");
9439
      if (this.se == null) {
9440
        sb.append("null");
9441
      } else {
9442
        sb.append(this.se);
9443
      }
9444
      first = false;
9445
      sb.append(")");
9446
      return sb.toString();
9447
    }
9448
 
3430 rajveer 9449
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9450
      // check for required fields
9451
    }
9452
 
3430 rajveer 9453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9454
      try {
9455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9456
      } catch (org.apache.thrift.TException te) {
9457
        throw new java.io.IOException(te);
9458
      }
9459
    }
9460
 
9461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9462
      try {
9463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9464
      } catch (org.apache.thrift.TException te) {
9465
        throw new java.io.IOException(te);
9466
      }
9467
    }
9468
 
495 rajveer 9469
  }
9470
 
3430 rajveer 9471
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
9472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 9473
 
3430 rajveer 9474
    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);
9475
    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 9476
 
3430 rajveer 9477
    private String username; // required
9478
    private String password; // required
495 rajveer 9479
 
9480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9482
      USERNAME((short)1, "username"),
9483
      PASSWORD((short)2, "password");
9484
 
9485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9486
 
9487
      static {
9488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9489
          byName.put(field.getFieldName(), field);
9490
        }
9491
      }
9492
 
9493
      /**
9494
       * Find the _Fields constant that matches fieldId, or null if its not found.
9495
       */
9496
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9497
        switch(fieldId) {
9498
          case 1: // USERNAME
9499
            return USERNAME;
9500
          case 2: // PASSWORD
9501
            return PASSWORD;
9502
          default:
9503
            return null;
9504
        }
495 rajveer 9505
      }
9506
 
9507
      /**
9508
       * Find the _Fields constant that matches fieldId, throwing an exception
9509
       * if it is not found.
9510
       */
9511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9512
        _Fields fields = findByThriftId(fieldId);
9513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9514
        return fields;
9515
      }
9516
 
9517
      /**
9518
       * Find the _Fields constant that matches name, or null if its not found.
9519
       */
9520
      public static _Fields findByName(String name) {
9521
        return byName.get(name);
9522
      }
9523
 
9524
      private final short _thriftId;
9525
      private final String _fieldName;
9526
 
9527
      _Fields(short thriftId, String fieldName) {
9528
        _thriftId = thriftId;
9529
        _fieldName = fieldName;
9530
      }
9531
 
9532
      public short getThriftFieldId() {
9533
        return _thriftId;
9534
      }
9535
 
9536
      public String getFieldName() {
9537
        return _fieldName;
9538
      }
9539
    }
9540
 
9541
    // isset id assignments
9542
 
3430 rajveer 9543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9544
    static {
3430 rajveer 9545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9546
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9548
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 9552
    }
9553
 
2443 chandransh 9554
    public authenticateDashboardUser_args() {
495 rajveer 9555
    }
9556
 
2443 chandransh 9557
    public authenticateDashboardUser_args(
495 rajveer 9558
      String username,
9559
      String password)
9560
    {
9561
      this();
9562
      this.username = username;
9563
      this.password = password;
9564
    }
9565
 
9566
    /**
9567
     * Performs a deep copy on <i>other</i>.
9568
     */
2443 chandransh 9569
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 9570
      if (other.isSetUsername()) {
9571
        this.username = other.username;
9572
      }
9573
      if (other.isSetPassword()) {
9574
        this.password = other.password;
9575
      }
9576
    }
9577
 
2443 chandransh 9578
    public authenticateDashboardUser_args deepCopy() {
9579
      return new authenticateDashboardUser_args(this);
495 rajveer 9580
    }
9581
 
3430 rajveer 9582
    @Override
9583
    public void clear() {
9584
      this.username = null;
9585
      this.password = null;
495 rajveer 9586
    }
9587
 
9588
    public String getUsername() {
9589
      return this.username;
9590
    }
9591
 
3430 rajveer 9592
    public void setUsername(String username) {
495 rajveer 9593
      this.username = username;
9594
    }
9595
 
9596
    public void unsetUsername() {
9597
      this.username = null;
9598
    }
9599
 
3430 rajveer 9600
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9601
    public boolean isSetUsername() {
9602
      return this.username != null;
9603
    }
9604
 
9605
    public void setUsernameIsSet(boolean value) {
9606
      if (!value) {
9607
        this.username = null;
9608
      }
9609
    }
9610
 
9611
    public String getPassword() {
9612
      return this.password;
9613
    }
9614
 
3430 rajveer 9615
    public void setPassword(String password) {
495 rajveer 9616
      this.password = password;
9617
    }
9618
 
9619
    public void unsetPassword() {
9620
      this.password = null;
9621
    }
9622
 
3430 rajveer 9623
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9624
    public boolean isSetPassword() {
9625
      return this.password != null;
9626
    }
9627
 
9628
    public void setPasswordIsSet(boolean value) {
9629
      if (!value) {
9630
        this.password = null;
9631
      }
9632
    }
9633
 
9634
    public void setFieldValue(_Fields field, Object value) {
9635
      switch (field) {
9636
      case USERNAME:
9637
        if (value == null) {
9638
          unsetUsername();
9639
        } else {
9640
          setUsername((String)value);
9641
        }
9642
        break;
9643
 
9644
      case PASSWORD:
9645
        if (value == null) {
9646
          unsetPassword();
9647
        } else {
9648
          setPassword((String)value);
9649
        }
9650
        break;
9651
 
9652
      }
9653
    }
9654
 
9655
    public Object getFieldValue(_Fields field) {
9656
      switch (field) {
9657
      case USERNAME:
9658
        return getUsername();
9659
 
9660
      case PASSWORD:
9661
        return getPassword();
9662
 
9663
      }
9664
      throw new IllegalStateException();
9665
    }
9666
 
3430 rajveer 9667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9668
    public boolean isSet(_Fields field) {
9669
      if (field == null) {
9670
        throw new IllegalArgumentException();
9671
      }
495 rajveer 9672
 
9673
      switch (field) {
9674
      case USERNAME:
9675
        return isSetUsername();
9676
      case PASSWORD:
9677
        return isSetPassword();
9678
      }
9679
      throw new IllegalStateException();
9680
    }
9681
 
9682
    @Override
9683
    public boolean equals(Object that) {
9684
      if (that == null)
9685
        return false;
2443 chandransh 9686
      if (that instanceof authenticateDashboardUser_args)
9687
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 9688
      return false;
9689
    }
9690
 
2443 chandransh 9691
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 9692
      if (that == null)
9693
        return false;
9694
 
9695
      boolean this_present_username = true && this.isSetUsername();
9696
      boolean that_present_username = true && that.isSetUsername();
9697
      if (this_present_username || that_present_username) {
9698
        if (!(this_present_username && that_present_username))
9699
          return false;
9700
        if (!this.username.equals(that.username))
9701
          return false;
9702
      }
9703
 
9704
      boolean this_present_password = true && this.isSetPassword();
9705
      boolean that_present_password = true && that.isSetPassword();
9706
      if (this_present_password || that_present_password) {
9707
        if (!(this_present_password && that_present_password))
9708
          return false;
9709
        if (!this.password.equals(that.password))
9710
          return false;
9711
      }
9712
 
9713
      return true;
9714
    }
9715
 
9716
    @Override
9717
    public int hashCode() {
9718
      return 0;
9719
    }
9720
 
2443 chandransh 9721
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 9722
      if (!getClass().equals(other.getClass())) {
9723
        return getClass().getName().compareTo(other.getClass().getName());
9724
      }
9725
 
9726
      int lastComparison = 0;
2443 chandransh 9727
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 9728
 
3430 rajveer 9729
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9730
      if (lastComparison != 0) {
9731
        return lastComparison;
9732
      }
3430 rajveer 9733
      if (isSetUsername()) {
9734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9735
        if (lastComparison != 0) {
9736
          return lastComparison;
9737
        }
495 rajveer 9738
      }
3430 rajveer 9739
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9740
      if (lastComparison != 0) {
9741
        return lastComparison;
9742
      }
3430 rajveer 9743
      if (isSetPassword()) {
9744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9745
        if (lastComparison != 0) {
9746
          return lastComparison;
9747
        }
495 rajveer 9748
      }
9749
      return 0;
9750
    }
9751
 
3430 rajveer 9752
    public _Fields fieldForId(int fieldId) {
9753
      return _Fields.findByThriftId(fieldId);
9754
    }
9755
 
9756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9757
      org.apache.thrift.protocol.TField field;
495 rajveer 9758
      iprot.readStructBegin();
9759
      while (true)
9760
      {
9761
        field = iprot.readFieldBegin();
3430 rajveer 9762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9763
          break;
9764
        }
3430 rajveer 9765
        switch (field.id) {
9766
          case 1: // USERNAME
9767
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9768
              this.username = iprot.readString();
9769
            } else { 
9770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9771
            }
9772
            break;
9773
          case 2: // PASSWORD
9774
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9775
              this.password = iprot.readString();
9776
            } else { 
9777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9778
            }
9779
            break;
9780
          default:
9781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9782
        }
3430 rajveer 9783
        iprot.readFieldEnd();
495 rajveer 9784
      }
9785
      iprot.readStructEnd();
9786
      validate();
9787
    }
9788
 
3430 rajveer 9789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9790
      validate();
9791
 
9792
      oprot.writeStructBegin(STRUCT_DESC);
9793
      if (this.username != null) {
9794
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9795
        oprot.writeString(this.username);
9796
        oprot.writeFieldEnd();
9797
      }
9798
      if (this.password != null) {
9799
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9800
        oprot.writeString(this.password);
9801
        oprot.writeFieldEnd();
9802
      }
9803
      oprot.writeFieldStop();
9804
      oprot.writeStructEnd();
9805
    }
9806
 
9807
    @Override
9808
    public String toString() {
2443 chandransh 9809
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 9810
      boolean first = true;
9811
 
9812
      sb.append("username:");
9813
      if (this.username == null) {
9814
        sb.append("null");
9815
      } else {
9816
        sb.append(this.username);
9817
      }
9818
      first = false;
9819
      if (!first) sb.append(", ");
9820
      sb.append("password:");
9821
      if (this.password == null) {
9822
        sb.append("null");
9823
      } else {
9824
        sb.append(this.password);
9825
      }
9826
      first = false;
9827
      sb.append(")");
9828
      return sb.toString();
9829
    }
9830
 
3430 rajveer 9831
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9832
      // check for required fields
9833
    }
9834
 
3430 rajveer 9835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9836
      try {
9837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9838
      } catch (org.apache.thrift.TException te) {
9839
        throw new java.io.IOException(te);
9840
      }
9841
    }
9842
 
9843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9844
      try {
9845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9846
      } catch (org.apache.thrift.TException te) {
9847
        throw new java.io.IOException(te);
9848
      }
9849
    }
9850
 
495 rajveer 9851
  }
9852
 
3430 rajveer 9853
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
9854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 9855
 
3430 rajveer 9856
    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);
9857
    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 9858
 
3430 rajveer 9859
    private DashboardUser success; // required
9860
    private HelperServiceException se; // required
495 rajveer 9861
 
9862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9864
      SUCCESS((short)0, "success"),
9865
      SE((short)1, "se");
9866
 
9867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9868
 
9869
      static {
9870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9871
          byName.put(field.getFieldName(), field);
9872
        }
9873
      }
9874
 
9875
      /**
9876
       * Find the _Fields constant that matches fieldId, or null if its not found.
9877
       */
9878
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9879
        switch(fieldId) {
9880
          case 0: // SUCCESS
9881
            return SUCCESS;
9882
          case 1: // SE
9883
            return SE;
9884
          default:
9885
            return null;
9886
        }
495 rajveer 9887
      }
9888
 
9889
      /**
9890
       * Find the _Fields constant that matches fieldId, throwing an exception
9891
       * if it is not found.
9892
       */
9893
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9894
        _Fields fields = findByThriftId(fieldId);
9895
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9896
        return fields;
9897
      }
9898
 
9899
      /**
9900
       * Find the _Fields constant that matches name, or null if its not found.
9901
       */
9902
      public static _Fields findByName(String name) {
9903
        return byName.get(name);
9904
      }
9905
 
9906
      private final short _thriftId;
9907
      private final String _fieldName;
9908
 
9909
      _Fields(short thriftId, String fieldName) {
9910
        _thriftId = thriftId;
9911
        _fieldName = fieldName;
9912
      }
9913
 
9914
      public short getThriftFieldId() {
9915
        return _thriftId;
9916
      }
9917
 
9918
      public String getFieldName() {
9919
        return _fieldName;
9920
      }
9921
    }
9922
 
9923
    // isset id assignments
9924
 
3430 rajveer 9925
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9926
    static {
3430 rajveer 9927
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9928
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9929
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
9930
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 9934
    }
9935
 
2443 chandransh 9936
    public authenticateDashboardUser_result() {
495 rajveer 9937
    }
9938
 
2443 chandransh 9939
    public authenticateDashboardUser_result(
9940
      DashboardUser success,
495 rajveer 9941
      HelperServiceException se)
9942
    {
9943
      this();
9944
      this.success = success;
9945
      this.se = se;
9946
    }
9947
 
9948
    /**
9949
     * Performs a deep copy on <i>other</i>.
9950
     */
2443 chandransh 9951
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
9952
      if (other.isSetSuccess()) {
9953
        this.success = new DashboardUser(other.success);
9954
      }
495 rajveer 9955
      if (other.isSetSe()) {
9956
        this.se = new HelperServiceException(other.se);
9957
      }
9958
    }
9959
 
2443 chandransh 9960
    public authenticateDashboardUser_result deepCopy() {
9961
      return new authenticateDashboardUser_result(this);
495 rajveer 9962
    }
9963
 
3430 rajveer 9964
    @Override
9965
    public void clear() {
9966
      this.success = null;
9967
      this.se = null;
495 rajveer 9968
    }
9969
 
2443 chandransh 9970
    public DashboardUser getSuccess() {
495 rajveer 9971
      return this.success;
9972
    }
9973
 
3430 rajveer 9974
    public void setSuccess(DashboardUser success) {
495 rajveer 9975
      this.success = success;
9976
    }
9977
 
9978
    public void unsetSuccess() {
2443 chandransh 9979
      this.success = null;
495 rajveer 9980
    }
9981
 
3430 rajveer 9982
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9983
    public boolean isSetSuccess() {
2443 chandransh 9984
      return this.success != null;
495 rajveer 9985
    }
9986
 
9987
    public void setSuccessIsSet(boolean value) {
2443 chandransh 9988
      if (!value) {
9989
        this.success = null;
9990
      }
495 rajveer 9991
    }
9992
 
9993
    public HelperServiceException getSe() {
9994
      return this.se;
9995
    }
9996
 
3430 rajveer 9997
    public void setSe(HelperServiceException se) {
495 rajveer 9998
      this.se = se;
9999
    }
10000
 
10001
    public void unsetSe() {
10002
      this.se = null;
10003
    }
10004
 
3430 rajveer 10005
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10006
    public boolean isSetSe() {
10007
      return this.se != null;
10008
    }
10009
 
10010
    public void setSeIsSet(boolean value) {
10011
      if (!value) {
10012
        this.se = null;
10013
      }
10014
    }
10015
 
10016
    public void setFieldValue(_Fields field, Object value) {
10017
      switch (field) {
10018
      case SUCCESS:
10019
        if (value == null) {
10020
          unsetSuccess();
10021
        } else {
2443 chandransh 10022
          setSuccess((DashboardUser)value);
495 rajveer 10023
        }
10024
        break;
10025
 
10026
      case SE:
10027
        if (value == null) {
10028
          unsetSe();
10029
        } else {
10030
          setSe((HelperServiceException)value);
10031
        }
10032
        break;
10033
 
10034
      }
10035
    }
10036
 
10037
    public Object getFieldValue(_Fields field) {
10038
      switch (field) {
10039
      case SUCCESS:
2443 chandransh 10040
        return getSuccess();
495 rajveer 10041
 
10042
      case SE:
10043
        return getSe();
10044
 
10045
      }
10046
      throw new IllegalStateException();
10047
    }
10048
 
3430 rajveer 10049
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10050
    public boolean isSet(_Fields field) {
10051
      if (field == null) {
10052
        throw new IllegalArgumentException();
10053
      }
495 rajveer 10054
 
10055
      switch (field) {
10056
      case SUCCESS:
10057
        return isSetSuccess();
10058
      case SE:
10059
        return isSetSe();
10060
      }
10061
      throw new IllegalStateException();
10062
    }
10063
 
10064
    @Override
10065
    public boolean equals(Object that) {
10066
      if (that == null)
10067
        return false;
2443 chandransh 10068
      if (that instanceof authenticateDashboardUser_result)
10069
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10070
      return false;
10071
    }
10072
 
2443 chandransh 10073
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10074
      if (that == null)
10075
        return false;
10076
 
2443 chandransh 10077
      boolean this_present_success = true && this.isSetSuccess();
10078
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10079
      if (this_present_success || that_present_success) {
10080
        if (!(this_present_success && that_present_success))
10081
          return false;
2443 chandransh 10082
        if (!this.success.equals(that.success))
495 rajveer 10083
          return false;
10084
      }
10085
 
10086
      boolean this_present_se = true && this.isSetSe();
10087
      boolean that_present_se = true && that.isSetSe();
10088
      if (this_present_se || that_present_se) {
10089
        if (!(this_present_se && that_present_se))
10090
          return false;
10091
        if (!this.se.equals(that.se))
10092
          return false;
10093
      }
10094
 
10095
      return true;
10096
    }
10097
 
10098
    @Override
10099
    public int hashCode() {
10100
      return 0;
10101
    }
10102
 
2443 chandransh 10103
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10104
      if (!getClass().equals(other.getClass())) {
10105
        return getClass().getName().compareTo(other.getClass().getName());
10106
      }
10107
 
10108
      int lastComparison = 0;
2443 chandransh 10109
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10110
 
3430 rajveer 10111
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10112
      if (lastComparison != 0) {
10113
        return lastComparison;
10114
      }
3430 rajveer 10115
      if (isSetSuccess()) {
10116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10117
        if (lastComparison != 0) {
10118
          return lastComparison;
10119
        }
495 rajveer 10120
      }
3430 rajveer 10121
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10122
      if (lastComparison != 0) {
10123
        return lastComparison;
10124
      }
3430 rajveer 10125
      if (isSetSe()) {
10126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10127
        if (lastComparison != 0) {
10128
          return lastComparison;
10129
        }
495 rajveer 10130
      }
10131
      return 0;
10132
    }
10133
 
3430 rajveer 10134
    public _Fields fieldForId(int fieldId) {
10135
      return _Fields.findByThriftId(fieldId);
10136
    }
10137
 
10138
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10139
      org.apache.thrift.protocol.TField field;
495 rajveer 10140
      iprot.readStructBegin();
10141
      while (true)
10142
      {
10143
        field = iprot.readFieldBegin();
3430 rajveer 10144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10145
          break;
10146
        }
3430 rajveer 10147
        switch (field.id) {
10148
          case 0: // SUCCESS
10149
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10150
              this.success = new DashboardUser();
10151
              this.success.read(iprot);
10152
            } else { 
10153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10154
            }
10155
            break;
10156
          case 1: // SE
10157
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10158
              this.se = new HelperServiceException();
10159
              this.se.read(iprot);
10160
            } else { 
10161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10162
            }
10163
            break;
10164
          default:
10165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10166
        }
3430 rajveer 10167
        iprot.readFieldEnd();
495 rajveer 10168
      }
10169
      iprot.readStructEnd();
10170
      validate();
10171
    }
10172
 
3430 rajveer 10173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10174
      oprot.writeStructBegin(STRUCT_DESC);
10175
 
10176
      if (this.isSetSuccess()) {
10177
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10178
        this.success.write(oprot);
495 rajveer 10179
        oprot.writeFieldEnd();
10180
      } else if (this.isSetSe()) {
10181
        oprot.writeFieldBegin(SE_FIELD_DESC);
10182
        this.se.write(oprot);
10183
        oprot.writeFieldEnd();
10184
      }
10185
      oprot.writeFieldStop();
10186
      oprot.writeStructEnd();
10187
    }
10188
 
10189
    @Override
10190
    public String toString() {
2443 chandransh 10191
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 10192
      boolean first = true;
10193
 
10194
      sb.append("success:");
2443 chandransh 10195
      if (this.success == null) {
10196
        sb.append("null");
10197
      } else {
10198
        sb.append(this.success);
10199
      }
495 rajveer 10200
      first = false;
10201
      if (!first) sb.append(", ");
10202
      sb.append("se:");
10203
      if (this.se == null) {
10204
        sb.append("null");
10205
      } else {
10206
        sb.append(this.se);
10207
      }
10208
      first = false;
10209
      sb.append(")");
10210
      return sb.toString();
10211
    }
10212
 
3430 rajveer 10213
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10214
      // check for required fields
10215
    }
10216
 
3430 rajveer 10217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10218
      try {
10219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10220
      } catch (org.apache.thrift.TException te) {
10221
        throw new java.io.IOException(te);
10222
      }
10223
    }
10224
 
10225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10226
      try {
10227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10228
      } catch (org.apache.thrift.TException te) {
10229
        throw new java.io.IOException(te);
10230
      }
10231
    }
10232
 
495 rajveer 10233
  }
10234
 
3430 rajveer 10235
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
10236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 10237
 
3430 rajveer 10238
    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);
10239
    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);
10240
    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 10241
 
3430 rajveer 10242
    private String username; // required
10243
    private String oldPassword; // required
10244
    private String newPassword; // required
495 rajveer 10245
 
10246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10248
      USERNAME((short)1, "username"),
10249
      OLD_PASSWORD((short)2, "oldPassword"),
10250
      NEW_PASSWORD((short)3, "newPassword");
10251
 
10252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10253
 
10254
      static {
10255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10256
          byName.put(field.getFieldName(), field);
10257
        }
10258
      }
10259
 
10260
      /**
10261
       * Find the _Fields constant that matches fieldId, or null if its not found.
10262
       */
10263
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10264
        switch(fieldId) {
10265
          case 1: // USERNAME
10266
            return USERNAME;
10267
          case 2: // OLD_PASSWORD
10268
            return OLD_PASSWORD;
10269
          case 3: // NEW_PASSWORD
10270
            return NEW_PASSWORD;
10271
          default:
10272
            return null;
10273
        }
495 rajveer 10274
      }
10275
 
10276
      /**
10277
       * Find the _Fields constant that matches fieldId, throwing an exception
10278
       * if it is not found.
10279
       */
10280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10281
        _Fields fields = findByThriftId(fieldId);
10282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10283
        return fields;
10284
      }
10285
 
10286
      /**
10287
       * Find the _Fields constant that matches name, or null if its not found.
10288
       */
10289
      public static _Fields findByName(String name) {
10290
        return byName.get(name);
10291
      }
10292
 
10293
      private final short _thriftId;
10294
      private final String _fieldName;
10295
 
10296
      _Fields(short thriftId, String fieldName) {
10297
        _thriftId = thriftId;
10298
        _fieldName = fieldName;
10299
      }
10300
 
10301
      public short getThriftFieldId() {
10302
        return _thriftId;
10303
      }
10304
 
10305
      public String getFieldName() {
10306
        return _fieldName;
10307
      }
10308
    }
10309
 
10310
    // isset id assignments
10311
 
3430 rajveer 10312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10313
    static {
3430 rajveer 10314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10315
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10317
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10319
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 10323
    }
10324
 
10325
    public updatePassword_args() {
10326
    }
10327
 
10328
    public updatePassword_args(
10329
      String username,
10330
      String oldPassword,
10331
      String newPassword)
10332
    {
10333
      this();
10334
      this.username = username;
10335
      this.oldPassword = oldPassword;
10336
      this.newPassword = newPassword;
10337
    }
10338
 
10339
    /**
10340
     * Performs a deep copy on <i>other</i>.
10341
     */
10342
    public updatePassword_args(updatePassword_args other) {
10343
      if (other.isSetUsername()) {
10344
        this.username = other.username;
10345
      }
10346
      if (other.isSetOldPassword()) {
10347
        this.oldPassword = other.oldPassword;
10348
      }
10349
      if (other.isSetNewPassword()) {
10350
        this.newPassword = other.newPassword;
10351
      }
10352
    }
10353
 
10354
    public updatePassword_args deepCopy() {
10355
      return new updatePassword_args(this);
10356
    }
10357
 
3430 rajveer 10358
    @Override
10359
    public void clear() {
10360
      this.username = null;
10361
      this.oldPassword = null;
10362
      this.newPassword = null;
495 rajveer 10363
    }
10364
 
10365
    public String getUsername() {
10366
      return this.username;
10367
    }
10368
 
3430 rajveer 10369
    public void setUsername(String username) {
495 rajveer 10370
      this.username = username;
10371
    }
10372
 
10373
    public void unsetUsername() {
10374
      this.username = null;
10375
    }
10376
 
3430 rajveer 10377
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10378
    public boolean isSetUsername() {
10379
      return this.username != null;
10380
    }
10381
 
10382
    public void setUsernameIsSet(boolean value) {
10383
      if (!value) {
10384
        this.username = null;
10385
      }
10386
    }
10387
 
10388
    public String getOldPassword() {
10389
      return this.oldPassword;
10390
    }
10391
 
3430 rajveer 10392
    public void setOldPassword(String oldPassword) {
495 rajveer 10393
      this.oldPassword = oldPassword;
10394
    }
10395
 
10396
    public void unsetOldPassword() {
10397
      this.oldPassword = null;
10398
    }
10399
 
3430 rajveer 10400
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10401
    public boolean isSetOldPassword() {
10402
      return this.oldPassword != null;
10403
    }
10404
 
10405
    public void setOldPasswordIsSet(boolean value) {
10406
      if (!value) {
10407
        this.oldPassword = null;
10408
      }
10409
    }
10410
 
10411
    public String getNewPassword() {
10412
      return this.newPassword;
10413
    }
10414
 
3430 rajveer 10415
    public void setNewPassword(String newPassword) {
495 rajveer 10416
      this.newPassword = newPassword;
10417
    }
10418
 
10419
    public void unsetNewPassword() {
10420
      this.newPassword = null;
10421
    }
10422
 
3430 rajveer 10423
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10424
    public boolean isSetNewPassword() {
10425
      return this.newPassword != null;
10426
    }
10427
 
10428
    public void setNewPasswordIsSet(boolean value) {
10429
      if (!value) {
10430
        this.newPassword = null;
10431
      }
10432
    }
10433
 
10434
    public void setFieldValue(_Fields field, Object value) {
10435
      switch (field) {
10436
      case USERNAME:
10437
        if (value == null) {
10438
          unsetUsername();
10439
        } else {
10440
          setUsername((String)value);
10441
        }
10442
        break;
10443
 
10444
      case OLD_PASSWORD:
10445
        if (value == null) {
10446
          unsetOldPassword();
10447
        } else {
10448
          setOldPassword((String)value);
10449
        }
10450
        break;
10451
 
10452
      case NEW_PASSWORD:
10453
        if (value == null) {
10454
          unsetNewPassword();
10455
        } else {
10456
          setNewPassword((String)value);
10457
        }
10458
        break;
10459
 
10460
      }
10461
    }
10462
 
10463
    public Object getFieldValue(_Fields field) {
10464
      switch (field) {
10465
      case USERNAME:
10466
        return getUsername();
10467
 
10468
      case OLD_PASSWORD:
10469
        return getOldPassword();
10470
 
10471
      case NEW_PASSWORD:
10472
        return getNewPassword();
10473
 
10474
      }
10475
      throw new IllegalStateException();
10476
    }
10477
 
3430 rajveer 10478
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10479
    public boolean isSet(_Fields field) {
10480
      if (field == null) {
10481
        throw new IllegalArgumentException();
10482
      }
495 rajveer 10483
 
10484
      switch (field) {
10485
      case USERNAME:
10486
        return isSetUsername();
10487
      case OLD_PASSWORD:
10488
        return isSetOldPassword();
10489
      case NEW_PASSWORD:
10490
        return isSetNewPassword();
10491
      }
10492
      throw new IllegalStateException();
10493
    }
10494
 
10495
    @Override
10496
    public boolean equals(Object that) {
10497
      if (that == null)
10498
        return false;
10499
      if (that instanceof updatePassword_args)
10500
        return this.equals((updatePassword_args)that);
10501
      return false;
10502
    }
10503
 
10504
    public boolean equals(updatePassword_args that) {
10505
      if (that == null)
10506
        return false;
10507
 
10508
      boolean this_present_username = true && this.isSetUsername();
10509
      boolean that_present_username = true && that.isSetUsername();
10510
      if (this_present_username || that_present_username) {
10511
        if (!(this_present_username && that_present_username))
10512
          return false;
10513
        if (!this.username.equals(that.username))
10514
          return false;
10515
      }
10516
 
10517
      boolean this_present_oldPassword = true && this.isSetOldPassword();
10518
      boolean that_present_oldPassword = true && that.isSetOldPassword();
10519
      if (this_present_oldPassword || that_present_oldPassword) {
10520
        if (!(this_present_oldPassword && that_present_oldPassword))
10521
          return false;
10522
        if (!this.oldPassword.equals(that.oldPassword))
10523
          return false;
10524
      }
10525
 
10526
      boolean this_present_newPassword = true && this.isSetNewPassword();
10527
      boolean that_present_newPassword = true && that.isSetNewPassword();
10528
      if (this_present_newPassword || that_present_newPassword) {
10529
        if (!(this_present_newPassword && that_present_newPassword))
10530
          return false;
10531
        if (!this.newPassword.equals(that.newPassword))
10532
          return false;
10533
      }
10534
 
10535
      return true;
10536
    }
10537
 
10538
    @Override
10539
    public int hashCode() {
10540
      return 0;
10541
    }
10542
 
10543
    public int compareTo(updatePassword_args other) {
10544
      if (!getClass().equals(other.getClass())) {
10545
        return getClass().getName().compareTo(other.getClass().getName());
10546
      }
10547
 
10548
      int lastComparison = 0;
10549
      updatePassword_args typedOther = (updatePassword_args)other;
10550
 
3430 rajveer 10551
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10552
      if (lastComparison != 0) {
10553
        return lastComparison;
10554
      }
3430 rajveer 10555
      if (isSetUsername()) {
10556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10557
        if (lastComparison != 0) {
10558
          return lastComparison;
10559
        }
495 rajveer 10560
      }
3430 rajveer 10561
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 10562
      if (lastComparison != 0) {
10563
        return lastComparison;
10564
      }
3430 rajveer 10565
      if (isSetOldPassword()) {
10566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
10567
        if (lastComparison != 0) {
10568
          return lastComparison;
10569
        }
495 rajveer 10570
      }
3430 rajveer 10571
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 10572
      if (lastComparison != 0) {
10573
        return lastComparison;
10574
      }
3430 rajveer 10575
      if (isSetNewPassword()) {
10576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
10577
        if (lastComparison != 0) {
10578
          return lastComparison;
10579
        }
495 rajveer 10580
      }
10581
      return 0;
10582
    }
10583
 
3430 rajveer 10584
    public _Fields fieldForId(int fieldId) {
10585
      return _Fields.findByThriftId(fieldId);
10586
    }
10587
 
10588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10589
      org.apache.thrift.protocol.TField field;
495 rajveer 10590
      iprot.readStructBegin();
10591
      while (true)
10592
      {
10593
        field = iprot.readFieldBegin();
3430 rajveer 10594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10595
          break;
10596
        }
3430 rajveer 10597
        switch (field.id) {
10598
          case 1: // USERNAME
10599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10600
              this.username = iprot.readString();
10601
            } else { 
10602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10603
            }
10604
            break;
10605
          case 2: // OLD_PASSWORD
10606
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10607
              this.oldPassword = iprot.readString();
10608
            } else { 
10609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10610
            }
10611
            break;
10612
          case 3: // NEW_PASSWORD
10613
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10614
              this.newPassword = iprot.readString();
10615
            } else { 
10616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10617
            }
10618
            break;
10619
          default:
10620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10621
        }
3430 rajveer 10622
        iprot.readFieldEnd();
495 rajveer 10623
      }
10624
      iprot.readStructEnd();
10625
      validate();
10626
    }
10627
 
3430 rajveer 10628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10629
      validate();
10630
 
10631
      oprot.writeStructBegin(STRUCT_DESC);
10632
      if (this.username != null) {
10633
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10634
        oprot.writeString(this.username);
10635
        oprot.writeFieldEnd();
10636
      }
10637
      if (this.oldPassword != null) {
10638
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
10639
        oprot.writeString(this.oldPassword);
10640
        oprot.writeFieldEnd();
10641
      }
10642
      if (this.newPassword != null) {
10643
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
10644
        oprot.writeString(this.newPassword);
10645
        oprot.writeFieldEnd();
10646
      }
10647
      oprot.writeFieldStop();
10648
      oprot.writeStructEnd();
10649
    }
10650
 
10651
    @Override
10652
    public String toString() {
10653
      StringBuilder sb = new StringBuilder("updatePassword_args(");
10654
      boolean first = true;
10655
 
10656
      sb.append("username:");
10657
      if (this.username == null) {
10658
        sb.append("null");
10659
      } else {
10660
        sb.append(this.username);
10661
      }
10662
      first = false;
10663
      if (!first) sb.append(", ");
10664
      sb.append("oldPassword:");
10665
      if (this.oldPassword == null) {
10666
        sb.append("null");
10667
      } else {
10668
        sb.append(this.oldPassword);
10669
      }
10670
      first = false;
10671
      if (!first) sb.append(", ");
10672
      sb.append("newPassword:");
10673
      if (this.newPassword == null) {
10674
        sb.append("null");
10675
      } else {
10676
        sb.append(this.newPassword);
10677
      }
10678
      first = false;
10679
      sb.append(")");
10680
      return sb.toString();
10681
    }
10682
 
3430 rajveer 10683
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10684
      // check for required fields
10685
    }
10686
 
3430 rajveer 10687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10688
      try {
10689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10690
      } catch (org.apache.thrift.TException te) {
10691
        throw new java.io.IOException(te);
10692
      }
10693
    }
10694
 
10695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10696
      try {
10697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10698
      } catch (org.apache.thrift.TException te) {
10699
        throw new java.io.IOException(te);
10700
      }
10701
    }
10702
 
495 rajveer 10703
  }
10704
 
3430 rajveer 10705
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
10706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 10707
 
3430 rajveer 10708
    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);
10709
    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 10710
 
3430 rajveer 10711
    private boolean success; // required
10712
    private HelperServiceException se; // required
495 rajveer 10713
 
10714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10716
      SUCCESS((short)0, "success"),
10717
      SE((short)1, "se");
10718
 
10719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10720
 
10721
      static {
10722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10723
          byName.put(field.getFieldName(), field);
10724
        }
10725
      }
10726
 
10727
      /**
10728
       * Find the _Fields constant that matches fieldId, or null if its not found.
10729
       */
10730
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10731
        switch(fieldId) {
10732
          case 0: // SUCCESS
10733
            return SUCCESS;
10734
          case 1: // SE
10735
            return SE;
10736
          default:
10737
            return null;
10738
        }
495 rajveer 10739
      }
10740
 
10741
      /**
10742
       * Find the _Fields constant that matches fieldId, throwing an exception
10743
       * if it is not found.
10744
       */
10745
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10746
        _Fields fields = findByThriftId(fieldId);
10747
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10748
        return fields;
10749
      }
10750
 
10751
      /**
10752
       * Find the _Fields constant that matches name, or null if its not found.
10753
       */
10754
      public static _Fields findByName(String name) {
10755
        return byName.get(name);
10756
      }
10757
 
10758
      private final short _thriftId;
10759
      private final String _fieldName;
10760
 
10761
      _Fields(short thriftId, String fieldName) {
10762
        _thriftId = thriftId;
10763
        _fieldName = fieldName;
10764
      }
10765
 
10766
      public short getThriftFieldId() {
10767
        return _thriftId;
10768
      }
10769
 
10770
      public String getFieldName() {
10771
        return _fieldName;
10772
      }
10773
    }
10774
 
10775
    // isset id assignments
10776
    private static final int __SUCCESS_ISSET_ID = 0;
10777
    private BitSet __isset_bit_vector = new BitSet(1);
10778
 
3430 rajveer 10779
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10780
    static {
3430 rajveer 10781
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10782
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10784
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 10788
    }
10789
 
10790
    public updatePassword_result() {
10791
    }
10792
 
10793
    public updatePassword_result(
10794
      boolean success,
10795
      HelperServiceException se)
10796
    {
10797
      this();
10798
      this.success = success;
10799
      setSuccessIsSet(true);
10800
      this.se = se;
10801
    }
10802
 
10803
    /**
10804
     * Performs a deep copy on <i>other</i>.
10805
     */
10806
    public updatePassword_result(updatePassword_result other) {
10807
      __isset_bit_vector.clear();
10808
      __isset_bit_vector.or(other.__isset_bit_vector);
10809
      this.success = other.success;
10810
      if (other.isSetSe()) {
10811
        this.se = new HelperServiceException(other.se);
10812
      }
10813
    }
10814
 
10815
    public updatePassword_result deepCopy() {
10816
      return new updatePassword_result(this);
10817
    }
10818
 
3430 rajveer 10819
    @Override
10820
    public void clear() {
10821
      setSuccessIsSet(false);
10822
      this.success = false;
10823
      this.se = null;
495 rajveer 10824
    }
10825
 
10826
    public boolean isSuccess() {
10827
      return this.success;
10828
    }
10829
 
3430 rajveer 10830
    public void setSuccess(boolean success) {
495 rajveer 10831
      this.success = success;
10832
      setSuccessIsSet(true);
10833
    }
10834
 
10835
    public void unsetSuccess() {
10836
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10837
    }
10838
 
3430 rajveer 10839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10840
    public boolean isSetSuccess() {
10841
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10842
    }
10843
 
10844
    public void setSuccessIsSet(boolean value) {
10845
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10846
    }
10847
 
10848
    public HelperServiceException getSe() {
10849
      return this.se;
10850
    }
10851
 
3430 rajveer 10852
    public void setSe(HelperServiceException se) {
495 rajveer 10853
      this.se = se;
10854
    }
10855
 
10856
    public void unsetSe() {
10857
      this.se = null;
10858
    }
10859
 
3430 rajveer 10860
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10861
    public boolean isSetSe() {
10862
      return this.se != null;
10863
    }
10864
 
10865
    public void setSeIsSet(boolean value) {
10866
      if (!value) {
10867
        this.se = null;
10868
      }
10869
    }
10870
 
10871
    public void setFieldValue(_Fields field, Object value) {
10872
      switch (field) {
10873
      case SUCCESS:
10874
        if (value == null) {
10875
          unsetSuccess();
10876
        } else {
10877
          setSuccess((Boolean)value);
10878
        }
10879
        break;
10880
 
10881
      case SE:
10882
        if (value == null) {
10883
          unsetSe();
10884
        } else {
10885
          setSe((HelperServiceException)value);
10886
        }
10887
        break;
10888
 
10889
      }
10890
    }
10891
 
10892
    public Object getFieldValue(_Fields field) {
10893
      switch (field) {
10894
      case SUCCESS:
3430 rajveer 10895
        return Boolean.valueOf(isSuccess());
495 rajveer 10896
 
10897
      case SE:
10898
        return getSe();
10899
 
10900
      }
10901
      throw new IllegalStateException();
10902
    }
10903
 
3430 rajveer 10904
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10905
    public boolean isSet(_Fields field) {
10906
      if (field == null) {
10907
        throw new IllegalArgumentException();
10908
      }
495 rajveer 10909
 
10910
      switch (field) {
10911
      case SUCCESS:
10912
        return isSetSuccess();
10913
      case SE:
10914
        return isSetSe();
10915
      }
10916
      throw new IllegalStateException();
10917
    }
10918
 
10919
    @Override
10920
    public boolean equals(Object that) {
10921
      if (that == null)
10922
        return false;
10923
      if (that instanceof updatePassword_result)
10924
        return this.equals((updatePassword_result)that);
10925
      return false;
10926
    }
10927
 
10928
    public boolean equals(updatePassword_result that) {
10929
      if (that == null)
10930
        return false;
10931
 
10932
      boolean this_present_success = true;
10933
      boolean that_present_success = true;
10934
      if (this_present_success || that_present_success) {
10935
        if (!(this_present_success && that_present_success))
10936
          return false;
10937
        if (this.success != that.success)
10938
          return false;
10939
      }
10940
 
10941
      boolean this_present_se = true && this.isSetSe();
10942
      boolean that_present_se = true && that.isSetSe();
10943
      if (this_present_se || that_present_se) {
10944
        if (!(this_present_se && that_present_se))
10945
          return false;
10946
        if (!this.se.equals(that.se))
10947
          return false;
10948
      }
10949
 
10950
      return true;
10951
    }
10952
 
10953
    @Override
10954
    public int hashCode() {
10955
      return 0;
10956
    }
10957
 
10958
    public int compareTo(updatePassword_result other) {
10959
      if (!getClass().equals(other.getClass())) {
10960
        return getClass().getName().compareTo(other.getClass().getName());
10961
      }
10962
 
10963
      int lastComparison = 0;
10964
      updatePassword_result typedOther = (updatePassword_result)other;
10965
 
3430 rajveer 10966
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10967
      if (lastComparison != 0) {
10968
        return lastComparison;
10969
      }
3430 rajveer 10970
      if (isSetSuccess()) {
10971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10972
        if (lastComparison != 0) {
10973
          return lastComparison;
10974
        }
495 rajveer 10975
      }
3430 rajveer 10976
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10977
      if (lastComparison != 0) {
10978
        return lastComparison;
10979
      }
3430 rajveer 10980
      if (isSetSe()) {
10981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10982
        if (lastComparison != 0) {
10983
          return lastComparison;
10984
        }
495 rajveer 10985
      }
10986
      return 0;
10987
    }
10988
 
3430 rajveer 10989
    public _Fields fieldForId(int fieldId) {
10990
      return _Fields.findByThriftId(fieldId);
10991
    }
10992
 
10993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10994
      org.apache.thrift.protocol.TField field;
495 rajveer 10995
      iprot.readStructBegin();
10996
      while (true)
10997
      {
10998
        field = iprot.readFieldBegin();
3430 rajveer 10999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11000
          break;
11001
        }
3430 rajveer 11002
        switch (field.id) {
11003
          case 0: // SUCCESS
11004
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11005
              this.success = iprot.readBool();
11006
              setSuccessIsSet(true);
11007
            } else { 
11008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11009
            }
11010
            break;
11011
          case 1: // SE
11012
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11013
              this.se = new HelperServiceException();
11014
              this.se.read(iprot);
11015
            } else { 
11016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11017
            }
11018
            break;
11019
          default:
11020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11021
        }
3430 rajveer 11022
        iprot.readFieldEnd();
495 rajveer 11023
      }
11024
      iprot.readStructEnd();
11025
      validate();
11026
    }
11027
 
3430 rajveer 11028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11029
      oprot.writeStructBegin(STRUCT_DESC);
11030
 
11031
      if (this.isSetSuccess()) {
11032
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11033
        oprot.writeBool(this.success);
11034
        oprot.writeFieldEnd();
11035
      } else if (this.isSetSe()) {
11036
        oprot.writeFieldBegin(SE_FIELD_DESC);
11037
        this.se.write(oprot);
11038
        oprot.writeFieldEnd();
11039
      }
11040
      oprot.writeFieldStop();
11041
      oprot.writeStructEnd();
11042
    }
11043
 
11044
    @Override
11045
    public String toString() {
11046
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11047
      boolean first = true;
11048
 
11049
      sb.append("success:");
11050
      sb.append(this.success);
11051
      first = false;
11052
      if (!first) sb.append(", ");
11053
      sb.append("se:");
11054
      if (this.se == null) {
11055
        sb.append("null");
11056
      } else {
11057
        sb.append(this.se);
11058
      }
11059
      first = false;
11060
      sb.append(")");
11061
      return sb.toString();
11062
    }
11063
 
3430 rajveer 11064
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11065
      // check for required fields
11066
    }
11067
 
3430 rajveer 11068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11069
      try {
11070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11071
      } catch (org.apache.thrift.TException te) {
11072
        throw new java.io.IOException(te);
11073
      }
11074
    }
11075
 
11076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11077
      try {
11078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11079
      } catch (org.apache.thrift.TException te) {
11080
        throw new java.io.IOException(te);
11081
      }
11082
    }
11083
 
495 rajveer 11084
  }
11085
 
3430 rajveer 11086
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11088
 
3430 rajveer 11089
    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);
11090
    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 11091
 
3430 rajveer 11092
    private String username; // required
11093
    private String password; // required
750 chandransh 11094
 
11095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11097
      USERNAME((short)1, "username"),
11098
      PASSWORD((short)2, "password");
11099
 
11100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11101
 
11102
      static {
11103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11104
          byName.put(field.getFieldName(), field);
11105
        }
11106
      }
11107
 
11108
      /**
11109
       * Find the _Fields constant that matches fieldId, or null if its not found.
11110
       */
11111
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11112
        switch(fieldId) {
11113
          case 1: // USERNAME
11114
            return USERNAME;
11115
          case 2: // PASSWORD
11116
            return PASSWORD;
11117
          default:
11118
            return null;
11119
        }
750 chandransh 11120
      }
11121
 
11122
      /**
11123
       * Find the _Fields constant that matches fieldId, throwing an exception
11124
       * if it is not found.
11125
       */
11126
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11127
        _Fields fields = findByThriftId(fieldId);
11128
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11129
        return fields;
11130
      }
11131
 
11132
      /**
11133
       * Find the _Fields constant that matches name, or null if its not found.
11134
       */
11135
      public static _Fields findByName(String name) {
11136
        return byName.get(name);
11137
      }
11138
 
11139
      private final short _thriftId;
11140
      private final String _fieldName;
11141
 
11142
      _Fields(short thriftId, String fieldName) {
11143
        _thriftId = thriftId;
11144
        _fieldName = fieldName;
11145
      }
11146
 
11147
      public short getThriftFieldId() {
11148
        return _thriftId;
11149
      }
11150
 
11151
      public String getFieldName() {
11152
        return _fieldName;
11153
      }
11154
    }
11155
 
11156
    // isset id assignments
11157
 
3430 rajveer 11158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11159
    static {
3430 rajveer 11160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11161
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11163
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11167
    }
11168
 
11169
    public authenticateLogisticsUser_args() {
11170
    }
11171
 
11172
    public authenticateLogisticsUser_args(
11173
      String username,
11174
      String password)
11175
    {
11176
      this();
11177
      this.username = username;
11178
      this.password = password;
11179
    }
11180
 
11181
    /**
11182
     * Performs a deep copy on <i>other</i>.
11183
     */
11184
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
11185
      if (other.isSetUsername()) {
11186
        this.username = other.username;
11187
      }
11188
      if (other.isSetPassword()) {
11189
        this.password = other.password;
11190
      }
11191
    }
11192
 
11193
    public authenticateLogisticsUser_args deepCopy() {
11194
      return new authenticateLogisticsUser_args(this);
11195
    }
11196
 
3430 rajveer 11197
    @Override
11198
    public void clear() {
11199
      this.username = null;
11200
      this.password = null;
750 chandransh 11201
    }
11202
 
11203
    public String getUsername() {
11204
      return this.username;
11205
    }
11206
 
3430 rajveer 11207
    public void setUsername(String username) {
750 chandransh 11208
      this.username = username;
11209
    }
11210
 
11211
    public void unsetUsername() {
11212
      this.username = null;
11213
    }
11214
 
3430 rajveer 11215
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 11216
    public boolean isSetUsername() {
11217
      return this.username != null;
11218
    }
11219
 
11220
    public void setUsernameIsSet(boolean value) {
11221
      if (!value) {
11222
        this.username = null;
11223
      }
11224
    }
11225
 
11226
    public String getPassword() {
11227
      return this.password;
11228
    }
11229
 
3430 rajveer 11230
    public void setPassword(String password) {
750 chandransh 11231
      this.password = password;
11232
    }
11233
 
11234
    public void unsetPassword() {
11235
      this.password = null;
11236
    }
11237
 
3430 rajveer 11238
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 11239
    public boolean isSetPassword() {
11240
      return this.password != null;
11241
    }
11242
 
11243
    public void setPasswordIsSet(boolean value) {
11244
      if (!value) {
11245
        this.password = null;
11246
      }
11247
    }
11248
 
11249
    public void setFieldValue(_Fields field, Object value) {
11250
      switch (field) {
11251
      case USERNAME:
11252
        if (value == null) {
11253
          unsetUsername();
11254
        } else {
11255
          setUsername((String)value);
11256
        }
11257
        break;
11258
 
11259
      case PASSWORD:
11260
        if (value == null) {
11261
          unsetPassword();
11262
        } else {
11263
          setPassword((String)value);
11264
        }
11265
        break;
11266
 
11267
      }
11268
    }
11269
 
11270
    public Object getFieldValue(_Fields field) {
11271
      switch (field) {
11272
      case USERNAME:
11273
        return getUsername();
11274
 
11275
      case PASSWORD:
11276
        return getPassword();
11277
 
11278
      }
11279
      throw new IllegalStateException();
11280
    }
11281
 
3430 rajveer 11282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11283
    public boolean isSet(_Fields field) {
11284
      if (field == null) {
11285
        throw new IllegalArgumentException();
11286
      }
750 chandransh 11287
 
11288
      switch (field) {
11289
      case USERNAME:
11290
        return isSetUsername();
11291
      case PASSWORD:
11292
        return isSetPassword();
11293
      }
11294
      throw new IllegalStateException();
11295
    }
11296
 
11297
    @Override
11298
    public boolean equals(Object that) {
11299
      if (that == null)
11300
        return false;
11301
      if (that instanceof authenticateLogisticsUser_args)
11302
        return this.equals((authenticateLogisticsUser_args)that);
11303
      return false;
11304
    }
11305
 
11306
    public boolean equals(authenticateLogisticsUser_args that) {
11307
      if (that == null)
11308
        return false;
11309
 
11310
      boolean this_present_username = true && this.isSetUsername();
11311
      boolean that_present_username = true && that.isSetUsername();
11312
      if (this_present_username || that_present_username) {
11313
        if (!(this_present_username && that_present_username))
11314
          return false;
11315
        if (!this.username.equals(that.username))
11316
          return false;
11317
      }
11318
 
11319
      boolean this_present_password = true && this.isSetPassword();
11320
      boolean that_present_password = true && that.isSetPassword();
11321
      if (this_present_password || that_present_password) {
11322
        if (!(this_present_password && that_present_password))
11323
          return false;
11324
        if (!this.password.equals(that.password))
11325
          return false;
11326
      }
11327
 
11328
      return true;
11329
    }
11330
 
11331
    @Override
11332
    public int hashCode() {
11333
      return 0;
11334
    }
11335
 
11336
    public int compareTo(authenticateLogisticsUser_args other) {
11337
      if (!getClass().equals(other.getClass())) {
11338
        return getClass().getName().compareTo(other.getClass().getName());
11339
      }
11340
 
11341
      int lastComparison = 0;
11342
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
11343
 
3430 rajveer 11344
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 11345
      if (lastComparison != 0) {
11346
        return lastComparison;
11347
      }
3430 rajveer 11348
      if (isSetUsername()) {
11349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11350
        if (lastComparison != 0) {
11351
          return lastComparison;
11352
        }
750 chandransh 11353
      }
3430 rajveer 11354
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 11355
      if (lastComparison != 0) {
11356
        return lastComparison;
11357
      }
3430 rajveer 11358
      if (isSetPassword()) {
11359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11360
        if (lastComparison != 0) {
11361
          return lastComparison;
11362
        }
750 chandransh 11363
      }
11364
      return 0;
11365
    }
11366
 
3430 rajveer 11367
    public _Fields fieldForId(int fieldId) {
11368
      return _Fields.findByThriftId(fieldId);
11369
    }
11370
 
11371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11372
      org.apache.thrift.protocol.TField field;
750 chandransh 11373
      iprot.readStructBegin();
11374
      while (true)
11375
      {
11376
        field = iprot.readFieldBegin();
3430 rajveer 11377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 11378
          break;
11379
        }
3430 rajveer 11380
        switch (field.id) {
11381
          case 1: // USERNAME
11382
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11383
              this.username = iprot.readString();
11384
            } else { 
11385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11386
            }
11387
            break;
11388
          case 2: // PASSWORD
11389
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11390
              this.password = iprot.readString();
11391
            } else { 
11392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11393
            }
11394
            break;
11395
          default:
11396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 11397
        }
3430 rajveer 11398
        iprot.readFieldEnd();
750 chandransh 11399
      }
11400
      iprot.readStructEnd();
11401
      validate();
11402
    }
11403
 
3430 rajveer 11404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 11405
      validate();
11406
 
11407
      oprot.writeStructBegin(STRUCT_DESC);
11408
      if (this.username != null) {
11409
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11410
        oprot.writeString(this.username);
11411
        oprot.writeFieldEnd();
11412
      }
11413
      if (this.password != null) {
11414
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11415
        oprot.writeString(this.password);
11416
        oprot.writeFieldEnd();
11417
      }
11418
      oprot.writeFieldStop();
11419
      oprot.writeStructEnd();
11420
    }
11421
 
11422
    @Override
11423
    public String toString() {
11424
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
11425
      boolean first = true;
11426
 
11427
      sb.append("username:");
11428
      if (this.username == null) {
11429
        sb.append("null");
11430
      } else {
11431
        sb.append(this.username);
11432
      }
11433
      first = false;
11434
      if (!first) sb.append(", ");
11435
      sb.append("password:");
11436
      if (this.password == null) {
11437
        sb.append("null");
11438
      } else {
11439
        sb.append(this.password);
11440
      }
11441
      first = false;
11442
      sb.append(")");
11443
      return sb.toString();
11444
    }
11445
 
3430 rajveer 11446
    public void validate() throws org.apache.thrift.TException {
750 chandransh 11447
      // check for required fields
11448
    }
11449
 
3430 rajveer 11450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11451
      try {
11452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11453
      } catch (org.apache.thrift.TException te) {
11454
        throw new java.io.IOException(te);
11455
      }
11456
    }
11457
 
11458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11459
      try {
11460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11461
      } catch (org.apache.thrift.TException te) {
11462
        throw new java.io.IOException(te);
11463
      }
11464
    }
11465
 
750 chandransh 11466
  }
11467
 
3430 rajveer 11468
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
11469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 11470
 
3430 rajveer 11471
    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);
11472
    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 11473
 
3430 rajveer 11474
    private LogisticsUser success; // required
11475
    private HelperServiceException hse; // required
750 chandransh 11476
 
11477
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11478
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11479
      SUCCESS((short)0, "success"),
11480
      HSE((short)1, "hse");
11481
 
11482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11483
 
11484
      static {
11485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11486
          byName.put(field.getFieldName(), field);
11487
        }
11488
      }
11489
 
11490
      /**
11491
       * Find the _Fields constant that matches fieldId, or null if its not found.
11492
       */
11493
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11494
        switch(fieldId) {
11495
          case 0: // SUCCESS
11496
            return SUCCESS;
11497
          case 1: // HSE
11498
            return HSE;
11499
          default:
11500
            return null;
11501
        }
750 chandransh 11502
      }
11503
 
11504
      /**
11505
       * Find the _Fields constant that matches fieldId, throwing an exception
11506
       * if it is not found.
11507
       */
11508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11509
        _Fields fields = findByThriftId(fieldId);
11510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11511
        return fields;
11512
      }
11513
 
11514
      /**
11515
       * Find the _Fields constant that matches name, or null if its not found.
11516
       */
11517
      public static _Fields findByName(String name) {
11518
        return byName.get(name);
11519
      }
11520
 
11521
      private final short _thriftId;
11522
      private final String _fieldName;
11523
 
11524
      _Fields(short thriftId, String fieldName) {
11525
        _thriftId = thriftId;
11526
        _fieldName = fieldName;
11527
      }
11528
 
11529
      public short getThriftFieldId() {
11530
        return _thriftId;
11531
      }
11532
 
11533
      public String getFieldName() {
11534
        return _fieldName;
11535
      }
11536
    }
11537
 
11538
    // isset id assignments
11539
 
3430 rajveer 11540
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11541
    static {
3430 rajveer 11542
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11543
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11544
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
11545
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 11549
    }
11550
 
11551
    public authenticateLogisticsUser_result() {
11552
    }
11553
 
11554
    public authenticateLogisticsUser_result(
11555
      LogisticsUser success,
11556
      HelperServiceException hse)
11557
    {
11558
      this();
11559
      this.success = success;
11560
      this.hse = hse;
11561
    }
11562
 
11563
    /**
11564
     * Performs a deep copy on <i>other</i>.
11565
     */
11566
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
11567
      if (other.isSetSuccess()) {
11568
        this.success = new LogisticsUser(other.success);
11569
      }
11570
      if (other.isSetHse()) {
11571
        this.hse = new HelperServiceException(other.hse);
11572
      }
11573
    }
11574
 
11575
    public authenticateLogisticsUser_result deepCopy() {
11576
      return new authenticateLogisticsUser_result(this);
11577
    }
11578
 
3430 rajveer 11579
    @Override
11580
    public void clear() {
11581
      this.success = null;
11582
      this.hse = null;
750 chandransh 11583
    }
11584
 
11585
    public LogisticsUser getSuccess() {
11586
      return this.success;
11587
    }
11588
 
3430 rajveer 11589
    public void setSuccess(LogisticsUser success) {
750 chandransh 11590
      this.success = success;
11591
    }
11592
 
11593
    public void unsetSuccess() {
11594
      this.success = null;
11595
    }
11596
 
3430 rajveer 11597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 11598
    public boolean isSetSuccess() {
11599
      return this.success != null;
11600
    }
11601
 
11602
    public void setSuccessIsSet(boolean value) {
11603
      if (!value) {
11604
        this.success = null;
11605
      }
11606
    }
11607
 
11608
    public HelperServiceException getHse() {
11609
      return this.hse;
11610
    }
11611
 
3430 rajveer 11612
    public void setHse(HelperServiceException hse) {
750 chandransh 11613
      this.hse = hse;
11614
    }
11615
 
11616
    public void unsetHse() {
11617
      this.hse = null;
11618
    }
11619
 
3430 rajveer 11620
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 11621
    public boolean isSetHse() {
11622
      return this.hse != null;
11623
    }
11624
 
11625
    public void setHseIsSet(boolean value) {
11626
      if (!value) {
11627
        this.hse = null;
11628
      }
11629
    }
11630
 
11631
    public void setFieldValue(_Fields field, Object value) {
11632
      switch (field) {
11633
      case SUCCESS:
11634
        if (value == null) {
11635
          unsetSuccess();
11636
        } else {
11637
          setSuccess((LogisticsUser)value);
11638
        }
11639
        break;
11640
 
11641
      case HSE:
11642
        if (value == null) {
11643
          unsetHse();
11644
        } else {
11645
          setHse((HelperServiceException)value);
11646
        }
11647
        break;
11648
 
11649
      }
11650
    }
11651
 
11652
    public Object getFieldValue(_Fields field) {
11653
      switch (field) {
11654
      case SUCCESS:
11655
        return getSuccess();
11656
 
11657
      case HSE:
11658
        return getHse();
11659
 
11660
      }
11661
      throw new IllegalStateException();
11662
    }
11663
 
3430 rajveer 11664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11665
    public boolean isSet(_Fields field) {
11666
      if (field == null) {
11667
        throw new IllegalArgumentException();
11668
      }
750 chandransh 11669
 
11670
      switch (field) {
11671
      case SUCCESS:
11672
        return isSetSuccess();
11673
      case HSE:
11674
        return isSetHse();
11675
      }
11676
      throw new IllegalStateException();
11677
    }
11678
 
11679
    @Override
11680
    public boolean equals(Object that) {
11681
      if (that == null)
11682
        return false;
11683
      if (that instanceof authenticateLogisticsUser_result)
11684
        return this.equals((authenticateLogisticsUser_result)that);
11685
      return false;
11686
    }
11687
 
11688
    public boolean equals(authenticateLogisticsUser_result that) {
11689
      if (that == null)
11690
        return false;
11691
 
11692
      boolean this_present_success = true && this.isSetSuccess();
11693
      boolean that_present_success = true && that.isSetSuccess();
11694
      if (this_present_success || that_present_success) {
11695
        if (!(this_present_success && that_present_success))
11696
          return false;
11697
        if (!this.success.equals(that.success))
11698
          return false;
11699
      }
11700
 
11701
      boolean this_present_hse = true && this.isSetHse();
11702
      boolean that_present_hse = true && that.isSetHse();
11703
      if (this_present_hse || that_present_hse) {
11704
        if (!(this_present_hse && that_present_hse))
11705
          return false;
11706
        if (!this.hse.equals(that.hse))
11707
          return false;
11708
      }
11709
 
11710
      return true;
11711
    }
11712
 
11713
    @Override
11714
    public int hashCode() {
11715
      return 0;
11716
    }
11717
 
11718
    public int compareTo(authenticateLogisticsUser_result other) {
11719
      if (!getClass().equals(other.getClass())) {
11720
        return getClass().getName().compareTo(other.getClass().getName());
11721
      }
11722
 
11723
      int lastComparison = 0;
11724
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
11725
 
3430 rajveer 11726
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 11727
      if (lastComparison != 0) {
11728
        return lastComparison;
11729
      }
3430 rajveer 11730
      if (isSetSuccess()) {
11731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11732
        if (lastComparison != 0) {
11733
          return lastComparison;
11734
        }
750 chandransh 11735
      }
3430 rajveer 11736
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 11737
      if (lastComparison != 0) {
11738
        return lastComparison;
11739
      }
3430 rajveer 11740
      if (isSetHse()) {
11741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
11742
        if (lastComparison != 0) {
11743
          return lastComparison;
11744
        }
750 chandransh 11745
      }
11746
      return 0;
11747
    }
11748
 
3430 rajveer 11749
    public _Fields fieldForId(int fieldId) {
11750
      return _Fields.findByThriftId(fieldId);
11751
    }
11752
 
11753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11754
      org.apache.thrift.protocol.TField field;
750 chandransh 11755
      iprot.readStructBegin();
11756
      while (true)
11757
      {
11758
        field = iprot.readFieldBegin();
3430 rajveer 11759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 11760
          break;
11761
        }
3430 rajveer 11762
        switch (field.id) {
11763
          case 0: // SUCCESS
11764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11765
              this.success = new LogisticsUser();
11766
              this.success.read(iprot);
11767
            } else { 
11768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11769
            }
11770
            break;
11771
          case 1: // HSE
11772
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11773
              this.hse = new HelperServiceException();
11774
              this.hse.read(iprot);
11775
            } else { 
11776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11777
            }
11778
            break;
11779
          default:
11780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 11781
        }
3430 rajveer 11782
        iprot.readFieldEnd();
750 chandransh 11783
      }
11784
      iprot.readStructEnd();
11785
      validate();
11786
    }
11787
 
3430 rajveer 11788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 11789
      oprot.writeStructBegin(STRUCT_DESC);
11790
 
11791
      if (this.isSetSuccess()) {
11792
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11793
        this.success.write(oprot);
11794
        oprot.writeFieldEnd();
11795
      } else if (this.isSetHse()) {
11796
        oprot.writeFieldBegin(HSE_FIELD_DESC);
11797
        this.hse.write(oprot);
11798
        oprot.writeFieldEnd();
11799
      }
11800
      oprot.writeFieldStop();
11801
      oprot.writeStructEnd();
11802
    }
11803
 
11804
    @Override
11805
    public String toString() {
11806
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
11807
      boolean first = true;
11808
 
11809
      sb.append("success:");
11810
      if (this.success == null) {
11811
        sb.append("null");
11812
      } else {
11813
        sb.append(this.success);
11814
      }
11815
      first = false;
11816
      if (!first) sb.append(", ");
11817
      sb.append("hse:");
11818
      if (this.hse == null) {
11819
        sb.append("null");
11820
      } else {
11821
        sb.append(this.hse);
11822
      }
11823
      first = false;
11824
      sb.append(")");
11825
      return sb.toString();
11826
    }
11827
 
3430 rajveer 11828
    public void validate() throws org.apache.thrift.TException {
750 chandransh 11829
      // check for required fields
11830
    }
11831
 
3430 rajveer 11832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11833
      try {
11834
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11835
      } catch (org.apache.thrift.TException te) {
11836
        throw new java.io.IOException(te);
11837
      }
11838
    }
11839
 
11840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11841
      try {
11842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11843
      } catch (org.apache.thrift.TException te) {
11844
        throw new java.io.IOException(te);
11845
      }
11846
    }
11847
 
750 chandransh 11848
  }
11849
 
3430 rajveer 11850
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 11852
 
3430 rajveer 11853
    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);
11854
    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 11855
 
3430 rajveer 11856
    private String username; // required
11857
    private String password; // required
1611 ankur.sing 11858
 
11859
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11860
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 11861
      USERNAME((short)1, "username"),
11862
      PASSWORD((short)2, "password");
11863
 
11864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11865
 
11866
      static {
11867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11868
          byName.put(field.getFieldName(), field);
11869
        }
11870
      }
11871
 
11872
      /**
11873
       * Find the _Fields constant that matches fieldId, or null if its not found.
11874
       */
11875
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11876
        switch(fieldId) {
11877
          case 1: // USERNAME
11878
            return USERNAME;
11879
          case 2: // PASSWORD
11880
            return PASSWORD;
11881
          default:
11882
            return null;
11883
        }
1611 ankur.sing 11884
      }
11885
 
11886
      /**
11887
       * Find the _Fields constant that matches fieldId, throwing an exception
11888
       * if it is not found.
11889
       */
11890
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11891
        _Fields fields = findByThriftId(fieldId);
11892
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11893
        return fields;
11894
      }
11895
 
11896
      /**
11897
       * Find the _Fields constant that matches name, or null if its not found.
11898
       */
11899
      public static _Fields findByName(String name) {
11900
        return byName.get(name);
11901
      }
11902
 
11903
      private final short _thriftId;
11904
      private final String _fieldName;
11905
 
11906
      _Fields(short thriftId, String fieldName) {
11907
        _thriftId = thriftId;
11908
        _fieldName = fieldName;
11909
      }
11910
 
11911
      public short getThriftFieldId() {
11912
        return _thriftId;
11913
      }
11914
 
11915
      public String getFieldName() {
11916
        return _fieldName;
11917
      }
11918
    }
11919
 
11920
    // isset id assignments
11921
 
3430 rajveer 11922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 11923
    static {
3430 rajveer 11924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11925
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11927
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 11931
    }
11932
 
11933
    public authenticateStatisticsUser_args() {
11934
    }
11935
 
11936
    public authenticateStatisticsUser_args(
11937
      String username,
11938
      String password)
11939
    {
11940
      this();
11941
      this.username = username;
11942
      this.password = password;
11943
    }
11944
 
11945
    /**
11946
     * Performs a deep copy on <i>other</i>.
11947
     */
11948
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
11949
      if (other.isSetUsername()) {
11950
        this.username = other.username;
11951
      }
11952
      if (other.isSetPassword()) {
11953
        this.password = other.password;
11954
      }
11955
    }
11956
 
11957
    public authenticateStatisticsUser_args deepCopy() {
11958
      return new authenticateStatisticsUser_args(this);
11959
    }
11960
 
3430 rajveer 11961
    @Override
11962
    public void clear() {
11963
      this.username = null;
11964
      this.password = null;
1611 ankur.sing 11965
    }
11966
 
11967
    public String getUsername() {
11968
      return this.username;
11969
    }
11970
 
3430 rajveer 11971
    public void setUsername(String username) {
1611 ankur.sing 11972
      this.username = username;
11973
    }
11974
 
11975
    public void unsetUsername() {
11976
      this.username = null;
11977
    }
11978
 
3430 rajveer 11979
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 11980
    public boolean isSetUsername() {
11981
      return this.username != null;
11982
    }
11983
 
11984
    public void setUsernameIsSet(boolean value) {
11985
      if (!value) {
11986
        this.username = null;
11987
      }
11988
    }
11989
 
11990
    public String getPassword() {
11991
      return this.password;
11992
    }
11993
 
3430 rajveer 11994
    public void setPassword(String password) {
1611 ankur.sing 11995
      this.password = password;
11996
    }
11997
 
11998
    public void unsetPassword() {
11999
      this.password = null;
12000
    }
12001
 
3430 rajveer 12002
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12003
    public boolean isSetPassword() {
12004
      return this.password != null;
12005
    }
12006
 
12007
    public void setPasswordIsSet(boolean value) {
12008
      if (!value) {
12009
        this.password = null;
12010
      }
12011
    }
12012
 
12013
    public void setFieldValue(_Fields field, Object value) {
12014
      switch (field) {
12015
      case USERNAME:
12016
        if (value == null) {
12017
          unsetUsername();
12018
        } else {
12019
          setUsername((String)value);
12020
        }
12021
        break;
12022
 
12023
      case PASSWORD:
12024
        if (value == null) {
12025
          unsetPassword();
12026
        } else {
12027
          setPassword((String)value);
12028
        }
12029
        break;
12030
 
12031
      }
12032
    }
12033
 
12034
    public Object getFieldValue(_Fields field) {
12035
      switch (field) {
12036
      case USERNAME:
12037
        return getUsername();
12038
 
12039
      case PASSWORD:
12040
        return getPassword();
12041
 
12042
      }
12043
      throw new IllegalStateException();
12044
    }
12045
 
3430 rajveer 12046
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12047
    public boolean isSet(_Fields field) {
12048
      if (field == null) {
12049
        throw new IllegalArgumentException();
12050
      }
1611 ankur.sing 12051
 
12052
      switch (field) {
12053
      case USERNAME:
12054
        return isSetUsername();
12055
      case PASSWORD:
12056
        return isSetPassword();
12057
      }
12058
      throw new IllegalStateException();
12059
    }
12060
 
12061
    @Override
12062
    public boolean equals(Object that) {
12063
      if (that == null)
12064
        return false;
12065
      if (that instanceof authenticateStatisticsUser_args)
12066
        return this.equals((authenticateStatisticsUser_args)that);
12067
      return false;
12068
    }
12069
 
12070
    public boolean equals(authenticateStatisticsUser_args that) {
12071
      if (that == null)
12072
        return false;
12073
 
12074
      boolean this_present_username = true && this.isSetUsername();
12075
      boolean that_present_username = true && that.isSetUsername();
12076
      if (this_present_username || that_present_username) {
12077
        if (!(this_present_username && that_present_username))
12078
          return false;
12079
        if (!this.username.equals(that.username))
12080
          return false;
12081
      }
12082
 
12083
      boolean this_present_password = true && this.isSetPassword();
12084
      boolean that_present_password = true && that.isSetPassword();
12085
      if (this_present_password || that_present_password) {
12086
        if (!(this_present_password && that_present_password))
12087
          return false;
12088
        if (!this.password.equals(that.password))
12089
          return false;
12090
      }
12091
 
12092
      return true;
12093
    }
12094
 
12095
    @Override
12096
    public int hashCode() {
12097
      return 0;
12098
    }
12099
 
12100
    public int compareTo(authenticateStatisticsUser_args other) {
12101
      if (!getClass().equals(other.getClass())) {
12102
        return getClass().getName().compareTo(other.getClass().getName());
12103
      }
12104
 
12105
      int lastComparison = 0;
12106
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12107
 
3430 rajveer 12108
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12109
      if (lastComparison != 0) {
12110
        return lastComparison;
12111
      }
3430 rajveer 12112
      if (isSetUsername()) {
12113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12114
        if (lastComparison != 0) {
12115
          return lastComparison;
12116
        }
1611 ankur.sing 12117
      }
3430 rajveer 12118
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12119
      if (lastComparison != 0) {
12120
        return lastComparison;
12121
      }
3430 rajveer 12122
      if (isSetPassword()) {
12123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12124
        if (lastComparison != 0) {
12125
          return lastComparison;
12126
        }
1611 ankur.sing 12127
      }
12128
      return 0;
12129
    }
12130
 
3430 rajveer 12131
    public _Fields fieldForId(int fieldId) {
12132
      return _Fields.findByThriftId(fieldId);
12133
    }
12134
 
12135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12136
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12137
      iprot.readStructBegin();
12138
      while (true)
12139
      {
12140
        field = iprot.readFieldBegin();
3430 rajveer 12141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12142
          break;
12143
        }
3430 rajveer 12144
        switch (field.id) {
12145
          case 1: // USERNAME
12146
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12147
              this.username = iprot.readString();
12148
            } else { 
12149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12150
            }
12151
            break;
12152
          case 2: // PASSWORD
12153
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12154
              this.password = iprot.readString();
12155
            } else { 
12156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12157
            }
12158
            break;
12159
          default:
12160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12161
        }
3430 rajveer 12162
        iprot.readFieldEnd();
1611 ankur.sing 12163
      }
12164
      iprot.readStructEnd();
12165
      validate();
12166
    }
12167
 
3430 rajveer 12168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12169
      validate();
12170
 
12171
      oprot.writeStructBegin(STRUCT_DESC);
12172
      if (this.username != null) {
12173
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12174
        oprot.writeString(this.username);
12175
        oprot.writeFieldEnd();
12176
      }
12177
      if (this.password != null) {
12178
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12179
        oprot.writeString(this.password);
12180
        oprot.writeFieldEnd();
12181
      }
12182
      oprot.writeFieldStop();
12183
      oprot.writeStructEnd();
12184
    }
12185
 
12186
    @Override
12187
    public String toString() {
12188
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
12189
      boolean first = true;
12190
 
12191
      sb.append("username:");
12192
      if (this.username == null) {
12193
        sb.append("null");
12194
      } else {
12195
        sb.append(this.username);
12196
      }
12197
      first = false;
12198
      if (!first) sb.append(", ");
12199
      sb.append("password:");
12200
      if (this.password == null) {
12201
        sb.append("null");
12202
      } else {
12203
        sb.append(this.password);
12204
      }
12205
      first = false;
12206
      sb.append(")");
12207
      return sb.toString();
12208
    }
12209
 
3430 rajveer 12210
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12211
      // check for required fields
12212
    }
12213
 
3430 rajveer 12214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12215
      try {
12216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12217
      } catch (org.apache.thrift.TException te) {
12218
        throw new java.io.IOException(te);
12219
      }
12220
    }
12221
 
12222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12223
      try {
12224
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12225
      } catch (org.apache.thrift.TException te) {
12226
        throw new java.io.IOException(te);
12227
      }
12228
    }
12229
 
1611 ankur.sing 12230
  }
12231
 
3430 rajveer 12232
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12233
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 12234
 
3430 rajveer 12235
    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);
12236
    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 12237
 
3430 rajveer 12238
    private StatisticsUser success; // required
12239
    private HelperServiceException hse; // required
1611 ankur.sing 12240
 
12241
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12242
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12243
      SUCCESS((short)0, "success"),
12244
      HSE((short)1, "hse");
12245
 
12246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12247
 
12248
      static {
12249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12250
          byName.put(field.getFieldName(), field);
12251
        }
12252
      }
12253
 
12254
      /**
12255
       * Find the _Fields constant that matches fieldId, or null if its not found.
12256
       */
12257
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12258
        switch(fieldId) {
12259
          case 0: // SUCCESS
12260
            return SUCCESS;
12261
          case 1: // HSE
12262
            return HSE;
12263
          default:
12264
            return null;
12265
        }
1611 ankur.sing 12266
      }
12267
 
12268
      /**
12269
       * Find the _Fields constant that matches fieldId, throwing an exception
12270
       * if it is not found.
12271
       */
12272
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12273
        _Fields fields = findByThriftId(fieldId);
12274
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12275
        return fields;
12276
      }
12277
 
12278
      /**
12279
       * Find the _Fields constant that matches name, or null if its not found.
12280
       */
12281
      public static _Fields findByName(String name) {
12282
        return byName.get(name);
12283
      }
12284
 
12285
      private final short _thriftId;
12286
      private final String _fieldName;
12287
 
12288
      _Fields(short thriftId, String fieldName) {
12289
        _thriftId = thriftId;
12290
        _fieldName = fieldName;
12291
      }
12292
 
12293
      public short getThriftFieldId() {
12294
        return _thriftId;
12295
      }
12296
 
12297
      public String getFieldName() {
12298
        return _fieldName;
12299
      }
12300
    }
12301
 
12302
    // isset id assignments
12303
 
3430 rajveer 12304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12305
    static {
3430 rajveer 12306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12307
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12308
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
12309
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 12313
    }
12314
 
12315
    public authenticateStatisticsUser_result() {
12316
    }
12317
 
12318
    public authenticateStatisticsUser_result(
12319
      StatisticsUser success,
12320
      HelperServiceException hse)
12321
    {
12322
      this();
12323
      this.success = success;
12324
      this.hse = hse;
12325
    }
12326
 
12327
    /**
12328
     * Performs a deep copy on <i>other</i>.
12329
     */
12330
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
12331
      if (other.isSetSuccess()) {
12332
        this.success = new StatisticsUser(other.success);
12333
      }
12334
      if (other.isSetHse()) {
12335
        this.hse = new HelperServiceException(other.hse);
12336
      }
12337
    }
12338
 
12339
    public authenticateStatisticsUser_result deepCopy() {
12340
      return new authenticateStatisticsUser_result(this);
12341
    }
12342
 
3430 rajveer 12343
    @Override
12344
    public void clear() {
12345
      this.success = null;
12346
      this.hse = null;
1611 ankur.sing 12347
    }
12348
 
12349
    public StatisticsUser getSuccess() {
12350
      return this.success;
12351
    }
12352
 
3430 rajveer 12353
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 12354
      this.success = success;
12355
    }
12356
 
12357
    public void unsetSuccess() {
12358
      this.success = null;
12359
    }
12360
 
3430 rajveer 12361
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12362
    public boolean isSetSuccess() {
12363
      return this.success != null;
12364
    }
12365
 
12366
    public void setSuccessIsSet(boolean value) {
12367
      if (!value) {
12368
        this.success = null;
12369
      }
12370
    }
12371
 
12372
    public HelperServiceException getHse() {
12373
      return this.hse;
12374
    }
12375
 
3430 rajveer 12376
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 12377
      this.hse = hse;
12378
    }
12379
 
12380
    public void unsetHse() {
12381
      this.hse = null;
12382
    }
12383
 
3430 rajveer 12384
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12385
    public boolean isSetHse() {
12386
      return this.hse != null;
12387
    }
12388
 
12389
    public void setHseIsSet(boolean value) {
12390
      if (!value) {
12391
        this.hse = null;
12392
      }
12393
    }
12394
 
12395
    public void setFieldValue(_Fields field, Object value) {
12396
      switch (field) {
12397
      case SUCCESS:
12398
        if (value == null) {
12399
          unsetSuccess();
12400
        } else {
12401
          setSuccess((StatisticsUser)value);
12402
        }
12403
        break;
12404
 
12405
      case HSE:
12406
        if (value == null) {
12407
          unsetHse();
12408
        } else {
12409
          setHse((HelperServiceException)value);
12410
        }
12411
        break;
12412
 
12413
      }
12414
    }
12415
 
12416
    public Object getFieldValue(_Fields field) {
12417
      switch (field) {
12418
      case SUCCESS:
12419
        return getSuccess();
12420
 
12421
      case HSE:
12422
        return getHse();
12423
 
12424
      }
12425
      throw new IllegalStateException();
12426
    }
12427
 
3430 rajveer 12428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12429
    public boolean isSet(_Fields field) {
12430
      if (field == null) {
12431
        throw new IllegalArgumentException();
12432
      }
1611 ankur.sing 12433
 
12434
      switch (field) {
12435
      case SUCCESS:
12436
        return isSetSuccess();
12437
      case HSE:
12438
        return isSetHse();
12439
      }
12440
      throw new IllegalStateException();
12441
    }
12442
 
12443
    @Override
12444
    public boolean equals(Object that) {
12445
      if (that == null)
12446
        return false;
12447
      if (that instanceof authenticateStatisticsUser_result)
12448
        return this.equals((authenticateStatisticsUser_result)that);
12449
      return false;
12450
    }
12451
 
12452
    public boolean equals(authenticateStatisticsUser_result that) {
12453
      if (that == null)
12454
        return false;
12455
 
12456
      boolean this_present_success = true && this.isSetSuccess();
12457
      boolean that_present_success = true && that.isSetSuccess();
12458
      if (this_present_success || that_present_success) {
12459
        if (!(this_present_success && that_present_success))
12460
          return false;
12461
        if (!this.success.equals(that.success))
12462
          return false;
12463
      }
12464
 
12465
      boolean this_present_hse = true && this.isSetHse();
12466
      boolean that_present_hse = true && that.isSetHse();
12467
      if (this_present_hse || that_present_hse) {
12468
        if (!(this_present_hse && that_present_hse))
12469
          return false;
12470
        if (!this.hse.equals(that.hse))
12471
          return false;
12472
      }
12473
 
12474
      return true;
12475
    }
12476
 
12477
    @Override
12478
    public int hashCode() {
12479
      return 0;
12480
    }
12481
 
12482
    public int compareTo(authenticateStatisticsUser_result other) {
12483
      if (!getClass().equals(other.getClass())) {
12484
        return getClass().getName().compareTo(other.getClass().getName());
12485
      }
12486
 
12487
      int lastComparison = 0;
12488
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
12489
 
3430 rajveer 12490
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 12491
      if (lastComparison != 0) {
12492
        return lastComparison;
12493
      }
3430 rajveer 12494
      if (isSetSuccess()) {
12495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12496
        if (lastComparison != 0) {
12497
          return lastComparison;
12498
        }
1611 ankur.sing 12499
      }
3430 rajveer 12500
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 12501
      if (lastComparison != 0) {
12502
        return lastComparison;
12503
      }
3430 rajveer 12504
      if (isSetHse()) {
12505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12506
        if (lastComparison != 0) {
12507
          return lastComparison;
12508
        }
1611 ankur.sing 12509
      }
12510
      return 0;
12511
    }
12512
 
3430 rajveer 12513
    public _Fields fieldForId(int fieldId) {
12514
      return _Fields.findByThriftId(fieldId);
12515
    }
12516
 
12517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12518
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12519
      iprot.readStructBegin();
12520
      while (true)
12521
      {
12522
        field = iprot.readFieldBegin();
3430 rajveer 12523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12524
          break;
12525
        }
3430 rajveer 12526
        switch (field.id) {
12527
          case 0: // SUCCESS
12528
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12529
              this.success = new StatisticsUser();
12530
              this.success.read(iprot);
12531
            } else { 
12532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12533
            }
12534
            break;
12535
          case 1: // HSE
12536
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12537
              this.hse = new HelperServiceException();
12538
              this.hse.read(iprot);
12539
            } else { 
12540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12541
            }
12542
            break;
12543
          default:
12544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12545
        }
3430 rajveer 12546
        iprot.readFieldEnd();
1611 ankur.sing 12547
      }
12548
      iprot.readStructEnd();
12549
      validate();
12550
    }
12551
 
3430 rajveer 12552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12553
      oprot.writeStructBegin(STRUCT_DESC);
12554
 
12555
      if (this.isSetSuccess()) {
12556
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12557
        this.success.write(oprot);
12558
        oprot.writeFieldEnd();
12559
      } else if (this.isSetHse()) {
12560
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12561
        this.hse.write(oprot);
12562
        oprot.writeFieldEnd();
12563
      }
12564
      oprot.writeFieldStop();
12565
      oprot.writeStructEnd();
12566
    }
12567
 
12568
    @Override
12569
    public String toString() {
12570
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
12571
      boolean first = true;
12572
 
12573
      sb.append("success:");
12574
      if (this.success == null) {
12575
        sb.append("null");
12576
      } else {
12577
        sb.append(this.success);
12578
      }
12579
      first = false;
12580
      if (!first) sb.append(", ");
12581
      sb.append("hse:");
12582
      if (this.hse == null) {
12583
        sb.append("null");
12584
      } else {
12585
        sb.append(this.hse);
12586
      }
12587
      first = false;
12588
      sb.append(")");
12589
      return sb.toString();
12590
    }
12591
 
3430 rajveer 12592
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12593
      // check for required fields
12594
    }
12595
 
3430 rajveer 12596
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12597
      try {
12598
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12599
      } catch (org.apache.thrift.TException te) {
12600
        throw new java.io.IOException(te);
12601
      }
12602
    }
12603
 
12604
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12605
      try {
12606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12607
      } catch (org.apache.thrift.TException te) {
12608
        throw new java.io.IOException(te);
12609
      }
12610
    }
12611
 
1611 ankur.sing 12612
  }
12613
 
3430 rajveer 12614
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
12615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 12616
 
3430 rajveer 12617
    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);
12618
    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 12619
 
3430 rajveer 12620
    private String username; // required
12621
    private String password; // required
1891 ankur.sing 12622
 
12623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 12625
      USERNAME((short)1, "username"),
12626
      PASSWORD((short)2, "password");
12627
 
12628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12629
 
12630
      static {
12631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12632
          byName.put(field.getFieldName(), field);
12633
        }
12634
      }
12635
 
12636
      /**
12637
       * Find the _Fields constant that matches fieldId, or null if its not found.
12638
       */
12639
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12640
        switch(fieldId) {
12641
          case 1: // USERNAME
12642
            return USERNAME;
12643
          case 2: // PASSWORD
12644
            return PASSWORD;
12645
          default:
12646
            return null;
12647
        }
1891 ankur.sing 12648
      }
12649
 
12650
      /**
12651
       * Find the _Fields constant that matches fieldId, throwing an exception
12652
       * if it is not found.
12653
       */
12654
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12655
        _Fields fields = findByThriftId(fieldId);
12656
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12657
        return fields;
12658
      }
12659
 
12660
      /**
12661
       * Find the _Fields constant that matches name, or null if its not found.
12662
       */
12663
      public static _Fields findByName(String name) {
12664
        return byName.get(name);
12665
      }
12666
 
12667
      private final short _thriftId;
12668
      private final String _fieldName;
12669
 
12670
      _Fields(short thriftId, String fieldName) {
12671
        _thriftId = thriftId;
12672
        _fieldName = fieldName;
12673
      }
12674
 
12675
      public short getThriftFieldId() {
12676
        return _thriftId;
12677
      }
12678
 
12679
      public String getFieldName() {
12680
        return _fieldName;
12681
      }
12682
    }
12683
 
12684
    // isset id assignments
12685
 
3430 rajveer 12686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 12687
    static {
3430 rajveer 12688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12689
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12691
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 12695
    }
12696
 
12697
    public authenticateReportUser_args() {
12698
    }
12699
 
12700
    public authenticateReportUser_args(
12701
      String username,
12702
      String password)
12703
    {
12704
      this();
12705
      this.username = username;
12706
      this.password = password;
12707
    }
12708
 
12709
    /**
12710
     * Performs a deep copy on <i>other</i>.
12711
     */
12712
    public authenticateReportUser_args(authenticateReportUser_args other) {
12713
      if (other.isSetUsername()) {
12714
        this.username = other.username;
12715
      }
12716
      if (other.isSetPassword()) {
12717
        this.password = other.password;
12718
      }
12719
    }
12720
 
12721
    public authenticateReportUser_args deepCopy() {
12722
      return new authenticateReportUser_args(this);
12723
    }
12724
 
3430 rajveer 12725
    @Override
12726
    public void clear() {
12727
      this.username = null;
12728
      this.password = null;
1891 ankur.sing 12729
    }
12730
 
12731
    public String getUsername() {
12732
      return this.username;
12733
    }
12734
 
3430 rajveer 12735
    public void setUsername(String username) {
1891 ankur.sing 12736
      this.username = username;
12737
    }
12738
 
12739
    public void unsetUsername() {
12740
      this.username = null;
12741
    }
12742
 
3430 rajveer 12743
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 12744
    public boolean isSetUsername() {
12745
      return this.username != null;
12746
    }
12747
 
12748
    public void setUsernameIsSet(boolean value) {
12749
      if (!value) {
12750
        this.username = null;
12751
      }
12752
    }
12753
 
12754
    public String getPassword() {
12755
      return this.password;
12756
    }
12757
 
3430 rajveer 12758
    public void setPassword(String password) {
1891 ankur.sing 12759
      this.password = password;
12760
    }
12761
 
12762
    public void unsetPassword() {
12763
      this.password = null;
12764
    }
12765
 
3430 rajveer 12766
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 12767
    public boolean isSetPassword() {
12768
      return this.password != null;
12769
    }
12770
 
12771
    public void setPasswordIsSet(boolean value) {
12772
      if (!value) {
12773
        this.password = null;
12774
      }
12775
    }
12776
 
12777
    public void setFieldValue(_Fields field, Object value) {
12778
      switch (field) {
12779
      case USERNAME:
12780
        if (value == null) {
12781
          unsetUsername();
12782
        } else {
12783
          setUsername((String)value);
12784
        }
12785
        break;
12786
 
12787
      case PASSWORD:
12788
        if (value == null) {
12789
          unsetPassword();
12790
        } else {
12791
          setPassword((String)value);
12792
        }
12793
        break;
12794
 
12795
      }
12796
    }
12797
 
12798
    public Object getFieldValue(_Fields field) {
12799
      switch (field) {
12800
      case USERNAME:
12801
        return getUsername();
12802
 
12803
      case PASSWORD:
12804
        return getPassword();
12805
 
12806
      }
12807
      throw new IllegalStateException();
12808
    }
12809
 
3430 rajveer 12810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12811
    public boolean isSet(_Fields field) {
12812
      if (field == null) {
12813
        throw new IllegalArgumentException();
12814
      }
1891 ankur.sing 12815
 
12816
      switch (field) {
12817
      case USERNAME:
12818
        return isSetUsername();
12819
      case PASSWORD:
12820
        return isSetPassword();
12821
      }
12822
      throw new IllegalStateException();
12823
    }
12824
 
12825
    @Override
12826
    public boolean equals(Object that) {
12827
      if (that == null)
12828
        return false;
12829
      if (that instanceof authenticateReportUser_args)
12830
        return this.equals((authenticateReportUser_args)that);
12831
      return false;
12832
    }
12833
 
12834
    public boolean equals(authenticateReportUser_args that) {
12835
      if (that == null)
12836
        return false;
12837
 
12838
      boolean this_present_username = true && this.isSetUsername();
12839
      boolean that_present_username = true && that.isSetUsername();
12840
      if (this_present_username || that_present_username) {
12841
        if (!(this_present_username && that_present_username))
12842
          return false;
12843
        if (!this.username.equals(that.username))
12844
          return false;
12845
      }
12846
 
12847
      boolean this_present_password = true && this.isSetPassword();
12848
      boolean that_present_password = true && that.isSetPassword();
12849
      if (this_present_password || that_present_password) {
12850
        if (!(this_present_password && that_present_password))
12851
          return false;
12852
        if (!this.password.equals(that.password))
12853
          return false;
12854
      }
12855
 
12856
      return true;
12857
    }
12858
 
12859
    @Override
12860
    public int hashCode() {
12861
      return 0;
12862
    }
12863
 
12864
    public int compareTo(authenticateReportUser_args other) {
12865
      if (!getClass().equals(other.getClass())) {
12866
        return getClass().getName().compareTo(other.getClass().getName());
12867
      }
12868
 
12869
      int lastComparison = 0;
12870
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
12871
 
3430 rajveer 12872
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 12873
      if (lastComparison != 0) {
12874
        return lastComparison;
12875
      }
3430 rajveer 12876
      if (isSetUsername()) {
12877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12878
        if (lastComparison != 0) {
12879
          return lastComparison;
12880
        }
1891 ankur.sing 12881
      }
3430 rajveer 12882
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 12883
      if (lastComparison != 0) {
12884
        return lastComparison;
12885
      }
3430 rajveer 12886
      if (isSetPassword()) {
12887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12888
        if (lastComparison != 0) {
12889
          return lastComparison;
12890
        }
1891 ankur.sing 12891
      }
12892
      return 0;
12893
    }
12894
 
3430 rajveer 12895
    public _Fields fieldForId(int fieldId) {
12896
      return _Fields.findByThriftId(fieldId);
12897
    }
12898
 
12899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12900
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 12901
      iprot.readStructBegin();
12902
      while (true)
12903
      {
12904
        field = iprot.readFieldBegin();
3430 rajveer 12905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 12906
          break;
12907
        }
3430 rajveer 12908
        switch (field.id) {
12909
          case 1: // USERNAME
12910
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12911
              this.username = iprot.readString();
12912
            } else { 
12913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12914
            }
12915
            break;
12916
          case 2: // PASSWORD
12917
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12918
              this.password = iprot.readString();
12919
            } else { 
12920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12921
            }
12922
            break;
12923
          default:
12924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 12925
        }
3430 rajveer 12926
        iprot.readFieldEnd();
1891 ankur.sing 12927
      }
12928
      iprot.readStructEnd();
12929
      validate();
12930
    }
12931
 
3430 rajveer 12932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 12933
      validate();
12934
 
12935
      oprot.writeStructBegin(STRUCT_DESC);
12936
      if (this.username != null) {
12937
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12938
        oprot.writeString(this.username);
12939
        oprot.writeFieldEnd();
12940
      }
12941
      if (this.password != null) {
12942
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12943
        oprot.writeString(this.password);
12944
        oprot.writeFieldEnd();
12945
      }
12946
      oprot.writeFieldStop();
12947
      oprot.writeStructEnd();
12948
    }
12949
 
12950
    @Override
12951
    public String toString() {
12952
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
12953
      boolean first = true;
12954
 
12955
      sb.append("username:");
12956
      if (this.username == null) {
12957
        sb.append("null");
12958
      } else {
12959
        sb.append(this.username);
12960
      }
12961
      first = false;
12962
      if (!first) sb.append(", ");
12963
      sb.append("password:");
12964
      if (this.password == null) {
12965
        sb.append("null");
12966
      } else {
12967
        sb.append(this.password);
12968
      }
12969
      first = false;
12970
      sb.append(")");
12971
      return sb.toString();
12972
    }
12973
 
3430 rajveer 12974
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 12975
      // check for required fields
12976
    }
12977
 
3430 rajveer 12978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12979
      try {
12980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12981
      } catch (org.apache.thrift.TException te) {
12982
        throw new java.io.IOException(te);
12983
      }
12984
    }
12985
 
12986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12987
      try {
12988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12989
      } catch (org.apache.thrift.TException te) {
12990
        throw new java.io.IOException(te);
12991
      }
12992
    }
12993
 
1891 ankur.sing 12994
  }
12995
 
3430 rajveer 12996
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
12997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 12998
 
3430 rajveer 12999
    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);
13000
    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 13001
 
3430 rajveer 13002
    private ReportUser success; // required
13003
    private HelperServiceException hse; // required
1891 ankur.sing 13004
 
13005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13007
      SUCCESS((short)0, "success"),
13008
      HSE((short)1, "hse");
13009
 
13010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13011
 
13012
      static {
13013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13014
          byName.put(field.getFieldName(), field);
13015
        }
13016
      }
13017
 
13018
      /**
13019
       * Find the _Fields constant that matches fieldId, or null if its not found.
13020
       */
13021
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13022
        switch(fieldId) {
13023
          case 0: // SUCCESS
13024
            return SUCCESS;
13025
          case 1: // HSE
13026
            return HSE;
13027
          default:
13028
            return null;
13029
        }
1891 ankur.sing 13030
      }
13031
 
13032
      /**
13033
       * Find the _Fields constant that matches fieldId, throwing an exception
13034
       * if it is not found.
13035
       */
13036
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13037
        _Fields fields = findByThriftId(fieldId);
13038
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13039
        return fields;
13040
      }
13041
 
13042
      /**
13043
       * Find the _Fields constant that matches name, or null if its not found.
13044
       */
13045
      public static _Fields findByName(String name) {
13046
        return byName.get(name);
13047
      }
13048
 
13049
      private final short _thriftId;
13050
      private final String _fieldName;
13051
 
13052
      _Fields(short thriftId, String fieldName) {
13053
        _thriftId = thriftId;
13054
        _fieldName = fieldName;
13055
      }
13056
 
13057
      public short getThriftFieldId() {
13058
        return _thriftId;
13059
      }
13060
 
13061
      public String getFieldName() {
13062
        return _fieldName;
13063
      }
13064
    }
13065
 
13066
    // isset id assignments
13067
 
3430 rajveer 13068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13069
    static {
3430 rajveer 13070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13071
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13072
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13073
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13077
    }
13078
 
13079
    public authenticateReportUser_result() {
13080
    }
13081
 
13082
    public authenticateReportUser_result(
13083
      ReportUser success,
13084
      HelperServiceException hse)
13085
    {
13086
      this();
13087
      this.success = success;
13088
      this.hse = hse;
13089
    }
13090
 
13091
    /**
13092
     * Performs a deep copy on <i>other</i>.
13093
     */
13094
    public authenticateReportUser_result(authenticateReportUser_result other) {
13095
      if (other.isSetSuccess()) {
13096
        this.success = new ReportUser(other.success);
13097
      }
13098
      if (other.isSetHse()) {
13099
        this.hse = new HelperServiceException(other.hse);
13100
      }
13101
    }
13102
 
13103
    public authenticateReportUser_result deepCopy() {
13104
      return new authenticateReportUser_result(this);
13105
    }
13106
 
3430 rajveer 13107
    @Override
13108
    public void clear() {
13109
      this.success = null;
13110
      this.hse = null;
1891 ankur.sing 13111
    }
13112
 
13113
    public ReportUser getSuccess() {
13114
      return this.success;
13115
    }
13116
 
3430 rajveer 13117
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13118
      this.success = success;
13119
    }
13120
 
13121
    public void unsetSuccess() {
13122
      this.success = null;
13123
    }
13124
 
3430 rajveer 13125
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13126
    public boolean isSetSuccess() {
13127
      return this.success != null;
13128
    }
13129
 
13130
    public void setSuccessIsSet(boolean value) {
13131
      if (!value) {
13132
        this.success = null;
13133
      }
13134
    }
13135
 
13136
    public HelperServiceException getHse() {
13137
      return this.hse;
13138
    }
13139
 
3430 rajveer 13140
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13141
      this.hse = hse;
13142
    }
13143
 
13144
    public void unsetHse() {
13145
      this.hse = null;
13146
    }
13147
 
3430 rajveer 13148
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13149
    public boolean isSetHse() {
13150
      return this.hse != null;
13151
    }
13152
 
13153
    public void setHseIsSet(boolean value) {
13154
      if (!value) {
13155
        this.hse = null;
13156
      }
13157
    }
13158
 
13159
    public void setFieldValue(_Fields field, Object value) {
13160
      switch (field) {
13161
      case SUCCESS:
13162
        if (value == null) {
13163
          unsetSuccess();
13164
        } else {
13165
          setSuccess((ReportUser)value);
13166
        }
13167
        break;
13168
 
13169
      case HSE:
13170
        if (value == null) {
13171
          unsetHse();
13172
        } else {
13173
          setHse((HelperServiceException)value);
13174
        }
13175
        break;
13176
 
13177
      }
13178
    }
13179
 
13180
    public Object getFieldValue(_Fields field) {
13181
      switch (field) {
13182
      case SUCCESS:
13183
        return getSuccess();
13184
 
13185
      case HSE:
13186
        return getHse();
13187
 
13188
      }
13189
      throw new IllegalStateException();
13190
    }
13191
 
3430 rajveer 13192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13193
    public boolean isSet(_Fields field) {
13194
      if (field == null) {
13195
        throw new IllegalArgumentException();
13196
      }
1891 ankur.sing 13197
 
13198
      switch (field) {
13199
      case SUCCESS:
13200
        return isSetSuccess();
13201
      case HSE:
13202
        return isSetHse();
13203
      }
13204
      throw new IllegalStateException();
13205
    }
13206
 
13207
    @Override
13208
    public boolean equals(Object that) {
13209
      if (that == null)
13210
        return false;
13211
      if (that instanceof authenticateReportUser_result)
13212
        return this.equals((authenticateReportUser_result)that);
13213
      return false;
13214
    }
13215
 
13216
    public boolean equals(authenticateReportUser_result that) {
13217
      if (that == null)
13218
        return false;
13219
 
13220
      boolean this_present_success = true && this.isSetSuccess();
13221
      boolean that_present_success = true && that.isSetSuccess();
13222
      if (this_present_success || that_present_success) {
13223
        if (!(this_present_success && that_present_success))
13224
          return false;
13225
        if (!this.success.equals(that.success))
13226
          return false;
13227
      }
13228
 
13229
      boolean this_present_hse = true && this.isSetHse();
13230
      boolean that_present_hse = true && that.isSetHse();
13231
      if (this_present_hse || that_present_hse) {
13232
        if (!(this_present_hse && that_present_hse))
13233
          return false;
13234
        if (!this.hse.equals(that.hse))
13235
          return false;
13236
      }
13237
 
13238
      return true;
13239
    }
13240
 
13241
    @Override
13242
    public int hashCode() {
13243
      return 0;
13244
    }
13245
 
13246
    public int compareTo(authenticateReportUser_result other) {
13247
      if (!getClass().equals(other.getClass())) {
13248
        return getClass().getName().compareTo(other.getClass().getName());
13249
      }
13250
 
13251
      int lastComparison = 0;
13252
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13253
 
3430 rajveer 13254
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13255
      if (lastComparison != 0) {
13256
        return lastComparison;
13257
      }
3430 rajveer 13258
      if (isSetSuccess()) {
13259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13260
        if (lastComparison != 0) {
13261
          return lastComparison;
13262
        }
1891 ankur.sing 13263
      }
3430 rajveer 13264
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 13265
      if (lastComparison != 0) {
13266
        return lastComparison;
13267
      }
3430 rajveer 13268
      if (isSetHse()) {
13269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13270
        if (lastComparison != 0) {
13271
          return lastComparison;
13272
        }
1891 ankur.sing 13273
      }
13274
      return 0;
13275
    }
13276
 
3430 rajveer 13277
    public _Fields fieldForId(int fieldId) {
13278
      return _Fields.findByThriftId(fieldId);
13279
    }
13280
 
13281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13282
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13283
      iprot.readStructBegin();
13284
      while (true)
13285
      {
13286
        field = iprot.readFieldBegin();
3430 rajveer 13287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13288
          break;
13289
        }
3430 rajveer 13290
        switch (field.id) {
13291
          case 0: // SUCCESS
13292
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13293
              this.success = new ReportUser();
13294
              this.success.read(iprot);
13295
            } else { 
13296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13297
            }
13298
            break;
13299
          case 1: // HSE
13300
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13301
              this.hse = new HelperServiceException();
13302
              this.hse.read(iprot);
13303
            } else { 
13304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13305
            }
13306
            break;
13307
          default:
13308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13309
        }
3430 rajveer 13310
        iprot.readFieldEnd();
1891 ankur.sing 13311
      }
13312
      iprot.readStructEnd();
13313
      validate();
13314
    }
13315
 
3430 rajveer 13316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13317
      oprot.writeStructBegin(STRUCT_DESC);
13318
 
13319
      if (this.isSetSuccess()) {
13320
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13321
        this.success.write(oprot);
13322
        oprot.writeFieldEnd();
13323
      } else if (this.isSetHse()) {
13324
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13325
        this.hse.write(oprot);
13326
        oprot.writeFieldEnd();
13327
      }
13328
      oprot.writeFieldStop();
13329
      oprot.writeStructEnd();
13330
    }
13331
 
13332
    @Override
13333
    public String toString() {
13334
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
13335
      boolean first = true;
13336
 
13337
      sb.append("success:");
13338
      if (this.success == null) {
13339
        sb.append("null");
13340
      } else {
13341
        sb.append(this.success);
13342
      }
13343
      first = false;
13344
      if (!first) sb.append(", ");
13345
      sb.append("hse:");
13346
      if (this.hse == null) {
13347
        sb.append("null");
13348
      } else {
13349
        sb.append(this.hse);
13350
      }
13351
      first = false;
13352
      sb.append(")");
13353
      return sb.toString();
13354
    }
13355
 
3430 rajveer 13356
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13357
      // check for required fields
13358
    }
13359
 
3430 rajveer 13360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13361
      try {
13362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13363
      } catch (org.apache.thrift.TException te) {
13364
        throw new java.io.IOException(te);
13365
      }
13366
    }
13367
 
13368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13369
      try {
13370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13371
      } catch (org.apache.thrift.TException te) {
13372
        throw new java.io.IOException(te);
13373
      }
13374
    }
13375
 
1891 ankur.sing 13376
  }
13377
 
3430 rajveer 13378
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
13379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 13380
 
3430 rajveer 13381
    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 13382
 
3430 rajveer 13383
    private long role; // required
1891 ankur.sing 13384
 
13385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13387
      ROLE((short)1, "role");
13388
 
13389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13390
 
13391
      static {
13392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13393
          byName.put(field.getFieldName(), field);
13394
        }
13395
      }
13396
 
13397
      /**
13398
       * Find the _Fields constant that matches fieldId, or null if its not found.
13399
       */
13400
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13401
        switch(fieldId) {
13402
          case 1: // ROLE
13403
            return ROLE;
13404
          default:
13405
            return null;
13406
        }
1891 ankur.sing 13407
      }
13408
 
13409
      /**
13410
       * Find the _Fields constant that matches fieldId, throwing an exception
13411
       * if it is not found.
13412
       */
13413
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13414
        _Fields fields = findByThriftId(fieldId);
13415
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13416
        return fields;
13417
      }
13418
 
13419
      /**
13420
       * Find the _Fields constant that matches name, or null if its not found.
13421
       */
13422
      public static _Fields findByName(String name) {
13423
        return byName.get(name);
13424
      }
13425
 
13426
      private final short _thriftId;
13427
      private final String _fieldName;
13428
 
13429
      _Fields(short thriftId, String fieldName) {
13430
        _thriftId = thriftId;
13431
        _fieldName = fieldName;
13432
      }
13433
 
13434
      public short getThriftFieldId() {
13435
        return _thriftId;
13436
      }
13437
 
13438
      public String getFieldName() {
13439
        return _fieldName;
13440
      }
13441
    }
13442
 
13443
    // isset id assignments
13444
    private static final int __ROLE_ISSET_ID = 0;
13445
    private BitSet __isset_bit_vector = new BitSet(1);
13446
 
3430 rajveer 13447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13448
    static {
3430 rajveer 13449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13450
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13451
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13452
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13453
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 13454
    }
13455
 
13456
    public getReports_args() {
13457
    }
13458
 
13459
    public getReports_args(
13460
      long role)
13461
    {
13462
      this();
13463
      this.role = role;
13464
      setRoleIsSet(true);
13465
    }
13466
 
13467
    /**
13468
     * Performs a deep copy on <i>other</i>.
13469
     */
13470
    public getReports_args(getReports_args other) {
13471
      __isset_bit_vector.clear();
13472
      __isset_bit_vector.or(other.__isset_bit_vector);
13473
      this.role = other.role;
13474
    }
13475
 
13476
    public getReports_args deepCopy() {
13477
      return new getReports_args(this);
13478
    }
13479
 
3430 rajveer 13480
    @Override
13481
    public void clear() {
13482
      setRoleIsSet(false);
13483
      this.role = 0;
1891 ankur.sing 13484
    }
13485
 
13486
    public long getRole() {
13487
      return this.role;
13488
    }
13489
 
3430 rajveer 13490
    public void setRole(long role) {
1891 ankur.sing 13491
      this.role = role;
13492
      setRoleIsSet(true);
13493
    }
13494
 
13495
    public void unsetRole() {
13496
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
13497
    }
13498
 
3430 rajveer 13499
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13500
    public boolean isSetRole() {
13501
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
13502
    }
13503
 
13504
    public void setRoleIsSet(boolean value) {
13505
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
13506
    }
13507
 
13508
    public void setFieldValue(_Fields field, Object value) {
13509
      switch (field) {
13510
      case ROLE:
13511
        if (value == null) {
13512
          unsetRole();
13513
        } else {
13514
          setRole((Long)value);
13515
        }
13516
        break;
13517
 
13518
      }
13519
    }
13520
 
13521
    public Object getFieldValue(_Fields field) {
13522
      switch (field) {
13523
      case ROLE:
3430 rajveer 13524
        return Long.valueOf(getRole());
1891 ankur.sing 13525
 
13526
      }
13527
      throw new IllegalStateException();
13528
    }
13529
 
3430 rajveer 13530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13531
    public boolean isSet(_Fields field) {
13532
      if (field == null) {
13533
        throw new IllegalArgumentException();
13534
      }
1891 ankur.sing 13535
 
13536
      switch (field) {
13537
      case ROLE:
13538
        return isSetRole();
13539
      }
13540
      throw new IllegalStateException();
13541
    }
13542
 
13543
    @Override
13544
    public boolean equals(Object that) {
13545
      if (that == null)
13546
        return false;
13547
      if (that instanceof getReports_args)
13548
        return this.equals((getReports_args)that);
13549
      return false;
13550
    }
13551
 
13552
    public boolean equals(getReports_args that) {
13553
      if (that == null)
13554
        return false;
13555
 
13556
      boolean this_present_role = true;
13557
      boolean that_present_role = true;
13558
      if (this_present_role || that_present_role) {
13559
        if (!(this_present_role && that_present_role))
13560
          return false;
13561
        if (this.role != that.role)
13562
          return false;
13563
      }
13564
 
13565
      return true;
13566
    }
13567
 
13568
    @Override
13569
    public int hashCode() {
13570
      return 0;
13571
    }
13572
 
13573
    public int compareTo(getReports_args other) {
13574
      if (!getClass().equals(other.getClass())) {
13575
        return getClass().getName().compareTo(other.getClass().getName());
13576
      }
13577
 
13578
      int lastComparison = 0;
13579
      getReports_args typedOther = (getReports_args)other;
13580
 
3430 rajveer 13581
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 13582
      if (lastComparison != 0) {
13583
        return lastComparison;
13584
      }
3430 rajveer 13585
      if (isSetRole()) {
13586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
13587
        if (lastComparison != 0) {
13588
          return lastComparison;
13589
        }
1891 ankur.sing 13590
      }
13591
      return 0;
13592
    }
13593
 
3430 rajveer 13594
    public _Fields fieldForId(int fieldId) {
13595
      return _Fields.findByThriftId(fieldId);
13596
    }
13597
 
13598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13599
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13600
      iprot.readStructBegin();
13601
      while (true)
13602
      {
13603
        field = iprot.readFieldBegin();
3430 rajveer 13604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13605
          break;
13606
        }
3430 rajveer 13607
        switch (field.id) {
13608
          case 1: // ROLE
13609
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13610
              this.role = iprot.readI64();
13611
              setRoleIsSet(true);
13612
            } else { 
13613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13614
            }
13615
            break;
13616
          default:
13617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13618
        }
3430 rajveer 13619
        iprot.readFieldEnd();
1891 ankur.sing 13620
      }
13621
      iprot.readStructEnd();
13622
      validate();
13623
    }
13624
 
3430 rajveer 13625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13626
      validate();
13627
 
13628
      oprot.writeStructBegin(STRUCT_DESC);
13629
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
13630
      oprot.writeI64(this.role);
13631
      oprot.writeFieldEnd();
13632
      oprot.writeFieldStop();
13633
      oprot.writeStructEnd();
13634
    }
13635
 
13636
    @Override
13637
    public String toString() {
13638
      StringBuilder sb = new StringBuilder("getReports_args(");
13639
      boolean first = true;
13640
 
13641
      sb.append("role:");
13642
      sb.append(this.role);
13643
      first = false;
13644
      sb.append(")");
13645
      return sb.toString();
13646
    }
13647
 
3430 rajveer 13648
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13649
      // check for required fields
13650
    }
13651
 
3430 rajveer 13652
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13653
      try {
13654
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13655
      } catch (org.apache.thrift.TException te) {
13656
        throw new java.io.IOException(te);
13657
      }
13658
    }
13659
 
13660
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13661
      try {
13662
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13663
        __isset_bit_vector = new BitSet(1);
13664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13665
      } catch (org.apache.thrift.TException te) {
13666
        throw new java.io.IOException(te);
13667
      }
13668
    }
13669
 
1891 ankur.sing 13670
  }
13671
 
3430 rajveer 13672
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
13673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 13674
 
3430 rajveer 13675
    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 13676
 
3430 rajveer 13677
    private List<Report> success; // required
1891 ankur.sing 13678
 
13679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13681
      SUCCESS((short)0, "success");
13682
 
13683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13684
 
13685
      static {
13686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13687
          byName.put(field.getFieldName(), field);
13688
        }
13689
      }
13690
 
13691
      /**
13692
       * Find the _Fields constant that matches fieldId, or null if its not found.
13693
       */
13694
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13695
        switch(fieldId) {
13696
          case 0: // SUCCESS
13697
            return SUCCESS;
13698
          default:
13699
            return null;
13700
        }
1891 ankur.sing 13701
      }
13702
 
13703
      /**
13704
       * Find the _Fields constant that matches fieldId, throwing an exception
13705
       * if it is not found.
13706
       */
13707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13708
        _Fields fields = findByThriftId(fieldId);
13709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13710
        return fields;
13711
      }
13712
 
13713
      /**
13714
       * Find the _Fields constant that matches name, or null if its not found.
13715
       */
13716
      public static _Fields findByName(String name) {
13717
        return byName.get(name);
13718
      }
13719
 
13720
      private final short _thriftId;
13721
      private final String _fieldName;
13722
 
13723
      _Fields(short thriftId, String fieldName) {
13724
        _thriftId = thriftId;
13725
        _fieldName = fieldName;
13726
      }
13727
 
13728
      public short getThriftFieldId() {
13729
        return _thriftId;
13730
      }
13731
 
13732
      public String getFieldName() {
13733
        return _fieldName;
13734
      }
13735
    }
13736
 
13737
    // isset id assignments
13738
 
3430 rajveer 13739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13740
    static {
3430 rajveer 13741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13743
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13744
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
13745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 13747
    }
13748
 
13749
    public getReports_result() {
13750
    }
13751
 
13752
    public getReports_result(
13753
      List<Report> success)
13754
    {
13755
      this();
13756
      this.success = success;
13757
    }
13758
 
13759
    /**
13760
     * Performs a deep copy on <i>other</i>.
13761
     */
13762
    public getReports_result(getReports_result other) {
13763
      if (other.isSetSuccess()) {
13764
        List<Report> __this__success = new ArrayList<Report>();
13765
        for (Report other_element : other.success) {
13766
          __this__success.add(new Report(other_element));
13767
        }
13768
        this.success = __this__success;
13769
      }
13770
    }
13771
 
13772
    public getReports_result deepCopy() {
13773
      return new getReports_result(this);
13774
    }
13775
 
3430 rajveer 13776
    @Override
13777
    public void clear() {
13778
      this.success = null;
1891 ankur.sing 13779
    }
13780
 
13781
    public int getSuccessSize() {
13782
      return (this.success == null) ? 0 : this.success.size();
13783
    }
13784
 
13785
    public java.util.Iterator<Report> getSuccessIterator() {
13786
      return (this.success == null) ? null : this.success.iterator();
13787
    }
13788
 
13789
    public void addToSuccess(Report elem) {
13790
      if (this.success == null) {
13791
        this.success = new ArrayList<Report>();
13792
      }
13793
      this.success.add(elem);
13794
    }
13795
 
13796
    public List<Report> getSuccess() {
13797
      return this.success;
13798
    }
13799
 
3430 rajveer 13800
    public void setSuccess(List<Report> success) {
1891 ankur.sing 13801
      this.success = success;
13802
    }
13803
 
13804
    public void unsetSuccess() {
13805
      this.success = null;
13806
    }
13807
 
3430 rajveer 13808
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13809
    public boolean isSetSuccess() {
13810
      return this.success != null;
13811
    }
13812
 
13813
    public void setSuccessIsSet(boolean value) {
13814
      if (!value) {
13815
        this.success = null;
13816
      }
13817
    }
13818
 
13819
    public void setFieldValue(_Fields field, Object value) {
13820
      switch (field) {
13821
      case SUCCESS:
13822
        if (value == null) {
13823
          unsetSuccess();
13824
        } else {
13825
          setSuccess((List<Report>)value);
13826
        }
13827
        break;
13828
 
13829
      }
13830
    }
13831
 
13832
    public Object getFieldValue(_Fields field) {
13833
      switch (field) {
13834
      case SUCCESS:
13835
        return getSuccess();
13836
 
13837
      }
13838
      throw new IllegalStateException();
13839
    }
13840
 
3430 rajveer 13841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13842
    public boolean isSet(_Fields field) {
13843
      if (field == null) {
13844
        throw new IllegalArgumentException();
13845
      }
1891 ankur.sing 13846
 
13847
      switch (field) {
13848
      case SUCCESS:
13849
        return isSetSuccess();
13850
      }
13851
      throw new IllegalStateException();
13852
    }
13853
 
13854
    @Override
13855
    public boolean equals(Object that) {
13856
      if (that == null)
13857
        return false;
13858
      if (that instanceof getReports_result)
13859
        return this.equals((getReports_result)that);
13860
      return false;
13861
    }
13862
 
13863
    public boolean equals(getReports_result that) {
13864
      if (that == null)
13865
        return false;
13866
 
13867
      boolean this_present_success = true && this.isSetSuccess();
13868
      boolean that_present_success = true && that.isSetSuccess();
13869
      if (this_present_success || that_present_success) {
13870
        if (!(this_present_success && that_present_success))
13871
          return false;
13872
        if (!this.success.equals(that.success))
13873
          return false;
13874
      }
13875
 
13876
      return true;
13877
    }
13878
 
13879
    @Override
13880
    public int hashCode() {
13881
      return 0;
13882
    }
13883
 
13884
    public int compareTo(getReports_result other) {
13885
      if (!getClass().equals(other.getClass())) {
13886
        return getClass().getName().compareTo(other.getClass().getName());
13887
      }
13888
 
13889
      int lastComparison = 0;
13890
      getReports_result typedOther = (getReports_result)other;
13891
 
3430 rajveer 13892
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13893
      if (lastComparison != 0) {
13894
        return lastComparison;
13895
      }
3430 rajveer 13896
      if (isSetSuccess()) {
13897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13898
        if (lastComparison != 0) {
13899
          return lastComparison;
13900
        }
1891 ankur.sing 13901
      }
13902
      return 0;
13903
    }
13904
 
3430 rajveer 13905
    public _Fields fieldForId(int fieldId) {
13906
      return _Fields.findByThriftId(fieldId);
13907
    }
13908
 
13909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13910
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13911
      iprot.readStructBegin();
13912
      while (true)
13913
      {
13914
        field = iprot.readFieldBegin();
3430 rajveer 13915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13916
          break;
13917
        }
3430 rajveer 13918
        switch (field.id) {
13919
          case 0: // SUCCESS
13920
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13921
              {
13922
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
13923
                this.success = new ArrayList<Report>(_list17.size);
13924
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 13925
                {
3430 rajveer 13926
                  Report _elem19; // required
13927
                  _elem19 = new Report();
13928
                  _elem19.read(iprot);
13929
                  this.success.add(_elem19);
1891 ankur.sing 13930
                }
3430 rajveer 13931
                iprot.readListEnd();
1891 ankur.sing 13932
              }
3430 rajveer 13933
            } else { 
13934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13935
            }
13936
            break;
13937
          default:
13938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13939
        }
3430 rajveer 13940
        iprot.readFieldEnd();
1891 ankur.sing 13941
      }
13942
      iprot.readStructEnd();
13943
      validate();
13944
    }
13945
 
3430 rajveer 13946
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13947
      oprot.writeStructBegin(STRUCT_DESC);
13948
 
13949
      if (this.isSetSuccess()) {
13950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13951
        {
3430 rajveer 13952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 13953
          for (Report _iter20 : this.success)
13954
          {
13955
            _iter20.write(oprot);
13956
          }
13957
          oprot.writeListEnd();
13958
        }
13959
        oprot.writeFieldEnd();
13960
      }
13961
      oprot.writeFieldStop();
13962
      oprot.writeStructEnd();
13963
    }
13964
 
13965
    @Override
13966
    public String toString() {
13967
      StringBuilder sb = new StringBuilder("getReports_result(");
13968
      boolean first = true;
13969
 
13970
      sb.append("success:");
13971
      if (this.success == null) {
13972
        sb.append("null");
13973
      } else {
13974
        sb.append(this.success);
13975
      }
13976
      first = false;
13977
      sb.append(")");
13978
      return sb.toString();
13979
    }
13980
 
3430 rajveer 13981
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13982
      // check for required fields
13983
    }
13984
 
3430 rajveer 13985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13986
      try {
13987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13988
      } catch (org.apache.thrift.TException te) {
13989
        throw new java.io.IOException(te);
13990
      }
13991
    }
13992
 
13993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13994
      try {
13995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13996
      } catch (org.apache.thrift.TException te) {
13997
        throw new java.io.IOException(te);
13998
      }
13999
    }
14000
 
1891 ankur.sing 14001
  }
14002
 
3430 rajveer 14003
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14005
 
3430 rajveer 14006
    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);
14007
    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);
14008
    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 14009
 
3430 rajveer 14010
    private String username; // required
14011
    private String password; // required
14012
    private long role; // required
2024 ankur.sing 14013
 
14014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14016
      USERNAME((short)1, "username"),
2357 ankur.sing 14017
      PASSWORD((short)2, "password"),
14018
      ROLE((short)3, "role");
2024 ankur.sing 14019
 
14020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14021
 
14022
      static {
14023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14024
          byName.put(field.getFieldName(), field);
14025
        }
14026
      }
14027
 
14028
      /**
14029
       * Find the _Fields constant that matches fieldId, or null if its not found.
14030
       */
14031
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14032
        switch(fieldId) {
14033
          case 1: // USERNAME
14034
            return USERNAME;
14035
          case 2: // PASSWORD
14036
            return PASSWORD;
14037
          case 3: // ROLE
14038
            return ROLE;
14039
          default:
14040
            return null;
14041
        }
2024 ankur.sing 14042
      }
14043
 
14044
      /**
14045
       * Find the _Fields constant that matches fieldId, throwing an exception
14046
       * if it is not found.
14047
       */
14048
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14049
        _Fields fields = findByThriftId(fieldId);
14050
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14051
        return fields;
14052
      }
14053
 
14054
      /**
14055
       * Find the _Fields constant that matches name, or null if its not found.
14056
       */
14057
      public static _Fields findByName(String name) {
14058
        return byName.get(name);
14059
      }
14060
 
14061
      private final short _thriftId;
14062
      private final String _fieldName;
14063
 
14064
      _Fields(short thriftId, String fieldName) {
14065
        _thriftId = thriftId;
14066
        _fieldName = fieldName;
14067
      }
14068
 
14069
      public short getThriftFieldId() {
14070
        return _thriftId;
14071
      }
14072
 
14073
      public String getFieldName() {
14074
        return _fieldName;
14075
      }
14076
    }
14077
 
14078
    // isset id assignments
2357 ankur.sing 14079
    private static final int __ROLE_ISSET_ID = 0;
14080
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14081
 
3430 rajveer 14082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14083
    static {
3430 rajveer 14084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14085
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14087
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14088
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14089
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14093
    }
14094
 
14095
    public authenticateCatalogUser_args() {
14096
    }
14097
 
14098
    public authenticateCatalogUser_args(
14099
      String username,
2357 ankur.sing 14100
      String password,
14101
      long role)
2024 ankur.sing 14102
    {
14103
      this();
14104
      this.username = username;
14105
      this.password = password;
2357 ankur.sing 14106
      this.role = role;
14107
      setRoleIsSet(true);
2024 ankur.sing 14108
    }
14109
 
14110
    /**
14111
     * Performs a deep copy on <i>other</i>.
14112
     */
14113
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14114
      __isset_bit_vector.clear();
14115
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14116
      if (other.isSetUsername()) {
14117
        this.username = other.username;
14118
      }
14119
      if (other.isSetPassword()) {
14120
        this.password = other.password;
14121
      }
2357 ankur.sing 14122
      this.role = other.role;
2024 ankur.sing 14123
    }
14124
 
14125
    public authenticateCatalogUser_args deepCopy() {
14126
      return new authenticateCatalogUser_args(this);
14127
    }
14128
 
3430 rajveer 14129
    @Override
14130
    public void clear() {
14131
      this.username = null;
14132
      this.password = null;
14133
      setRoleIsSet(false);
14134
      this.role = 0;
2024 ankur.sing 14135
    }
14136
 
14137
    public String getUsername() {
14138
      return this.username;
14139
    }
14140
 
3430 rajveer 14141
    public void setUsername(String username) {
2024 ankur.sing 14142
      this.username = username;
14143
    }
14144
 
14145
    public void unsetUsername() {
14146
      this.username = null;
14147
    }
14148
 
3430 rajveer 14149
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14150
    public boolean isSetUsername() {
14151
      return this.username != null;
14152
    }
14153
 
14154
    public void setUsernameIsSet(boolean value) {
14155
      if (!value) {
14156
        this.username = null;
14157
      }
14158
    }
14159
 
14160
    public String getPassword() {
14161
      return this.password;
14162
    }
14163
 
3430 rajveer 14164
    public void setPassword(String password) {
2024 ankur.sing 14165
      this.password = password;
14166
    }
14167
 
14168
    public void unsetPassword() {
14169
      this.password = null;
14170
    }
14171
 
3430 rajveer 14172
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14173
    public boolean isSetPassword() {
14174
      return this.password != null;
14175
    }
14176
 
14177
    public void setPasswordIsSet(boolean value) {
14178
      if (!value) {
14179
        this.password = null;
14180
      }
14181
    }
14182
 
2357 ankur.sing 14183
    public long getRole() {
14184
      return this.role;
14185
    }
14186
 
3430 rajveer 14187
    public void setRole(long role) {
2357 ankur.sing 14188
      this.role = role;
14189
      setRoleIsSet(true);
14190
    }
14191
 
14192
    public void unsetRole() {
14193
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14194
    }
14195
 
3430 rajveer 14196
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 14197
    public boolean isSetRole() {
14198
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14199
    }
14200
 
14201
    public void setRoleIsSet(boolean value) {
14202
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14203
    }
14204
 
2024 ankur.sing 14205
    public void setFieldValue(_Fields field, Object value) {
14206
      switch (field) {
14207
      case USERNAME:
14208
        if (value == null) {
14209
          unsetUsername();
14210
        } else {
14211
          setUsername((String)value);
14212
        }
14213
        break;
14214
 
14215
      case PASSWORD:
14216
        if (value == null) {
14217
          unsetPassword();
14218
        } else {
14219
          setPassword((String)value);
14220
        }
14221
        break;
14222
 
2357 ankur.sing 14223
      case ROLE:
14224
        if (value == null) {
14225
          unsetRole();
14226
        } else {
14227
          setRole((Long)value);
14228
        }
14229
        break;
14230
 
2024 ankur.sing 14231
      }
14232
    }
14233
 
14234
    public Object getFieldValue(_Fields field) {
14235
      switch (field) {
14236
      case USERNAME:
14237
        return getUsername();
14238
 
14239
      case PASSWORD:
14240
        return getPassword();
14241
 
2357 ankur.sing 14242
      case ROLE:
3430 rajveer 14243
        return Long.valueOf(getRole());
2357 ankur.sing 14244
 
2024 ankur.sing 14245
      }
14246
      throw new IllegalStateException();
14247
    }
14248
 
3430 rajveer 14249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14250
    public boolean isSet(_Fields field) {
14251
      if (field == null) {
14252
        throw new IllegalArgumentException();
14253
      }
2024 ankur.sing 14254
 
14255
      switch (field) {
14256
      case USERNAME:
14257
        return isSetUsername();
14258
      case PASSWORD:
14259
        return isSetPassword();
2357 ankur.sing 14260
      case ROLE:
14261
        return isSetRole();
2024 ankur.sing 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 authenticateCatalogUser_args)
14271
        return this.equals((authenticateCatalogUser_args)that);
14272
      return false;
14273
    }
14274
 
14275
    public boolean equals(authenticateCatalogUser_args that) {
14276
      if (that == null)
14277
        return false;
14278
 
14279
      boolean this_present_username = true && this.isSetUsername();
14280
      boolean that_present_username = true && that.isSetUsername();
14281
      if (this_present_username || that_present_username) {
14282
        if (!(this_present_username && that_present_username))
14283
          return false;
14284
        if (!this.username.equals(that.username))
14285
          return false;
14286
      }
14287
 
14288
      boolean this_present_password = true && this.isSetPassword();
14289
      boolean that_present_password = true && that.isSetPassword();
14290
      if (this_present_password || that_present_password) {
14291
        if (!(this_present_password && that_present_password))
14292
          return false;
14293
        if (!this.password.equals(that.password))
14294
          return false;
14295
      }
14296
 
2357 ankur.sing 14297
      boolean this_present_role = true;
14298
      boolean that_present_role = true;
14299
      if (this_present_role || that_present_role) {
14300
        if (!(this_present_role && that_present_role))
14301
          return false;
14302
        if (this.role != that.role)
14303
          return false;
14304
      }
14305
 
2024 ankur.sing 14306
      return true;
14307
    }
14308
 
14309
    @Override
14310
    public int hashCode() {
14311
      return 0;
14312
    }
14313
 
14314
    public int compareTo(authenticateCatalogUser_args other) {
14315
      if (!getClass().equals(other.getClass())) {
14316
        return getClass().getName().compareTo(other.getClass().getName());
14317
      }
14318
 
14319
      int lastComparison = 0;
14320
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
14321
 
3430 rajveer 14322
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 14323
      if (lastComparison != 0) {
14324
        return lastComparison;
14325
      }
3430 rajveer 14326
      if (isSetUsername()) {
14327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14328
        if (lastComparison != 0) {
14329
          return lastComparison;
14330
        }
2024 ankur.sing 14331
      }
3430 rajveer 14332
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 14333
      if (lastComparison != 0) {
14334
        return lastComparison;
14335
      }
3430 rajveer 14336
      if (isSetPassword()) {
14337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14338
        if (lastComparison != 0) {
14339
          return lastComparison;
14340
        }
2024 ankur.sing 14341
      }
3430 rajveer 14342
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 14343
      if (lastComparison != 0) {
14344
        return lastComparison;
14345
      }
3430 rajveer 14346
      if (isSetRole()) {
14347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14348
        if (lastComparison != 0) {
14349
          return lastComparison;
14350
        }
2357 ankur.sing 14351
      }
2024 ankur.sing 14352
      return 0;
14353
    }
14354
 
3430 rajveer 14355
    public _Fields fieldForId(int fieldId) {
14356
      return _Fields.findByThriftId(fieldId);
14357
    }
14358
 
14359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14360
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14361
      iprot.readStructBegin();
14362
      while (true)
14363
      {
14364
        field = iprot.readFieldBegin();
3430 rajveer 14365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 14366
          break;
14367
        }
3430 rajveer 14368
        switch (field.id) {
14369
          case 1: // USERNAME
14370
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14371
              this.username = iprot.readString();
14372
            } else { 
14373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14374
            }
14375
            break;
14376
          case 2: // PASSWORD
14377
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14378
              this.password = iprot.readString();
14379
            } else { 
14380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14381
            }
14382
            break;
14383
          case 3: // ROLE
14384
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14385
              this.role = iprot.readI64();
14386
              setRoleIsSet(true);
14387
            } else { 
14388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14389
            }
14390
            break;
14391
          default:
14392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 14393
        }
3430 rajveer 14394
        iprot.readFieldEnd();
2024 ankur.sing 14395
      }
14396
      iprot.readStructEnd();
14397
      validate();
14398
    }
14399
 
3430 rajveer 14400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 14401
      validate();
14402
 
14403
      oprot.writeStructBegin(STRUCT_DESC);
14404
      if (this.username != null) {
14405
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14406
        oprot.writeString(this.username);
14407
        oprot.writeFieldEnd();
14408
      }
14409
      if (this.password != null) {
14410
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14411
        oprot.writeString(this.password);
14412
        oprot.writeFieldEnd();
14413
      }
2357 ankur.sing 14414
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14415
      oprot.writeI64(this.role);
14416
      oprot.writeFieldEnd();
2024 ankur.sing 14417
      oprot.writeFieldStop();
14418
      oprot.writeStructEnd();
14419
    }
14420
 
14421
    @Override
14422
    public String toString() {
14423
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
14424
      boolean first = true;
14425
 
14426
      sb.append("username:");
14427
      if (this.username == null) {
14428
        sb.append("null");
14429
      } else {
14430
        sb.append(this.username);
14431
      }
14432
      first = false;
14433
      if (!first) sb.append(", ");
14434
      sb.append("password:");
14435
      if (this.password == null) {
14436
        sb.append("null");
14437
      } else {
14438
        sb.append(this.password);
14439
      }
14440
      first = false;
2357 ankur.sing 14441
      if (!first) sb.append(", ");
14442
      sb.append("role:");
14443
      sb.append(this.role);
14444
      first = false;
2024 ankur.sing 14445
      sb.append(")");
14446
      return sb.toString();
14447
    }
14448
 
3430 rajveer 14449
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 14450
      // check for required fields
14451
    }
14452
 
3430 rajveer 14453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14454
      try {
14455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14456
      } catch (org.apache.thrift.TException te) {
14457
        throw new java.io.IOException(te);
14458
      }
14459
    }
14460
 
14461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14462
      try {
14463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14464
      } catch (org.apache.thrift.TException te) {
14465
        throw new java.io.IOException(te);
14466
      }
14467
    }
14468
 
2024 ankur.sing 14469
  }
14470
 
3430 rajveer 14471
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
14472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 14473
 
3430 rajveer 14474
    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);
14475
    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 14476
 
3430 rajveer 14477
    private CatalogDashboardUser success; // required
14478
    private HelperServiceException hse; // required
2024 ankur.sing 14479
 
14480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14482
      SUCCESS((short)0, "success"),
14483
      HSE((short)1, "hse");
14484
 
14485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14486
 
14487
      static {
14488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14489
          byName.put(field.getFieldName(), field);
14490
        }
14491
      }
14492
 
14493
      /**
14494
       * Find the _Fields constant that matches fieldId, or null if its not found.
14495
       */
14496
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14497
        switch(fieldId) {
14498
          case 0: // SUCCESS
14499
            return SUCCESS;
14500
          case 1: // HSE
14501
            return HSE;
14502
          default:
14503
            return null;
14504
        }
2024 ankur.sing 14505
      }
14506
 
14507
      /**
14508
       * Find the _Fields constant that matches fieldId, throwing an exception
14509
       * if it is not found.
14510
       */
14511
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14512
        _Fields fields = findByThriftId(fieldId);
14513
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14514
        return fields;
14515
      }
14516
 
14517
      /**
14518
       * Find the _Fields constant that matches name, or null if its not found.
14519
       */
14520
      public static _Fields findByName(String name) {
14521
        return byName.get(name);
14522
      }
14523
 
14524
      private final short _thriftId;
14525
      private final String _fieldName;
14526
 
14527
      _Fields(short thriftId, String fieldName) {
14528
        _thriftId = thriftId;
14529
        _fieldName = fieldName;
14530
      }
14531
 
14532
      public short getThriftFieldId() {
14533
        return _thriftId;
14534
      }
14535
 
14536
      public String getFieldName() {
14537
        return _fieldName;
14538
      }
14539
    }
14540
 
14541
    // isset id assignments
14542
 
3430 rajveer 14543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14544
    static {
3430 rajveer 14545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14546
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14547
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
14548
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 14552
    }
14553
 
14554
    public authenticateCatalogUser_result() {
14555
    }
14556
 
14557
    public authenticateCatalogUser_result(
14558
      CatalogDashboardUser success,
14559
      HelperServiceException hse)
14560
    {
14561
      this();
14562
      this.success = success;
14563
      this.hse = hse;
14564
    }
14565
 
14566
    /**
14567
     * Performs a deep copy on <i>other</i>.
14568
     */
14569
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
14570
      if (other.isSetSuccess()) {
14571
        this.success = new CatalogDashboardUser(other.success);
14572
      }
14573
      if (other.isSetHse()) {
14574
        this.hse = new HelperServiceException(other.hse);
14575
      }
14576
    }
14577
 
14578
    public authenticateCatalogUser_result deepCopy() {
14579
      return new authenticateCatalogUser_result(this);
14580
    }
14581
 
3430 rajveer 14582
    @Override
14583
    public void clear() {
14584
      this.success = null;
14585
      this.hse = null;
2024 ankur.sing 14586
    }
14587
 
14588
    public CatalogDashboardUser getSuccess() {
14589
      return this.success;
14590
    }
14591
 
3430 rajveer 14592
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 14593
      this.success = success;
14594
    }
14595
 
14596
    public void unsetSuccess() {
14597
      this.success = null;
14598
    }
14599
 
3430 rajveer 14600
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14601
    public boolean isSetSuccess() {
14602
      return this.success != null;
14603
    }
14604
 
14605
    public void setSuccessIsSet(boolean value) {
14606
      if (!value) {
14607
        this.success = null;
14608
      }
14609
    }
14610
 
14611
    public HelperServiceException getHse() {
14612
      return this.hse;
14613
    }
14614
 
3430 rajveer 14615
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 14616
      this.hse = hse;
14617
    }
14618
 
14619
    public void unsetHse() {
14620
      this.hse = null;
14621
    }
14622
 
3430 rajveer 14623
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14624
    public boolean isSetHse() {
14625
      return this.hse != null;
14626
    }
14627
 
14628
    public void setHseIsSet(boolean value) {
14629
      if (!value) {
14630
        this.hse = null;
14631
      }
14632
    }
14633
 
14634
    public void setFieldValue(_Fields field, Object value) {
14635
      switch (field) {
14636
      case SUCCESS:
14637
        if (value == null) {
14638
          unsetSuccess();
14639
        } else {
14640
          setSuccess((CatalogDashboardUser)value);
14641
        }
14642
        break;
14643
 
14644
      case HSE:
14645
        if (value == null) {
14646
          unsetHse();
14647
        } else {
14648
          setHse((HelperServiceException)value);
14649
        }
14650
        break;
14651
 
14652
      }
14653
    }
14654
 
14655
    public Object getFieldValue(_Fields field) {
14656
      switch (field) {
14657
      case SUCCESS:
14658
        return getSuccess();
14659
 
14660
      case HSE:
14661
        return getHse();
14662
 
14663
      }
14664
      throw new IllegalStateException();
14665
    }
14666
 
3430 rajveer 14667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14668
    public boolean isSet(_Fields field) {
14669
      if (field == null) {
14670
        throw new IllegalArgumentException();
14671
      }
2024 ankur.sing 14672
 
14673
      switch (field) {
14674
      case SUCCESS:
14675
        return isSetSuccess();
14676
      case HSE:
14677
        return isSetHse();
14678
      }
14679
      throw new IllegalStateException();
14680
    }
14681
 
14682
    @Override
14683
    public boolean equals(Object that) {
14684
      if (that == null)
14685
        return false;
14686
      if (that instanceof authenticateCatalogUser_result)
14687
        return this.equals((authenticateCatalogUser_result)that);
14688
      return false;
14689
    }
14690
 
14691
    public boolean equals(authenticateCatalogUser_result that) {
14692
      if (that == null)
14693
        return false;
14694
 
14695
      boolean this_present_success = true && this.isSetSuccess();
14696
      boolean that_present_success = true && that.isSetSuccess();
14697
      if (this_present_success || that_present_success) {
14698
        if (!(this_present_success && that_present_success))
14699
          return false;
14700
        if (!this.success.equals(that.success))
14701
          return false;
14702
      }
14703
 
14704
      boolean this_present_hse = true && this.isSetHse();
14705
      boolean that_present_hse = true && that.isSetHse();
14706
      if (this_present_hse || that_present_hse) {
14707
        if (!(this_present_hse && that_present_hse))
14708
          return false;
14709
        if (!this.hse.equals(that.hse))
14710
          return false;
14711
      }
14712
 
14713
      return true;
14714
    }
14715
 
14716
    @Override
14717
    public int hashCode() {
14718
      return 0;
14719
    }
14720
 
14721
    public int compareTo(authenticateCatalogUser_result other) {
14722
      if (!getClass().equals(other.getClass())) {
14723
        return getClass().getName().compareTo(other.getClass().getName());
14724
      }
14725
 
14726
      int lastComparison = 0;
14727
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
14728
 
3430 rajveer 14729
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 14730
      if (lastComparison != 0) {
14731
        return lastComparison;
14732
      }
3430 rajveer 14733
      if (isSetSuccess()) {
14734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14735
        if (lastComparison != 0) {
14736
          return lastComparison;
14737
        }
2024 ankur.sing 14738
      }
3430 rajveer 14739
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 14740
      if (lastComparison != 0) {
14741
        return lastComparison;
14742
      }
3430 rajveer 14743
      if (isSetHse()) {
14744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14745
        if (lastComparison != 0) {
14746
          return lastComparison;
14747
        }
2024 ankur.sing 14748
      }
14749
      return 0;
14750
    }
14751
 
3430 rajveer 14752
    public _Fields fieldForId(int fieldId) {
14753
      return _Fields.findByThriftId(fieldId);
14754
    }
14755
 
14756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14757
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14758
      iprot.readStructBegin();
14759
      while (true)
14760
      {
14761
        field = iprot.readFieldBegin();
3430 rajveer 14762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 14763
          break;
14764
        }
3430 rajveer 14765
        switch (field.id) {
14766
          case 0: // SUCCESS
14767
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14768
              this.success = new CatalogDashboardUser();
14769
              this.success.read(iprot);
14770
            } else { 
14771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14772
            }
14773
            break;
14774
          case 1: // HSE
14775
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14776
              this.hse = new HelperServiceException();
14777
              this.hse.read(iprot);
14778
            } else { 
14779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14780
            }
14781
            break;
14782
          default:
14783
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 14784
        }
3430 rajveer 14785
        iprot.readFieldEnd();
2024 ankur.sing 14786
      }
14787
      iprot.readStructEnd();
14788
      validate();
14789
    }
14790
 
3430 rajveer 14791
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 14792
      oprot.writeStructBegin(STRUCT_DESC);
14793
 
14794
      if (this.isSetSuccess()) {
14795
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14796
        this.success.write(oprot);
14797
        oprot.writeFieldEnd();
14798
      } else if (this.isSetHse()) {
14799
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14800
        this.hse.write(oprot);
14801
        oprot.writeFieldEnd();
14802
      }
14803
      oprot.writeFieldStop();
14804
      oprot.writeStructEnd();
14805
    }
14806
 
14807
    @Override
14808
    public String toString() {
14809
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
14810
      boolean first = true;
14811
 
14812
      sb.append("success:");
14813
      if (this.success == null) {
14814
        sb.append("null");
14815
      } else {
14816
        sb.append(this.success);
14817
      }
14818
      first = false;
14819
      if (!first) sb.append(", ");
14820
      sb.append("hse:");
14821
      if (this.hse == null) {
14822
        sb.append("null");
14823
      } else {
14824
        sb.append(this.hse);
14825
      }
14826
      first = false;
14827
      sb.append(")");
14828
      return sb.toString();
14829
    }
14830
 
3430 rajveer 14831
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 14832
      // check for required fields
14833
    }
14834
 
3430 rajveer 14835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14836
      try {
14837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14838
      } catch (org.apache.thrift.TException te) {
14839
        throw new java.io.IOException(te);
14840
      }
14841
    }
14842
 
14843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14844
      try {
14845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14846
      } catch (org.apache.thrift.TException te) {
14847
        throw new java.io.IOException(te);
14848
      }
14849
    }
14850
 
2024 ankur.sing 14851
  }
14852
 
352 ashish 14853
}