Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
36
     */
3430 rajveer 37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 38
 
2779 chandransh 39
    /**
40
     * Retreives all the emails pending for dispatch
41
     */
3430 rajveer 42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 43
 
2779 chandransh 44
    /**
45
     * Marks email as sent after successful dispatch
46
     * 
47
     * @param emailId
48
     */
3430 rajveer 49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 50
 
3430 rajveer 51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 52
 
3430 rajveer 53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 64
 
3430 rajveer 65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
750 chandransh 67
    /**
2443 chandransh 68
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
69
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 70
     * 
71
     * @param username
72
     * @param password
73
     */
3430 rajveer 74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 75
 
2443 chandransh 76
    /**
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
78
     * 
79
     * @param username
80
     * @param oldPassword
81
     * @param newPassword
82
     */
3430 rajveer 83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 84
 
750 chandransh 85
    /**
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
87
     * Throws an exception otherwise.
88
     * 
89
     * @param username
90
     * @param password
91
     */
3430 rajveer 92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 93
 
1611 ankur.sing 94
    /**
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
96
     * Throws an exception otherwise.
97
     * 
98
     * @param username
99
     * @param password
100
     */
3430 rajveer 101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 102
 
1891 ankur.sing 103
    /**
104
     * Returns the ReportUser struct associated with the given username and password if they match.
105
     * Throws an exception otherwise.
106
     * 
107
     * @param username
108
     * @param password
109
     */
3430 rajveer 110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 111
 
112
    /**
113
     * Returns list of reports which are configured for the given role.
114
     * 
115
     * @param role
116
     */
3430 rajveer 117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 118
 
2024 ankur.sing 119
    /**
2357 ankur.sing 120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 121
     * Throws an exception otherwise.
122
     * 
123
     * @param username
124
     * @param password
2357 ankur.sing 125
     * @param role
2024 ankur.sing 126
     */
3430 rajveer 127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 128
 
4544 varun.gupt 129
    /**
130
     * Saves the list of entity Ids to be shared with an email address
131
     * 
132
     * @param entityIds
133
     * @param email
134
     */
135
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
136
 
352 ashish 137
  }
138
 
3430 rajveer 139
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
140
 
141
    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;
142
 
143
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
144
 
145
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
146
 
147
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
148
 
149
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
150
 
151
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
152
 
153
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
154
 
155
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
156
 
157
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
158
 
159
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
160
 
161
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
162
 
163
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
164
 
165
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
166
 
167
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
168
 
169
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
170
 
171
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
172
 
173
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
174
 
175
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
176
 
4544 varun.gupt 177
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
178
 
3430 rajveer 179
  }
180
 
3374 rajveer 181
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 182
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
183
      public Factory() {}
184
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
185
        return new Client(prot);
186
      }
187
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
188
        return new Client(iprot, oprot);
189
      }
190
    }
191
 
192
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 193
    {
3430 rajveer 194
      super(prot, prot);
352 ashish 195
    }
196
 
3430 rajveer 197
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 198
      super(iprot, oprot);
352 ashish 199
    }
200
 
3430 rajveer 201
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 202
    {
203
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
3206 mandeep.dh 204
      return recv_saveUserEmailForSending();
1395 varun.gupt 205
    }
206
 
3430 rajveer 207
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
1395 varun.gupt 208
    {
209
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 210
      args.setEmailTo(emailTo);
211
      args.setEmailFrom(emailFrom);
212
      args.setSubject(subject);
213
      args.setBody(body);
214
      args.setSource(source);
215
      args.setEmailType(emailType);
216
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 217
    }
218
 
3430 rajveer 219
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 220
    {
221
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 222
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 223
      if (result.isSetSuccess()) {
224
        return result.success;
225
      }
1395 varun.gupt 226
      if (result.se != null) {
227
        throw result.se;
228
      }
3430 rajveer 229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 230
    }
231
 
3430 rajveer 232
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 233
    {
3086 rajveer 234
      send_getEmailsToBeSent();
1422 varun.gupt 235
      return recv_getEmailsToBeSent();
236
    }
237
 
3430 rajveer 238
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 239
    {
240
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 241
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 242
    }
243
 
3430 rajveer 244
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 245
    {
246
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 247
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 248
      if (result.isSetSuccess()) {
249
        return result.success;
250
      }
251
      if (result.se != null) {
252
        throw result.se;
253
      }
3430 rajveer 254
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 255
    }
256
 
3430 rajveer 257
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 258
    {
259
      send_markEmailAsSent(emailId);
260
      recv_markEmailAsSent();
261
    }
262
 
3430 rajveer 263
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 264
    {
265
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 266
      args.setEmailId(emailId);
267
      sendBase("markEmailAsSent", args);
1422 varun.gupt 268
    }
269
 
3430 rajveer 270
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 271
    {
272
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 273
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 274
      if (result.se != null) {
275
        throw result.se;
276
      }
277
      return;
278
    }
279
 
3430 rajveer 280
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 281
    {
282
      send_sendMail(mail);
283
      recv_sendMail();
284
    }
285
 
3430 rajveer 286
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 287
    {
288
      sendMail_args args = new sendMail_args();
3430 rajveer 289
      args.setMail(mail);
290
      sendBase("sendMail", args);
352 ashish 291
    }
292
 
3430 rajveer 293
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 294
    {
295
      sendMail_result result = new sendMail_result();
3430 rajveer 296
      receiveBase(result, "sendMail");
352 ashish 297
      if (result.se != null) {
298
        throw result.se;
299
      }
300
      return;
301
    }
302
 
3430 rajveer 303
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 304
    {
305
      send_sendText(message);
306
      recv_sendText();
307
    }
308
 
3430 rajveer 309
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 310
    {
311
      sendText_args args = new sendText_args();
3430 rajveer 312
      args.setMessage(message);
313
      sendBase("sendText", args);
352 ashish 314
    }
315
 
3430 rajveer 316
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 317
    {
318
      sendText_result result = new sendText_result();
3430 rajveer 319
      receiveBase(result, "sendText");
352 ashish 320
      if (result.se != null) {
321
        throw result.se;
322
      }
323
      return;
324
    }
325
 
3430 rajveer 326
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 327
    {
328
      send_addMessage(message);
329
      recv_addMessage();
330
    }
331
 
3430 rajveer 332
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 333
    {
334
      addMessage_args args = new addMessage_args();
3430 rajveer 335
      args.setMessage(message);
336
      sendBase("addMessage", args);
352 ashish 337
    }
338
 
3430 rajveer 339
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 340
    {
341
      addMessage_result result = new addMessage_result();
3430 rajveer 342
      receiveBase(result, "addMessage");
352 ashish 343
      if (result.se != null) {
344
        throw result.se;
345
      }
346
      return;
347
    }
348
 
3430 rajveer 349
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 350
    {
351
      send_updateMessage(id, message);
352
      recv_updateMessage();
353
    }
354
 
3430 rajveer 355
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 356
    {
357
      updateMessage_args args = new updateMessage_args();
3430 rajveer 358
      args.setId(id);
359
      args.setMessage(message);
360
      sendBase("updateMessage", args);
352 ashish 361
    }
362
 
3430 rajveer 363
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 364
    {
365
      updateMessage_result result = new updateMessage_result();
3430 rajveer 366
      receiveBase(result, "updateMessage");
352 ashish 367
      if (result.se != null) {
368
        throw result.se;
369
      }
370
      return;
371
    }
372
 
3430 rajveer 373
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 374
    {
375
      send_getMessage(id);
376
      return recv_getMessage();
377
    }
378
 
3430 rajveer 379
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 380
    {
381
      getMessage_args args = new getMessage_args();
3430 rajveer 382
      args.setId(id);
383
      sendBase("getMessage", args);
352 ashish 384
    }
385
 
3430 rajveer 386
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 387
    {
388
      getMessage_result result = new getMessage_result();
3430 rajveer 389
      receiveBase(result, "getMessage");
352 ashish 390
      if (result.isSetSuccess()) {
391
        return result.success;
392
      }
393
      if (result.se != null) {
394
        throw result.se;
395
      }
3430 rajveer 396
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 397
    }
398
 
3430 rajveer 399
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 400
    {
401
      send_getSubstitutedMessage(id, params);
402
      return recv_getSubstitutedMessage();
403
    }
404
 
3430 rajveer 405
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 406
    {
407
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 408
      args.setId(id);
409
      args.setParams(params);
410
      sendBase("getSubstitutedMessage", args);
352 ashish 411
    }
412
 
3430 rajveer 413
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 414
    {
415
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 416
      receiveBase(result, "getSubstitutedMessage");
352 ashish 417
      if (result.isSetSuccess()) {
418
        return result.success;
419
      }
420
      if (result.se != null) {
421
        throw result.se;
422
      }
3430 rajveer 423
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 424
    }
425
 
3430 rajveer 426
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 427
    {
428
      send_addUser(username, password, warehouseId);
429
      return recv_addUser();
430
    }
431
 
3430 rajveer 432
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 433
    {
434
      addUser_args args = new addUser_args();
3430 rajveer 435
      args.setUsername(username);
436
      args.setPassword(password);
437
      args.setWarehouseId(warehouseId);
438
      sendBase("addUser", args);
495 rajveer 439
    }
440
 
3430 rajveer 441
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 442
    {
443
      addUser_result result = new addUser_result();
3430 rajveer 444
      receiveBase(result, "addUser");
495 rajveer 445
      if (result.isSetSuccess()) {
446
        return result.success;
447
      }
448
      if (result.se != null) {
449
        throw result.se;
450
      }
3430 rajveer 451
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 452
    }
453
 
3430 rajveer 454
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 455
    {
456
      send_deleteUser(username);
457
      return recv_deleteUser();
458
    }
459
 
3430 rajveer 460
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 461
    {
462
      deleteUser_args args = new deleteUser_args();
3430 rajveer 463
      args.setUsername(username);
464
      sendBase("deleteUser", args);
495 rajveer 465
    }
466
 
3430 rajveer 467
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 468
    {
469
      deleteUser_result result = new deleteUser_result();
3430 rajveer 470
      receiveBase(result, "deleteUser");
495 rajveer 471
      if (result.isSetSuccess()) {
472
        return result.success;
473
      }
474
      if (result.se != null) {
475
        throw result.se;
476
      }
3430 rajveer 477
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 478
    }
479
 
3430 rajveer 480
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 481
    {
2443 chandransh 482
      send_authenticateDashboardUser(username, password);
483
      return recv_authenticateDashboardUser();
495 rajveer 484
    }
485
 
3430 rajveer 486
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 487
    {
2443 chandransh 488
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 489
      args.setUsername(username);
490
      args.setPassword(password);
491
      sendBase("authenticateDashboardUser", args);
495 rajveer 492
    }
493
 
3430 rajveer 494
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 495
    {
2443 chandransh 496
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 497
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 498
      if (result.isSetSuccess()) {
499
        return result.success;
500
      }
501
      if (result.se != null) {
502
        throw result.se;
503
      }
3430 rajveer 504
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 505
    }
506
 
3430 rajveer 507
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 508
    {
509
      send_updatePassword(username, oldPassword, newPassword);
510
      return recv_updatePassword();
511
    }
512
 
3430 rajveer 513
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 514
    {
515
      updatePassword_args args = new updatePassword_args();
3430 rajveer 516
      args.setUsername(username);
517
      args.setOldPassword(oldPassword);
518
      args.setNewPassword(newPassword);
519
      sendBase("updatePassword", args);
495 rajveer 520
    }
521
 
3430 rajveer 522
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 523
    {
524
      updatePassword_result result = new updatePassword_result();
3430 rajveer 525
      receiveBase(result, "updatePassword");
495 rajveer 526
      if (result.isSetSuccess()) {
527
        return result.success;
528
      }
529
      if (result.se != null) {
530
        throw result.se;
531
      }
3430 rajveer 532
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 533
    }
534
 
3430 rajveer 535
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 536
    {
537
      send_authenticateLogisticsUser(username, password);
538
      return recv_authenticateLogisticsUser();
539
    }
540
 
3430 rajveer 541
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 542
    {
543
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 544
      args.setUsername(username);
545
      args.setPassword(password);
546
      sendBase("authenticateLogisticsUser", args);
750 chandransh 547
    }
548
 
3430 rajveer 549
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 550
    {
551
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 552
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 553
      if (result.isSetSuccess()) {
554
        return result.success;
555
      }
556
      if (result.hse != null) {
557
        throw result.hse;
558
      }
3430 rajveer 559
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 560
    }
561
 
3430 rajveer 562
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 563
    {
564
      send_authenticateStatisticsUser(username, password);
565
      return recv_authenticateStatisticsUser();
566
    }
567
 
3430 rajveer 568
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 569
    {
570
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 571
      args.setUsername(username);
572
      args.setPassword(password);
573
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 574
    }
575
 
3430 rajveer 576
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 577
    {
578
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 579
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 580
      if (result.isSetSuccess()) {
581
        return result.success;
582
      }
583
      if (result.hse != null) {
584
        throw result.hse;
585
      }
3430 rajveer 586
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 587
    }
588
 
3430 rajveer 589
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 590
    {
591
      send_authenticateReportUser(username, password);
592
      return recv_authenticateReportUser();
593
    }
594
 
3430 rajveer 595
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 596
    {
597
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 598
      args.setUsername(username);
599
      args.setPassword(password);
600
      sendBase("authenticateReportUser", args);
1891 ankur.sing 601
    }
602
 
3430 rajveer 603
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 604
    {
605
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 606
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 607
      if (result.isSetSuccess()) {
608
        return result.success;
609
      }
610
      if (result.hse != null) {
611
        throw result.hse;
612
      }
3430 rajveer 613
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 614
    }
615
 
3430 rajveer 616
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 617
    {
618
      send_getReports(role);
619
      return recv_getReports();
620
    }
621
 
3430 rajveer 622
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 623
    {
624
      getReports_args args = new getReports_args();
3430 rajveer 625
      args.setRole(role);
626
      sendBase("getReports", args);
1891 ankur.sing 627
    }
628
 
3430 rajveer 629
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 630
    {
631
      getReports_result result = new getReports_result();
3430 rajveer 632
      receiveBase(result, "getReports");
1891 ankur.sing 633
      if (result.isSetSuccess()) {
634
        return result.success;
635
      }
3430 rajveer 636
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 637
    }
638
 
3430 rajveer 639
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 640
    {
2357 ankur.sing 641
      send_authenticateCatalogUser(username, password, role);
2024 ankur.sing 642
      return recv_authenticateCatalogUser();
643
    }
644
 
3430 rajveer 645
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
2024 ankur.sing 646
    {
647
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 648
      args.setUsername(username);
649
      args.setPassword(password);
650
      args.setRole(role);
651
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 652
    }
653
 
3430 rajveer 654
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 655
    {
656
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 657
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 658
      if (result.isSetSuccess()) {
659
        return result.success;
660
      }
661
      if (result.hse != null) {
662
        throw result.hse;
663
      }
3430 rajveer 664
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 665
    }
666
 
4544 varun.gupt 667
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
668
    {
669
      send_shareEntities(entityIds, email);
670
      recv_shareEntities();
671
    }
672
 
673
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
674
    {
675
      shareEntities_args args = new shareEntities_args();
676
      args.setEntityIds(entityIds);
677
      args.setEmail(email);
678
      sendBase("shareEntities", args);
679
    }
680
 
681
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
682
    {
683
      shareEntities_result result = new shareEntities_result();
684
      receiveBase(result, "shareEntities");
685
      if (result.hse != null) {
686
        throw result.hse;
687
      }
688
      return;
689
    }
690
 
352 ashish 691
  }
3430 rajveer 692
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
693
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
694
      private org.apache.thrift.async.TAsyncClientManager clientManager;
695
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
696
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
697
        this.clientManager = clientManager;
698
        this.protocolFactory = protocolFactory;
699
      }
700
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
701
        return new AsyncClient(protocolFactory, clientManager, transport);
702
      }
352 ashish 703
    }
704
 
3430 rajveer 705
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
706
      super(protocolFactory, clientManager, transport);
707
    }
352 ashish 708
 
3430 rajveer 709
    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 {
710
      checkReady();
711
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
712
      this.___currentMethod = method_call;
713
      ___manager.call(method_call);
714
    }
715
 
716
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
717
      private String emailTo;
718
      private String emailFrom;
719
      private String subject;
720
      private String body;
721
      private String source;
722
      private String emailType;
723
      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 {
724
        super(client, protocolFactory, transport, resultHandler, false);
725
        this.emailTo = emailTo;
726
        this.emailFrom = emailFrom;
727
        this.subject = subject;
728
        this.body = body;
729
        this.source = source;
730
        this.emailType = emailType;
352 ashish 731
      }
3430 rajveer 732
 
733
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
734
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
735
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
736
        args.setEmailTo(emailTo);
737
        args.setEmailFrom(emailFrom);
738
        args.setSubject(subject);
739
        args.setBody(body);
740
        args.setSource(source);
741
        args.setEmailType(emailType);
742
        args.write(prot);
743
        prot.writeMessageEnd();
744
      }
745
 
746
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
747
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
748
          throw new IllegalStateException("Method call not finished!");
749
        }
750
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
751
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
752
        return (new Client(prot)).recv_saveUserEmailForSending();
753
      }
352 ashish 754
    }
755
 
3430 rajveer 756
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
757
      checkReady();
758
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
759
      this.___currentMethod = method_call;
760
      ___manager.call(method_call);
761
    }
762
 
763
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
764
      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 {
765
        super(client, protocolFactory, transport, resultHandler, false);
766
      }
767
 
768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
770
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
771
        args.write(prot);
772
        prot.writeMessageEnd();
773
      }
774
 
775
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
776
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
777
          throw new IllegalStateException("Method call not finished!");
778
        }
779
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
780
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
781
        return (new Client(prot)).recv_getEmailsToBeSent();
782
      }
783
    }
784
 
785
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
786
      checkReady();
787
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
788
      this.___currentMethod = method_call;
789
      ___manager.call(method_call);
790
    }
791
 
792
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
793
      private long emailId;
794
      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 {
795
        super(client, protocolFactory, transport, resultHandler, false);
796
        this.emailId = emailId;
797
      }
798
 
799
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
800
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
801
        markEmailAsSent_args args = new markEmailAsSent_args();
802
        args.setEmailId(emailId);
803
        args.write(prot);
804
        prot.writeMessageEnd();
805
      }
806
 
807
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
808
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
809
          throw new IllegalStateException("Method call not finished!");
810
        }
811
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
812
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
813
        (new Client(prot)).recv_markEmailAsSent();
814
      }
815
    }
816
 
817
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
818
      checkReady();
819
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
820
      this.___currentMethod = method_call;
821
      ___manager.call(method_call);
822
    }
823
 
824
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
825
      private Mail mail;
826
      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 {
827
        super(client, protocolFactory, transport, resultHandler, false);
828
        this.mail = mail;
829
      }
830
 
831
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
832
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
833
        sendMail_args args = new sendMail_args();
834
        args.setMail(mail);
835
        args.write(prot);
836
        prot.writeMessageEnd();
837
      }
838
 
839
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
840
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
841
          throw new IllegalStateException("Method call not finished!");
842
        }
843
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
844
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
845
        (new Client(prot)).recv_sendMail();
846
      }
847
    }
848
 
849
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
850
      checkReady();
851
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
852
      this.___currentMethod = method_call;
853
      ___manager.call(method_call);
854
    }
855
 
856
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
857
      private TextMessage message;
858
      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 {
859
        super(client, protocolFactory, transport, resultHandler, false);
860
        this.message = message;
861
      }
862
 
863
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
864
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
865
        sendText_args args = new sendText_args();
866
        args.setMessage(message);
867
        args.write(prot);
868
        prot.writeMessageEnd();
869
      }
870
 
871
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
872
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
873
          throw new IllegalStateException("Method call not finished!");
874
        }
875
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
876
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
877
        (new Client(prot)).recv_sendText();
878
      }
879
    }
880
 
881
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
882
      checkReady();
883
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
884
      this.___currentMethod = method_call;
885
      ___manager.call(method_call);
886
    }
887
 
888
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
889
      private Message message;
890
      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 {
891
        super(client, protocolFactory, transport, resultHandler, false);
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("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
897
        addMessage_args args = new addMessage_args();
898
        args.setMessage(message);
899
        args.write(prot);
900
        prot.writeMessageEnd();
901
      }
902
 
903
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
905
          throw new IllegalStateException("Method call not finished!");
906
        }
907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
909
        (new Client(prot)).recv_addMessage();
910
      }
911
    }
912
 
913
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
914
      checkReady();
915
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
916
      this.___currentMethod = method_call;
917
      ___manager.call(method_call);
918
    }
919
 
920
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
921
      private long id;
922
      private String message;
923
      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 {
924
        super(client, protocolFactory, transport, resultHandler, false);
925
        this.id = id;
926
        this.message = message;
927
      }
928
 
929
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
930
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
931
        updateMessage_args args = new updateMessage_args();
932
        args.setId(id);
933
        args.setMessage(message);
934
        args.write(prot);
935
        prot.writeMessageEnd();
936
      }
937
 
938
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
940
          throw new IllegalStateException("Method call not finished!");
941
        }
942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
944
        (new Client(prot)).recv_updateMessage();
945
      }
946
    }
947
 
948
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
949
      checkReady();
950
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
951
      this.___currentMethod = method_call;
952
      ___manager.call(method_call);
953
    }
954
 
955
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
956
      private long id;
957
      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 {
958
        super(client, protocolFactory, transport, resultHandler, false);
959
        this.id = id;
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("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
964
        getMessage_args args = new getMessage_args();
965
        args.setId(id);
966
        args.write(prot);
967
        prot.writeMessageEnd();
968
      }
969
 
970
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
971
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
972
          throw new IllegalStateException("Method call not finished!");
973
        }
974
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
975
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
976
        return (new Client(prot)).recv_getMessage();
977
      }
978
    }
979
 
980
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
981
      checkReady();
982
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
983
      this.___currentMethod = method_call;
984
      ___manager.call(method_call);
985
    }
986
 
987
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
988
      private long id;
989
      private Map<String,String> params;
990
      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 {
991
        super(client, protocolFactory, transport, resultHandler, false);
992
        this.id = id;
993
        this.params = params;
994
      }
995
 
996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
998
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
999
        args.setId(id);
1000
        args.setParams(params);
1001
        args.write(prot);
1002
        prot.writeMessageEnd();
1003
      }
1004
 
1005
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1006
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1007
          throw new IllegalStateException("Method call not finished!");
1008
        }
1009
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1011
        return (new Client(prot)).recv_getSubstitutedMessage();
1012
      }
1013
    }
1014
 
1015
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1016
      checkReady();
1017
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1018
      this.___currentMethod = method_call;
1019
      ___manager.call(method_call);
1020
    }
1021
 
1022
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1023
      private String username;
1024
      private String password;
1025
      private long warehouseId;
1026
      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 {
1027
        super(client, protocolFactory, transport, resultHandler, false);
1028
        this.username = username;
1029
        this.password = password;
1030
        this.warehouseId = warehouseId;
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("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1035
        addUser_args args = new addUser_args();
1036
        args.setUsername(username);
1037
        args.setPassword(password);
1038
        args.setWarehouseId(warehouseId);
1039
        args.write(prot);
1040
        prot.writeMessageEnd();
1041
      }
1042
 
1043
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1044
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1045
          throw new IllegalStateException("Method call not finished!");
1046
        }
1047
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1048
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1049
        return (new Client(prot)).recv_addUser();
1050
      }
1051
    }
1052
 
1053
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1054
      checkReady();
1055
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1056
      this.___currentMethod = method_call;
1057
      ___manager.call(method_call);
1058
    }
1059
 
1060
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1061
      private String username;
1062
      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 {
1063
        super(client, protocolFactory, transport, resultHandler, false);
1064
        this.username = username;
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("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1069
        deleteUser_args args = new deleteUser_args();
1070
        args.setUsername(username);
1071
        args.write(prot);
1072
        prot.writeMessageEnd();
1073
      }
1074
 
1075
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1076
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1077
          throw new IllegalStateException("Method call not finished!");
1078
        }
1079
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1080
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1081
        return (new Client(prot)).recv_deleteUser();
1082
      }
1083
    }
1084
 
1085
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1086
      checkReady();
1087
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1088
      this.___currentMethod = method_call;
1089
      ___manager.call(method_call);
1090
    }
1091
 
1092
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1093
      private String username;
1094
      private String password;
1095
      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 {
1096
        super(client, protocolFactory, transport, resultHandler, false);
1097
        this.username = username;
1098
        this.password = password;
1099
      }
1100
 
1101
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1102
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1103
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1104
        args.setUsername(username);
1105
        args.setPassword(password);
1106
        args.write(prot);
1107
        prot.writeMessageEnd();
1108
      }
1109
 
1110
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1111
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1112
          throw new IllegalStateException("Method call not finished!");
1113
        }
1114
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1115
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1116
        return (new Client(prot)).recv_authenticateDashboardUser();
1117
      }
1118
    }
1119
 
1120
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1121
      checkReady();
1122
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1123
      this.___currentMethod = method_call;
1124
      ___manager.call(method_call);
1125
    }
1126
 
1127
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1128
      private String username;
1129
      private String oldPassword;
1130
      private String newPassword;
1131
      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 {
1132
        super(client, protocolFactory, transport, resultHandler, false);
1133
        this.username = username;
1134
        this.oldPassword = oldPassword;
1135
        this.newPassword = newPassword;
1136
      }
1137
 
1138
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1139
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1140
        updatePassword_args args = new updatePassword_args();
1141
        args.setUsername(username);
1142
        args.setOldPassword(oldPassword);
1143
        args.setNewPassword(newPassword);
1144
        args.write(prot);
1145
        prot.writeMessageEnd();
1146
      }
1147
 
1148
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1149
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1150
          throw new IllegalStateException("Method call not finished!");
1151
        }
1152
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1153
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1154
        return (new Client(prot)).recv_updatePassword();
1155
      }
1156
    }
1157
 
1158
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1159
      checkReady();
1160
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1161
      this.___currentMethod = method_call;
1162
      ___manager.call(method_call);
1163
    }
1164
 
1165
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1166
      private String username;
1167
      private String password;
1168
      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 {
1169
        super(client, protocolFactory, transport, resultHandler, false);
1170
        this.username = username;
1171
        this.password = password;
1172
      }
1173
 
1174
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1175
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1176
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1177
        args.setUsername(username);
1178
        args.setPassword(password);
1179
        args.write(prot);
1180
        prot.writeMessageEnd();
1181
      }
1182
 
1183
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1184
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1185
          throw new IllegalStateException("Method call not finished!");
1186
        }
1187
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1188
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1189
        return (new Client(prot)).recv_authenticateLogisticsUser();
1190
      }
1191
    }
1192
 
1193
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1194
      checkReady();
1195
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1196
      this.___currentMethod = method_call;
1197
      ___manager.call(method_call);
1198
    }
1199
 
1200
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1201
      private String username;
1202
      private String password;
1203
      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 {
1204
        super(client, protocolFactory, transport, resultHandler, false);
1205
        this.username = username;
1206
        this.password = password;
1207
      }
1208
 
1209
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1210
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1211
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1212
        args.setUsername(username);
1213
        args.setPassword(password);
1214
        args.write(prot);
1215
        prot.writeMessageEnd();
1216
      }
1217
 
1218
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1219
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1220
          throw new IllegalStateException("Method call not finished!");
1221
        }
1222
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1223
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1224
        return (new Client(prot)).recv_authenticateStatisticsUser();
1225
      }
1226
    }
1227
 
1228
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1229
      checkReady();
1230
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1231
      this.___currentMethod = method_call;
1232
      ___manager.call(method_call);
1233
    }
1234
 
1235
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1236
      private String username;
1237
      private String password;
1238
      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 {
1239
        super(client, protocolFactory, transport, resultHandler, false);
1240
        this.username = username;
1241
        this.password = password;
1242
      }
1243
 
1244
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1245
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1246
        authenticateReportUser_args args = new authenticateReportUser_args();
1247
        args.setUsername(username);
1248
        args.setPassword(password);
1249
        args.write(prot);
1250
        prot.writeMessageEnd();
1251
      }
1252
 
1253
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1254
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1255
          throw new IllegalStateException("Method call not finished!");
1256
        }
1257
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1258
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1259
        return (new Client(prot)).recv_authenticateReportUser();
1260
      }
1261
    }
1262
 
1263
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1264
      checkReady();
1265
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1266
      this.___currentMethod = method_call;
1267
      ___manager.call(method_call);
1268
    }
1269
 
1270
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1271
      private long role;
1272
      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 {
1273
        super(client, protocolFactory, transport, resultHandler, false);
1274
        this.role = role;
1275
      }
1276
 
1277
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1278
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1279
        getReports_args args = new getReports_args();
1280
        args.setRole(role);
1281
        args.write(prot);
1282
        prot.writeMessageEnd();
1283
      }
1284
 
1285
      public List<Report> getResult() throws org.apache.thrift.TException {
1286
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1287
          throw new IllegalStateException("Method call not finished!");
1288
        }
1289
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1290
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1291
        return (new Client(prot)).recv_getReports();
1292
      }
1293
    }
1294
 
1295
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
1296
      checkReady();
1297
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
1298
      this.___currentMethod = method_call;
1299
      ___manager.call(method_call);
1300
    }
1301
 
1302
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1303
      private String username;
1304
      private String password;
1305
      private long role;
1306
      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 {
1307
        super(client, protocolFactory, transport, resultHandler, false);
1308
        this.username = username;
1309
        this.password = password;
1310
        this.role = role;
1311
      }
1312
 
1313
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1314
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1315
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1316
        args.setUsername(username);
1317
        args.setPassword(password);
1318
        args.setRole(role);
1319
        args.write(prot);
1320
        prot.writeMessageEnd();
1321
      }
1322
 
1323
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1324
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1325
          throw new IllegalStateException("Method call not finished!");
1326
        }
1327
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1328
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1329
        return (new Client(prot)).recv_authenticateCatalogUser();
1330
      }
1331
    }
1332
 
4544 varun.gupt 1333
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1334
      checkReady();
1335
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1336
      this.___currentMethod = method_call;
1337
      ___manager.call(method_call);
1338
    }
1339
 
1340
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1341
      private List<Long> entityIds;
1342
      private String email;
1343
      public shareEntities_call(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1344
        super(client, protocolFactory, transport, resultHandler, false);
1345
        this.entityIds = entityIds;
1346
        this.email = email;
1347
      }
1348
 
1349
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1350
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1351
        shareEntities_args args = new shareEntities_args();
1352
        args.setEntityIds(entityIds);
1353
        args.setEmail(email);
1354
        args.write(prot);
1355
        prot.writeMessageEnd();
1356
      }
1357
 
1358
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1359
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1360
          throw new IllegalStateException("Method call not finished!");
1361
        }
1362
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1363
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1364
        (new Client(prot)).recv_shareEntities();
1365
      }
1366
    }
1367
 
3430 rajveer 1368
  }
1369
 
1370
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1371
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1372
    public Processor(I iface) {
1373
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1374
    }
1375
 
1376
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1377
      super(iface, getProcessMap(processMap));
1378
    }
1379
 
1380
    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) {
1381
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
1382
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
1383
      processMap.put("markEmailAsSent", new markEmailAsSent());
1384
      processMap.put("sendMail", new sendMail());
1385
      processMap.put("sendText", new sendText());
1386
      processMap.put("addMessage", new addMessage());
1387
      processMap.put("updateMessage", new updateMessage());
1388
      processMap.put("getMessage", new getMessage());
1389
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
1390
      processMap.put("addUser", new addUser());
1391
      processMap.put("deleteUser", new deleteUser());
1392
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
1393
      processMap.put("updatePassword", new updatePassword());
1394
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
1395
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
1396
      processMap.put("authenticateReportUser", new authenticateReportUser());
1397
      processMap.put("getReports", new getReports());
1398
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 1399
      processMap.put("shareEntities", new shareEntities());
3430 rajveer 1400
      return processMap;
1401
    }
1402
 
1403
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
1404
      public saveUserEmailForSending() {
1405
        super("saveUserEmailForSending");
1406
      }
1407
 
1408
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
1409
        return new saveUserEmailForSending_args();
1410
      }
1411
 
1412
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 1413
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1414
        try {
3430 rajveer 1415
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
3206 mandeep.dh 1416
          result.setSuccessIsSet(true);
1395 varun.gupt 1417
        } catch (HelperServiceException se) {
1418
          result.se = se;
1419
        }
3430 rajveer 1420
        return result;
1395 varun.gupt 1421
      }
1422
    }
1423
 
3430 rajveer 1424
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
1425
      public getEmailsToBeSent() {
1426
        super("getEmailsToBeSent");
1427
      }
1428
 
1429
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
1430
        return new getEmailsToBeSent_args();
1431
      }
1432
 
1433
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1434
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1435
        try {
3430 rajveer 1436
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 1437
        } catch (HelperServiceException se) {
1438
          result.se = se;
1439
        }
3430 rajveer 1440
        return result;
1422 varun.gupt 1441
      }
1442
    }
1443
 
3430 rajveer 1444
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
1445
      public markEmailAsSent() {
1446
        super("markEmailAsSent");
1447
      }
1448
 
1449
      protected markEmailAsSent_args getEmptyArgsInstance() {
1450
        return new markEmailAsSent_args();
1451
      }
1452
 
1453
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 1454
        markEmailAsSent_result result = new markEmailAsSent_result();
1455
        try {
3430 rajveer 1456
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 1457
        } catch (HelperServiceException se) {
1458
          result.se = se;
1459
        }
3430 rajveer 1460
        return result;
1422 varun.gupt 1461
      }
1462
    }
1463
 
3430 rajveer 1464
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
1465
      public sendMail() {
1466
        super("sendMail");
1467
      }
1468
 
1469
      protected sendMail_args getEmptyArgsInstance() {
1470
        return new sendMail_args();
1471
      }
1472
 
1473
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 1474
        sendMail_result result = new sendMail_result();
1475
        try {
3430 rajveer 1476
          iface.sendMail(args.mail);
352 ashish 1477
        } catch (HelperServiceException se) {
1478
          result.se = se;
1479
        }
3430 rajveer 1480
        return result;
352 ashish 1481
      }
1482
    }
1483
 
3430 rajveer 1484
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
1485
      public sendText() {
1486
        super("sendText");
1487
      }
1488
 
1489
      protected sendText_args getEmptyArgsInstance() {
1490
        return new sendText_args();
1491
      }
1492
 
1493
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 1494
        sendText_result result = new sendText_result();
1495
        try {
3430 rajveer 1496
          iface.sendText(args.message);
352 ashish 1497
        } catch (HelperServiceException se) {
1498
          result.se = se;
1499
        }
3430 rajveer 1500
        return result;
352 ashish 1501
      }
1502
    }
1503
 
3430 rajveer 1504
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
1505
      public addMessage() {
1506
        super("addMessage");
1507
      }
1508
 
1509
      protected addMessage_args getEmptyArgsInstance() {
1510
        return new addMessage_args();
1511
      }
1512
 
1513
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 1514
        addMessage_result result = new addMessage_result();
1515
        try {
3430 rajveer 1516
          iface.addMessage(args.message);
352 ashish 1517
        } catch (HelperServiceException se) {
1518
          result.se = se;
1519
        }
3430 rajveer 1520
        return result;
352 ashish 1521
      }
1522
    }
1523
 
3430 rajveer 1524
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
1525
      public updateMessage() {
1526
        super("updateMessage");
1527
      }
1528
 
1529
      protected updateMessage_args getEmptyArgsInstance() {
1530
        return new updateMessage_args();
1531
      }
1532
 
1533
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 1534
        updateMessage_result result = new updateMessage_result();
1535
        try {
3430 rajveer 1536
          iface.updateMessage(args.id, args.message);
352 ashish 1537
        } catch (HelperServiceException se) {
1538
          result.se = se;
1539
        }
3430 rajveer 1540
        return result;
352 ashish 1541
      }
1542
    }
1543
 
3430 rajveer 1544
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
1545
      public getMessage() {
1546
        super("getMessage");
1547
      }
1548
 
1549
      protected getMessage_args getEmptyArgsInstance() {
1550
        return new getMessage_args();
1551
      }
1552
 
1553
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 1554
        getMessage_result result = new getMessage_result();
1555
        try {
3430 rajveer 1556
          result.success = iface.getMessage(args.id);
352 ashish 1557
        } catch (HelperServiceException se) {
1558
          result.se = se;
1559
        }
3430 rajveer 1560
        return result;
352 ashish 1561
      }
1562
    }
1563
 
3430 rajveer 1564
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
1565
      public getSubstitutedMessage() {
1566
        super("getSubstitutedMessage");
1567
      }
1568
 
1569
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
1570
        return new getSubstitutedMessage_args();
1571
      }
1572
 
1573
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 1574
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1575
        try {
3430 rajveer 1576
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 1577
        } catch (HelperServiceException se) {
1578
          result.se = se;
1579
        }
3430 rajveer 1580
        return result;
352 ashish 1581
      }
1582
    }
1583
 
3430 rajveer 1584
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
1585
      public addUser() {
1586
        super("addUser");
1587
      }
1588
 
1589
      protected addUser_args getEmptyArgsInstance() {
1590
        return new addUser_args();
1591
      }
1592
 
1593
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 1594
        addUser_result result = new addUser_result();
1595
        try {
3430 rajveer 1596
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 1597
          result.setSuccessIsSet(true);
1598
        } catch (HelperServiceException se) {
1599
          result.se = se;
1600
        }
3430 rajveer 1601
        return result;
495 rajveer 1602
      }
1603
    }
1604
 
3430 rajveer 1605
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
1606
      public deleteUser() {
1607
        super("deleteUser");
1608
      }
1609
 
1610
      protected deleteUser_args getEmptyArgsInstance() {
1611
        return new deleteUser_args();
1612
      }
1613
 
1614
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 1615
        deleteUser_result result = new deleteUser_result();
1616
        try {
3430 rajveer 1617
          result.success = iface.deleteUser(args.username);
495 rajveer 1618
          result.setSuccessIsSet(true);
1619
        } catch (HelperServiceException se) {
1620
          result.se = se;
1621
        }
3430 rajveer 1622
        return result;
495 rajveer 1623
      }
1624
    }
1625
 
3430 rajveer 1626
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
1627
      public authenticateDashboardUser() {
1628
        super("authenticateDashboardUser");
1629
      }
1630
 
1631
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
1632
        return new authenticateDashboardUser_args();
1633
      }
1634
 
1635
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 1636
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 1637
        try {
3430 rajveer 1638
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 1639
        } catch (HelperServiceException se) {
1640
          result.se = se;
1641
        }
3430 rajveer 1642
        return result;
495 rajveer 1643
      }
1644
    }
1645
 
3430 rajveer 1646
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
1647
      public updatePassword() {
1648
        super("updatePassword");
1649
      }
1650
 
1651
      protected updatePassword_args getEmptyArgsInstance() {
1652
        return new updatePassword_args();
1653
      }
1654
 
1655
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 1656
        updatePassword_result result = new updatePassword_result();
1657
        try {
3430 rajveer 1658
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 1659
          result.setSuccessIsSet(true);
1660
        } catch (HelperServiceException se) {
1661
          result.se = se;
1662
        }
3430 rajveer 1663
        return result;
495 rajveer 1664
      }
1665
    }
1666
 
3430 rajveer 1667
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
1668
      public authenticateLogisticsUser() {
1669
        super("authenticateLogisticsUser");
1670
      }
1671
 
1672
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
1673
        return new authenticateLogisticsUser_args();
1674
      }
1675
 
1676
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 1677
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
1678
        try {
3430 rajveer 1679
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 1680
        } catch (HelperServiceException hse) {
1681
          result.hse = hse;
1682
        }
3430 rajveer 1683
        return result;
750 chandransh 1684
      }
1685
    }
1686
 
3430 rajveer 1687
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
1688
      public authenticateStatisticsUser() {
1689
        super("authenticateStatisticsUser");
1690
      }
1691
 
1692
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
1693
        return new authenticateStatisticsUser_args();
1694
      }
1695
 
1696
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 1697
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
1698
        try {
3430 rajveer 1699
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 1700
        } catch (HelperServiceException hse) {
1701
          result.hse = hse;
1702
        }
3430 rajveer 1703
        return result;
1611 ankur.sing 1704
      }
1705
    }
1706
 
3430 rajveer 1707
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
1708
      public authenticateReportUser() {
1709
        super("authenticateReportUser");
1710
      }
1711
 
1712
      protected authenticateReportUser_args getEmptyArgsInstance() {
1713
        return new authenticateReportUser_args();
1714
      }
1715
 
1716
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 1717
        authenticateReportUser_result result = new authenticateReportUser_result();
1718
        try {
3430 rajveer 1719
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 1720
        } catch (HelperServiceException hse) {
1721
          result.hse = hse;
1722
        }
3430 rajveer 1723
        return result;
1891 ankur.sing 1724
      }
1725
    }
1726
 
3430 rajveer 1727
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
1728
      public getReports() {
1729
        super("getReports");
1730
      }
1731
 
1732
      protected getReports_args getEmptyArgsInstance() {
1733
        return new getReports_args();
1734
      }
1735
 
1736
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 1737
        getReports_result result = new getReports_result();
3430 rajveer 1738
        result.success = iface.getReports(args.role);
1739
        return result;
1891 ankur.sing 1740
      }
1741
    }
1742
 
3430 rajveer 1743
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
1744
      public authenticateCatalogUser() {
1745
        super("authenticateCatalogUser");
1746
      }
1747
 
1748
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
1749
        return new authenticateCatalogUser_args();
1750
      }
1751
 
1752
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 1753
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
1754
        try {
3430 rajveer 1755
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
2024 ankur.sing 1756
        } catch (HelperServiceException hse) {
1757
          result.hse = hse;
1758
        }
3430 rajveer 1759
        return result;
2024 ankur.sing 1760
      }
1761
    }
1762
 
4544 varun.gupt 1763
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
1764
      public shareEntities() {
1765
        super("shareEntities");
1766
      }
1767
 
1768
      protected shareEntities_args getEmptyArgsInstance() {
1769
        return new shareEntities_args();
1770
      }
1771
 
1772
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
1773
        shareEntities_result result = new shareEntities_result();
1774
        try {
1775
          iface.shareEntities(args.entityIds, args.email);
1776
        } catch (HelperServiceException hse) {
1777
          result.hse = hse;
1778
        }
1779
        return result;
1780
      }
1781
    }
1782
 
352 ashish 1783
  }
1784
 
3430 rajveer 1785
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1786
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 1787
 
3430 rajveer 1788
    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);
1789
    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);
1790
    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);
1791
    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);
1792
    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);
1793
    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 1794
 
3430 rajveer 1795
    private String emailTo; // required
1796
    private String emailFrom; // required
1797
    private String subject; // required
1798
    private String body; // required
1799
    private String source; // required
1800
    private String emailType; // required
1395 varun.gupt 1801
 
1802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1803
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 1804
      EMAIL_TO((short)1, "emailTo"),
1805
      EMAIL_FROM((short)2, "emailFrom"),
1806
      SUBJECT((short)3, "subject"),
1807
      BODY((short)4, "body"),
1808
      SOURCE((short)5, "source"),
1809
      EMAIL_TYPE((short)6, "emailType");
1810
 
1811
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1812
 
1813
      static {
1814
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1815
          byName.put(field.getFieldName(), field);
1816
        }
1817
      }
1818
 
1819
      /**
1820
       * Find the _Fields constant that matches fieldId, or null if its not found.
1821
       */
1822
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1823
        switch(fieldId) {
1824
          case 1: // EMAIL_TO
1825
            return EMAIL_TO;
1826
          case 2: // EMAIL_FROM
1827
            return EMAIL_FROM;
1828
          case 3: // SUBJECT
1829
            return SUBJECT;
1830
          case 4: // BODY
1831
            return BODY;
1832
          case 5: // SOURCE
1833
            return SOURCE;
1834
          case 6: // EMAIL_TYPE
1835
            return EMAIL_TYPE;
1836
          default:
1837
            return null;
1838
        }
1395 varun.gupt 1839
      }
1840
 
1841
      /**
1842
       * Find the _Fields constant that matches fieldId, throwing an exception
1843
       * if it is not found.
1844
       */
1845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1846
        _Fields fields = findByThriftId(fieldId);
1847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1848
        return fields;
1849
      }
1850
 
1851
      /**
1852
       * Find the _Fields constant that matches name, or null if its not found.
1853
       */
1854
      public static _Fields findByName(String name) {
1855
        return byName.get(name);
1856
      }
1857
 
1858
      private final short _thriftId;
1859
      private final String _fieldName;
1860
 
1861
      _Fields(short thriftId, String fieldName) {
1862
        _thriftId = thriftId;
1863
        _fieldName = fieldName;
1864
      }
1865
 
1866
      public short getThriftFieldId() {
1867
        return _thriftId;
1868
      }
1869
 
1870
      public String getFieldName() {
1871
        return _fieldName;
1872
      }
1873
    }
1874
 
1875
    // isset id assignments
1876
 
3430 rajveer 1877
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 1878
    static {
3430 rajveer 1879
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1880
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1882
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1883
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1884
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1885
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1886
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1887
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1888
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1889
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1890
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 1894
    }
1895
 
1896
    public saveUserEmailForSending_args() {
1897
    }
1898
 
1899
    public saveUserEmailForSending_args(
1900
      String emailTo,
1901
      String emailFrom,
1902
      String subject,
1903
      String body,
1904
      String source,
1905
      String emailType)
1906
    {
1907
      this();
1908
      this.emailTo = emailTo;
1909
      this.emailFrom = emailFrom;
1910
      this.subject = subject;
1911
      this.body = body;
1912
      this.source = source;
1913
      this.emailType = emailType;
1914
    }
1915
 
1916
    /**
1917
     * Performs a deep copy on <i>other</i>.
1918
     */
1919
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
1920
      if (other.isSetEmailTo()) {
1921
        this.emailTo = other.emailTo;
1922
      }
1923
      if (other.isSetEmailFrom()) {
1924
        this.emailFrom = other.emailFrom;
1925
      }
1926
      if (other.isSetSubject()) {
1927
        this.subject = other.subject;
1928
      }
1929
      if (other.isSetBody()) {
1930
        this.body = other.body;
1931
      }
1932
      if (other.isSetSource()) {
1933
        this.source = other.source;
1934
      }
1935
      if (other.isSetEmailType()) {
1936
        this.emailType = other.emailType;
1937
      }
1938
    }
1939
 
1940
    public saveUserEmailForSending_args deepCopy() {
1941
      return new saveUserEmailForSending_args(this);
1942
    }
1943
 
3430 rajveer 1944
    @Override
1945
    public void clear() {
1946
      this.emailTo = null;
1947
      this.emailFrom = null;
1948
      this.subject = null;
1949
      this.body = null;
1950
      this.source = null;
1951
      this.emailType = null;
1395 varun.gupt 1952
    }
1953
 
1954
    public String getEmailTo() {
1955
      return this.emailTo;
1956
    }
1957
 
3430 rajveer 1958
    public void setEmailTo(String emailTo) {
1395 varun.gupt 1959
      this.emailTo = emailTo;
1960
    }
1961
 
1962
    public void unsetEmailTo() {
1963
      this.emailTo = null;
1964
    }
1965
 
3430 rajveer 1966
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1967
    public boolean isSetEmailTo() {
1968
      return this.emailTo != null;
1969
    }
1970
 
1971
    public void setEmailToIsSet(boolean value) {
1972
      if (!value) {
1973
        this.emailTo = null;
1974
      }
1975
    }
1976
 
1977
    public String getEmailFrom() {
1978
      return this.emailFrom;
1979
    }
1980
 
3430 rajveer 1981
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 1982
      this.emailFrom = emailFrom;
1983
    }
1984
 
1985
    public void unsetEmailFrom() {
1986
      this.emailFrom = null;
1987
    }
1988
 
3430 rajveer 1989
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 1990
    public boolean isSetEmailFrom() {
1991
      return this.emailFrom != null;
1992
    }
1993
 
1994
    public void setEmailFromIsSet(boolean value) {
1995
      if (!value) {
1996
        this.emailFrom = null;
1997
      }
1998
    }
1999
 
2000
    public String getSubject() {
2001
      return this.subject;
2002
    }
2003
 
3430 rajveer 2004
    public void setSubject(String subject) {
1395 varun.gupt 2005
      this.subject = subject;
2006
    }
2007
 
2008
    public void unsetSubject() {
2009
      this.subject = null;
2010
    }
2011
 
3430 rajveer 2012
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2013
    public boolean isSetSubject() {
2014
      return this.subject != null;
2015
    }
2016
 
2017
    public void setSubjectIsSet(boolean value) {
2018
      if (!value) {
2019
        this.subject = null;
2020
      }
2021
    }
2022
 
2023
    public String getBody() {
2024
      return this.body;
2025
    }
2026
 
3430 rajveer 2027
    public void setBody(String body) {
1395 varun.gupt 2028
      this.body = body;
2029
    }
2030
 
2031
    public void unsetBody() {
2032
      this.body = null;
2033
    }
2034
 
3430 rajveer 2035
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2036
    public boolean isSetBody() {
2037
      return this.body != null;
2038
    }
2039
 
2040
    public void setBodyIsSet(boolean value) {
2041
      if (!value) {
2042
        this.body = null;
2043
      }
2044
    }
2045
 
2046
    public String getSource() {
2047
      return this.source;
2048
    }
2049
 
3430 rajveer 2050
    public void setSource(String source) {
1395 varun.gupt 2051
      this.source = source;
2052
    }
2053
 
2054
    public void unsetSource() {
2055
      this.source = null;
2056
    }
2057
 
3430 rajveer 2058
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2059
    public boolean isSetSource() {
2060
      return this.source != null;
2061
    }
2062
 
2063
    public void setSourceIsSet(boolean value) {
2064
      if (!value) {
2065
        this.source = null;
2066
      }
2067
    }
2068
 
2069
    public String getEmailType() {
2070
      return this.emailType;
2071
    }
2072
 
3430 rajveer 2073
    public void setEmailType(String emailType) {
1395 varun.gupt 2074
      this.emailType = emailType;
2075
    }
2076
 
2077
    public void unsetEmailType() {
2078
      this.emailType = null;
2079
    }
2080
 
3430 rajveer 2081
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2082
    public boolean isSetEmailType() {
2083
      return this.emailType != null;
2084
    }
2085
 
2086
    public void setEmailTypeIsSet(boolean value) {
2087
      if (!value) {
2088
        this.emailType = null;
2089
      }
2090
    }
2091
 
2092
    public void setFieldValue(_Fields field, Object value) {
2093
      switch (field) {
2094
      case EMAIL_TO:
2095
        if (value == null) {
2096
          unsetEmailTo();
2097
        } else {
2098
          setEmailTo((String)value);
2099
        }
2100
        break;
2101
 
2102
      case EMAIL_FROM:
2103
        if (value == null) {
2104
          unsetEmailFrom();
2105
        } else {
2106
          setEmailFrom((String)value);
2107
        }
2108
        break;
2109
 
2110
      case SUBJECT:
2111
        if (value == null) {
2112
          unsetSubject();
2113
        } else {
2114
          setSubject((String)value);
2115
        }
2116
        break;
2117
 
2118
      case BODY:
2119
        if (value == null) {
2120
          unsetBody();
2121
        } else {
2122
          setBody((String)value);
2123
        }
2124
        break;
2125
 
2126
      case SOURCE:
2127
        if (value == null) {
2128
          unsetSource();
2129
        } else {
2130
          setSource((String)value);
2131
        }
2132
        break;
2133
 
2134
      case EMAIL_TYPE:
2135
        if (value == null) {
2136
          unsetEmailType();
2137
        } else {
2138
          setEmailType((String)value);
2139
        }
2140
        break;
2141
 
2142
      }
2143
    }
2144
 
2145
    public Object getFieldValue(_Fields field) {
2146
      switch (field) {
2147
      case EMAIL_TO:
2148
        return getEmailTo();
2149
 
2150
      case EMAIL_FROM:
2151
        return getEmailFrom();
2152
 
2153
      case SUBJECT:
2154
        return getSubject();
2155
 
2156
      case BODY:
2157
        return getBody();
2158
 
2159
      case SOURCE:
2160
        return getSource();
2161
 
2162
      case EMAIL_TYPE:
2163
        return getEmailType();
2164
 
2165
      }
2166
      throw new IllegalStateException();
2167
    }
2168
 
3430 rajveer 2169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2170
    public boolean isSet(_Fields field) {
2171
      if (field == null) {
2172
        throw new IllegalArgumentException();
2173
      }
1395 varun.gupt 2174
 
2175
      switch (field) {
2176
      case EMAIL_TO:
2177
        return isSetEmailTo();
2178
      case EMAIL_FROM:
2179
        return isSetEmailFrom();
2180
      case SUBJECT:
2181
        return isSetSubject();
2182
      case BODY:
2183
        return isSetBody();
2184
      case SOURCE:
2185
        return isSetSource();
2186
      case EMAIL_TYPE:
2187
        return isSetEmailType();
2188
      }
2189
      throw new IllegalStateException();
2190
    }
2191
 
2192
    @Override
2193
    public boolean equals(Object that) {
2194
      if (that == null)
2195
        return false;
2196
      if (that instanceof saveUserEmailForSending_args)
2197
        return this.equals((saveUserEmailForSending_args)that);
2198
      return false;
2199
    }
2200
 
2201
    public boolean equals(saveUserEmailForSending_args that) {
2202
      if (that == null)
2203
        return false;
2204
 
2205
      boolean this_present_emailTo = true && this.isSetEmailTo();
2206
      boolean that_present_emailTo = true && that.isSetEmailTo();
2207
      if (this_present_emailTo || that_present_emailTo) {
2208
        if (!(this_present_emailTo && that_present_emailTo))
2209
          return false;
2210
        if (!this.emailTo.equals(that.emailTo))
2211
          return false;
2212
      }
2213
 
2214
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
2215
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
2216
      if (this_present_emailFrom || that_present_emailFrom) {
2217
        if (!(this_present_emailFrom && that_present_emailFrom))
2218
          return false;
2219
        if (!this.emailFrom.equals(that.emailFrom))
2220
          return false;
2221
      }
2222
 
2223
      boolean this_present_subject = true && this.isSetSubject();
2224
      boolean that_present_subject = true && that.isSetSubject();
2225
      if (this_present_subject || that_present_subject) {
2226
        if (!(this_present_subject && that_present_subject))
2227
          return false;
2228
        if (!this.subject.equals(that.subject))
2229
          return false;
2230
      }
2231
 
2232
      boolean this_present_body = true && this.isSetBody();
2233
      boolean that_present_body = true && that.isSetBody();
2234
      if (this_present_body || that_present_body) {
2235
        if (!(this_present_body && that_present_body))
2236
          return false;
2237
        if (!this.body.equals(that.body))
2238
          return false;
2239
      }
2240
 
2241
      boolean this_present_source = true && this.isSetSource();
2242
      boolean that_present_source = true && that.isSetSource();
2243
      if (this_present_source || that_present_source) {
2244
        if (!(this_present_source && that_present_source))
2245
          return false;
2246
        if (!this.source.equals(that.source))
2247
          return false;
2248
      }
2249
 
2250
      boolean this_present_emailType = true && this.isSetEmailType();
2251
      boolean that_present_emailType = true && that.isSetEmailType();
2252
      if (this_present_emailType || that_present_emailType) {
2253
        if (!(this_present_emailType && that_present_emailType))
2254
          return false;
2255
        if (!this.emailType.equals(that.emailType))
2256
          return false;
2257
      }
2258
 
2259
      return true;
2260
    }
2261
 
2262
    @Override
2263
    public int hashCode() {
2264
      return 0;
2265
    }
2266
 
2267
    public int compareTo(saveUserEmailForSending_args other) {
2268
      if (!getClass().equals(other.getClass())) {
2269
        return getClass().getName().compareTo(other.getClass().getName());
2270
      }
2271
 
2272
      int lastComparison = 0;
2273
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2274
 
3430 rajveer 2275
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 2276
      if (lastComparison != 0) {
2277
        return lastComparison;
2278
      }
3430 rajveer 2279
      if (isSetEmailTo()) {
2280
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
2281
        if (lastComparison != 0) {
2282
          return lastComparison;
2283
        }
1395 varun.gupt 2284
      }
3430 rajveer 2285
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 2286
      if (lastComparison != 0) {
2287
        return lastComparison;
2288
      }
3430 rajveer 2289
      if (isSetEmailFrom()) {
2290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
2291
        if (lastComparison != 0) {
2292
          return lastComparison;
2293
        }
1395 varun.gupt 2294
      }
3430 rajveer 2295
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 2296
      if (lastComparison != 0) {
2297
        return lastComparison;
2298
      }
3430 rajveer 2299
      if (isSetSubject()) {
2300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
2301
        if (lastComparison != 0) {
2302
          return lastComparison;
2303
        }
1395 varun.gupt 2304
      }
3430 rajveer 2305
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 2306
      if (lastComparison != 0) {
2307
        return lastComparison;
2308
      }
3430 rajveer 2309
      if (isSetBody()) {
2310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
2311
        if (lastComparison != 0) {
2312
          return lastComparison;
2313
        }
1395 varun.gupt 2314
      }
3430 rajveer 2315
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 2316
      if (lastComparison != 0) {
2317
        return lastComparison;
2318
      }
3430 rajveer 2319
      if (isSetSource()) {
2320
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
2321
        if (lastComparison != 0) {
2322
          return lastComparison;
2323
        }
1395 varun.gupt 2324
      }
3430 rajveer 2325
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 2326
      if (lastComparison != 0) {
2327
        return lastComparison;
2328
      }
3430 rajveer 2329
      if (isSetEmailType()) {
2330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
2331
        if (lastComparison != 0) {
2332
          return lastComparison;
2333
        }
1395 varun.gupt 2334
      }
2335
      return 0;
2336
    }
2337
 
3430 rajveer 2338
    public _Fields fieldForId(int fieldId) {
2339
      return _Fields.findByThriftId(fieldId);
2340
    }
2341
 
2342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2343
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2344
      iprot.readStructBegin();
2345
      while (true)
2346
      {
2347
        field = iprot.readFieldBegin();
3430 rajveer 2348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2349
          break;
2350
        }
3430 rajveer 2351
        switch (field.id) {
2352
          case 1: // EMAIL_TO
2353
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2354
              this.emailTo = iprot.readString();
2355
            } else { 
2356
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2357
            }
2358
            break;
2359
          case 2: // EMAIL_FROM
2360
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2361
              this.emailFrom = iprot.readString();
2362
            } else { 
2363
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2364
            }
2365
            break;
2366
          case 3: // SUBJECT
2367
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2368
              this.subject = iprot.readString();
2369
            } else { 
2370
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2371
            }
2372
            break;
2373
          case 4: // BODY
2374
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2375
              this.body = iprot.readString();
2376
            } else { 
2377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2378
            }
2379
            break;
2380
          case 5: // SOURCE
2381
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2382
              this.source = iprot.readString();
2383
            } else { 
2384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2385
            }
2386
            break;
2387
          case 6: // EMAIL_TYPE
2388
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2389
              this.emailType = iprot.readString();
2390
            } else { 
2391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2392
            }
2393
            break;
2394
          default:
2395
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2396
        }
3430 rajveer 2397
        iprot.readFieldEnd();
1395 varun.gupt 2398
      }
2399
      iprot.readStructEnd();
2400
      validate();
2401
    }
2402
 
3430 rajveer 2403
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2404
      validate();
2405
 
2406
      oprot.writeStructBegin(STRUCT_DESC);
2407
      if (this.emailTo != null) {
2408
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
2409
        oprot.writeString(this.emailTo);
2410
        oprot.writeFieldEnd();
2411
      }
2412
      if (this.emailFrom != null) {
2413
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
2414
        oprot.writeString(this.emailFrom);
2415
        oprot.writeFieldEnd();
2416
      }
2417
      if (this.subject != null) {
2418
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
2419
        oprot.writeString(this.subject);
2420
        oprot.writeFieldEnd();
2421
      }
2422
      if (this.body != null) {
2423
        oprot.writeFieldBegin(BODY_FIELD_DESC);
2424
        oprot.writeString(this.body);
2425
        oprot.writeFieldEnd();
2426
      }
2427
      if (this.source != null) {
2428
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
2429
        oprot.writeString(this.source);
2430
        oprot.writeFieldEnd();
2431
      }
2432
      if (this.emailType != null) {
2433
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
2434
        oprot.writeString(this.emailType);
2435
        oprot.writeFieldEnd();
2436
      }
2437
      oprot.writeFieldStop();
2438
      oprot.writeStructEnd();
2439
    }
2440
 
2441
    @Override
2442
    public String toString() {
2443
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
2444
      boolean first = true;
2445
 
2446
      sb.append("emailTo:");
2447
      if (this.emailTo == null) {
2448
        sb.append("null");
2449
      } else {
2450
        sb.append(this.emailTo);
2451
      }
2452
      first = false;
2453
      if (!first) sb.append(", ");
2454
      sb.append("emailFrom:");
2455
      if (this.emailFrom == null) {
2456
        sb.append("null");
2457
      } else {
2458
        sb.append(this.emailFrom);
2459
      }
2460
      first = false;
2461
      if (!first) sb.append(", ");
2462
      sb.append("subject:");
2463
      if (this.subject == null) {
2464
        sb.append("null");
2465
      } else {
2466
        sb.append(this.subject);
2467
      }
2468
      first = false;
2469
      if (!first) sb.append(", ");
2470
      sb.append("body:");
2471
      if (this.body == null) {
2472
        sb.append("null");
2473
      } else {
2474
        sb.append(this.body);
2475
      }
2476
      first = false;
2477
      if (!first) sb.append(", ");
2478
      sb.append("source:");
2479
      if (this.source == null) {
2480
        sb.append("null");
2481
      } else {
2482
        sb.append(this.source);
2483
      }
2484
      first = false;
2485
      if (!first) sb.append(", ");
2486
      sb.append("emailType:");
2487
      if (this.emailType == null) {
2488
        sb.append("null");
2489
      } else {
2490
        sb.append(this.emailType);
2491
      }
2492
      first = false;
2493
      sb.append(")");
2494
      return sb.toString();
2495
    }
2496
 
3430 rajveer 2497
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 2498
      // check for required fields
2499
    }
2500
 
3430 rajveer 2501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2502
      try {
2503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2504
      } catch (org.apache.thrift.TException te) {
2505
        throw new java.io.IOException(te);
2506
      }
2507
    }
2508
 
2509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2510
      try {
2511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2512
      } catch (org.apache.thrift.TException te) {
2513
        throw new java.io.IOException(te);
2514
      }
2515
    }
2516
 
1395 varun.gupt 2517
  }
2518
 
3430 rajveer 2519
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
2520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 2521
 
3430 rajveer 2522
    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);
2523
    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 2524
 
3430 rajveer 2525
    private long success; // required
2526
    private HelperServiceException se; // required
1395 varun.gupt 2527
 
2528
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2529
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2530
      SUCCESS((short)0, "success"),
1395 varun.gupt 2531
      SE((short)1, "se");
2532
 
2533
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2534
 
2535
      static {
2536
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2537
          byName.put(field.getFieldName(), field);
2538
        }
2539
      }
2540
 
2541
      /**
2542
       * Find the _Fields constant that matches fieldId, or null if its not found.
2543
       */
2544
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2545
        switch(fieldId) {
2546
          case 0: // SUCCESS
2547
            return SUCCESS;
2548
          case 1: // SE
2549
            return SE;
2550
          default:
2551
            return null;
2552
        }
1395 varun.gupt 2553
      }
2554
 
2555
      /**
2556
       * Find the _Fields constant that matches fieldId, throwing an exception
2557
       * if it is not found.
2558
       */
2559
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2560
        _Fields fields = findByThriftId(fieldId);
2561
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2562
        return fields;
2563
      }
2564
 
2565
      /**
2566
       * Find the _Fields constant that matches name, or null if its not found.
2567
       */
2568
      public static _Fields findByName(String name) {
2569
        return byName.get(name);
2570
      }
2571
 
2572
      private final short _thriftId;
2573
      private final String _fieldName;
2574
 
2575
      _Fields(short thriftId, String fieldName) {
2576
        _thriftId = thriftId;
2577
        _fieldName = fieldName;
2578
      }
2579
 
2580
      public short getThriftFieldId() {
2581
        return _thriftId;
2582
      }
2583
 
2584
      public String getFieldName() {
2585
        return _fieldName;
2586
      }
2587
    }
2588
 
2589
    // isset id assignments
3206 mandeep.dh 2590
    private static final int __SUCCESS_ISSET_ID = 0;
2591
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 2592
 
3430 rajveer 2593
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2594
    static {
3430 rajveer 2595
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2596
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2597
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
2598
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2599
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
2600
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2601
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 2602
    }
2603
 
2604
    public saveUserEmailForSending_result() {
2605
    }
2606
 
2607
    public saveUserEmailForSending_result(
3206 mandeep.dh 2608
      long success,
1395 varun.gupt 2609
      HelperServiceException se)
2610
    {
2611
      this();
3206 mandeep.dh 2612
      this.success = success;
2613
      setSuccessIsSet(true);
1395 varun.gupt 2614
      this.se = se;
2615
    }
2616
 
2617
    /**
2618
     * Performs a deep copy on <i>other</i>.
2619
     */
2620
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 2621
      __isset_bit_vector.clear();
2622
      __isset_bit_vector.or(other.__isset_bit_vector);
2623
      this.success = other.success;
1395 varun.gupt 2624
      if (other.isSetSe()) {
2625
        this.se = new HelperServiceException(other.se);
2626
      }
2627
    }
2628
 
2629
    public saveUserEmailForSending_result deepCopy() {
2630
      return new saveUserEmailForSending_result(this);
2631
    }
2632
 
3430 rajveer 2633
    @Override
2634
    public void clear() {
2635
      setSuccessIsSet(false);
2636
      this.success = 0;
2637
      this.se = null;
1395 varun.gupt 2638
    }
2639
 
3206 mandeep.dh 2640
    public long getSuccess() {
2641
      return this.success;
2642
    }
2643
 
3430 rajveer 2644
    public void setSuccess(long success) {
3206 mandeep.dh 2645
      this.success = success;
2646
      setSuccessIsSet(true);
2647
    }
2648
 
2649
    public void unsetSuccess() {
2650
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2651
    }
2652
 
3430 rajveer 2653
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 2654
    public boolean isSetSuccess() {
2655
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2656
    }
2657
 
2658
    public void setSuccessIsSet(boolean value) {
2659
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
2660
    }
2661
 
1395 varun.gupt 2662
    public HelperServiceException getSe() {
2663
      return this.se;
2664
    }
2665
 
3430 rajveer 2666
    public void setSe(HelperServiceException se) {
1395 varun.gupt 2667
      this.se = se;
2668
    }
2669
 
2670
    public void unsetSe() {
2671
      this.se = null;
2672
    }
2673
 
3430 rajveer 2674
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2675
    public boolean isSetSe() {
2676
      return this.se != null;
2677
    }
2678
 
2679
    public void setSeIsSet(boolean value) {
2680
      if (!value) {
2681
        this.se = null;
2682
      }
2683
    }
2684
 
2685
    public void setFieldValue(_Fields field, Object value) {
2686
      switch (field) {
3206 mandeep.dh 2687
      case SUCCESS:
2688
        if (value == null) {
2689
          unsetSuccess();
2690
        } else {
2691
          setSuccess((Long)value);
2692
        }
2693
        break;
2694
 
1395 varun.gupt 2695
      case SE:
2696
        if (value == null) {
2697
          unsetSe();
2698
        } else {
2699
          setSe((HelperServiceException)value);
2700
        }
2701
        break;
2702
 
2703
      }
2704
    }
2705
 
2706
    public Object getFieldValue(_Fields field) {
2707
      switch (field) {
3206 mandeep.dh 2708
      case SUCCESS:
3430 rajveer 2709
        return Long.valueOf(getSuccess());
3206 mandeep.dh 2710
 
1395 varun.gupt 2711
      case SE:
2712
        return getSe();
2713
 
2714
      }
2715
      throw new IllegalStateException();
2716
    }
2717
 
3430 rajveer 2718
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2719
    public boolean isSet(_Fields field) {
2720
      if (field == null) {
2721
        throw new IllegalArgumentException();
2722
      }
1395 varun.gupt 2723
 
2724
      switch (field) {
3206 mandeep.dh 2725
      case SUCCESS:
2726
        return isSetSuccess();
1395 varun.gupt 2727
      case SE:
2728
        return isSetSe();
2729
      }
2730
      throw new IllegalStateException();
2731
    }
2732
 
2733
    @Override
2734
    public boolean equals(Object that) {
2735
      if (that == null)
2736
        return false;
2737
      if (that instanceof saveUserEmailForSending_result)
2738
        return this.equals((saveUserEmailForSending_result)that);
2739
      return false;
2740
    }
2741
 
2742
    public boolean equals(saveUserEmailForSending_result that) {
2743
      if (that == null)
2744
        return false;
2745
 
3206 mandeep.dh 2746
      boolean this_present_success = true;
2747
      boolean that_present_success = true;
2748
      if (this_present_success || that_present_success) {
2749
        if (!(this_present_success && that_present_success))
2750
          return false;
2751
        if (this.success != that.success)
2752
          return false;
2753
      }
2754
 
1395 varun.gupt 2755
      boolean this_present_se = true && this.isSetSe();
2756
      boolean that_present_se = true && that.isSetSe();
2757
      if (this_present_se || that_present_se) {
2758
        if (!(this_present_se && that_present_se))
2759
          return false;
2760
        if (!this.se.equals(that.se))
2761
          return false;
2762
      }
2763
 
2764
      return true;
2765
    }
2766
 
2767
    @Override
2768
    public int hashCode() {
2769
      return 0;
2770
    }
2771
 
2772
    public int compareTo(saveUserEmailForSending_result other) {
2773
      if (!getClass().equals(other.getClass())) {
2774
        return getClass().getName().compareTo(other.getClass().getName());
2775
      }
2776
 
2777
      int lastComparison = 0;
2778
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
2779
 
3430 rajveer 2780
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 2781
      if (lastComparison != 0) {
2782
        return lastComparison;
2783
      }
3430 rajveer 2784
      if (isSetSuccess()) {
2785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2786
        if (lastComparison != 0) {
2787
          return lastComparison;
2788
        }
3206 mandeep.dh 2789
      }
3430 rajveer 2790
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 2791
      if (lastComparison != 0) {
2792
        return lastComparison;
2793
      }
3430 rajveer 2794
      if (isSetSe()) {
2795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
2796
        if (lastComparison != 0) {
2797
          return lastComparison;
2798
        }
1395 varun.gupt 2799
      }
2800
      return 0;
2801
    }
2802
 
3430 rajveer 2803
    public _Fields fieldForId(int fieldId) {
2804
      return _Fields.findByThriftId(fieldId);
2805
    }
2806
 
2807
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2808
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 2809
      iprot.readStructBegin();
2810
      while (true)
2811
      {
2812
        field = iprot.readFieldBegin();
3430 rajveer 2813
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 2814
          break;
2815
        }
3430 rajveer 2816
        switch (field.id) {
2817
          case 0: // SUCCESS
2818
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2819
              this.success = iprot.readI64();
2820
              setSuccessIsSet(true);
2821
            } else { 
2822
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2823
            }
2824
            break;
2825
          case 1: // SE
2826
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2827
              this.se = new HelperServiceException();
2828
              this.se.read(iprot);
2829
            } else { 
2830
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2831
            }
2832
            break;
2833
          default:
2834
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 2835
        }
3430 rajveer 2836
        iprot.readFieldEnd();
1395 varun.gupt 2837
      }
2838
      iprot.readStructEnd();
2839
      validate();
2840
    }
2841
 
3430 rajveer 2842
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 2843
      oprot.writeStructBegin(STRUCT_DESC);
2844
 
3206 mandeep.dh 2845
      if (this.isSetSuccess()) {
2846
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2847
        oprot.writeI64(this.success);
2848
        oprot.writeFieldEnd();
2849
      } else if (this.isSetSe()) {
1395 varun.gupt 2850
        oprot.writeFieldBegin(SE_FIELD_DESC);
2851
        this.se.write(oprot);
2852
        oprot.writeFieldEnd();
2853
      }
2854
      oprot.writeFieldStop();
2855
      oprot.writeStructEnd();
2856
    }
2857
 
2858
    @Override
2859
    public String toString() {
2860
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
2861
      boolean first = true;
2862
 
3206 mandeep.dh 2863
      sb.append("success:");
2864
      sb.append(this.success);
2865
      first = false;
2866
      if (!first) sb.append(", ");
1395 varun.gupt 2867
      sb.append("se:");
2868
      if (this.se == null) {
2869
        sb.append("null");
2870
      } else {
2871
        sb.append(this.se);
2872
      }
2873
      first = false;
2874
      sb.append(")");
2875
      return sb.toString();
2876
    }
2877
 
3430 rajveer 2878
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 2879
      // check for required fields
2880
    }
2881
 
3430 rajveer 2882
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2883
      try {
2884
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2885
      } catch (org.apache.thrift.TException te) {
2886
        throw new java.io.IOException(te);
2887
      }
2888
    }
2889
 
2890
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2891
      try {
2892
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2893
      } catch (org.apache.thrift.TException te) {
2894
        throw new java.io.IOException(te);
2895
      }
2896
    }
2897
 
1395 varun.gupt 2898
  }
2899
 
3430 rajveer 2900
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
2901
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 2902
 
2903
 
2904
 
2905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 2907
;
1422 varun.gupt 2908
 
2909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2910
 
2911
      static {
2912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2913
          byName.put(field.getFieldName(), field);
2914
        }
2915
      }
2916
 
2917
      /**
2918
       * Find the _Fields constant that matches fieldId, or null if its not found.
2919
       */
2920
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2921
        switch(fieldId) {
2922
          default:
2923
            return null;
2924
        }
1422 varun.gupt 2925
      }
2926
 
2927
      /**
2928
       * Find the _Fields constant that matches fieldId, throwing an exception
2929
       * if it is not found.
2930
       */
2931
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2932
        _Fields fields = findByThriftId(fieldId);
2933
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2934
        return fields;
2935
      }
2936
 
2937
      /**
2938
       * Find the _Fields constant that matches name, or null if its not found.
2939
       */
2940
      public static _Fields findByName(String name) {
2941
        return byName.get(name);
2942
      }
2943
 
2944
      private final short _thriftId;
2945
      private final String _fieldName;
2946
 
2947
      _Fields(short thriftId, String fieldName) {
2948
        _thriftId = thriftId;
2949
        _fieldName = fieldName;
2950
      }
2951
 
2952
      public short getThriftFieldId() {
2953
        return _thriftId;
2954
      }
2955
 
2956
      public String getFieldName() {
2957
        return _fieldName;
2958
      }
2959
    }
3430 rajveer 2960
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 2961
    static {
3430 rajveer 2962
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 2965
    }
2966
 
2967
    public getEmailsToBeSent_args() {
2968
    }
2969
 
2970
    /**
2971
     * Performs a deep copy on <i>other</i>.
2972
     */
2973
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
2974
    }
2975
 
2976
    public getEmailsToBeSent_args deepCopy() {
2977
      return new getEmailsToBeSent_args(this);
2978
    }
2979
 
3430 rajveer 2980
    @Override
2981
    public void clear() {
1422 varun.gupt 2982
    }
2983
 
2984
    public void setFieldValue(_Fields field, Object value) {
2985
      switch (field) {
2986
      }
2987
    }
2988
 
2989
    public Object getFieldValue(_Fields field) {
2990
      switch (field) {
2991
      }
2992
      throw new IllegalStateException();
2993
    }
2994
 
3430 rajveer 2995
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2996
    public boolean isSet(_Fields field) {
2997
      if (field == null) {
2998
        throw new IllegalArgumentException();
2999
      }
1422 varun.gupt 3000
 
3001
      switch (field) {
3002
      }
3003
      throw new IllegalStateException();
3004
    }
3005
 
3006
    @Override
3007
    public boolean equals(Object that) {
3008
      if (that == null)
3009
        return false;
3010
      if (that instanceof getEmailsToBeSent_args)
3011
        return this.equals((getEmailsToBeSent_args)that);
3012
      return false;
3013
    }
3014
 
3015
    public boolean equals(getEmailsToBeSent_args that) {
3016
      if (that == null)
3017
        return false;
3018
 
3019
      return true;
3020
    }
3021
 
3022
    @Override
3023
    public int hashCode() {
3024
      return 0;
3025
    }
3026
 
3027
    public int compareTo(getEmailsToBeSent_args other) {
3028
      if (!getClass().equals(other.getClass())) {
3029
        return getClass().getName().compareTo(other.getClass().getName());
3030
      }
3031
 
3032
      int lastComparison = 0;
3033
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
3034
 
3035
      return 0;
3036
    }
3037
 
3430 rajveer 3038
    public _Fields fieldForId(int fieldId) {
3039
      return _Fields.findByThriftId(fieldId);
3040
    }
3041
 
3042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3043
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3044
      iprot.readStructBegin();
3045
      while (true)
3046
      {
3047
        field = iprot.readFieldBegin();
3430 rajveer 3048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3049
          break;
3050
        }
3430 rajveer 3051
        switch (field.id) {
3052
          default:
3053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3054
        }
3430 rajveer 3055
        iprot.readFieldEnd();
1422 varun.gupt 3056
      }
3057
      iprot.readStructEnd();
3058
      validate();
3059
    }
3060
 
3430 rajveer 3061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3062
      validate();
3063
 
3064
      oprot.writeStructBegin(STRUCT_DESC);
3065
      oprot.writeFieldStop();
3066
      oprot.writeStructEnd();
3067
    }
3068
 
3069
    @Override
3070
    public String toString() {
3071
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
3072
      boolean first = true;
3073
 
3074
      sb.append(")");
3075
      return sb.toString();
3076
    }
3077
 
3430 rajveer 3078
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3079
      // check for required fields
3080
    }
3081
 
3430 rajveer 3082
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3083
      try {
3084
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3085
      } catch (org.apache.thrift.TException te) {
3086
        throw new java.io.IOException(te);
3087
      }
3088
    }
3089
 
3090
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3091
      try {
3092
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3093
      } catch (org.apache.thrift.TException te) {
3094
        throw new java.io.IOException(te);
3095
      }
3096
    }
3097
 
1422 varun.gupt 3098
  }
3099
 
3430 rajveer 3100
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
3101
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 3102
 
3430 rajveer 3103
    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);
3104
    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 3105
 
3430 rajveer 3106
    private List<UserEmail> success; // required
3107
    private HelperServiceException se; // required
1422 varun.gupt 3108
 
3109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3111
      SUCCESS((short)0, "success"),
3112
      SE((short)1, "se");
3113
 
3114
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3115
 
3116
      static {
3117
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3118
          byName.put(field.getFieldName(), field);
3119
        }
3120
      }
3121
 
3122
      /**
3123
       * Find the _Fields constant that matches fieldId, or null if its not found.
3124
       */
3125
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3126
        switch(fieldId) {
3127
          case 0: // SUCCESS
3128
            return SUCCESS;
3129
          case 1: // SE
3130
            return SE;
3131
          default:
3132
            return null;
3133
        }
1422 varun.gupt 3134
      }
3135
 
3136
      /**
3137
       * Find the _Fields constant that matches fieldId, throwing an exception
3138
       * if it is not found.
3139
       */
3140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3141
        _Fields fields = findByThriftId(fieldId);
3142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3143
        return fields;
3144
      }
3145
 
3146
      /**
3147
       * Find the _Fields constant that matches name, or null if its not found.
3148
       */
3149
      public static _Fields findByName(String name) {
3150
        return byName.get(name);
3151
      }
3152
 
3153
      private final short _thriftId;
3154
      private final String _fieldName;
3155
 
3156
      _Fields(short thriftId, String fieldName) {
3157
        _thriftId = thriftId;
3158
        _fieldName = fieldName;
3159
      }
3160
 
3161
      public short getThriftFieldId() {
3162
        return _thriftId;
3163
      }
3164
 
3165
      public String getFieldName() {
3166
        return _fieldName;
3167
      }
3168
    }
3169
 
3170
    // isset id assignments
3171
 
3430 rajveer 3172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3173
    static {
3430 rajveer 3174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3175
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3176
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3177
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
3178
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3179
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 3182
    }
3183
 
3184
    public getEmailsToBeSent_result() {
3185
    }
3186
 
3187
    public getEmailsToBeSent_result(
3188
      List<UserEmail> success,
3189
      HelperServiceException se)
3190
    {
3191
      this();
3192
      this.success = success;
3193
      this.se = se;
3194
    }
3195
 
3196
    /**
3197
     * Performs a deep copy on <i>other</i>.
3198
     */
3199
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
3200
      if (other.isSetSuccess()) {
3201
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
3202
        for (UserEmail other_element : other.success) {
3203
          __this__success.add(new UserEmail(other_element));
3204
        }
3205
        this.success = __this__success;
3206
      }
3207
      if (other.isSetSe()) {
3208
        this.se = new HelperServiceException(other.se);
3209
      }
3210
    }
3211
 
3212
    public getEmailsToBeSent_result deepCopy() {
3213
      return new getEmailsToBeSent_result(this);
3214
    }
3215
 
3430 rajveer 3216
    @Override
3217
    public void clear() {
3218
      this.success = null;
3219
      this.se = null;
1422 varun.gupt 3220
    }
3221
 
3222
    public int getSuccessSize() {
3223
      return (this.success == null) ? 0 : this.success.size();
3224
    }
3225
 
3226
    public java.util.Iterator<UserEmail> getSuccessIterator() {
3227
      return (this.success == null) ? null : this.success.iterator();
3228
    }
3229
 
3230
    public void addToSuccess(UserEmail elem) {
3231
      if (this.success == null) {
3232
        this.success = new ArrayList<UserEmail>();
3233
      }
3234
      this.success.add(elem);
3235
    }
3236
 
3237
    public List<UserEmail> getSuccess() {
3238
      return this.success;
3239
    }
3240
 
3430 rajveer 3241
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 3242
      this.success = success;
3243
    }
3244
 
3245
    public void unsetSuccess() {
3246
      this.success = null;
3247
    }
3248
 
3430 rajveer 3249
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3250
    public boolean isSetSuccess() {
3251
      return this.success != null;
3252
    }
3253
 
3254
    public void setSuccessIsSet(boolean value) {
3255
      if (!value) {
3256
        this.success = null;
3257
      }
3258
    }
3259
 
3260
    public HelperServiceException getSe() {
3261
      return this.se;
3262
    }
3263
 
3430 rajveer 3264
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3265
      this.se = se;
3266
    }
3267
 
3268
    public void unsetSe() {
3269
      this.se = null;
3270
    }
3271
 
3430 rajveer 3272
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3273
    public boolean isSetSe() {
3274
      return this.se != null;
3275
    }
3276
 
3277
    public void setSeIsSet(boolean value) {
3278
      if (!value) {
3279
        this.se = null;
3280
      }
3281
    }
3282
 
3283
    public void setFieldValue(_Fields field, Object value) {
3284
      switch (field) {
3285
      case SUCCESS:
3286
        if (value == null) {
3287
          unsetSuccess();
3288
        } else {
3289
          setSuccess((List<UserEmail>)value);
3290
        }
3291
        break;
3292
 
3293
      case SE:
3294
        if (value == null) {
3295
          unsetSe();
3296
        } else {
3297
          setSe((HelperServiceException)value);
3298
        }
3299
        break;
3300
 
3301
      }
3302
    }
3303
 
3304
    public Object getFieldValue(_Fields field) {
3305
      switch (field) {
3306
      case SUCCESS:
3307
        return getSuccess();
3308
 
3309
      case SE:
3310
        return getSe();
3311
 
3312
      }
3313
      throw new IllegalStateException();
3314
    }
3315
 
3430 rajveer 3316
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3317
    public boolean isSet(_Fields field) {
3318
      if (field == null) {
3319
        throw new IllegalArgumentException();
3320
      }
1422 varun.gupt 3321
 
3322
      switch (field) {
3323
      case SUCCESS:
3324
        return isSetSuccess();
3325
      case SE:
3326
        return isSetSe();
3327
      }
3328
      throw new IllegalStateException();
3329
    }
3330
 
3331
    @Override
3332
    public boolean equals(Object that) {
3333
      if (that == null)
3334
        return false;
3335
      if (that instanceof getEmailsToBeSent_result)
3336
        return this.equals((getEmailsToBeSent_result)that);
3337
      return false;
3338
    }
3339
 
3340
    public boolean equals(getEmailsToBeSent_result that) {
3341
      if (that == null)
3342
        return false;
3343
 
3344
      boolean this_present_success = true && this.isSetSuccess();
3345
      boolean that_present_success = true && that.isSetSuccess();
3346
      if (this_present_success || that_present_success) {
3347
        if (!(this_present_success && that_present_success))
3348
          return false;
3349
        if (!this.success.equals(that.success))
3350
          return false;
3351
      }
3352
 
3353
      boolean this_present_se = true && this.isSetSe();
3354
      boolean that_present_se = true && that.isSetSe();
3355
      if (this_present_se || that_present_se) {
3356
        if (!(this_present_se && that_present_se))
3357
          return false;
3358
        if (!this.se.equals(that.se))
3359
          return false;
3360
      }
3361
 
3362
      return true;
3363
    }
3364
 
3365
    @Override
3366
    public int hashCode() {
3367
      return 0;
3368
    }
3369
 
3370
    public int compareTo(getEmailsToBeSent_result other) {
3371
      if (!getClass().equals(other.getClass())) {
3372
        return getClass().getName().compareTo(other.getClass().getName());
3373
      }
3374
 
3375
      int lastComparison = 0;
3376
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
3377
 
3430 rajveer 3378
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 3379
      if (lastComparison != 0) {
3380
        return lastComparison;
3381
      }
3430 rajveer 3382
      if (isSetSuccess()) {
3383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3384
        if (lastComparison != 0) {
3385
          return lastComparison;
3386
        }
1422 varun.gupt 3387
      }
3430 rajveer 3388
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 3389
      if (lastComparison != 0) {
3390
        return lastComparison;
3391
      }
3430 rajveer 3392
      if (isSetSe()) {
3393
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3394
        if (lastComparison != 0) {
3395
          return lastComparison;
3396
        }
1422 varun.gupt 3397
      }
3398
      return 0;
3399
    }
3400
 
3430 rajveer 3401
    public _Fields fieldForId(int fieldId) {
3402
      return _Fields.findByThriftId(fieldId);
3403
    }
3404
 
3405
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3406
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3407
      iprot.readStructBegin();
3408
      while (true)
3409
      {
3410
        field = iprot.readFieldBegin();
3430 rajveer 3411
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3412
          break;
3413
        }
3430 rajveer 3414
        switch (field.id) {
3415
          case 0: // SUCCESS
3416
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3417
              {
3418
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
3419
                this.success = new ArrayList<UserEmail>(_list8.size);
3420
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1422 varun.gupt 3421
                {
3430 rajveer 3422
                  UserEmail _elem10; // required
3423
                  _elem10 = new UserEmail();
3424
                  _elem10.read(iprot);
3425
                  this.success.add(_elem10);
1422 varun.gupt 3426
                }
3430 rajveer 3427
                iprot.readListEnd();
1422 varun.gupt 3428
              }
3430 rajveer 3429
            } else { 
3430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3431
            }
3432
            break;
3433
          case 1: // SE
3434
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3435
              this.se = new HelperServiceException();
3436
              this.se.read(iprot);
3437
            } else { 
3438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3439
            }
3440
            break;
3441
          default:
3442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3443
        }
3430 rajveer 3444
        iprot.readFieldEnd();
1422 varun.gupt 3445
      }
3446
      iprot.readStructEnd();
3447
      validate();
3448
    }
3449
 
3430 rajveer 3450
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3451
      oprot.writeStructBegin(STRUCT_DESC);
3452
 
3453
      if (this.isSetSuccess()) {
3454
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3455
        {
3430 rajveer 3456
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1422 varun.gupt 3457
          for (UserEmail _iter11 : this.success)
3458
          {
3459
            _iter11.write(oprot);
3460
          }
3461
          oprot.writeListEnd();
3462
        }
3463
        oprot.writeFieldEnd();
3464
      } else if (this.isSetSe()) {
3465
        oprot.writeFieldBegin(SE_FIELD_DESC);
3466
        this.se.write(oprot);
3467
        oprot.writeFieldEnd();
3468
      }
3469
      oprot.writeFieldStop();
3470
      oprot.writeStructEnd();
3471
    }
3472
 
3473
    @Override
3474
    public String toString() {
3475
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
3476
      boolean first = true;
3477
 
3478
      sb.append("success:");
3479
      if (this.success == null) {
3480
        sb.append("null");
3481
      } else {
3482
        sb.append(this.success);
3483
      }
3484
      first = false;
3485
      if (!first) sb.append(", ");
3486
      sb.append("se:");
3487
      if (this.se == null) {
3488
        sb.append("null");
3489
      } else {
3490
        sb.append(this.se);
3491
      }
3492
      first = false;
3493
      sb.append(")");
3494
      return sb.toString();
3495
    }
3496
 
3430 rajveer 3497
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3498
      // check for required fields
3499
    }
3500
 
3430 rajveer 3501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3502
      try {
3503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3504
      } catch (org.apache.thrift.TException te) {
3505
        throw new java.io.IOException(te);
3506
      }
3507
    }
3508
 
3509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3510
      try {
3511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3512
      } catch (org.apache.thrift.TException te) {
3513
        throw new java.io.IOException(te);
3514
      }
3515
    }
3516
 
1422 varun.gupt 3517
  }
3518
 
3430 rajveer 3519
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
3520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 3521
 
3430 rajveer 3522
    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 3523
 
3430 rajveer 3524
    private long emailId; // required
1422 varun.gupt 3525
 
3526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3528
      EMAIL_ID((short)1, "emailId");
3529
 
3530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3531
 
3532
      static {
3533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3534
          byName.put(field.getFieldName(), field);
3535
        }
3536
      }
3537
 
3538
      /**
3539
       * Find the _Fields constant that matches fieldId, or null if its not found.
3540
       */
3541
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3542
        switch(fieldId) {
3543
          case 1: // EMAIL_ID
3544
            return EMAIL_ID;
3545
          default:
3546
            return null;
3547
        }
1422 varun.gupt 3548
      }
3549
 
3550
      /**
3551
       * Find the _Fields constant that matches fieldId, throwing an exception
3552
       * if it is not found.
3553
       */
3554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3555
        _Fields fields = findByThriftId(fieldId);
3556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3557
        return fields;
3558
      }
3559
 
3560
      /**
3561
       * Find the _Fields constant that matches name, or null if its not found.
3562
       */
3563
      public static _Fields findByName(String name) {
3564
        return byName.get(name);
3565
      }
3566
 
3567
      private final short _thriftId;
3568
      private final String _fieldName;
3569
 
3570
      _Fields(short thriftId, String fieldName) {
3571
        _thriftId = thriftId;
3572
        _fieldName = fieldName;
3573
      }
3574
 
3575
      public short getThriftFieldId() {
3576
        return _thriftId;
3577
      }
3578
 
3579
      public String getFieldName() {
3580
        return _fieldName;
3581
      }
3582
    }
3583
 
3584
    // isset id assignments
3585
    private static final int __EMAILID_ISSET_ID = 0;
3586
    private BitSet __isset_bit_vector = new BitSet(1);
3587
 
3430 rajveer 3588
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3589
    static {
3430 rajveer 3590
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3591
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3592
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3593
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3594
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 3595
    }
3596
 
3597
    public markEmailAsSent_args() {
3598
    }
3599
 
3600
    public markEmailAsSent_args(
3601
      long emailId)
3602
    {
3603
      this();
3604
      this.emailId = emailId;
3605
      setEmailIdIsSet(true);
3606
    }
3607
 
3608
    /**
3609
     * Performs a deep copy on <i>other</i>.
3610
     */
3611
    public markEmailAsSent_args(markEmailAsSent_args other) {
3612
      __isset_bit_vector.clear();
3613
      __isset_bit_vector.or(other.__isset_bit_vector);
3614
      this.emailId = other.emailId;
3615
    }
3616
 
3617
    public markEmailAsSent_args deepCopy() {
3618
      return new markEmailAsSent_args(this);
3619
    }
3620
 
3430 rajveer 3621
    @Override
3622
    public void clear() {
3623
      setEmailIdIsSet(false);
3624
      this.emailId = 0;
1422 varun.gupt 3625
    }
3626
 
3627
    public long getEmailId() {
3628
      return this.emailId;
3629
    }
3630
 
3430 rajveer 3631
    public void setEmailId(long emailId) {
1422 varun.gupt 3632
      this.emailId = emailId;
3633
      setEmailIdIsSet(true);
3634
    }
3635
 
3636
    public void unsetEmailId() {
3637
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
3638
    }
3639
 
3430 rajveer 3640
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3641
    public boolean isSetEmailId() {
3642
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
3643
    }
3644
 
3645
    public void setEmailIdIsSet(boolean value) {
3646
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
3647
    }
3648
 
3649
    public void setFieldValue(_Fields field, Object value) {
3650
      switch (field) {
3651
      case EMAIL_ID:
3652
        if (value == null) {
3653
          unsetEmailId();
3654
        } else {
3655
          setEmailId((Long)value);
3656
        }
3657
        break;
3658
 
3659
      }
3660
    }
3661
 
3662
    public Object getFieldValue(_Fields field) {
3663
      switch (field) {
3664
      case EMAIL_ID:
3430 rajveer 3665
        return Long.valueOf(getEmailId());
1422 varun.gupt 3666
 
3667
      }
3668
      throw new IllegalStateException();
3669
    }
3670
 
3430 rajveer 3671
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3672
    public boolean isSet(_Fields field) {
3673
      if (field == null) {
3674
        throw new IllegalArgumentException();
3675
      }
1422 varun.gupt 3676
 
3677
      switch (field) {
3678
      case EMAIL_ID:
3679
        return isSetEmailId();
3680
      }
3681
      throw new IllegalStateException();
3682
    }
3683
 
3684
    @Override
3685
    public boolean equals(Object that) {
3686
      if (that == null)
3687
        return false;
3688
      if (that instanceof markEmailAsSent_args)
3689
        return this.equals((markEmailAsSent_args)that);
3690
      return false;
3691
    }
3692
 
3693
    public boolean equals(markEmailAsSent_args that) {
3694
      if (that == null)
3695
        return false;
3696
 
3697
      boolean this_present_emailId = true;
3698
      boolean that_present_emailId = true;
3699
      if (this_present_emailId || that_present_emailId) {
3700
        if (!(this_present_emailId && that_present_emailId))
3701
          return false;
3702
        if (this.emailId != that.emailId)
3703
          return false;
3704
      }
3705
 
3706
      return true;
3707
    }
3708
 
3709
    @Override
3710
    public int hashCode() {
3711
      return 0;
3712
    }
3713
 
3714
    public int compareTo(markEmailAsSent_args other) {
3715
      if (!getClass().equals(other.getClass())) {
3716
        return getClass().getName().compareTo(other.getClass().getName());
3717
      }
3718
 
3719
      int lastComparison = 0;
3720
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
3721
 
3430 rajveer 3722
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 3723
      if (lastComparison != 0) {
3724
        return lastComparison;
3725
      }
3430 rajveer 3726
      if (isSetEmailId()) {
3727
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
3728
        if (lastComparison != 0) {
3729
          return lastComparison;
3730
        }
1422 varun.gupt 3731
      }
3732
      return 0;
3733
    }
3734
 
3430 rajveer 3735
    public _Fields fieldForId(int fieldId) {
3736
      return _Fields.findByThriftId(fieldId);
3737
    }
3738
 
3739
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3740
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 3741
      iprot.readStructBegin();
3742
      while (true)
3743
      {
3744
        field = iprot.readFieldBegin();
3430 rajveer 3745
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 3746
          break;
3747
        }
3430 rajveer 3748
        switch (field.id) {
3749
          case 1: // EMAIL_ID
3750
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3751
              this.emailId = iprot.readI64();
3752
              setEmailIdIsSet(true);
3753
            } else { 
3754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3755
            }
3756
            break;
3757
          default:
3758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 3759
        }
3430 rajveer 3760
        iprot.readFieldEnd();
1422 varun.gupt 3761
      }
3762
      iprot.readStructEnd();
3763
      validate();
3764
    }
3765
 
3430 rajveer 3766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 3767
      validate();
3768
 
3769
      oprot.writeStructBegin(STRUCT_DESC);
3770
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
3771
      oprot.writeI64(this.emailId);
3772
      oprot.writeFieldEnd();
3773
      oprot.writeFieldStop();
3774
      oprot.writeStructEnd();
3775
    }
3776
 
3777
    @Override
3778
    public String toString() {
3779
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
3780
      boolean first = true;
3781
 
3782
      sb.append("emailId:");
3783
      sb.append(this.emailId);
3784
      first = false;
3785
      sb.append(")");
3786
      return sb.toString();
3787
    }
3788
 
3430 rajveer 3789
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 3790
      // check for required fields
3791
    }
3792
 
3430 rajveer 3793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3794
      try {
3795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3796
      } catch (org.apache.thrift.TException te) {
3797
        throw new java.io.IOException(te);
3798
      }
3799
    }
3800
 
3801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3802
      try {
3803
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
3804
        __isset_bit_vector = new BitSet(1);
3805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3806
      } catch (org.apache.thrift.TException te) {
3807
        throw new java.io.IOException(te);
3808
      }
3809
    }
3810
 
1422 varun.gupt 3811
  }
3812
 
3430 rajveer 3813
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
3814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 3815
 
3430 rajveer 3816
    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 3817
 
3430 rajveer 3818
    private HelperServiceException se; // required
1422 varun.gupt 3819
 
3820
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3821
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 3822
      SE((short)1, "se");
3823
 
3824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3825
 
3826
      static {
3827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3828
          byName.put(field.getFieldName(), field);
3829
        }
3830
      }
3831
 
3832
      /**
3833
       * Find the _Fields constant that matches fieldId, or null if its not found.
3834
       */
3835
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3836
        switch(fieldId) {
3837
          case 1: // SE
3838
            return SE;
3839
          default:
3840
            return null;
3841
        }
1422 varun.gupt 3842
      }
3843
 
3844
      /**
3845
       * Find the _Fields constant that matches fieldId, throwing an exception
3846
       * if it is not found.
3847
       */
3848
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3849
        _Fields fields = findByThriftId(fieldId);
3850
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3851
        return fields;
3852
      }
3853
 
3854
      /**
3855
       * Find the _Fields constant that matches name, or null if its not found.
3856
       */
3857
      public static _Fields findByName(String name) {
3858
        return byName.get(name);
3859
      }
3860
 
3861
      private final short _thriftId;
3862
      private final String _fieldName;
3863
 
3864
      _Fields(short thriftId, String fieldName) {
3865
        _thriftId = thriftId;
3866
        _fieldName = fieldName;
3867
      }
3868
 
3869
      public short getThriftFieldId() {
3870
        return _thriftId;
3871
      }
3872
 
3873
      public String getFieldName() {
3874
        return _fieldName;
3875
      }
3876
    }
3877
 
3878
    // isset id assignments
3879
 
3430 rajveer 3880
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 3881
    static {
3430 rajveer 3882
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3883
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 3887
    }
3888
 
3889
    public markEmailAsSent_result() {
3890
    }
3891
 
3892
    public markEmailAsSent_result(
3893
      HelperServiceException se)
3894
    {
3895
      this();
3896
      this.se = se;
3897
    }
3898
 
3899
    /**
3900
     * Performs a deep copy on <i>other</i>.
3901
     */
3902
    public markEmailAsSent_result(markEmailAsSent_result other) {
3903
      if (other.isSetSe()) {
3904
        this.se = new HelperServiceException(other.se);
3905
      }
3906
    }
3907
 
3908
    public markEmailAsSent_result deepCopy() {
3909
      return new markEmailAsSent_result(this);
3910
    }
3911
 
3430 rajveer 3912
    @Override
3913
    public void clear() {
3914
      this.se = null;
1422 varun.gupt 3915
    }
3916
 
3917
    public HelperServiceException getSe() {
3918
      return this.se;
3919
    }
3920
 
3430 rajveer 3921
    public void setSe(HelperServiceException se) {
1422 varun.gupt 3922
      this.se = se;
3923
    }
3924
 
3925
    public void unsetSe() {
3926
      this.se = null;
3927
    }
3928
 
3430 rajveer 3929
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 3930
    public boolean isSetSe() {
3931
      return this.se != null;
3932
    }
3933
 
3934
    public void setSeIsSet(boolean value) {
3935
      if (!value) {
3936
        this.se = null;
3937
      }
3938
    }
3939
 
3940
    public void setFieldValue(_Fields field, Object value) {
3941
      switch (field) {
3942
      case SE:
3943
        if (value == null) {
3944
          unsetSe();
3945
        } else {
3946
          setSe((HelperServiceException)value);
3947
        }
3948
        break;
3949
 
3950
      }
3951
    }
3952
 
3953
    public Object getFieldValue(_Fields field) {
3954
      switch (field) {
3955
      case SE:
3956
        return getSe();
3957
 
3958
      }
3959
      throw new IllegalStateException();
3960
    }
3961
 
3430 rajveer 3962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3963
    public boolean isSet(_Fields field) {
3964
      if (field == null) {
3965
        throw new IllegalArgumentException();
3966
      }
1422 varun.gupt 3967
 
3968
      switch (field) {
3969
      case SE:
3970
        return isSetSe();
3971
      }
3972
      throw new IllegalStateException();
3973
    }
3974
 
3975
    @Override
3976
    public boolean equals(Object that) {
3977
      if (that == null)
3978
        return false;
3979
      if (that instanceof markEmailAsSent_result)
3980
        return this.equals((markEmailAsSent_result)that);
3981
      return false;
3982
    }
3983
 
3984
    public boolean equals(markEmailAsSent_result that) {
3985
      if (that == null)
3986
        return false;
3987
 
3988
      boolean this_present_se = true && this.isSetSe();
3989
      boolean that_present_se = true && that.isSetSe();
3990
      if (this_present_se || that_present_se) {
3991
        if (!(this_present_se && that_present_se))
3992
          return false;
3993
        if (!this.se.equals(that.se))
3994
          return false;
3995
      }
3996
 
3997
      return true;
3998
    }
3999
 
4000
    @Override
4001
    public int hashCode() {
4002
      return 0;
4003
    }
4004
 
4005
    public int compareTo(markEmailAsSent_result other) {
4006
      if (!getClass().equals(other.getClass())) {
4007
        return getClass().getName().compareTo(other.getClass().getName());
4008
      }
4009
 
4010
      int lastComparison = 0;
4011
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
4012
 
3430 rajveer 4013
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4014
      if (lastComparison != 0) {
4015
        return lastComparison;
4016
      }
3430 rajveer 4017
      if (isSetSe()) {
4018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4019
        if (lastComparison != 0) {
4020
          return lastComparison;
4021
        }
1422 varun.gupt 4022
      }
4023
      return 0;
4024
    }
4025
 
3430 rajveer 4026
    public _Fields fieldForId(int fieldId) {
4027
      return _Fields.findByThriftId(fieldId);
4028
    }
4029
 
4030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4031
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4032
      iprot.readStructBegin();
4033
      while (true)
4034
      {
4035
        field = iprot.readFieldBegin();
3430 rajveer 4036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4037
          break;
4038
        }
3430 rajveer 4039
        switch (field.id) {
4040
          case 1: // SE
4041
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4042
              this.se = new HelperServiceException();
4043
              this.se.read(iprot);
4044
            } else { 
4045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4046
            }
4047
            break;
4048
          default:
4049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4050
        }
3430 rajveer 4051
        iprot.readFieldEnd();
1422 varun.gupt 4052
      }
4053
      iprot.readStructEnd();
4054
      validate();
4055
    }
4056
 
3430 rajveer 4057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4058
      oprot.writeStructBegin(STRUCT_DESC);
4059
 
4060
      if (this.isSetSe()) {
4061
        oprot.writeFieldBegin(SE_FIELD_DESC);
4062
        this.se.write(oprot);
4063
        oprot.writeFieldEnd();
4064
      }
4065
      oprot.writeFieldStop();
4066
      oprot.writeStructEnd();
4067
    }
4068
 
4069
    @Override
4070
    public String toString() {
4071
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
4072
      boolean first = true;
4073
 
4074
      sb.append("se:");
4075
      if (this.se == null) {
4076
        sb.append("null");
4077
      } else {
4078
        sb.append(this.se);
4079
      }
4080
      first = false;
4081
      sb.append(")");
4082
      return sb.toString();
4083
    }
4084
 
3430 rajveer 4085
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4086
      // check for required fields
4087
    }
4088
 
3430 rajveer 4089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4090
      try {
4091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4092
      } catch (org.apache.thrift.TException te) {
4093
        throw new java.io.IOException(te);
4094
      }
4095
    }
4096
 
4097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4098
      try {
4099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4100
      } catch (org.apache.thrift.TException te) {
4101
        throw new java.io.IOException(te);
4102
      }
4103
    }
4104
 
1422 varun.gupt 4105
  }
4106
 
3430 rajveer 4107
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
4108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 4109
 
3430 rajveer 4110
    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 4111
 
3430 rajveer 4112
    private Mail mail; // required
352 ashish 4113
 
4114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4116
      MAIL((short)1, "mail");
4117
 
4118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4119
 
4120
      static {
4121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4122
          byName.put(field.getFieldName(), field);
4123
        }
4124
      }
4125
 
4126
      /**
4127
       * Find the _Fields constant that matches fieldId, or null if its not found.
4128
       */
4129
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4130
        switch(fieldId) {
4131
          case 1: // MAIL
4132
            return MAIL;
4133
          default:
4134
            return null;
4135
        }
352 ashish 4136
      }
4137
 
4138
      /**
4139
       * Find the _Fields constant that matches fieldId, throwing an exception
4140
       * if it is not found.
4141
       */
4142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4143
        _Fields fields = findByThriftId(fieldId);
4144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4145
        return fields;
4146
      }
4147
 
4148
      /**
4149
       * Find the _Fields constant that matches name, or null if its not found.
4150
       */
4151
      public static _Fields findByName(String name) {
4152
        return byName.get(name);
4153
      }
4154
 
4155
      private final short _thriftId;
4156
      private final String _fieldName;
4157
 
4158
      _Fields(short thriftId, String fieldName) {
4159
        _thriftId = thriftId;
4160
        _fieldName = fieldName;
4161
      }
4162
 
4163
      public short getThriftFieldId() {
4164
        return _thriftId;
4165
      }
4166
 
4167
      public String getFieldName() {
4168
        return _fieldName;
4169
      }
4170
    }
4171
 
4172
    // isset id assignments
4173
 
3430 rajveer 4174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4175
    static {
3430 rajveer 4176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4177
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4178
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
4179
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4180
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 4181
    }
4182
 
4183
    public sendMail_args() {
4184
    }
4185
 
4186
    public sendMail_args(
4187
      Mail mail)
4188
    {
4189
      this();
4190
      this.mail = mail;
4191
    }
4192
 
4193
    /**
4194
     * Performs a deep copy on <i>other</i>.
4195
     */
4196
    public sendMail_args(sendMail_args other) {
4197
      if (other.isSetMail()) {
4198
        this.mail = new Mail(other.mail);
4199
      }
4200
    }
4201
 
4202
    public sendMail_args deepCopy() {
4203
      return new sendMail_args(this);
4204
    }
4205
 
3430 rajveer 4206
    @Override
4207
    public void clear() {
4208
      this.mail = null;
352 ashish 4209
    }
4210
 
4211
    public Mail getMail() {
4212
      return this.mail;
4213
    }
4214
 
3430 rajveer 4215
    public void setMail(Mail mail) {
352 ashish 4216
      this.mail = mail;
4217
    }
4218
 
4219
    public void unsetMail() {
4220
      this.mail = null;
4221
    }
4222
 
3430 rajveer 4223
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 4224
    public boolean isSetMail() {
4225
      return this.mail != null;
4226
    }
4227
 
4228
    public void setMailIsSet(boolean value) {
4229
      if (!value) {
4230
        this.mail = null;
4231
      }
4232
    }
4233
 
4234
    public void setFieldValue(_Fields field, Object value) {
4235
      switch (field) {
4236
      case MAIL:
4237
        if (value == null) {
4238
          unsetMail();
4239
        } else {
4240
          setMail((Mail)value);
4241
        }
4242
        break;
4243
 
4244
      }
4245
    }
4246
 
4247
    public Object getFieldValue(_Fields field) {
4248
      switch (field) {
4249
      case MAIL:
4250
        return getMail();
4251
 
4252
      }
4253
      throw new IllegalStateException();
4254
    }
4255
 
3430 rajveer 4256
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4257
    public boolean isSet(_Fields field) {
4258
      if (field == null) {
4259
        throw new IllegalArgumentException();
4260
      }
352 ashish 4261
 
4262
      switch (field) {
4263
      case MAIL:
4264
        return isSetMail();
4265
      }
4266
      throw new IllegalStateException();
4267
    }
4268
 
4269
    @Override
4270
    public boolean equals(Object that) {
4271
      if (that == null)
4272
        return false;
4273
      if (that instanceof sendMail_args)
4274
        return this.equals((sendMail_args)that);
4275
      return false;
4276
    }
4277
 
4278
    public boolean equals(sendMail_args that) {
4279
      if (that == null)
4280
        return false;
4281
 
4282
      boolean this_present_mail = true && this.isSetMail();
4283
      boolean that_present_mail = true && that.isSetMail();
4284
      if (this_present_mail || that_present_mail) {
4285
        if (!(this_present_mail && that_present_mail))
4286
          return false;
4287
        if (!this.mail.equals(that.mail))
4288
          return false;
4289
      }
4290
 
4291
      return true;
4292
    }
4293
 
4294
    @Override
4295
    public int hashCode() {
4296
      return 0;
4297
    }
4298
 
4299
    public int compareTo(sendMail_args other) {
4300
      if (!getClass().equals(other.getClass())) {
4301
        return getClass().getName().compareTo(other.getClass().getName());
4302
      }
4303
 
4304
      int lastComparison = 0;
4305
      sendMail_args typedOther = (sendMail_args)other;
4306
 
3430 rajveer 4307
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 4308
      if (lastComparison != 0) {
4309
        return lastComparison;
4310
      }
3430 rajveer 4311
      if (isSetMail()) {
4312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
4313
        if (lastComparison != 0) {
4314
          return lastComparison;
4315
        }
352 ashish 4316
      }
4317
      return 0;
4318
    }
4319
 
3430 rajveer 4320
    public _Fields fieldForId(int fieldId) {
4321
      return _Fields.findByThriftId(fieldId);
4322
    }
4323
 
4324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4325
      org.apache.thrift.protocol.TField field;
352 ashish 4326
      iprot.readStructBegin();
4327
      while (true)
4328
      {
4329
        field = iprot.readFieldBegin();
3430 rajveer 4330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4331
          break;
4332
        }
3430 rajveer 4333
        switch (field.id) {
4334
          case 1: // MAIL
4335
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4336
              this.mail = new Mail();
4337
              this.mail.read(iprot);
4338
            } else { 
4339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4340
            }
4341
            break;
4342
          default:
4343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4344
        }
3430 rajveer 4345
        iprot.readFieldEnd();
352 ashish 4346
      }
4347
      iprot.readStructEnd();
4348
      validate();
4349
    }
4350
 
3430 rajveer 4351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4352
      validate();
4353
 
4354
      oprot.writeStructBegin(STRUCT_DESC);
4355
      if (this.mail != null) {
4356
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4357
        this.mail.write(oprot);
4358
        oprot.writeFieldEnd();
4359
      }
4360
      oprot.writeFieldStop();
4361
      oprot.writeStructEnd();
4362
    }
4363
 
4364
    @Override
4365
    public String toString() {
4366
      StringBuilder sb = new StringBuilder("sendMail_args(");
4367
      boolean first = true;
4368
 
4369
      sb.append("mail:");
4370
      if (this.mail == null) {
4371
        sb.append("null");
4372
      } else {
4373
        sb.append(this.mail);
4374
      }
4375
      first = false;
4376
      sb.append(")");
4377
      return sb.toString();
4378
    }
4379
 
3430 rajveer 4380
    public void validate() throws org.apache.thrift.TException {
352 ashish 4381
      // check for required fields
4382
    }
4383
 
3430 rajveer 4384
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4385
      try {
4386
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4387
      } catch (org.apache.thrift.TException te) {
4388
        throw new java.io.IOException(te);
4389
      }
4390
    }
4391
 
4392
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4393
      try {
4394
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4395
      } catch (org.apache.thrift.TException te) {
4396
        throw new java.io.IOException(te);
4397
      }
4398
    }
4399
 
352 ashish 4400
  }
4401
 
3430 rajveer 4402
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
4403
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 4404
 
3430 rajveer 4405
    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 4406
 
3430 rajveer 4407
    private HelperServiceException se; // required
352 ashish 4408
 
4409
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4410
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4411
      SE((short)1, "se");
4412
 
4413
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4414
 
4415
      static {
4416
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4417
          byName.put(field.getFieldName(), field);
4418
        }
4419
      }
4420
 
4421
      /**
4422
       * Find the _Fields constant that matches fieldId, or null if its not found.
4423
       */
4424
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4425
        switch(fieldId) {
4426
          case 1: // SE
4427
            return SE;
4428
          default:
4429
            return null;
4430
        }
352 ashish 4431
      }
4432
 
4433
      /**
4434
       * Find the _Fields constant that matches fieldId, throwing an exception
4435
       * if it is not found.
4436
       */
4437
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4438
        _Fields fields = findByThriftId(fieldId);
4439
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4440
        return fields;
4441
      }
4442
 
4443
      /**
4444
       * Find the _Fields constant that matches name, or null if its not found.
4445
       */
4446
      public static _Fields findByName(String name) {
4447
        return byName.get(name);
4448
      }
4449
 
4450
      private final short _thriftId;
4451
      private final String _fieldName;
4452
 
4453
      _Fields(short thriftId, String fieldName) {
4454
        _thriftId = thriftId;
4455
        _fieldName = fieldName;
4456
      }
4457
 
4458
      public short getThriftFieldId() {
4459
        return _thriftId;
4460
      }
4461
 
4462
      public String getFieldName() {
4463
        return _fieldName;
4464
      }
4465
    }
4466
 
4467
    // isset id assignments
4468
 
3430 rajveer 4469
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4470
    static {
3430 rajveer 4471
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4472
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4473
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4474
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4475
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 4476
    }
4477
 
4478
    public sendMail_result() {
4479
    }
4480
 
4481
    public sendMail_result(
4482
      HelperServiceException se)
4483
    {
4484
      this();
4485
      this.se = se;
4486
    }
4487
 
4488
    /**
4489
     * Performs a deep copy on <i>other</i>.
4490
     */
4491
    public sendMail_result(sendMail_result other) {
4492
      if (other.isSetSe()) {
4493
        this.se = new HelperServiceException(other.se);
4494
      }
4495
    }
4496
 
4497
    public sendMail_result deepCopy() {
4498
      return new sendMail_result(this);
4499
    }
4500
 
3430 rajveer 4501
    @Override
4502
    public void clear() {
4503
      this.se = null;
352 ashish 4504
    }
4505
 
4506
    public HelperServiceException getSe() {
4507
      return this.se;
4508
    }
4509
 
3430 rajveer 4510
    public void setSe(HelperServiceException se) {
352 ashish 4511
      this.se = se;
4512
    }
4513
 
4514
    public void unsetSe() {
4515
      this.se = null;
4516
    }
4517
 
3430 rajveer 4518
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 4519
    public boolean isSetSe() {
4520
      return this.se != null;
4521
    }
4522
 
4523
    public void setSeIsSet(boolean value) {
4524
      if (!value) {
4525
        this.se = null;
4526
      }
4527
    }
4528
 
4529
    public void setFieldValue(_Fields field, Object value) {
4530
      switch (field) {
4531
      case SE:
4532
        if (value == null) {
4533
          unsetSe();
4534
        } else {
4535
          setSe((HelperServiceException)value);
4536
        }
4537
        break;
4538
 
4539
      }
4540
    }
4541
 
4542
    public Object getFieldValue(_Fields field) {
4543
      switch (field) {
4544
      case SE:
4545
        return getSe();
4546
 
4547
      }
4548
      throw new IllegalStateException();
4549
    }
4550
 
3430 rajveer 4551
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4552
    public boolean isSet(_Fields field) {
4553
      if (field == null) {
4554
        throw new IllegalArgumentException();
4555
      }
352 ashish 4556
 
4557
      switch (field) {
4558
      case SE:
4559
        return isSetSe();
4560
      }
4561
      throw new IllegalStateException();
4562
    }
4563
 
4564
    @Override
4565
    public boolean equals(Object that) {
4566
      if (that == null)
4567
        return false;
4568
      if (that instanceof sendMail_result)
4569
        return this.equals((sendMail_result)that);
4570
      return false;
4571
    }
4572
 
4573
    public boolean equals(sendMail_result that) {
4574
      if (that == null)
4575
        return false;
4576
 
4577
      boolean this_present_se = true && this.isSetSe();
4578
      boolean that_present_se = true && that.isSetSe();
4579
      if (this_present_se || that_present_se) {
4580
        if (!(this_present_se && that_present_se))
4581
          return false;
4582
        if (!this.se.equals(that.se))
4583
          return false;
4584
      }
4585
 
4586
      return true;
4587
    }
4588
 
4589
    @Override
4590
    public int hashCode() {
4591
      return 0;
4592
    }
4593
 
4594
    public int compareTo(sendMail_result other) {
4595
      if (!getClass().equals(other.getClass())) {
4596
        return getClass().getName().compareTo(other.getClass().getName());
4597
      }
4598
 
4599
      int lastComparison = 0;
4600
      sendMail_result typedOther = (sendMail_result)other;
4601
 
3430 rajveer 4602
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 4603
      if (lastComparison != 0) {
4604
        return lastComparison;
4605
      }
3430 rajveer 4606
      if (isSetSe()) {
4607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4608
        if (lastComparison != 0) {
4609
          return lastComparison;
4610
        }
352 ashish 4611
      }
4612
      return 0;
4613
    }
4614
 
3430 rajveer 4615
    public _Fields fieldForId(int fieldId) {
4616
      return _Fields.findByThriftId(fieldId);
4617
    }
4618
 
4619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4620
      org.apache.thrift.protocol.TField field;
352 ashish 4621
      iprot.readStructBegin();
4622
      while (true)
4623
      {
4624
        field = iprot.readFieldBegin();
3430 rajveer 4625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4626
          break;
4627
        }
3430 rajveer 4628
        switch (field.id) {
4629
          case 1: // SE
4630
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4631
              this.se = new HelperServiceException();
4632
              this.se.read(iprot);
4633
            } else { 
4634
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4635
            }
4636
            break;
4637
          default:
4638
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4639
        }
3430 rajveer 4640
        iprot.readFieldEnd();
352 ashish 4641
      }
4642
      iprot.readStructEnd();
4643
      validate();
4644
    }
4645
 
3430 rajveer 4646
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4647
      oprot.writeStructBegin(STRUCT_DESC);
4648
 
4649
      if (this.isSetSe()) {
4650
        oprot.writeFieldBegin(SE_FIELD_DESC);
4651
        this.se.write(oprot);
4652
        oprot.writeFieldEnd();
4653
      }
4654
      oprot.writeFieldStop();
4655
      oprot.writeStructEnd();
4656
    }
4657
 
4658
    @Override
4659
    public String toString() {
4660
      StringBuilder sb = new StringBuilder("sendMail_result(");
4661
      boolean first = true;
4662
 
4663
      sb.append("se:");
4664
      if (this.se == null) {
4665
        sb.append("null");
4666
      } else {
4667
        sb.append(this.se);
4668
      }
4669
      first = false;
4670
      sb.append(")");
4671
      return sb.toString();
4672
    }
4673
 
3430 rajveer 4674
    public void validate() throws org.apache.thrift.TException {
352 ashish 4675
      // check for required fields
4676
    }
4677
 
3430 rajveer 4678
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4679
      try {
4680
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4681
      } catch (org.apache.thrift.TException te) {
4682
        throw new java.io.IOException(te);
4683
      }
4684
    }
4685
 
4686
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4687
      try {
4688
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4689
      } catch (org.apache.thrift.TException te) {
4690
        throw new java.io.IOException(te);
4691
      }
4692
    }
4693
 
352 ashish 4694
  }
4695
 
3430 rajveer 4696
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
4697
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 4698
 
3430 rajveer 4699
    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 4700
 
3430 rajveer 4701
    private TextMessage message; // required
352 ashish 4702
 
4703
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4704
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 4705
      MESSAGE((short)1, "message");
4706
 
4707
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4708
 
4709
      static {
4710
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4711
          byName.put(field.getFieldName(), field);
4712
        }
4713
      }
4714
 
4715
      /**
4716
       * Find the _Fields constant that matches fieldId, or null if its not found.
4717
       */
4718
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4719
        switch(fieldId) {
4720
          case 1: // MESSAGE
4721
            return MESSAGE;
4722
          default:
4723
            return null;
4724
        }
352 ashish 4725
      }
4726
 
4727
      /**
4728
       * Find the _Fields constant that matches fieldId, throwing an exception
4729
       * if it is not found.
4730
       */
4731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4732
        _Fields fields = findByThriftId(fieldId);
4733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4734
        return fields;
4735
      }
4736
 
4737
      /**
4738
       * Find the _Fields constant that matches name, or null if its not found.
4739
       */
4740
      public static _Fields findByName(String name) {
4741
        return byName.get(name);
4742
      }
4743
 
4744
      private final short _thriftId;
4745
      private final String _fieldName;
4746
 
4747
      _Fields(short thriftId, String fieldName) {
4748
        _thriftId = thriftId;
4749
        _fieldName = fieldName;
4750
      }
4751
 
4752
      public short getThriftFieldId() {
4753
        return _thriftId;
4754
      }
4755
 
4756
      public String getFieldName() {
4757
        return _fieldName;
4758
      }
4759
    }
4760
 
4761
    // isset id assignments
4762
 
3430 rajveer 4763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 4764
    static {
3430 rajveer 4765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4766
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4767
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
4768
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4769
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 4770
    }
4771
 
4772
    public sendText_args() {
4773
    }
4774
 
4775
    public sendText_args(
4776
      TextMessage message)
4777
    {
4778
      this();
4779
      this.message = message;
4780
    }
4781
 
4782
    /**
4783
     * Performs a deep copy on <i>other</i>.
4784
     */
4785
    public sendText_args(sendText_args other) {
4786
      if (other.isSetMessage()) {
4787
        this.message = new TextMessage(other.message);
4788
      }
4789
    }
4790
 
4791
    public sendText_args deepCopy() {
4792
      return new sendText_args(this);
4793
    }
4794
 
3430 rajveer 4795
    @Override
4796
    public void clear() {
4797
      this.message = null;
352 ashish 4798
    }
4799
 
4800
    public TextMessage getMessage() {
4801
      return this.message;
4802
    }
4803
 
3430 rajveer 4804
    public void setMessage(TextMessage message) {
352 ashish 4805
      this.message = message;
4806
    }
4807
 
4808
    public void unsetMessage() {
4809
      this.message = null;
4810
    }
4811
 
3430 rajveer 4812
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 4813
    public boolean isSetMessage() {
4814
      return this.message != null;
4815
    }
4816
 
4817
    public void setMessageIsSet(boolean value) {
4818
      if (!value) {
4819
        this.message = null;
4820
      }
4821
    }
4822
 
4823
    public void setFieldValue(_Fields field, Object value) {
4824
      switch (field) {
4825
      case MESSAGE:
4826
        if (value == null) {
4827
          unsetMessage();
4828
        } else {
4829
          setMessage((TextMessage)value);
4830
        }
4831
        break;
4832
 
4833
      }
4834
    }
4835
 
4836
    public Object getFieldValue(_Fields field) {
4837
      switch (field) {
4838
      case MESSAGE:
4839
        return getMessage();
4840
 
4841
      }
4842
      throw new IllegalStateException();
4843
    }
4844
 
3430 rajveer 4845
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4846
    public boolean isSet(_Fields field) {
4847
      if (field == null) {
4848
        throw new IllegalArgumentException();
4849
      }
352 ashish 4850
 
4851
      switch (field) {
4852
      case MESSAGE:
4853
        return isSetMessage();
4854
      }
4855
      throw new IllegalStateException();
4856
    }
4857
 
4858
    @Override
4859
    public boolean equals(Object that) {
4860
      if (that == null)
4861
        return false;
4862
      if (that instanceof sendText_args)
4863
        return this.equals((sendText_args)that);
4864
      return false;
4865
    }
4866
 
4867
    public boolean equals(sendText_args that) {
4868
      if (that == null)
4869
        return false;
4870
 
4871
      boolean this_present_message = true && this.isSetMessage();
4872
      boolean that_present_message = true && that.isSetMessage();
4873
      if (this_present_message || that_present_message) {
4874
        if (!(this_present_message && that_present_message))
4875
          return false;
4876
        if (!this.message.equals(that.message))
4877
          return false;
4878
      }
4879
 
4880
      return true;
4881
    }
4882
 
4883
    @Override
4884
    public int hashCode() {
4885
      return 0;
4886
    }
4887
 
4888
    public int compareTo(sendText_args other) {
4889
      if (!getClass().equals(other.getClass())) {
4890
        return getClass().getName().compareTo(other.getClass().getName());
4891
      }
4892
 
4893
      int lastComparison = 0;
4894
      sendText_args typedOther = (sendText_args)other;
4895
 
3430 rajveer 4896
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 4897
      if (lastComparison != 0) {
4898
        return lastComparison;
4899
      }
3430 rajveer 4900
      if (isSetMessage()) {
4901
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
4902
        if (lastComparison != 0) {
4903
          return lastComparison;
4904
        }
352 ashish 4905
      }
4906
      return 0;
4907
    }
4908
 
3430 rajveer 4909
    public _Fields fieldForId(int fieldId) {
4910
      return _Fields.findByThriftId(fieldId);
4911
    }
4912
 
4913
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4914
      org.apache.thrift.protocol.TField field;
352 ashish 4915
      iprot.readStructBegin();
4916
      while (true)
4917
      {
4918
        field = iprot.readFieldBegin();
3430 rajveer 4919
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 4920
          break;
4921
        }
3430 rajveer 4922
        switch (field.id) {
4923
          case 1: // MESSAGE
4924
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4925
              this.message = new TextMessage();
4926
              this.message.read(iprot);
4927
            } else { 
4928
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4929
            }
4930
            break;
4931
          default:
4932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 4933
        }
3430 rajveer 4934
        iprot.readFieldEnd();
352 ashish 4935
      }
4936
      iprot.readStructEnd();
4937
      validate();
4938
    }
4939
 
3430 rajveer 4940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 4941
      validate();
4942
 
4943
      oprot.writeStructBegin(STRUCT_DESC);
4944
      if (this.message != null) {
4945
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
4946
        this.message.write(oprot);
4947
        oprot.writeFieldEnd();
4948
      }
4949
      oprot.writeFieldStop();
4950
      oprot.writeStructEnd();
4951
    }
4952
 
4953
    @Override
4954
    public String toString() {
4955
      StringBuilder sb = new StringBuilder("sendText_args(");
4956
      boolean first = true;
4957
 
4958
      sb.append("message:");
4959
      if (this.message == null) {
4960
        sb.append("null");
4961
      } else {
4962
        sb.append(this.message);
4963
      }
4964
      first = false;
4965
      sb.append(")");
4966
      return sb.toString();
4967
    }
4968
 
3430 rajveer 4969
    public void validate() throws org.apache.thrift.TException {
352 ashish 4970
      // check for required fields
4971
    }
4972
 
3430 rajveer 4973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4974
      try {
4975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4976
      } catch (org.apache.thrift.TException te) {
4977
        throw new java.io.IOException(te);
4978
      }
4979
    }
4980
 
4981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4982
      try {
4983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4984
      } catch (org.apache.thrift.TException te) {
4985
        throw new java.io.IOException(te);
4986
      }
4987
    }
4988
 
352 ashish 4989
  }
4990
 
3430 rajveer 4991
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
4992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 4993
 
3430 rajveer 4994
    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 4995
 
3430 rajveer 4996
    private HelperServiceException se; // required
352 ashish 4997
 
4998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5000
      SE((short)1, "se");
5001
 
5002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5003
 
5004
      static {
5005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5006
          byName.put(field.getFieldName(), field);
5007
        }
5008
      }
5009
 
5010
      /**
5011
       * Find the _Fields constant that matches fieldId, or null if its not found.
5012
       */
5013
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5014
        switch(fieldId) {
5015
          case 1: // SE
5016
            return SE;
5017
          default:
5018
            return null;
5019
        }
352 ashish 5020
      }
5021
 
5022
      /**
5023
       * Find the _Fields constant that matches fieldId, throwing an exception
5024
       * if it is not found.
5025
       */
5026
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5027
        _Fields fields = findByThriftId(fieldId);
5028
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5029
        return fields;
5030
      }
5031
 
5032
      /**
5033
       * Find the _Fields constant that matches name, or null if its not found.
5034
       */
5035
      public static _Fields findByName(String name) {
5036
        return byName.get(name);
5037
      }
5038
 
5039
      private final short _thriftId;
5040
      private final String _fieldName;
5041
 
5042
      _Fields(short thriftId, String fieldName) {
5043
        _thriftId = thriftId;
5044
        _fieldName = fieldName;
5045
      }
5046
 
5047
      public short getThriftFieldId() {
5048
        return _thriftId;
5049
      }
5050
 
5051
      public String getFieldName() {
5052
        return _fieldName;
5053
      }
5054
    }
5055
 
5056
    // isset id assignments
5057
 
3430 rajveer 5058
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5059
    static {
3430 rajveer 5060
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5061
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5062
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5063
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5064
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 5065
    }
5066
 
5067
    public sendText_result() {
5068
    }
5069
 
5070
    public sendText_result(
5071
      HelperServiceException se)
5072
    {
5073
      this();
5074
      this.se = se;
5075
    }
5076
 
5077
    /**
5078
     * Performs a deep copy on <i>other</i>.
5079
     */
5080
    public sendText_result(sendText_result other) {
5081
      if (other.isSetSe()) {
5082
        this.se = new HelperServiceException(other.se);
5083
      }
5084
    }
5085
 
5086
    public sendText_result deepCopy() {
5087
      return new sendText_result(this);
5088
    }
5089
 
3430 rajveer 5090
    @Override
5091
    public void clear() {
5092
      this.se = null;
352 ashish 5093
    }
5094
 
5095
    public HelperServiceException getSe() {
5096
      return this.se;
5097
    }
5098
 
3430 rajveer 5099
    public void setSe(HelperServiceException se) {
352 ashish 5100
      this.se = se;
5101
    }
5102
 
5103
    public void unsetSe() {
5104
      this.se = null;
5105
    }
5106
 
3430 rajveer 5107
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5108
    public boolean isSetSe() {
5109
      return this.se != null;
5110
    }
5111
 
5112
    public void setSeIsSet(boolean value) {
5113
      if (!value) {
5114
        this.se = null;
5115
      }
5116
    }
5117
 
5118
    public void setFieldValue(_Fields field, Object value) {
5119
      switch (field) {
5120
      case SE:
5121
        if (value == null) {
5122
          unsetSe();
5123
        } else {
5124
          setSe((HelperServiceException)value);
5125
        }
5126
        break;
5127
 
5128
      }
5129
    }
5130
 
5131
    public Object getFieldValue(_Fields field) {
5132
      switch (field) {
5133
      case SE:
5134
        return getSe();
5135
 
5136
      }
5137
      throw new IllegalStateException();
5138
    }
5139
 
3430 rajveer 5140
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5141
    public boolean isSet(_Fields field) {
5142
      if (field == null) {
5143
        throw new IllegalArgumentException();
5144
      }
352 ashish 5145
 
5146
      switch (field) {
5147
      case SE:
5148
        return isSetSe();
5149
      }
5150
      throw new IllegalStateException();
5151
    }
5152
 
5153
    @Override
5154
    public boolean equals(Object that) {
5155
      if (that == null)
5156
        return false;
5157
      if (that instanceof sendText_result)
5158
        return this.equals((sendText_result)that);
5159
      return false;
5160
    }
5161
 
5162
    public boolean equals(sendText_result that) {
5163
      if (that == null)
5164
        return false;
5165
 
5166
      boolean this_present_se = true && this.isSetSe();
5167
      boolean that_present_se = true && that.isSetSe();
5168
      if (this_present_se || that_present_se) {
5169
        if (!(this_present_se && that_present_se))
5170
          return false;
5171
        if (!this.se.equals(that.se))
5172
          return false;
5173
      }
5174
 
5175
      return true;
5176
    }
5177
 
5178
    @Override
5179
    public int hashCode() {
5180
      return 0;
5181
    }
5182
 
5183
    public int compareTo(sendText_result other) {
5184
      if (!getClass().equals(other.getClass())) {
5185
        return getClass().getName().compareTo(other.getClass().getName());
5186
      }
5187
 
5188
      int lastComparison = 0;
5189
      sendText_result typedOther = (sendText_result)other;
5190
 
3430 rajveer 5191
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5192
      if (lastComparison != 0) {
5193
        return lastComparison;
5194
      }
3430 rajveer 5195
      if (isSetSe()) {
5196
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5197
        if (lastComparison != 0) {
5198
          return lastComparison;
5199
        }
352 ashish 5200
      }
5201
      return 0;
5202
    }
5203
 
3430 rajveer 5204
    public _Fields fieldForId(int fieldId) {
5205
      return _Fields.findByThriftId(fieldId);
5206
    }
5207
 
5208
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5209
      org.apache.thrift.protocol.TField field;
352 ashish 5210
      iprot.readStructBegin();
5211
      while (true)
5212
      {
5213
        field = iprot.readFieldBegin();
3430 rajveer 5214
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5215
          break;
5216
        }
3430 rajveer 5217
        switch (field.id) {
5218
          case 1: // SE
5219
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5220
              this.se = new HelperServiceException();
5221
              this.se.read(iprot);
5222
            } else { 
5223
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5224
            }
5225
            break;
5226
          default:
5227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5228
        }
3430 rajveer 5229
        iprot.readFieldEnd();
352 ashish 5230
      }
5231
      iprot.readStructEnd();
5232
      validate();
5233
    }
5234
 
3430 rajveer 5235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5236
      oprot.writeStructBegin(STRUCT_DESC);
5237
 
5238
      if (this.isSetSe()) {
5239
        oprot.writeFieldBegin(SE_FIELD_DESC);
5240
        this.se.write(oprot);
5241
        oprot.writeFieldEnd();
5242
      }
5243
      oprot.writeFieldStop();
5244
      oprot.writeStructEnd();
5245
    }
5246
 
5247
    @Override
5248
    public String toString() {
5249
      StringBuilder sb = new StringBuilder("sendText_result(");
5250
      boolean first = true;
5251
 
5252
      sb.append("se:");
5253
      if (this.se == null) {
5254
        sb.append("null");
5255
      } else {
5256
        sb.append(this.se);
5257
      }
5258
      first = false;
5259
      sb.append(")");
5260
      return sb.toString();
5261
    }
5262
 
3430 rajveer 5263
    public void validate() throws org.apache.thrift.TException {
352 ashish 5264
      // check for required fields
5265
    }
5266
 
3430 rajveer 5267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5268
      try {
5269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5270
      } catch (org.apache.thrift.TException te) {
5271
        throw new java.io.IOException(te);
5272
      }
5273
    }
5274
 
5275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5276
      try {
5277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5278
      } catch (org.apache.thrift.TException te) {
5279
        throw new java.io.IOException(te);
5280
      }
5281
    }
5282
 
352 ashish 5283
  }
5284
 
3430 rajveer 5285
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
5286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 5287
 
3430 rajveer 5288
    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 5289
 
3430 rajveer 5290
    private Message message; // required
352 ashish 5291
 
5292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5294
      MESSAGE((short)1, "message");
5295
 
5296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5297
 
5298
      static {
5299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5300
          byName.put(field.getFieldName(), field);
5301
        }
5302
      }
5303
 
5304
      /**
5305
       * Find the _Fields constant that matches fieldId, or null if its not found.
5306
       */
5307
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5308
        switch(fieldId) {
5309
          case 1: // MESSAGE
5310
            return MESSAGE;
5311
          default:
5312
            return null;
5313
        }
352 ashish 5314
      }
5315
 
5316
      /**
5317
       * Find the _Fields constant that matches fieldId, throwing an exception
5318
       * if it is not found.
5319
       */
5320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5321
        _Fields fields = findByThriftId(fieldId);
5322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5323
        return fields;
5324
      }
5325
 
5326
      /**
5327
       * Find the _Fields constant that matches name, or null if its not found.
5328
       */
5329
      public static _Fields findByName(String name) {
5330
        return byName.get(name);
5331
      }
5332
 
5333
      private final short _thriftId;
5334
      private final String _fieldName;
5335
 
5336
      _Fields(short thriftId, String fieldName) {
5337
        _thriftId = thriftId;
5338
        _fieldName = fieldName;
5339
      }
5340
 
5341
      public short getThriftFieldId() {
5342
        return _thriftId;
5343
      }
5344
 
5345
      public String getFieldName() {
5346
        return _fieldName;
5347
      }
5348
    }
5349
 
5350
    // isset id assignments
5351
 
3430 rajveer 5352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5353
    static {
3430 rajveer 5354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5355
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5356
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
5357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 5359
    }
5360
 
5361
    public addMessage_args() {
5362
    }
5363
 
5364
    public addMessage_args(
5365
      Message message)
5366
    {
5367
      this();
5368
      this.message = message;
5369
    }
5370
 
5371
    /**
5372
     * Performs a deep copy on <i>other</i>.
5373
     */
5374
    public addMessage_args(addMessage_args other) {
5375
      if (other.isSetMessage()) {
5376
        this.message = new Message(other.message);
5377
      }
5378
    }
5379
 
5380
    public addMessage_args deepCopy() {
5381
      return new addMessage_args(this);
5382
    }
5383
 
3430 rajveer 5384
    @Override
5385
    public void clear() {
5386
      this.message = null;
352 ashish 5387
    }
5388
 
5389
    public Message getMessage() {
5390
      return this.message;
5391
    }
5392
 
3430 rajveer 5393
    public void setMessage(Message message) {
352 ashish 5394
      this.message = message;
5395
    }
5396
 
5397
    public void unsetMessage() {
5398
      this.message = null;
5399
    }
5400
 
3430 rajveer 5401
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5402
    public boolean isSetMessage() {
5403
      return this.message != null;
5404
    }
5405
 
5406
    public void setMessageIsSet(boolean value) {
5407
      if (!value) {
5408
        this.message = null;
5409
      }
5410
    }
5411
 
5412
    public void setFieldValue(_Fields field, Object value) {
5413
      switch (field) {
5414
      case MESSAGE:
5415
        if (value == null) {
5416
          unsetMessage();
5417
        } else {
5418
          setMessage((Message)value);
5419
        }
5420
        break;
5421
 
5422
      }
5423
    }
5424
 
5425
    public Object getFieldValue(_Fields field) {
5426
      switch (field) {
5427
      case MESSAGE:
5428
        return getMessage();
5429
 
5430
      }
5431
      throw new IllegalStateException();
5432
    }
5433
 
3430 rajveer 5434
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5435
    public boolean isSet(_Fields field) {
5436
      if (field == null) {
5437
        throw new IllegalArgumentException();
5438
      }
352 ashish 5439
 
5440
      switch (field) {
5441
      case MESSAGE:
5442
        return isSetMessage();
5443
      }
5444
      throw new IllegalStateException();
5445
    }
5446
 
5447
    @Override
5448
    public boolean equals(Object that) {
5449
      if (that == null)
5450
        return false;
5451
      if (that instanceof addMessage_args)
5452
        return this.equals((addMessage_args)that);
5453
      return false;
5454
    }
5455
 
5456
    public boolean equals(addMessage_args that) {
5457
      if (that == null)
5458
        return false;
5459
 
5460
      boolean this_present_message = true && this.isSetMessage();
5461
      boolean that_present_message = true && that.isSetMessage();
5462
      if (this_present_message || that_present_message) {
5463
        if (!(this_present_message && that_present_message))
5464
          return false;
5465
        if (!this.message.equals(that.message))
5466
          return false;
5467
      }
5468
 
5469
      return true;
5470
    }
5471
 
5472
    @Override
5473
    public int hashCode() {
5474
      return 0;
5475
    }
5476
 
5477
    public int compareTo(addMessage_args other) {
5478
      if (!getClass().equals(other.getClass())) {
5479
        return getClass().getName().compareTo(other.getClass().getName());
5480
      }
5481
 
5482
      int lastComparison = 0;
5483
      addMessage_args typedOther = (addMessage_args)other;
5484
 
3430 rajveer 5485
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5486
      if (lastComparison != 0) {
5487
        return lastComparison;
5488
      }
3430 rajveer 5489
      if (isSetMessage()) {
5490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5491
        if (lastComparison != 0) {
5492
          return lastComparison;
5493
        }
352 ashish 5494
      }
5495
      return 0;
5496
    }
5497
 
3430 rajveer 5498
    public _Fields fieldForId(int fieldId) {
5499
      return _Fields.findByThriftId(fieldId);
5500
    }
5501
 
5502
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5503
      org.apache.thrift.protocol.TField field;
352 ashish 5504
      iprot.readStructBegin();
5505
      while (true)
5506
      {
5507
        field = iprot.readFieldBegin();
3430 rajveer 5508
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5509
          break;
5510
        }
3430 rajveer 5511
        switch (field.id) {
5512
          case 1: // MESSAGE
5513
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5514
              this.message = new Message();
5515
              this.message.read(iprot);
5516
            } else { 
5517
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5518
            }
5519
            break;
5520
          default:
5521
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5522
        }
3430 rajveer 5523
        iprot.readFieldEnd();
352 ashish 5524
      }
5525
      iprot.readStructEnd();
5526
      validate();
5527
    }
5528
 
3430 rajveer 5529
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5530
      validate();
5531
 
5532
      oprot.writeStructBegin(STRUCT_DESC);
5533
      if (this.message != null) {
5534
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5535
        this.message.write(oprot);
5536
        oprot.writeFieldEnd();
5537
      }
5538
      oprot.writeFieldStop();
5539
      oprot.writeStructEnd();
5540
    }
5541
 
5542
    @Override
5543
    public String toString() {
5544
      StringBuilder sb = new StringBuilder("addMessage_args(");
5545
      boolean first = true;
5546
 
5547
      sb.append("message:");
5548
      if (this.message == null) {
5549
        sb.append("null");
5550
      } else {
5551
        sb.append(this.message);
5552
      }
5553
      first = false;
5554
      sb.append(")");
5555
      return sb.toString();
5556
    }
5557
 
3430 rajveer 5558
    public void validate() throws org.apache.thrift.TException {
352 ashish 5559
      // check for required fields
5560
    }
5561
 
3430 rajveer 5562
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5563
      try {
5564
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5565
      } catch (org.apache.thrift.TException te) {
5566
        throw new java.io.IOException(te);
5567
      }
5568
    }
5569
 
5570
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5571
      try {
5572
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5573
      } catch (org.apache.thrift.TException te) {
5574
        throw new java.io.IOException(te);
5575
      }
5576
    }
5577
 
352 ashish 5578
  }
5579
 
3430 rajveer 5580
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
5581
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 5582
 
3430 rajveer 5583
    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 5584
 
3430 rajveer 5585
    private HelperServiceException se; // required
352 ashish 5586
 
5587
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5588
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5589
      SE((short)1, "se");
5590
 
5591
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5592
 
5593
      static {
5594
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5595
          byName.put(field.getFieldName(), field);
5596
        }
5597
      }
5598
 
5599
      /**
5600
       * Find the _Fields constant that matches fieldId, or null if its not found.
5601
       */
5602
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5603
        switch(fieldId) {
5604
          case 1: // SE
5605
            return SE;
5606
          default:
5607
            return null;
5608
        }
352 ashish 5609
      }
5610
 
5611
      /**
5612
       * Find the _Fields constant that matches fieldId, throwing an exception
5613
       * if it is not found.
5614
       */
5615
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5616
        _Fields fields = findByThriftId(fieldId);
5617
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5618
        return fields;
5619
      }
5620
 
5621
      /**
5622
       * Find the _Fields constant that matches name, or null if its not found.
5623
       */
5624
      public static _Fields findByName(String name) {
5625
        return byName.get(name);
5626
      }
5627
 
5628
      private final short _thriftId;
5629
      private final String _fieldName;
5630
 
5631
      _Fields(short thriftId, String fieldName) {
5632
        _thriftId = thriftId;
5633
        _fieldName = fieldName;
5634
      }
5635
 
5636
      public short getThriftFieldId() {
5637
        return _thriftId;
5638
      }
5639
 
5640
      public String getFieldName() {
5641
        return _fieldName;
5642
      }
5643
    }
5644
 
5645
    // isset id assignments
5646
 
3430 rajveer 5647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5648
    static {
3430 rajveer 5649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5650
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5651
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5652
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5653
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 5654
    }
5655
 
5656
    public addMessage_result() {
5657
    }
5658
 
5659
    public addMessage_result(
5660
      HelperServiceException se)
5661
    {
5662
      this();
5663
      this.se = se;
5664
    }
5665
 
5666
    /**
5667
     * Performs a deep copy on <i>other</i>.
5668
     */
5669
    public addMessage_result(addMessage_result other) {
5670
      if (other.isSetSe()) {
5671
        this.se = new HelperServiceException(other.se);
5672
      }
5673
    }
5674
 
5675
    public addMessage_result deepCopy() {
5676
      return new addMessage_result(this);
5677
    }
5678
 
3430 rajveer 5679
    @Override
5680
    public void clear() {
5681
      this.se = null;
352 ashish 5682
    }
5683
 
5684
    public HelperServiceException getSe() {
5685
      return this.se;
5686
    }
5687
 
3430 rajveer 5688
    public void setSe(HelperServiceException se) {
352 ashish 5689
      this.se = se;
5690
    }
5691
 
5692
    public void unsetSe() {
5693
      this.se = null;
5694
    }
5695
 
3430 rajveer 5696
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5697
    public boolean isSetSe() {
5698
      return this.se != null;
5699
    }
5700
 
5701
    public void setSeIsSet(boolean value) {
5702
      if (!value) {
5703
        this.se = null;
5704
      }
5705
    }
5706
 
5707
    public void setFieldValue(_Fields field, Object value) {
5708
      switch (field) {
5709
      case SE:
5710
        if (value == null) {
5711
          unsetSe();
5712
        } else {
5713
          setSe((HelperServiceException)value);
5714
        }
5715
        break;
5716
 
5717
      }
5718
    }
5719
 
5720
    public Object getFieldValue(_Fields field) {
5721
      switch (field) {
5722
      case SE:
5723
        return getSe();
5724
 
5725
      }
5726
      throw new IllegalStateException();
5727
    }
5728
 
3430 rajveer 5729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5730
    public boolean isSet(_Fields field) {
5731
      if (field == null) {
5732
        throw new IllegalArgumentException();
5733
      }
352 ashish 5734
 
5735
      switch (field) {
5736
      case SE:
5737
        return isSetSe();
5738
      }
5739
      throw new IllegalStateException();
5740
    }
5741
 
5742
    @Override
5743
    public boolean equals(Object that) {
5744
      if (that == null)
5745
        return false;
5746
      if (that instanceof addMessage_result)
5747
        return this.equals((addMessage_result)that);
5748
      return false;
5749
    }
5750
 
5751
    public boolean equals(addMessage_result that) {
5752
      if (that == null)
5753
        return false;
5754
 
5755
      boolean this_present_se = true && this.isSetSe();
5756
      boolean that_present_se = true && that.isSetSe();
5757
      if (this_present_se || that_present_se) {
5758
        if (!(this_present_se && that_present_se))
5759
          return false;
5760
        if (!this.se.equals(that.se))
5761
          return false;
5762
      }
5763
 
5764
      return true;
5765
    }
5766
 
5767
    @Override
5768
    public int hashCode() {
5769
      return 0;
5770
    }
5771
 
5772
    public int compareTo(addMessage_result other) {
5773
      if (!getClass().equals(other.getClass())) {
5774
        return getClass().getName().compareTo(other.getClass().getName());
5775
      }
5776
 
5777
      int lastComparison = 0;
5778
      addMessage_result typedOther = (addMessage_result)other;
5779
 
3430 rajveer 5780
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5781
      if (lastComparison != 0) {
5782
        return lastComparison;
5783
      }
3430 rajveer 5784
      if (isSetSe()) {
5785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5786
        if (lastComparison != 0) {
5787
          return lastComparison;
5788
        }
352 ashish 5789
      }
5790
      return 0;
5791
    }
5792
 
3430 rajveer 5793
    public _Fields fieldForId(int fieldId) {
5794
      return _Fields.findByThriftId(fieldId);
5795
    }
5796
 
5797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5798
      org.apache.thrift.protocol.TField field;
352 ashish 5799
      iprot.readStructBegin();
5800
      while (true)
5801
      {
5802
        field = iprot.readFieldBegin();
3430 rajveer 5803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5804
          break;
5805
        }
3430 rajveer 5806
        switch (field.id) {
5807
          case 1: // SE
5808
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5809
              this.se = new HelperServiceException();
5810
              this.se.read(iprot);
5811
            } else { 
5812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5813
            }
5814
            break;
5815
          default:
5816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5817
        }
3430 rajveer 5818
        iprot.readFieldEnd();
352 ashish 5819
      }
5820
      iprot.readStructEnd();
5821
      validate();
5822
    }
5823
 
3430 rajveer 5824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5825
      oprot.writeStructBegin(STRUCT_DESC);
5826
 
5827
      if (this.isSetSe()) {
5828
        oprot.writeFieldBegin(SE_FIELD_DESC);
5829
        this.se.write(oprot);
5830
        oprot.writeFieldEnd();
5831
      }
5832
      oprot.writeFieldStop();
5833
      oprot.writeStructEnd();
5834
    }
5835
 
5836
    @Override
5837
    public String toString() {
5838
      StringBuilder sb = new StringBuilder("addMessage_result(");
5839
      boolean first = true;
5840
 
5841
      sb.append("se:");
5842
      if (this.se == null) {
5843
        sb.append("null");
5844
      } else {
5845
        sb.append(this.se);
5846
      }
5847
      first = false;
5848
      sb.append(")");
5849
      return sb.toString();
5850
    }
5851
 
3430 rajveer 5852
    public void validate() throws org.apache.thrift.TException {
352 ashish 5853
      // check for required fields
5854
    }
5855
 
3430 rajveer 5856
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5857
      try {
5858
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5859
      } catch (org.apache.thrift.TException te) {
5860
        throw new java.io.IOException(te);
5861
      }
5862
    }
5863
 
5864
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5865
      try {
5866
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5867
      } catch (org.apache.thrift.TException te) {
5868
        throw new java.io.IOException(te);
5869
      }
5870
    }
5871
 
352 ashish 5872
  }
5873
 
3430 rajveer 5874
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
5875
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 5876
 
3430 rajveer 5877
    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);
5878
    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 5879
 
3430 rajveer 5880
    private long id; // required
5881
    private String message; // required
352 ashish 5882
 
5883
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5884
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5885
      ID((short)1, "id"),
5886
      MESSAGE((short)2, "message");
5887
 
5888
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5889
 
5890
      static {
5891
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5892
          byName.put(field.getFieldName(), field);
5893
        }
5894
      }
5895
 
5896
      /**
5897
       * Find the _Fields constant that matches fieldId, or null if its not found.
5898
       */
5899
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5900
        switch(fieldId) {
5901
          case 1: // ID
5902
            return ID;
5903
          case 2: // MESSAGE
5904
            return MESSAGE;
5905
          default:
5906
            return null;
5907
        }
352 ashish 5908
      }
5909
 
5910
      /**
5911
       * Find the _Fields constant that matches fieldId, throwing an exception
5912
       * if it is not found.
5913
       */
5914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5915
        _Fields fields = findByThriftId(fieldId);
5916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5917
        return fields;
5918
      }
5919
 
5920
      /**
5921
       * Find the _Fields constant that matches name, or null if its not found.
5922
       */
5923
      public static _Fields findByName(String name) {
5924
        return byName.get(name);
5925
      }
5926
 
5927
      private final short _thriftId;
5928
      private final String _fieldName;
5929
 
5930
      _Fields(short thriftId, String fieldName) {
5931
        _thriftId = thriftId;
5932
        _fieldName = fieldName;
5933
      }
5934
 
5935
      public short getThriftFieldId() {
5936
        return _thriftId;
5937
      }
5938
 
5939
      public String getFieldName() {
5940
        return _fieldName;
5941
      }
5942
    }
5943
 
5944
    // isset id assignments
5945
    private static final int __ID_ISSET_ID = 0;
5946
    private BitSet __isset_bit_vector = new BitSet(1);
5947
 
3430 rajveer 5948
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5949
    static {
3430 rajveer 5950
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5951
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5953
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5955
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5956
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 5957
    }
5958
 
5959
    public updateMessage_args() {
5960
    }
5961
 
5962
    public updateMessage_args(
5963
      long id,
5964
      String message)
5965
    {
5966
      this();
5967
      this.id = id;
5968
      setIdIsSet(true);
5969
      this.message = message;
5970
    }
5971
 
5972
    /**
5973
     * Performs a deep copy on <i>other</i>.
5974
     */
5975
    public updateMessage_args(updateMessage_args other) {
5976
      __isset_bit_vector.clear();
5977
      __isset_bit_vector.or(other.__isset_bit_vector);
5978
      this.id = other.id;
5979
      if (other.isSetMessage()) {
5980
        this.message = other.message;
5981
      }
5982
    }
5983
 
5984
    public updateMessage_args deepCopy() {
5985
      return new updateMessage_args(this);
5986
    }
5987
 
3430 rajveer 5988
    @Override
5989
    public void clear() {
5990
      setIdIsSet(false);
5991
      this.id = 0;
5992
      this.message = null;
352 ashish 5993
    }
5994
 
5995
    public long getId() {
5996
      return this.id;
5997
    }
5998
 
3430 rajveer 5999
    public void setId(long id) {
352 ashish 6000
      this.id = id;
6001
      setIdIsSet(true);
6002
    }
6003
 
6004
    public void unsetId() {
6005
      __isset_bit_vector.clear(__ID_ISSET_ID);
6006
    }
6007
 
3430 rajveer 6008
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6009
    public boolean isSetId() {
6010
      return __isset_bit_vector.get(__ID_ISSET_ID);
6011
    }
6012
 
6013
    public void setIdIsSet(boolean value) {
6014
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6015
    }
6016
 
6017
    public String getMessage() {
6018
      return this.message;
6019
    }
6020
 
3430 rajveer 6021
    public void setMessage(String message) {
352 ashish 6022
      this.message = message;
6023
    }
6024
 
6025
    public void unsetMessage() {
6026
      this.message = null;
6027
    }
6028
 
3430 rajveer 6029
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6030
    public boolean isSetMessage() {
6031
      return this.message != null;
6032
    }
6033
 
6034
    public void setMessageIsSet(boolean value) {
6035
      if (!value) {
6036
        this.message = null;
6037
      }
6038
    }
6039
 
6040
    public void setFieldValue(_Fields field, Object value) {
6041
      switch (field) {
6042
      case ID:
6043
        if (value == null) {
6044
          unsetId();
6045
        } else {
6046
          setId((Long)value);
6047
        }
6048
        break;
6049
 
6050
      case MESSAGE:
6051
        if (value == null) {
6052
          unsetMessage();
6053
        } else {
6054
          setMessage((String)value);
6055
        }
6056
        break;
6057
 
6058
      }
6059
    }
6060
 
6061
    public Object getFieldValue(_Fields field) {
6062
      switch (field) {
6063
      case ID:
3430 rajveer 6064
        return Long.valueOf(getId());
352 ashish 6065
 
6066
      case MESSAGE:
6067
        return getMessage();
6068
 
6069
      }
6070
      throw new IllegalStateException();
6071
    }
6072
 
3430 rajveer 6073
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6074
    public boolean isSet(_Fields field) {
6075
      if (field == null) {
6076
        throw new IllegalArgumentException();
6077
      }
352 ashish 6078
 
6079
      switch (field) {
6080
      case ID:
6081
        return isSetId();
6082
      case MESSAGE:
6083
        return isSetMessage();
6084
      }
6085
      throw new IllegalStateException();
6086
    }
6087
 
6088
    @Override
6089
    public boolean equals(Object that) {
6090
      if (that == null)
6091
        return false;
6092
      if (that instanceof updateMessage_args)
6093
        return this.equals((updateMessage_args)that);
6094
      return false;
6095
    }
6096
 
6097
    public boolean equals(updateMessage_args that) {
6098
      if (that == null)
6099
        return false;
6100
 
6101
      boolean this_present_id = true;
6102
      boolean that_present_id = true;
6103
      if (this_present_id || that_present_id) {
6104
        if (!(this_present_id && that_present_id))
6105
          return false;
6106
        if (this.id != that.id)
6107
          return false;
6108
      }
6109
 
6110
      boolean this_present_message = true && this.isSetMessage();
6111
      boolean that_present_message = true && that.isSetMessage();
6112
      if (this_present_message || that_present_message) {
6113
        if (!(this_present_message && that_present_message))
6114
          return false;
6115
        if (!this.message.equals(that.message))
6116
          return false;
6117
      }
6118
 
6119
      return true;
6120
    }
6121
 
6122
    @Override
6123
    public int hashCode() {
6124
      return 0;
6125
    }
6126
 
6127
    public int compareTo(updateMessage_args other) {
6128
      if (!getClass().equals(other.getClass())) {
6129
        return getClass().getName().compareTo(other.getClass().getName());
6130
      }
6131
 
6132
      int lastComparison = 0;
6133
      updateMessage_args typedOther = (updateMessage_args)other;
6134
 
3430 rajveer 6135
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6136
      if (lastComparison != 0) {
6137
        return lastComparison;
6138
      }
3430 rajveer 6139
      if (isSetId()) {
6140
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6141
        if (lastComparison != 0) {
6142
          return lastComparison;
6143
        }
352 ashish 6144
      }
3430 rajveer 6145
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6146
      if (lastComparison != 0) {
6147
        return lastComparison;
6148
      }
3430 rajveer 6149
      if (isSetMessage()) {
6150
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6151
        if (lastComparison != 0) {
6152
          return lastComparison;
6153
        }
352 ashish 6154
      }
6155
      return 0;
6156
    }
6157
 
3430 rajveer 6158
    public _Fields fieldForId(int fieldId) {
6159
      return _Fields.findByThriftId(fieldId);
6160
    }
6161
 
6162
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6163
      org.apache.thrift.protocol.TField field;
352 ashish 6164
      iprot.readStructBegin();
6165
      while (true)
6166
      {
6167
        field = iprot.readFieldBegin();
3430 rajveer 6168
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6169
          break;
6170
        }
3430 rajveer 6171
        switch (field.id) {
6172
          case 1: // ID
6173
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6174
              this.id = iprot.readI64();
6175
              setIdIsSet(true);
6176
            } else { 
6177
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6178
            }
6179
            break;
6180
          case 2: // MESSAGE
6181
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6182
              this.message = iprot.readString();
6183
            } else { 
6184
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6185
            }
6186
            break;
6187
          default:
6188
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6189
        }
3430 rajveer 6190
        iprot.readFieldEnd();
352 ashish 6191
      }
6192
      iprot.readStructEnd();
6193
      validate();
6194
    }
6195
 
3430 rajveer 6196
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6197
      validate();
6198
 
6199
      oprot.writeStructBegin(STRUCT_DESC);
6200
      oprot.writeFieldBegin(ID_FIELD_DESC);
6201
      oprot.writeI64(this.id);
6202
      oprot.writeFieldEnd();
6203
      if (this.message != null) {
6204
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6205
        oprot.writeString(this.message);
6206
        oprot.writeFieldEnd();
6207
      }
6208
      oprot.writeFieldStop();
6209
      oprot.writeStructEnd();
6210
    }
6211
 
6212
    @Override
6213
    public String toString() {
6214
      StringBuilder sb = new StringBuilder("updateMessage_args(");
6215
      boolean first = true;
6216
 
6217
      sb.append("id:");
6218
      sb.append(this.id);
6219
      first = false;
6220
      if (!first) sb.append(", ");
6221
      sb.append("message:");
6222
      if (this.message == null) {
6223
        sb.append("null");
6224
      } else {
6225
        sb.append(this.message);
6226
      }
6227
      first = false;
6228
      sb.append(")");
6229
      return sb.toString();
6230
    }
6231
 
3430 rajveer 6232
    public void validate() throws org.apache.thrift.TException {
352 ashish 6233
      // check for required fields
6234
    }
6235
 
3430 rajveer 6236
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6237
      try {
6238
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6239
      } catch (org.apache.thrift.TException te) {
6240
        throw new java.io.IOException(te);
6241
      }
6242
    }
6243
 
6244
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6245
      try {
6246
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6247
        __isset_bit_vector = new BitSet(1);
6248
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6249
      } catch (org.apache.thrift.TException te) {
6250
        throw new java.io.IOException(te);
6251
      }
6252
    }
6253
 
352 ashish 6254
  }
6255
 
3430 rajveer 6256
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
6257
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 6258
 
3430 rajveer 6259
    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 6260
 
3430 rajveer 6261
    private HelperServiceException se; // required
352 ashish 6262
 
6263
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6264
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6265
      SE((short)1, "se");
6266
 
6267
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6268
 
6269
      static {
6270
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6271
          byName.put(field.getFieldName(), field);
6272
        }
6273
      }
6274
 
6275
      /**
6276
       * Find the _Fields constant that matches fieldId, or null if its not found.
6277
       */
6278
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6279
        switch(fieldId) {
6280
          case 1: // SE
6281
            return SE;
6282
          default:
6283
            return null;
6284
        }
352 ashish 6285
      }
6286
 
6287
      /**
6288
       * Find the _Fields constant that matches fieldId, throwing an exception
6289
       * if it is not found.
6290
       */
6291
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6292
        _Fields fields = findByThriftId(fieldId);
6293
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6294
        return fields;
6295
      }
6296
 
6297
      /**
6298
       * Find the _Fields constant that matches name, or null if its not found.
6299
       */
6300
      public static _Fields findByName(String name) {
6301
        return byName.get(name);
6302
      }
6303
 
6304
      private final short _thriftId;
6305
      private final String _fieldName;
6306
 
6307
      _Fields(short thriftId, String fieldName) {
6308
        _thriftId = thriftId;
6309
        _fieldName = fieldName;
6310
      }
6311
 
6312
      public short getThriftFieldId() {
6313
        return _thriftId;
6314
      }
6315
 
6316
      public String getFieldName() {
6317
        return _fieldName;
6318
      }
6319
    }
6320
 
6321
    // isset id assignments
6322
 
3430 rajveer 6323
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6324
    static {
3430 rajveer 6325
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6326
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6327
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6328
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6329
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 6330
    }
6331
 
6332
    public updateMessage_result() {
6333
    }
6334
 
6335
    public updateMessage_result(
6336
      HelperServiceException se)
6337
    {
6338
      this();
6339
      this.se = se;
6340
    }
6341
 
6342
    /**
6343
     * Performs a deep copy on <i>other</i>.
6344
     */
6345
    public updateMessage_result(updateMessage_result other) {
6346
      if (other.isSetSe()) {
6347
        this.se = new HelperServiceException(other.se);
6348
      }
6349
    }
6350
 
6351
    public updateMessage_result deepCopy() {
6352
      return new updateMessage_result(this);
6353
    }
6354
 
3430 rajveer 6355
    @Override
6356
    public void clear() {
6357
      this.se = null;
352 ashish 6358
    }
6359
 
6360
    public HelperServiceException getSe() {
6361
      return this.se;
6362
    }
6363
 
3430 rajveer 6364
    public void setSe(HelperServiceException se) {
352 ashish 6365
      this.se = se;
6366
    }
6367
 
6368
    public void unsetSe() {
6369
      this.se = null;
6370
    }
6371
 
3430 rajveer 6372
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6373
    public boolean isSetSe() {
6374
      return this.se != null;
6375
    }
6376
 
6377
    public void setSeIsSet(boolean value) {
6378
      if (!value) {
6379
        this.se = null;
6380
      }
6381
    }
6382
 
6383
    public void setFieldValue(_Fields field, Object value) {
6384
      switch (field) {
6385
      case SE:
6386
        if (value == null) {
6387
          unsetSe();
6388
        } else {
6389
          setSe((HelperServiceException)value);
6390
        }
6391
        break;
6392
 
6393
      }
6394
    }
6395
 
6396
    public Object getFieldValue(_Fields field) {
6397
      switch (field) {
6398
      case SE:
6399
        return getSe();
6400
 
6401
      }
6402
      throw new IllegalStateException();
6403
    }
6404
 
3430 rajveer 6405
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6406
    public boolean isSet(_Fields field) {
6407
      if (field == null) {
6408
        throw new IllegalArgumentException();
6409
      }
352 ashish 6410
 
6411
      switch (field) {
6412
      case SE:
6413
        return isSetSe();
6414
      }
6415
      throw new IllegalStateException();
6416
    }
6417
 
6418
    @Override
6419
    public boolean equals(Object that) {
6420
      if (that == null)
6421
        return false;
6422
      if (that instanceof updateMessage_result)
6423
        return this.equals((updateMessage_result)that);
6424
      return false;
6425
    }
6426
 
6427
    public boolean equals(updateMessage_result that) {
6428
      if (that == null)
6429
        return false;
6430
 
6431
      boolean this_present_se = true && this.isSetSe();
6432
      boolean that_present_se = true && that.isSetSe();
6433
      if (this_present_se || that_present_se) {
6434
        if (!(this_present_se && that_present_se))
6435
          return false;
6436
        if (!this.se.equals(that.se))
6437
          return false;
6438
      }
6439
 
6440
      return true;
6441
    }
6442
 
6443
    @Override
6444
    public int hashCode() {
6445
      return 0;
6446
    }
6447
 
6448
    public int compareTo(updateMessage_result other) {
6449
      if (!getClass().equals(other.getClass())) {
6450
        return getClass().getName().compareTo(other.getClass().getName());
6451
      }
6452
 
6453
      int lastComparison = 0;
6454
      updateMessage_result typedOther = (updateMessage_result)other;
6455
 
3430 rajveer 6456
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6457
      if (lastComparison != 0) {
6458
        return lastComparison;
6459
      }
3430 rajveer 6460
      if (isSetSe()) {
6461
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6462
        if (lastComparison != 0) {
6463
          return lastComparison;
6464
        }
352 ashish 6465
      }
6466
      return 0;
6467
    }
6468
 
3430 rajveer 6469
    public _Fields fieldForId(int fieldId) {
6470
      return _Fields.findByThriftId(fieldId);
6471
    }
6472
 
6473
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6474
      org.apache.thrift.protocol.TField field;
352 ashish 6475
      iprot.readStructBegin();
6476
      while (true)
6477
      {
6478
        field = iprot.readFieldBegin();
3430 rajveer 6479
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6480
          break;
6481
        }
3430 rajveer 6482
        switch (field.id) {
6483
          case 1: // SE
6484
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6485
              this.se = new HelperServiceException();
6486
              this.se.read(iprot);
6487
            } else { 
6488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6489
            }
6490
            break;
6491
          default:
6492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6493
        }
3430 rajveer 6494
        iprot.readFieldEnd();
352 ashish 6495
      }
6496
      iprot.readStructEnd();
6497
      validate();
6498
    }
6499
 
3430 rajveer 6500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6501
      oprot.writeStructBegin(STRUCT_DESC);
6502
 
6503
      if (this.isSetSe()) {
6504
        oprot.writeFieldBegin(SE_FIELD_DESC);
6505
        this.se.write(oprot);
6506
        oprot.writeFieldEnd();
6507
      }
6508
      oprot.writeFieldStop();
6509
      oprot.writeStructEnd();
6510
    }
6511
 
6512
    @Override
6513
    public String toString() {
6514
      StringBuilder sb = new StringBuilder("updateMessage_result(");
6515
      boolean first = true;
6516
 
6517
      sb.append("se:");
6518
      if (this.se == null) {
6519
        sb.append("null");
6520
      } else {
6521
        sb.append(this.se);
6522
      }
6523
      first = false;
6524
      sb.append(")");
6525
      return sb.toString();
6526
    }
6527
 
3430 rajveer 6528
    public void validate() throws org.apache.thrift.TException {
352 ashish 6529
      // check for required fields
6530
    }
6531
 
3430 rajveer 6532
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6533
      try {
6534
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6535
      } catch (org.apache.thrift.TException te) {
6536
        throw new java.io.IOException(te);
6537
      }
6538
    }
6539
 
6540
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6541
      try {
6542
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6543
      } catch (org.apache.thrift.TException te) {
6544
        throw new java.io.IOException(te);
6545
      }
6546
    }
6547
 
352 ashish 6548
  }
6549
 
3430 rajveer 6550
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
6551
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 6552
 
3430 rajveer 6553
    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 6554
 
3430 rajveer 6555
    private long id; // required
352 ashish 6556
 
6557
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6558
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6559
      ID((short)1, "id");
6560
 
6561
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6562
 
6563
      static {
6564
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6565
          byName.put(field.getFieldName(), field);
6566
        }
6567
      }
6568
 
6569
      /**
6570
       * Find the _Fields constant that matches fieldId, or null if its not found.
6571
       */
6572
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6573
        switch(fieldId) {
6574
          case 1: // ID
6575
            return ID;
6576
          default:
6577
            return null;
6578
        }
352 ashish 6579
      }
6580
 
6581
      /**
6582
       * Find the _Fields constant that matches fieldId, throwing an exception
6583
       * if it is not found.
6584
       */
6585
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6586
        _Fields fields = findByThriftId(fieldId);
6587
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6588
        return fields;
6589
      }
6590
 
6591
      /**
6592
       * Find the _Fields constant that matches name, or null if its not found.
6593
       */
6594
      public static _Fields findByName(String name) {
6595
        return byName.get(name);
6596
      }
6597
 
6598
      private final short _thriftId;
6599
      private final String _fieldName;
6600
 
6601
      _Fields(short thriftId, String fieldName) {
6602
        _thriftId = thriftId;
6603
        _fieldName = fieldName;
6604
      }
6605
 
6606
      public short getThriftFieldId() {
6607
        return _thriftId;
6608
      }
6609
 
6610
      public String getFieldName() {
6611
        return _fieldName;
6612
      }
6613
    }
6614
 
6615
    // isset id assignments
6616
    private static final int __ID_ISSET_ID = 0;
6617
    private BitSet __isset_bit_vector = new BitSet(1);
6618
 
3430 rajveer 6619
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6620
    static {
3430 rajveer 6621
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6622
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6623
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
6624
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6625
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 6626
    }
6627
 
6628
    public getMessage_args() {
6629
    }
6630
 
6631
    public getMessage_args(
6632
      long id)
6633
    {
6634
      this();
6635
      this.id = id;
6636
      setIdIsSet(true);
6637
    }
6638
 
6639
    /**
6640
     * Performs a deep copy on <i>other</i>.
6641
     */
6642
    public getMessage_args(getMessage_args other) {
6643
      __isset_bit_vector.clear();
6644
      __isset_bit_vector.or(other.__isset_bit_vector);
6645
      this.id = other.id;
6646
    }
6647
 
6648
    public getMessage_args deepCopy() {
6649
      return new getMessage_args(this);
6650
    }
6651
 
3430 rajveer 6652
    @Override
6653
    public void clear() {
6654
      setIdIsSet(false);
6655
      this.id = 0;
352 ashish 6656
    }
6657
 
6658
    public long getId() {
6659
      return this.id;
6660
    }
6661
 
3430 rajveer 6662
    public void setId(long id) {
352 ashish 6663
      this.id = id;
6664
      setIdIsSet(true);
6665
    }
6666
 
6667
    public void unsetId() {
6668
      __isset_bit_vector.clear(__ID_ISSET_ID);
6669
    }
6670
 
3430 rajveer 6671
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 6672
    public boolean isSetId() {
6673
      return __isset_bit_vector.get(__ID_ISSET_ID);
6674
    }
6675
 
6676
    public void setIdIsSet(boolean value) {
6677
      __isset_bit_vector.set(__ID_ISSET_ID, value);
6678
    }
6679
 
6680
    public void setFieldValue(_Fields field, Object value) {
6681
      switch (field) {
6682
      case ID:
6683
        if (value == null) {
6684
          unsetId();
6685
        } else {
6686
          setId((Long)value);
6687
        }
6688
        break;
6689
 
6690
      }
6691
    }
6692
 
6693
    public Object getFieldValue(_Fields field) {
6694
      switch (field) {
6695
      case ID:
3430 rajveer 6696
        return Long.valueOf(getId());
352 ashish 6697
 
6698
      }
6699
      throw new IllegalStateException();
6700
    }
6701
 
3430 rajveer 6702
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6703
    public boolean isSet(_Fields field) {
6704
      if (field == null) {
6705
        throw new IllegalArgumentException();
6706
      }
352 ashish 6707
 
6708
      switch (field) {
6709
      case ID:
6710
        return isSetId();
6711
      }
6712
      throw new IllegalStateException();
6713
    }
6714
 
6715
    @Override
6716
    public boolean equals(Object that) {
6717
      if (that == null)
6718
        return false;
6719
      if (that instanceof getMessage_args)
6720
        return this.equals((getMessage_args)that);
6721
      return false;
6722
    }
6723
 
6724
    public boolean equals(getMessage_args that) {
6725
      if (that == null)
6726
        return false;
6727
 
6728
      boolean this_present_id = true;
6729
      boolean that_present_id = true;
6730
      if (this_present_id || that_present_id) {
6731
        if (!(this_present_id && that_present_id))
6732
          return false;
6733
        if (this.id != that.id)
6734
          return false;
6735
      }
6736
 
6737
      return true;
6738
    }
6739
 
6740
    @Override
6741
    public int hashCode() {
6742
      return 0;
6743
    }
6744
 
6745
    public int compareTo(getMessage_args other) {
6746
      if (!getClass().equals(other.getClass())) {
6747
        return getClass().getName().compareTo(other.getClass().getName());
6748
      }
6749
 
6750
      int lastComparison = 0;
6751
      getMessage_args typedOther = (getMessage_args)other;
6752
 
3430 rajveer 6753
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 6754
      if (lastComparison != 0) {
6755
        return lastComparison;
6756
      }
3430 rajveer 6757
      if (isSetId()) {
6758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6759
        if (lastComparison != 0) {
6760
          return lastComparison;
6761
        }
352 ashish 6762
      }
6763
      return 0;
6764
    }
6765
 
3430 rajveer 6766
    public _Fields fieldForId(int fieldId) {
6767
      return _Fields.findByThriftId(fieldId);
6768
    }
6769
 
6770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6771
      org.apache.thrift.protocol.TField field;
352 ashish 6772
      iprot.readStructBegin();
6773
      while (true)
6774
      {
6775
        field = iprot.readFieldBegin();
3430 rajveer 6776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6777
          break;
6778
        }
3430 rajveer 6779
        switch (field.id) {
6780
          case 1: // ID
6781
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6782
              this.id = iprot.readI64();
6783
              setIdIsSet(true);
6784
            } else { 
6785
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6786
            }
6787
            break;
6788
          default:
6789
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6790
        }
3430 rajveer 6791
        iprot.readFieldEnd();
352 ashish 6792
      }
6793
      iprot.readStructEnd();
6794
      validate();
6795
    }
6796
 
3430 rajveer 6797
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6798
      validate();
6799
 
6800
      oprot.writeStructBegin(STRUCT_DESC);
6801
      oprot.writeFieldBegin(ID_FIELD_DESC);
6802
      oprot.writeI64(this.id);
6803
      oprot.writeFieldEnd();
6804
      oprot.writeFieldStop();
6805
      oprot.writeStructEnd();
6806
    }
6807
 
6808
    @Override
6809
    public String toString() {
6810
      StringBuilder sb = new StringBuilder("getMessage_args(");
6811
      boolean first = true;
6812
 
6813
      sb.append("id:");
6814
      sb.append(this.id);
6815
      first = false;
6816
      sb.append(")");
6817
      return sb.toString();
6818
    }
6819
 
3430 rajveer 6820
    public void validate() throws org.apache.thrift.TException {
352 ashish 6821
      // check for required fields
6822
    }
6823
 
3430 rajveer 6824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6825
      try {
6826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6827
      } catch (org.apache.thrift.TException te) {
6828
        throw new java.io.IOException(te);
6829
      }
6830
    }
6831
 
6832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6833
      try {
6834
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6835
        __isset_bit_vector = new BitSet(1);
6836
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6837
      } catch (org.apache.thrift.TException te) {
6838
        throw new java.io.IOException(te);
6839
      }
6840
    }
6841
 
352 ashish 6842
  }
6843
 
3430 rajveer 6844
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
6845
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 6846
 
3430 rajveer 6847
    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);
6848
    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 6849
 
3430 rajveer 6850
    private Message success; // required
6851
    private HelperServiceException se; // required
352 ashish 6852
 
6853
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6854
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6855
      SUCCESS((short)0, "success"),
6856
      SE((short)1, "se");
6857
 
6858
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6859
 
6860
      static {
6861
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6862
          byName.put(field.getFieldName(), field);
6863
        }
6864
      }
6865
 
6866
      /**
6867
       * Find the _Fields constant that matches fieldId, or null if its not found.
6868
       */
6869
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6870
        switch(fieldId) {
6871
          case 0: // SUCCESS
6872
            return SUCCESS;
6873
          case 1: // SE
6874
            return SE;
6875
          default:
6876
            return null;
6877
        }
352 ashish 6878
      }
6879
 
6880
      /**
6881
       * Find the _Fields constant that matches fieldId, throwing an exception
6882
       * if it is not found.
6883
       */
6884
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6885
        _Fields fields = findByThriftId(fieldId);
6886
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6887
        return fields;
6888
      }
6889
 
6890
      /**
6891
       * Find the _Fields constant that matches name, or null if its not found.
6892
       */
6893
      public static _Fields findByName(String name) {
6894
        return byName.get(name);
6895
      }
6896
 
6897
      private final short _thriftId;
6898
      private final String _fieldName;
6899
 
6900
      _Fields(short thriftId, String fieldName) {
6901
        _thriftId = thriftId;
6902
        _fieldName = fieldName;
6903
      }
6904
 
6905
      public short getThriftFieldId() {
6906
        return _thriftId;
6907
      }
6908
 
6909
      public String getFieldName() {
6910
        return _fieldName;
6911
      }
6912
    }
6913
 
6914
    // isset id assignments
6915
 
3430 rajveer 6916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6917
    static {
3430 rajveer 6918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6919
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6920
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6921
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6922
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6923
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6924
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 6925
    }
6926
 
6927
    public getMessage_result() {
6928
    }
6929
 
6930
    public getMessage_result(
6931
      Message success,
6932
      HelperServiceException se)
6933
    {
6934
      this();
6935
      this.success = success;
6936
      this.se = se;
6937
    }
6938
 
6939
    /**
6940
     * Performs a deep copy on <i>other</i>.
6941
     */
6942
    public getMessage_result(getMessage_result other) {
6943
      if (other.isSetSuccess()) {
6944
        this.success = new Message(other.success);
6945
      }
6946
      if (other.isSetSe()) {
6947
        this.se = new HelperServiceException(other.se);
6948
      }
6949
    }
6950
 
6951
    public getMessage_result deepCopy() {
6952
      return new getMessage_result(this);
6953
    }
6954
 
3430 rajveer 6955
    @Override
6956
    public void clear() {
6957
      this.success = null;
6958
      this.se = null;
352 ashish 6959
    }
6960
 
6961
    public Message getSuccess() {
6962
      return this.success;
6963
    }
6964
 
3430 rajveer 6965
    public void setSuccess(Message success) {
352 ashish 6966
      this.success = success;
6967
    }
6968
 
6969
    public void unsetSuccess() {
6970
      this.success = null;
6971
    }
6972
 
3430 rajveer 6973
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 6974
    public boolean isSetSuccess() {
6975
      return this.success != null;
6976
    }
6977
 
6978
    public void setSuccessIsSet(boolean value) {
6979
      if (!value) {
6980
        this.success = null;
6981
      }
6982
    }
6983
 
6984
    public HelperServiceException getSe() {
6985
      return this.se;
6986
    }
6987
 
3430 rajveer 6988
    public void setSe(HelperServiceException se) {
352 ashish 6989
      this.se = se;
6990
    }
6991
 
6992
    public void unsetSe() {
6993
      this.se = null;
6994
    }
6995
 
3430 rajveer 6996
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6997
    public boolean isSetSe() {
6998
      return this.se != null;
6999
    }
7000
 
7001
    public void setSeIsSet(boolean value) {
7002
      if (!value) {
7003
        this.se = null;
7004
      }
7005
    }
7006
 
7007
    public void setFieldValue(_Fields field, Object value) {
7008
      switch (field) {
7009
      case SUCCESS:
7010
        if (value == null) {
7011
          unsetSuccess();
7012
        } else {
7013
          setSuccess((Message)value);
7014
        }
7015
        break;
7016
 
7017
      case SE:
7018
        if (value == null) {
7019
          unsetSe();
7020
        } else {
7021
          setSe((HelperServiceException)value);
7022
        }
7023
        break;
7024
 
7025
      }
7026
    }
7027
 
7028
    public Object getFieldValue(_Fields field) {
7029
      switch (field) {
7030
      case SUCCESS:
7031
        return getSuccess();
7032
 
7033
      case SE:
7034
        return getSe();
7035
 
7036
      }
7037
      throw new IllegalStateException();
7038
    }
7039
 
3430 rajveer 7040
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7041
    public boolean isSet(_Fields field) {
7042
      if (field == null) {
7043
        throw new IllegalArgumentException();
7044
      }
352 ashish 7045
 
7046
      switch (field) {
7047
      case SUCCESS:
7048
        return isSetSuccess();
7049
      case SE:
7050
        return isSetSe();
7051
      }
7052
      throw new IllegalStateException();
7053
    }
7054
 
7055
    @Override
7056
    public boolean equals(Object that) {
7057
      if (that == null)
7058
        return false;
7059
      if (that instanceof getMessage_result)
7060
        return this.equals((getMessage_result)that);
7061
      return false;
7062
    }
7063
 
7064
    public boolean equals(getMessage_result that) {
7065
      if (that == null)
7066
        return false;
7067
 
7068
      boolean this_present_success = true && this.isSetSuccess();
7069
      boolean that_present_success = true && that.isSetSuccess();
7070
      if (this_present_success || that_present_success) {
7071
        if (!(this_present_success && that_present_success))
7072
          return false;
7073
        if (!this.success.equals(that.success))
7074
          return false;
7075
      }
7076
 
7077
      boolean this_present_se = true && this.isSetSe();
7078
      boolean that_present_se = true && that.isSetSe();
7079
      if (this_present_se || that_present_se) {
7080
        if (!(this_present_se && that_present_se))
7081
          return false;
7082
        if (!this.se.equals(that.se))
7083
          return false;
7084
      }
7085
 
7086
      return true;
7087
    }
7088
 
7089
    @Override
7090
    public int hashCode() {
7091
      return 0;
7092
    }
7093
 
7094
    public int compareTo(getMessage_result other) {
7095
      if (!getClass().equals(other.getClass())) {
7096
        return getClass().getName().compareTo(other.getClass().getName());
7097
      }
7098
 
7099
      int lastComparison = 0;
7100
      getMessage_result typedOther = (getMessage_result)other;
7101
 
3430 rajveer 7102
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7103
      if (lastComparison != 0) {
7104
        return lastComparison;
7105
      }
3430 rajveer 7106
      if (isSetSuccess()) {
7107
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7108
        if (lastComparison != 0) {
7109
          return lastComparison;
7110
        }
352 ashish 7111
      }
3430 rajveer 7112
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7113
      if (lastComparison != 0) {
7114
        return lastComparison;
7115
      }
3430 rajveer 7116
      if (isSetSe()) {
7117
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7118
        if (lastComparison != 0) {
7119
          return lastComparison;
7120
        }
352 ashish 7121
      }
7122
      return 0;
7123
    }
7124
 
3430 rajveer 7125
    public _Fields fieldForId(int fieldId) {
7126
      return _Fields.findByThriftId(fieldId);
7127
    }
7128
 
7129
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7130
      org.apache.thrift.protocol.TField field;
352 ashish 7131
      iprot.readStructBegin();
7132
      while (true)
7133
      {
7134
        field = iprot.readFieldBegin();
3430 rajveer 7135
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7136
          break;
7137
        }
3430 rajveer 7138
        switch (field.id) {
7139
          case 0: // SUCCESS
7140
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7141
              this.success = new Message();
7142
              this.success.read(iprot);
7143
            } else { 
7144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7145
            }
7146
            break;
7147
          case 1: // SE
7148
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7149
              this.se = new HelperServiceException();
7150
              this.se.read(iprot);
7151
            } else { 
7152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7153
            }
7154
            break;
7155
          default:
7156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7157
        }
3430 rajveer 7158
        iprot.readFieldEnd();
352 ashish 7159
      }
7160
      iprot.readStructEnd();
7161
      validate();
7162
    }
7163
 
3430 rajveer 7164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7165
      oprot.writeStructBegin(STRUCT_DESC);
7166
 
7167
      if (this.isSetSuccess()) {
7168
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7169
        this.success.write(oprot);
7170
        oprot.writeFieldEnd();
7171
      } else if (this.isSetSe()) {
7172
        oprot.writeFieldBegin(SE_FIELD_DESC);
7173
        this.se.write(oprot);
7174
        oprot.writeFieldEnd();
7175
      }
7176
      oprot.writeFieldStop();
7177
      oprot.writeStructEnd();
7178
    }
7179
 
7180
    @Override
7181
    public String toString() {
7182
      StringBuilder sb = new StringBuilder("getMessage_result(");
7183
      boolean first = true;
7184
 
7185
      sb.append("success:");
7186
      if (this.success == null) {
7187
        sb.append("null");
7188
      } else {
7189
        sb.append(this.success);
7190
      }
7191
      first = false;
7192
      if (!first) sb.append(", ");
7193
      sb.append("se:");
7194
      if (this.se == null) {
7195
        sb.append("null");
7196
      } else {
7197
        sb.append(this.se);
7198
      }
7199
      first = false;
7200
      sb.append(")");
7201
      return sb.toString();
7202
    }
7203
 
3430 rajveer 7204
    public void validate() throws org.apache.thrift.TException {
352 ashish 7205
      // check for required fields
7206
    }
7207
 
3430 rajveer 7208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7209
      try {
7210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7211
      } catch (org.apache.thrift.TException te) {
7212
        throw new java.io.IOException(te);
7213
      }
7214
    }
7215
 
7216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7217
      try {
7218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7219
      } catch (org.apache.thrift.TException te) {
7220
        throw new java.io.IOException(te);
7221
      }
7222
    }
7223
 
352 ashish 7224
  }
7225
 
3430 rajveer 7226
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 7228
 
3430 rajveer 7229
    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);
7230
    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 7231
 
3430 rajveer 7232
    private long id; // required
7233
    private Map<String,String> params; // required
352 ashish 7234
 
7235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7237
      ID((short)1, "id"),
7238
      PARAMS((short)2, "params");
7239
 
7240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7241
 
7242
      static {
7243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7244
          byName.put(field.getFieldName(), field);
7245
        }
7246
      }
7247
 
7248
      /**
7249
       * Find the _Fields constant that matches fieldId, or null if its not found.
7250
       */
7251
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7252
        switch(fieldId) {
7253
          case 1: // ID
7254
            return ID;
7255
          case 2: // PARAMS
7256
            return PARAMS;
7257
          default:
7258
            return null;
7259
        }
352 ashish 7260
      }
7261
 
7262
      /**
7263
       * Find the _Fields constant that matches fieldId, throwing an exception
7264
       * if it is not found.
7265
       */
7266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7267
        _Fields fields = findByThriftId(fieldId);
7268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7269
        return fields;
7270
      }
7271
 
7272
      /**
7273
       * Find the _Fields constant that matches name, or null if its not found.
7274
       */
7275
      public static _Fields findByName(String name) {
7276
        return byName.get(name);
7277
      }
7278
 
7279
      private final short _thriftId;
7280
      private final String _fieldName;
7281
 
7282
      _Fields(short thriftId, String fieldName) {
7283
        _thriftId = thriftId;
7284
        _fieldName = fieldName;
7285
      }
7286
 
7287
      public short getThriftFieldId() {
7288
        return _thriftId;
7289
      }
7290
 
7291
      public String getFieldName() {
7292
        return _fieldName;
7293
      }
7294
    }
7295
 
7296
    // isset id assignments
7297
    private static final int __ID_ISSET_ID = 0;
7298
    private BitSet __isset_bit_vector = new BitSet(1);
7299
 
3430 rajveer 7300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7301
    static {
3430 rajveer 7302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7303
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7305
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7306
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
7307
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
7308
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
7309
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7310
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 7311
    }
7312
 
7313
    public getSubstitutedMessage_args() {
7314
    }
7315
 
7316
    public getSubstitutedMessage_args(
7317
      long id,
7318
      Map<String,String> params)
7319
    {
7320
      this();
7321
      this.id = id;
7322
      setIdIsSet(true);
7323
      this.params = params;
7324
    }
7325
 
7326
    /**
7327
     * Performs a deep copy on <i>other</i>.
7328
     */
7329
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
7330
      __isset_bit_vector.clear();
7331
      __isset_bit_vector.or(other.__isset_bit_vector);
7332
      this.id = other.id;
7333
      if (other.isSetParams()) {
7334
        Map<String,String> __this__params = new HashMap<String,String>();
7335
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
7336
 
7337
          String other_element_key = other_element.getKey();
7338
          String other_element_value = other_element.getValue();
7339
 
7340
          String __this__params_copy_key = other_element_key;
7341
 
7342
          String __this__params_copy_value = other_element_value;
7343
 
7344
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
7345
        }
7346
        this.params = __this__params;
7347
      }
7348
    }
7349
 
7350
    public getSubstitutedMessage_args deepCopy() {
7351
      return new getSubstitutedMessage_args(this);
7352
    }
7353
 
3430 rajveer 7354
    @Override
7355
    public void clear() {
7356
      setIdIsSet(false);
7357
      this.id = 0;
7358
      this.params = null;
352 ashish 7359
    }
7360
 
7361
    public long getId() {
7362
      return this.id;
7363
    }
7364
 
3430 rajveer 7365
    public void setId(long id) {
352 ashish 7366
      this.id = id;
7367
      setIdIsSet(true);
7368
    }
7369
 
7370
    public void unsetId() {
7371
      __isset_bit_vector.clear(__ID_ISSET_ID);
7372
    }
7373
 
3430 rajveer 7374
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7375
    public boolean isSetId() {
7376
      return __isset_bit_vector.get(__ID_ISSET_ID);
7377
    }
7378
 
7379
    public void setIdIsSet(boolean value) {
7380
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7381
    }
7382
 
7383
    public int getParamsSize() {
7384
      return (this.params == null) ? 0 : this.params.size();
7385
    }
7386
 
7387
    public void putToParams(String key, String val) {
7388
      if (this.params == null) {
7389
        this.params = new HashMap<String,String>();
7390
      }
7391
      this.params.put(key, val);
7392
    }
7393
 
7394
    public Map<String,String> getParams() {
7395
      return this.params;
7396
    }
7397
 
3430 rajveer 7398
    public void setParams(Map<String,String> params) {
352 ashish 7399
      this.params = params;
7400
    }
7401
 
7402
    public void unsetParams() {
7403
      this.params = null;
7404
    }
7405
 
3430 rajveer 7406
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 7407
    public boolean isSetParams() {
7408
      return this.params != null;
7409
    }
7410
 
7411
    public void setParamsIsSet(boolean value) {
7412
      if (!value) {
7413
        this.params = null;
7414
      }
7415
    }
7416
 
7417
    public void setFieldValue(_Fields field, Object value) {
7418
      switch (field) {
7419
      case ID:
7420
        if (value == null) {
7421
          unsetId();
7422
        } else {
7423
          setId((Long)value);
7424
        }
7425
        break;
7426
 
7427
      case PARAMS:
7428
        if (value == null) {
7429
          unsetParams();
7430
        } else {
7431
          setParams((Map<String,String>)value);
7432
        }
7433
        break;
7434
 
7435
      }
7436
    }
7437
 
7438
    public Object getFieldValue(_Fields field) {
7439
      switch (field) {
7440
      case ID:
3430 rajveer 7441
        return Long.valueOf(getId());
352 ashish 7442
 
7443
      case PARAMS:
7444
        return getParams();
7445
 
7446
      }
7447
      throw new IllegalStateException();
7448
    }
7449
 
3430 rajveer 7450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7451
    public boolean isSet(_Fields field) {
7452
      if (field == null) {
7453
        throw new IllegalArgumentException();
7454
      }
352 ashish 7455
 
7456
      switch (field) {
7457
      case ID:
7458
        return isSetId();
7459
      case PARAMS:
7460
        return isSetParams();
7461
      }
7462
      throw new IllegalStateException();
7463
    }
7464
 
7465
    @Override
7466
    public boolean equals(Object that) {
7467
      if (that == null)
7468
        return false;
7469
      if (that instanceof getSubstitutedMessage_args)
7470
        return this.equals((getSubstitutedMessage_args)that);
7471
      return false;
7472
    }
7473
 
7474
    public boolean equals(getSubstitutedMessage_args that) {
7475
      if (that == null)
7476
        return false;
7477
 
7478
      boolean this_present_id = true;
7479
      boolean that_present_id = true;
7480
      if (this_present_id || that_present_id) {
7481
        if (!(this_present_id && that_present_id))
7482
          return false;
7483
        if (this.id != that.id)
7484
          return false;
7485
      }
7486
 
7487
      boolean this_present_params = true && this.isSetParams();
7488
      boolean that_present_params = true && that.isSetParams();
7489
      if (this_present_params || that_present_params) {
7490
        if (!(this_present_params && that_present_params))
7491
          return false;
7492
        if (!this.params.equals(that.params))
7493
          return false;
7494
      }
7495
 
7496
      return true;
7497
    }
7498
 
7499
    @Override
7500
    public int hashCode() {
7501
      return 0;
7502
    }
7503
 
3430 rajveer 7504
    public int compareTo(getSubstitutedMessage_args other) {
7505
      if (!getClass().equals(other.getClass())) {
7506
        return getClass().getName().compareTo(other.getClass().getName());
7507
      }
7508
 
7509
      int lastComparison = 0;
7510
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
7511
 
7512
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
7513
      if (lastComparison != 0) {
7514
        return lastComparison;
7515
      }
7516
      if (isSetId()) {
7517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7518
        if (lastComparison != 0) {
7519
          return lastComparison;
7520
        }
7521
      }
7522
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
7523
      if (lastComparison != 0) {
7524
        return lastComparison;
7525
      }
7526
      if (isSetParams()) {
7527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
7528
        if (lastComparison != 0) {
7529
          return lastComparison;
7530
        }
7531
      }
7532
      return 0;
7533
    }
7534
 
7535
    public _Fields fieldForId(int fieldId) {
7536
      return _Fields.findByThriftId(fieldId);
7537
    }
7538
 
7539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7540
      org.apache.thrift.protocol.TField field;
352 ashish 7541
      iprot.readStructBegin();
7542
      while (true)
7543
      {
7544
        field = iprot.readFieldBegin();
3430 rajveer 7545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7546
          break;
7547
        }
3430 rajveer 7548
        switch (field.id) {
7549
          case 1: // ID
7550
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7551
              this.id = iprot.readI64();
7552
              setIdIsSet(true);
7553
            } else { 
7554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7555
            }
7556
            break;
7557
          case 2: // PARAMS
7558
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
7559
              {
7560
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
7561
                this.params = new HashMap<String,String>(2*_map12.size);
7562
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
352 ashish 7563
                {
3430 rajveer 7564
                  String _key14; // required
7565
                  String _val15; // required
7566
                  _key14 = iprot.readString();
7567
                  _val15 = iprot.readString();
7568
                  this.params.put(_key14, _val15);
352 ashish 7569
                }
3430 rajveer 7570
                iprot.readMapEnd();
352 ashish 7571
              }
3430 rajveer 7572
            } else { 
7573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7574
            }
7575
            break;
7576
          default:
7577
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7578
        }
3430 rajveer 7579
        iprot.readFieldEnd();
352 ashish 7580
      }
7581
      iprot.readStructEnd();
7582
      validate();
7583
    }
7584
 
3430 rajveer 7585
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7586
      validate();
7587
 
7588
      oprot.writeStructBegin(STRUCT_DESC);
7589
      oprot.writeFieldBegin(ID_FIELD_DESC);
7590
      oprot.writeI64(this.id);
7591
      oprot.writeFieldEnd();
7592
      if (this.params != null) {
7593
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
7594
        {
3430 rajveer 7595
          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 7596
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
352 ashish 7597
          {
1422 varun.gupt 7598
            oprot.writeString(_iter16.getKey());
7599
            oprot.writeString(_iter16.getValue());
352 ashish 7600
          }
7601
          oprot.writeMapEnd();
7602
        }
7603
        oprot.writeFieldEnd();
7604
      }
7605
      oprot.writeFieldStop();
7606
      oprot.writeStructEnd();
7607
    }
7608
 
7609
    @Override
7610
    public String toString() {
7611
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
7612
      boolean first = true;
7613
 
7614
      sb.append("id:");
7615
      sb.append(this.id);
7616
      first = false;
7617
      if (!first) sb.append(", ");
7618
      sb.append("params:");
7619
      if (this.params == null) {
7620
        sb.append("null");
7621
      } else {
7622
        sb.append(this.params);
7623
      }
7624
      first = false;
7625
      sb.append(")");
7626
      return sb.toString();
7627
    }
7628
 
3430 rajveer 7629
    public void validate() throws org.apache.thrift.TException {
352 ashish 7630
      // check for required fields
7631
    }
7632
 
3430 rajveer 7633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7634
      try {
7635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7636
      } catch (org.apache.thrift.TException te) {
7637
        throw new java.io.IOException(te);
7638
      }
7639
    }
7640
 
7641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7642
      try {
7643
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7644
        __isset_bit_vector = new BitSet(1);
7645
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7646
      } catch (org.apache.thrift.TException te) {
7647
        throw new java.io.IOException(te);
7648
      }
7649
    }
7650
 
352 ashish 7651
  }
7652
 
3430 rajveer 7653
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
7654
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 7655
 
3430 rajveer 7656
    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);
7657
    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 7658
 
3430 rajveer 7659
    private Message success; // required
7660
    private HelperServiceException se; // required
352 ashish 7661
 
7662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7663
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7664
      SUCCESS((short)0, "success"),
7665
      SE((short)1, "se");
7666
 
7667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7668
 
7669
      static {
7670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7671
          byName.put(field.getFieldName(), field);
7672
        }
7673
      }
7674
 
7675
      /**
7676
       * Find the _Fields constant that matches fieldId, or null if its not found.
7677
       */
7678
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7679
        switch(fieldId) {
7680
          case 0: // SUCCESS
7681
            return SUCCESS;
7682
          case 1: // SE
7683
            return SE;
7684
          default:
7685
            return null;
7686
        }
352 ashish 7687
      }
7688
 
7689
      /**
7690
       * Find the _Fields constant that matches fieldId, throwing an exception
7691
       * if it is not found.
7692
       */
7693
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7694
        _Fields fields = findByThriftId(fieldId);
7695
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7696
        return fields;
7697
      }
7698
 
7699
      /**
7700
       * Find the _Fields constant that matches name, or null if its not found.
7701
       */
7702
      public static _Fields findByName(String name) {
7703
        return byName.get(name);
7704
      }
7705
 
7706
      private final short _thriftId;
7707
      private final String _fieldName;
7708
 
7709
      _Fields(short thriftId, String fieldName) {
7710
        _thriftId = thriftId;
7711
        _fieldName = fieldName;
7712
      }
7713
 
7714
      public short getThriftFieldId() {
7715
        return _thriftId;
7716
      }
7717
 
7718
      public String getFieldName() {
7719
        return _fieldName;
7720
      }
7721
    }
7722
 
7723
    // isset id assignments
7724
 
3430 rajveer 7725
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7726
    static {
3430 rajveer 7727
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7728
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7729
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7730
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7732
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7733
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 7734
    }
7735
 
7736
    public getSubstitutedMessage_result() {
7737
    }
7738
 
7739
    public getSubstitutedMessage_result(
7740
      Message success,
7741
      HelperServiceException se)
7742
    {
7743
      this();
7744
      this.success = success;
7745
      this.se = se;
7746
    }
7747
 
7748
    /**
7749
     * Performs a deep copy on <i>other</i>.
7750
     */
7751
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
7752
      if (other.isSetSuccess()) {
7753
        this.success = new Message(other.success);
7754
      }
7755
      if (other.isSetSe()) {
7756
        this.se = new HelperServiceException(other.se);
7757
      }
7758
    }
7759
 
7760
    public getSubstitutedMessage_result deepCopy() {
7761
      return new getSubstitutedMessage_result(this);
7762
    }
7763
 
3430 rajveer 7764
    @Override
7765
    public void clear() {
7766
      this.success = null;
7767
      this.se = null;
352 ashish 7768
    }
7769
 
7770
    public Message getSuccess() {
7771
      return this.success;
7772
    }
7773
 
3430 rajveer 7774
    public void setSuccess(Message success) {
352 ashish 7775
      this.success = success;
7776
    }
7777
 
7778
    public void unsetSuccess() {
7779
      this.success = null;
7780
    }
7781
 
3430 rajveer 7782
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 7783
    public boolean isSetSuccess() {
7784
      return this.success != null;
7785
    }
7786
 
7787
    public void setSuccessIsSet(boolean value) {
7788
      if (!value) {
7789
        this.success = null;
7790
      }
7791
    }
7792
 
7793
    public HelperServiceException getSe() {
7794
      return this.se;
7795
    }
7796
 
3430 rajveer 7797
    public void setSe(HelperServiceException se) {
352 ashish 7798
      this.se = se;
7799
    }
7800
 
7801
    public void unsetSe() {
7802
      this.se = null;
7803
    }
7804
 
3430 rajveer 7805
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7806
    public boolean isSetSe() {
7807
      return this.se != null;
7808
    }
7809
 
7810
    public void setSeIsSet(boolean value) {
7811
      if (!value) {
7812
        this.se = null;
7813
      }
7814
    }
7815
 
7816
    public void setFieldValue(_Fields field, Object value) {
7817
      switch (field) {
7818
      case SUCCESS:
7819
        if (value == null) {
7820
          unsetSuccess();
7821
        } else {
7822
          setSuccess((Message)value);
7823
        }
7824
        break;
7825
 
7826
      case SE:
7827
        if (value == null) {
7828
          unsetSe();
7829
        } else {
7830
          setSe((HelperServiceException)value);
7831
        }
7832
        break;
7833
 
7834
      }
7835
    }
7836
 
7837
    public Object getFieldValue(_Fields field) {
7838
      switch (field) {
7839
      case SUCCESS:
7840
        return getSuccess();
7841
 
7842
      case SE:
7843
        return getSe();
7844
 
7845
      }
7846
      throw new IllegalStateException();
7847
    }
7848
 
3430 rajveer 7849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7850
    public boolean isSet(_Fields field) {
7851
      if (field == null) {
7852
        throw new IllegalArgumentException();
7853
      }
352 ashish 7854
 
7855
      switch (field) {
7856
      case SUCCESS:
7857
        return isSetSuccess();
7858
      case SE:
7859
        return isSetSe();
7860
      }
7861
      throw new IllegalStateException();
7862
    }
7863
 
7864
    @Override
7865
    public boolean equals(Object that) {
7866
      if (that == null)
7867
        return false;
7868
      if (that instanceof getSubstitutedMessage_result)
7869
        return this.equals((getSubstitutedMessage_result)that);
7870
      return false;
7871
    }
7872
 
7873
    public boolean equals(getSubstitutedMessage_result that) {
7874
      if (that == null)
7875
        return false;
7876
 
7877
      boolean this_present_success = true && this.isSetSuccess();
7878
      boolean that_present_success = true && that.isSetSuccess();
7879
      if (this_present_success || that_present_success) {
7880
        if (!(this_present_success && that_present_success))
7881
          return false;
7882
        if (!this.success.equals(that.success))
7883
          return false;
7884
      }
7885
 
7886
      boolean this_present_se = true && this.isSetSe();
7887
      boolean that_present_se = true && that.isSetSe();
7888
      if (this_present_se || that_present_se) {
7889
        if (!(this_present_se && that_present_se))
7890
          return false;
7891
        if (!this.se.equals(that.se))
7892
          return false;
7893
      }
7894
 
7895
      return true;
7896
    }
7897
 
7898
    @Override
7899
    public int hashCode() {
7900
      return 0;
7901
    }
7902
 
7903
    public int compareTo(getSubstitutedMessage_result other) {
7904
      if (!getClass().equals(other.getClass())) {
7905
        return getClass().getName().compareTo(other.getClass().getName());
7906
      }
7907
 
7908
      int lastComparison = 0;
7909
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
7910
 
3430 rajveer 7911
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 7912
      if (lastComparison != 0) {
7913
        return lastComparison;
7914
      }
3430 rajveer 7915
      if (isSetSuccess()) {
7916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7917
        if (lastComparison != 0) {
7918
          return lastComparison;
7919
        }
352 ashish 7920
      }
3430 rajveer 7921
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7922
      if (lastComparison != 0) {
7923
        return lastComparison;
7924
      }
3430 rajveer 7925
      if (isSetSe()) {
7926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7927
        if (lastComparison != 0) {
7928
          return lastComparison;
7929
        }
352 ashish 7930
      }
7931
      return 0;
7932
    }
7933
 
3430 rajveer 7934
    public _Fields fieldForId(int fieldId) {
7935
      return _Fields.findByThriftId(fieldId);
7936
    }
7937
 
7938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7939
      org.apache.thrift.protocol.TField field;
352 ashish 7940
      iprot.readStructBegin();
7941
      while (true)
7942
      {
7943
        field = iprot.readFieldBegin();
3430 rajveer 7944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7945
          break;
7946
        }
3430 rajveer 7947
        switch (field.id) {
7948
          case 0: // SUCCESS
7949
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7950
              this.success = new Message();
7951
              this.success.read(iprot);
7952
            } else { 
7953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7954
            }
7955
            break;
7956
          case 1: // SE
7957
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7958
              this.se = new HelperServiceException();
7959
              this.se.read(iprot);
7960
            } else { 
7961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7962
            }
7963
            break;
7964
          default:
7965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7966
        }
3430 rajveer 7967
        iprot.readFieldEnd();
352 ashish 7968
      }
7969
      iprot.readStructEnd();
7970
      validate();
7971
    }
7972
 
3430 rajveer 7973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7974
      oprot.writeStructBegin(STRUCT_DESC);
7975
 
7976
      if (this.isSetSuccess()) {
7977
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7978
        this.success.write(oprot);
7979
        oprot.writeFieldEnd();
7980
      } else if (this.isSetSe()) {
7981
        oprot.writeFieldBegin(SE_FIELD_DESC);
7982
        this.se.write(oprot);
7983
        oprot.writeFieldEnd();
7984
      }
7985
      oprot.writeFieldStop();
7986
      oprot.writeStructEnd();
7987
    }
7988
 
7989
    @Override
7990
    public String toString() {
7991
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
7992
      boolean first = true;
7993
 
7994
      sb.append("success:");
7995
      if (this.success == null) {
7996
        sb.append("null");
7997
      } else {
7998
        sb.append(this.success);
7999
      }
8000
      first = false;
8001
      if (!first) sb.append(", ");
8002
      sb.append("se:");
8003
      if (this.se == null) {
8004
        sb.append("null");
8005
      } else {
8006
        sb.append(this.se);
8007
      }
8008
      first = false;
8009
      sb.append(")");
8010
      return sb.toString();
8011
    }
8012
 
3430 rajveer 8013
    public void validate() throws org.apache.thrift.TException {
352 ashish 8014
      // check for required fields
8015
    }
8016
 
3430 rajveer 8017
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8018
      try {
8019
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8020
      } catch (org.apache.thrift.TException te) {
8021
        throw new java.io.IOException(te);
8022
      }
8023
    }
8024
 
8025
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8026
      try {
8027
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8028
      } catch (org.apache.thrift.TException te) {
8029
        throw new java.io.IOException(te);
8030
      }
8031
    }
8032
 
352 ashish 8033
  }
8034
 
3430 rajveer 8035
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
8036
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 8037
 
3430 rajveer 8038
    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);
8039
    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);
8040
    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 8041
 
3430 rajveer 8042
    private String username; // required
8043
    private String password; // required
8044
    private long warehouseId; // required
495 rajveer 8045
 
8046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8047
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8048
      USERNAME((short)1, "username"),
8049
      PASSWORD((short)2, "password"),
8050
      WAREHOUSE_ID((short)3, "warehouseId");
8051
 
8052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8053
 
8054
      static {
8055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8056
          byName.put(field.getFieldName(), field);
8057
        }
8058
      }
8059
 
8060
      /**
8061
       * Find the _Fields constant that matches fieldId, or null if its not found.
8062
       */
8063
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8064
        switch(fieldId) {
8065
          case 1: // USERNAME
8066
            return USERNAME;
8067
          case 2: // PASSWORD
8068
            return PASSWORD;
8069
          case 3: // WAREHOUSE_ID
8070
            return WAREHOUSE_ID;
8071
          default:
8072
            return null;
8073
        }
495 rajveer 8074
      }
8075
 
8076
      /**
8077
       * Find the _Fields constant that matches fieldId, throwing an exception
8078
       * if it is not found.
8079
       */
8080
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8081
        _Fields fields = findByThriftId(fieldId);
8082
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8083
        return fields;
8084
      }
8085
 
8086
      /**
8087
       * Find the _Fields constant that matches name, or null if its not found.
8088
       */
8089
      public static _Fields findByName(String name) {
8090
        return byName.get(name);
8091
      }
8092
 
8093
      private final short _thriftId;
8094
      private final String _fieldName;
8095
 
8096
      _Fields(short thriftId, String fieldName) {
8097
        _thriftId = thriftId;
8098
        _fieldName = fieldName;
8099
      }
8100
 
8101
      public short getThriftFieldId() {
8102
        return _thriftId;
8103
      }
8104
 
8105
      public String getFieldName() {
8106
        return _fieldName;
8107
      }
8108
    }
8109
 
8110
    // isset id assignments
8111
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8112
    private BitSet __isset_bit_vector = new BitSet(1);
8113
 
3430 rajveer 8114
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8115
    static {
3430 rajveer 8116
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8117
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8118
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8119
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8121
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 8125
    }
8126
 
8127
    public addUser_args() {
8128
    }
8129
 
8130
    public addUser_args(
8131
      String username,
8132
      String password,
8133
      long warehouseId)
8134
    {
8135
      this();
8136
      this.username = username;
8137
      this.password = password;
8138
      this.warehouseId = warehouseId;
8139
      setWarehouseIdIsSet(true);
8140
    }
8141
 
8142
    /**
8143
     * Performs a deep copy on <i>other</i>.
8144
     */
8145
    public addUser_args(addUser_args other) {
8146
      __isset_bit_vector.clear();
8147
      __isset_bit_vector.or(other.__isset_bit_vector);
8148
      if (other.isSetUsername()) {
8149
        this.username = other.username;
8150
      }
8151
      if (other.isSetPassword()) {
8152
        this.password = other.password;
8153
      }
8154
      this.warehouseId = other.warehouseId;
8155
    }
8156
 
8157
    public addUser_args deepCopy() {
8158
      return new addUser_args(this);
8159
    }
8160
 
3430 rajveer 8161
    @Override
8162
    public void clear() {
8163
      this.username = null;
8164
      this.password = null;
8165
      setWarehouseIdIsSet(false);
8166
      this.warehouseId = 0;
495 rajveer 8167
    }
8168
 
8169
    public String getUsername() {
8170
      return this.username;
8171
    }
8172
 
3430 rajveer 8173
    public void setUsername(String username) {
495 rajveer 8174
      this.username = username;
8175
    }
8176
 
8177
    public void unsetUsername() {
8178
      this.username = null;
8179
    }
8180
 
3430 rajveer 8181
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 8182
    public boolean isSetUsername() {
8183
      return this.username != null;
8184
    }
8185
 
8186
    public void setUsernameIsSet(boolean value) {
8187
      if (!value) {
8188
        this.username = null;
8189
      }
8190
    }
8191
 
8192
    public String getPassword() {
8193
      return this.password;
8194
    }
8195
 
3430 rajveer 8196
    public void setPassword(String password) {
495 rajveer 8197
      this.password = password;
8198
    }
8199
 
8200
    public void unsetPassword() {
8201
      this.password = null;
8202
    }
8203
 
3430 rajveer 8204
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 8205
    public boolean isSetPassword() {
8206
      return this.password != null;
8207
    }
8208
 
8209
    public void setPasswordIsSet(boolean value) {
8210
      if (!value) {
8211
        this.password = null;
8212
      }
8213
    }
8214
 
8215
    public long getWarehouseId() {
8216
      return this.warehouseId;
8217
    }
8218
 
3430 rajveer 8219
    public void setWarehouseId(long warehouseId) {
495 rajveer 8220
      this.warehouseId = warehouseId;
8221
      setWarehouseIdIsSet(true);
8222
    }
8223
 
8224
    public void unsetWarehouseId() {
8225
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8226
    }
8227
 
3430 rajveer 8228
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 8229
    public boolean isSetWarehouseId() {
8230
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8231
    }
8232
 
8233
    public void setWarehouseIdIsSet(boolean value) {
8234
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
8235
    }
8236
 
8237
    public void setFieldValue(_Fields field, Object value) {
8238
      switch (field) {
8239
      case USERNAME:
8240
        if (value == null) {
8241
          unsetUsername();
8242
        } else {
8243
          setUsername((String)value);
8244
        }
8245
        break;
8246
 
8247
      case PASSWORD:
8248
        if (value == null) {
8249
          unsetPassword();
8250
        } else {
8251
          setPassword((String)value);
8252
        }
8253
        break;
8254
 
8255
      case WAREHOUSE_ID:
8256
        if (value == null) {
8257
          unsetWarehouseId();
8258
        } else {
8259
          setWarehouseId((Long)value);
8260
        }
8261
        break;
8262
 
8263
      }
8264
    }
8265
 
8266
    public Object getFieldValue(_Fields field) {
8267
      switch (field) {
8268
      case USERNAME:
8269
        return getUsername();
8270
 
8271
      case PASSWORD:
8272
        return getPassword();
8273
 
8274
      case WAREHOUSE_ID:
3430 rajveer 8275
        return Long.valueOf(getWarehouseId());
495 rajveer 8276
 
8277
      }
8278
      throw new IllegalStateException();
8279
    }
8280
 
3430 rajveer 8281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8282
    public boolean isSet(_Fields field) {
8283
      if (field == null) {
8284
        throw new IllegalArgumentException();
8285
      }
495 rajveer 8286
 
8287
      switch (field) {
8288
      case USERNAME:
8289
        return isSetUsername();
8290
      case PASSWORD:
8291
        return isSetPassword();
8292
      case WAREHOUSE_ID:
8293
        return isSetWarehouseId();
8294
      }
8295
      throw new IllegalStateException();
8296
    }
8297
 
8298
    @Override
8299
    public boolean equals(Object that) {
8300
      if (that == null)
8301
        return false;
8302
      if (that instanceof addUser_args)
8303
        return this.equals((addUser_args)that);
8304
      return false;
8305
    }
8306
 
8307
    public boolean equals(addUser_args that) {
8308
      if (that == null)
8309
        return false;
8310
 
8311
      boolean this_present_username = true && this.isSetUsername();
8312
      boolean that_present_username = true && that.isSetUsername();
8313
      if (this_present_username || that_present_username) {
8314
        if (!(this_present_username && that_present_username))
8315
          return false;
8316
        if (!this.username.equals(that.username))
8317
          return false;
8318
      }
8319
 
8320
      boolean this_present_password = true && this.isSetPassword();
8321
      boolean that_present_password = true && that.isSetPassword();
8322
      if (this_present_password || that_present_password) {
8323
        if (!(this_present_password && that_present_password))
8324
          return false;
8325
        if (!this.password.equals(that.password))
8326
          return false;
8327
      }
8328
 
8329
      boolean this_present_warehouseId = true;
8330
      boolean that_present_warehouseId = true;
8331
      if (this_present_warehouseId || that_present_warehouseId) {
8332
        if (!(this_present_warehouseId && that_present_warehouseId))
8333
          return false;
8334
        if (this.warehouseId != that.warehouseId)
8335
          return false;
8336
      }
8337
 
8338
      return true;
8339
    }
8340
 
8341
    @Override
8342
    public int hashCode() {
8343
      return 0;
8344
    }
8345
 
8346
    public int compareTo(addUser_args other) {
8347
      if (!getClass().equals(other.getClass())) {
8348
        return getClass().getName().compareTo(other.getClass().getName());
8349
      }
8350
 
8351
      int lastComparison = 0;
8352
      addUser_args typedOther = (addUser_args)other;
8353
 
3430 rajveer 8354
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 8355
      if (lastComparison != 0) {
8356
        return lastComparison;
8357
      }
3430 rajveer 8358
      if (isSetUsername()) {
8359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8360
        if (lastComparison != 0) {
8361
          return lastComparison;
8362
        }
495 rajveer 8363
      }
3430 rajveer 8364
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 8365
      if (lastComparison != 0) {
8366
        return lastComparison;
8367
      }
3430 rajveer 8368
      if (isSetPassword()) {
8369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
8370
        if (lastComparison != 0) {
8371
          return lastComparison;
8372
        }
495 rajveer 8373
      }
3430 rajveer 8374
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 8375
      if (lastComparison != 0) {
8376
        return lastComparison;
8377
      }
3430 rajveer 8378
      if (isSetWarehouseId()) {
8379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
8380
        if (lastComparison != 0) {
8381
          return lastComparison;
8382
        }
495 rajveer 8383
      }
8384
      return 0;
8385
    }
8386
 
3430 rajveer 8387
    public _Fields fieldForId(int fieldId) {
8388
      return _Fields.findByThriftId(fieldId);
8389
    }
8390
 
8391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8392
      org.apache.thrift.protocol.TField field;
495 rajveer 8393
      iprot.readStructBegin();
8394
      while (true)
8395
      {
8396
        field = iprot.readFieldBegin();
3430 rajveer 8397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8398
          break;
8399
        }
3430 rajveer 8400
        switch (field.id) {
8401
          case 1: // USERNAME
8402
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8403
              this.username = iprot.readString();
8404
            } else { 
8405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8406
            }
8407
            break;
8408
          case 2: // PASSWORD
8409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8410
              this.password = iprot.readString();
8411
            } else { 
8412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8413
            }
8414
            break;
8415
          case 3: // WAREHOUSE_ID
8416
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8417
              this.warehouseId = iprot.readI64();
8418
              setWarehouseIdIsSet(true);
8419
            } else { 
8420
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8421
            }
8422
            break;
8423
          default:
8424
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8425
        }
3430 rajveer 8426
        iprot.readFieldEnd();
495 rajveer 8427
      }
8428
      iprot.readStructEnd();
8429
      validate();
8430
    }
8431
 
3430 rajveer 8432
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8433
      validate();
8434
 
8435
      oprot.writeStructBegin(STRUCT_DESC);
8436
      if (this.username != null) {
8437
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
8438
        oprot.writeString(this.username);
8439
        oprot.writeFieldEnd();
8440
      }
8441
      if (this.password != null) {
8442
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
8443
        oprot.writeString(this.password);
8444
        oprot.writeFieldEnd();
8445
      }
8446
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
8447
      oprot.writeI64(this.warehouseId);
8448
      oprot.writeFieldEnd();
8449
      oprot.writeFieldStop();
8450
      oprot.writeStructEnd();
8451
    }
8452
 
8453
    @Override
8454
    public String toString() {
8455
      StringBuilder sb = new StringBuilder("addUser_args(");
8456
      boolean first = true;
8457
 
8458
      sb.append("username:");
8459
      if (this.username == null) {
8460
        sb.append("null");
8461
      } else {
8462
        sb.append(this.username);
8463
      }
8464
      first = false;
8465
      if (!first) sb.append(", ");
8466
      sb.append("password:");
8467
      if (this.password == null) {
8468
        sb.append("null");
8469
      } else {
8470
        sb.append(this.password);
8471
      }
8472
      first = false;
8473
      if (!first) sb.append(", ");
8474
      sb.append("warehouseId:");
8475
      sb.append(this.warehouseId);
8476
      first = false;
8477
      sb.append(")");
8478
      return sb.toString();
8479
    }
8480
 
3430 rajveer 8481
    public void validate() throws org.apache.thrift.TException {
495 rajveer 8482
      // check for required fields
8483
    }
8484
 
3430 rajveer 8485
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8486
      try {
8487
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8488
      } catch (org.apache.thrift.TException te) {
8489
        throw new java.io.IOException(te);
8490
      }
8491
    }
8492
 
8493
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8494
      try {
8495
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8496
        __isset_bit_vector = new BitSet(1);
8497
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8498
      } catch (org.apache.thrift.TException te) {
8499
        throw new java.io.IOException(te);
8500
      }
8501
    }
8502
 
495 rajveer 8503
  }
8504
 
3430 rajveer 8505
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
8506
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 8507
 
3430 rajveer 8508
    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);
8509
    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 8510
 
3430 rajveer 8511
    private boolean success; // required
8512
    private HelperServiceException se; // required
495 rajveer 8513
 
8514
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8515
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8516
      SUCCESS((short)0, "success"),
8517
      SE((short)1, "se");
8518
 
8519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8520
 
8521
      static {
8522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8523
          byName.put(field.getFieldName(), field);
8524
        }
8525
      }
8526
 
8527
      /**
8528
       * Find the _Fields constant that matches fieldId, or null if its not found.
8529
       */
8530
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8531
        switch(fieldId) {
8532
          case 0: // SUCCESS
8533
            return SUCCESS;
8534
          case 1: // SE
8535
            return SE;
8536
          default:
8537
            return null;
8538
        }
495 rajveer 8539
      }
8540
 
8541
      /**
8542
       * Find the _Fields constant that matches fieldId, throwing an exception
8543
       * if it is not found.
8544
       */
8545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8546
        _Fields fields = findByThriftId(fieldId);
8547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8548
        return fields;
8549
      }
8550
 
8551
      /**
8552
       * Find the _Fields constant that matches name, or null if its not found.
8553
       */
8554
      public static _Fields findByName(String name) {
8555
        return byName.get(name);
8556
      }
8557
 
8558
      private final short _thriftId;
8559
      private final String _fieldName;
8560
 
8561
      _Fields(short thriftId, String fieldName) {
8562
        _thriftId = thriftId;
8563
        _fieldName = fieldName;
8564
      }
8565
 
8566
      public short getThriftFieldId() {
8567
        return _thriftId;
8568
      }
8569
 
8570
      public String getFieldName() {
8571
        return _fieldName;
8572
      }
8573
    }
8574
 
8575
    // isset id assignments
8576
    private static final int __SUCCESS_ISSET_ID = 0;
8577
    private BitSet __isset_bit_vector = new BitSet(1);
8578
 
3430 rajveer 8579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8580
    static {
3430 rajveer 8581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8583
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
8584
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8585
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8586
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8587
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 8588
    }
8589
 
8590
    public addUser_result() {
8591
    }
8592
 
8593
    public addUser_result(
8594
      boolean success,
8595
      HelperServiceException se)
8596
    {
8597
      this();
8598
      this.success = success;
8599
      setSuccessIsSet(true);
8600
      this.se = se;
8601
    }
8602
 
8603
    /**
8604
     * Performs a deep copy on <i>other</i>.
8605
     */
8606
    public addUser_result(addUser_result other) {
8607
      __isset_bit_vector.clear();
8608
      __isset_bit_vector.or(other.__isset_bit_vector);
8609
      this.success = other.success;
8610
      if (other.isSetSe()) {
8611
        this.se = new HelperServiceException(other.se);
8612
      }
8613
    }
8614
 
8615
    public addUser_result deepCopy() {
8616
      return new addUser_result(this);
8617
    }
8618
 
3430 rajveer 8619
    @Override
8620
    public void clear() {
8621
      setSuccessIsSet(false);
8622
      this.success = false;
8623
      this.se = null;
495 rajveer 8624
    }
8625
 
8626
    public boolean isSuccess() {
8627
      return this.success;
8628
    }
8629
 
3430 rajveer 8630
    public void setSuccess(boolean success) {
495 rajveer 8631
      this.success = success;
8632
      setSuccessIsSet(true);
8633
    }
8634
 
8635
    public void unsetSuccess() {
8636
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8637
    }
8638
 
3430 rajveer 8639
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 8640
    public boolean isSetSuccess() {
8641
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8642
    }
8643
 
8644
    public void setSuccessIsSet(boolean value) {
8645
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
8646
    }
8647
 
8648
    public HelperServiceException getSe() {
8649
      return this.se;
8650
    }
8651
 
3430 rajveer 8652
    public void setSe(HelperServiceException se) {
495 rajveer 8653
      this.se = se;
8654
    }
8655
 
8656
    public void unsetSe() {
8657
      this.se = null;
8658
    }
8659
 
3430 rajveer 8660
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 8661
    public boolean isSetSe() {
8662
      return this.se != null;
8663
    }
8664
 
8665
    public void setSeIsSet(boolean value) {
8666
      if (!value) {
8667
        this.se = null;
8668
      }
8669
    }
8670
 
8671
    public void setFieldValue(_Fields field, Object value) {
8672
      switch (field) {
8673
      case SUCCESS:
8674
        if (value == null) {
8675
          unsetSuccess();
8676
        } else {
8677
          setSuccess((Boolean)value);
8678
        }
8679
        break;
8680
 
8681
      case SE:
8682
        if (value == null) {
8683
          unsetSe();
8684
        } else {
8685
          setSe((HelperServiceException)value);
8686
        }
8687
        break;
8688
 
8689
      }
8690
    }
8691
 
8692
    public Object getFieldValue(_Fields field) {
8693
      switch (field) {
8694
      case SUCCESS:
3430 rajveer 8695
        return Boolean.valueOf(isSuccess());
495 rajveer 8696
 
8697
      case SE:
8698
        return getSe();
8699
 
8700
      }
8701
      throw new IllegalStateException();
8702
    }
8703
 
3430 rajveer 8704
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8705
    public boolean isSet(_Fields field) {
8706
      if (field == null) {
8707
        throw new IllegalArgumentException();
8708
      }
495 rajveer 8709
 
8710
      switch (field) {
8711
      case SUCCESS:
8712
        return isSetSuccess();
8713
      case SE:
8714
        return isSetSe();
8715
      }
8716
      throw new IllegalStateException();
8717
    }
8718
 
8719
    @Override
8720
    public boolean equals(Object that) {
8721
      if (that == null)
8722
        return false;
8723
      if (that instanceof addUser_result)
8724
        return this.equals((addUser_result)that);
8725
      return false;
8726
    }
8727
 
8728
    public boolean equals(addUser_result that) {
8729
      if (that == null)
8730
        return false;
8731
 
8732
      boolean this_present_success = true;
8733
      boolean that_present_success = true;
8734
      if (this_present_success || that_present_success) {
8735
        if (!(this_present_success && that_present_success))
8736
          return false;
8737
        if (this.success != that.success)
8738
          return false;
8739
      }
8740
 
8741
      boolean this_present_se = true && this.isSetSe();
8742
      boolean that_present_se = true && that.isSetSe();
8743
      if (this_present_se || that_present_se) {
8744
        if (!(this_present_se && that_present_se))
8745
          return false;
8746
        if (!this.se.equals(that.se))
8747
          return false;
8748
      }
8749
 
8750
      return true;
8751
    }
8752
 
8753
    @Override
8754
    public int hashCode() {
8755
      return 0;
8756
    }
8757
 
8758
    public int compareTo(addUser_result other) {
8759
      if (!getClass().equals(other.getClass())) {
8760
        return getClass().getName().compareTo(other.getClass().getName());
8761
      }
8762
 
8763
      int lastComparison = 0;
8764
      addUser_result typedOther = (addUser_result)other;
8765
 
3430 rajveer 8766
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 8767
      if (lastComparison != 0) {
8768
        return lastComparison;
8769
      }
3430 rajveer 8770
      if (isSetSuccess()) {
8771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8772
        if (lastComparison != 0) {
8773
          return lastComparison;
8774
        }
495 rajveer 8775
      }
3430 rajveer 8776
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 8777
      if (lastComparison != 0) {
8778
        return lastComparison;
8779
      }
3430 rajveer 8780
      if (isSetSe()) {
8781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8782
        if (lastComparison != 0) {
8783
          return lastComparison;
8784
        }
495 rajveer 8785
      }
8786
      return 0;
8787
    }
8788
 
3430 rajveer 8789
    public _Fields fieldForId(int fieldId) {
8790
      return _Fields.findByThriftId(fieldId);
8791
    }
8792
 
8793
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8794
      org.apache.thrift.protocol.TField field;
495 rajveer 8795
      iprot.readStructBegin();
8796
      while (true)
8797
      {
8798
        field = iprot.readFieldBegin();
3430 rajveer 8799
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 8800
          break;
8801
        }
3430 rajveer 8802
        switch (field.id) {
8803
          case 0: // SUCCESS
8804
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8805
              this.success = iprot.readBool();
8806
              setSuccessIsSet(true);
8807
            } else { 
8808
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8809
            }
8810
            break;
8811
          case 1: // SE
8812
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8813
              this.se = new HelperServiceException();
8814
              this.se.read(iprot);
8815
            } else { 
8816
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8817
            }
8818
            break;
8819
          default:
8820
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 8821
        }
3430 rajveer 8822
        iprot.readFieldEnd();
495 rajveer 8823
      }
8824
      iprot.readStructEnd();
8825
      validate();
8826
    }
8827
 
3430 rajveer 8828
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 8829
      oprot.writeStructBegin(STRUCT_DESC);
8830
 
8831
      if (this.isSetSuccess()) {
8832
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8833
        oprot.writeBool(this.success);
8834
        oprot.writeFieldEnd();
8835
      } else if (this.isSetSe()) {
8836
        oprot.writeFieldBegin(SE_FIELD_DESC);
8837
        this.se.write(oprot);
8838
        oprot.writeFieldEnd();
8839
      }
8840
      oprot.writeFieldStop();
8841
      oprot.writeStructEnd();
8842
    }
8843
 
8844
    @Override
8845
    public String toString() {
8846
      StringBuilder sb = new StringBuilder("addUser_result(");
8847
      boolean first = true;
8848
 
8849
      sb.append("success:");
8850
      sb.append(this.success);
8851
      first = false;
8852
      if (!first) sb.append(", ");
8853
      sb.append("se:");
8854
      if (this.se == null) {
8855
        sb.append("null");
8856
      } else {
8857
        sb.append(this.se);
8858
      }
8859
      first = false;
8860
      sb.append(")");
8861
      return sb.toString();
8862
    }
8863
 
3430 rajveer 8864
    public void validate() throws org.apache.thrift.TException {
495 rajveer 8865
      // check for required fields
8866
    }
8867
 
3430 rajveer 8868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8869
      try {
8870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8871
      } catch (org.apache.thrift.TException te) {
8872
        throw new java.io.IOException(te);
8873
      }
8874
    }
8875
 
8876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8877
      try {
8878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8879
      } catch (org.apache.thrift.TException te) {
8880
        throw new java.io.IOException(te);
8881
      }
8882
    }
8883
 
495 rajveer 8884
  }
8885
 
3430 rajveer 8886
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
8887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 8888
 
3430 rajveer 8889
    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 8890
 
3430 rajveer 8891
    private String username; // required
495 rajveer 8892
 
8893
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8894
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 8895
      USERNAME((short)1, "username");
8896
 
8897
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8898
 
8899
      static {
8900
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8901
          byName.put(field.getFieldName(), field);
8902
        }
8903
      }
8904
 
8905
      /**
8906
       * Find the _Fields constant that matches fieldId, or null if its not found.
8907
       */
8908
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8909
        switch(fieldId) {
8910
          case 1: // USERNAME
8911
            return USERNAME;
8912
          default:
8913
            return null;
8914
        }
495 rajveer 8915
      }
8916
 
8917
      /**
8918
       * Find the _Fields constant that matches fieldId, throwing an exception
8919
       * if it is not found.
8920
       */
8921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8922
        _Fields fields = findByThriftId(fieldId);
8923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8924
        return fields;
8925
      }
8926
 
8927
      /**
8928
       * Find the _Fields constant that matches name, or null if its not found.
8929
       */
8930
      public static _Fields findByName(String name) {
8931
        return byName.get(name);
8932
      }
8933
 
8934
      private final short _thriftId;
8935
      private final String _fieldName;
8936
 
8937
      _Fields(short thriftId, String fieldName) {
8938
        _thriftId = thriftId;
8939
        _fieldName = fieldName;
8940
      }
8941
 
8942
      public short getThriftFieldId() {
8943
        return _thriftId;
8944
      }
8945
 
8946
      public String getFieldName() {
8947
        return _fieldName;
8948
      }
8949
    }
8950
 
8951
    // isset id assignments
8952
 
3430 rajveer 8953
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 8954
    static {
3430 rajveer 8955
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8956
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8957
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8958
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8959
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 8960
    }
8961
 
8962
    public deleteUser_args() {
8963
    }
8964
 
8965
    public deleteUser_args(
8966
      String username)
8967
    {
8968
      this();
8969
      this.username = username;
8970
    }
8971
 
8972
    /**
8973
     * Performs a deep copy on <i>other</i>.
8974
     */
8975
    public deleteUser_args(deleteUser_args other) {
8976
      if (other.isSetUsername()) {
8977
        this.username = other.username;
8978
      }
8979
    }
8980
 
8981
    public deleteUser_args deepCopy() {
8982
      return new deleteUser_args(this);
8983
    }
8984
 
3430 rajveer 8985
    @Override
8986
    public void clear() {
8987
      this.username = null;
495 rajveer 8988
    }
8989
 
8990
    public String getUsername() {
8991
      return this.username;
8992
    }
8993
 
3430 rajveer 8994
    public void setUsername(String username) {
495 rajveer 8995
      this.username = username;
8996
    }
8997
 
8998
    public void unsetUsername() {
8999
      this.username = null;
9000
    }
9001
 
3430 rajveer 9002
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9003
    public boolean isSetUsername() {
9004
      return this.username != null;
9005
    }
9006
 
9007
    public void setUsernameIsSet(boolean value) {
9008
      if (!value) {
9009
        this.username = null;
9010
      }
9011
    }
9012
 
9013
    public void setFieldValue(_Fields field, Object value) {
9014
      switch (field) {
9015
      case USERNAME:
9016
        if (value == null) {
9017
          unsetUsername();
9018
        } else {
9019
          setUsername((String)value);
9020
        }
9021
        break;
9022
 
9023
      }
9024
    }
9025
 
9026
    public Object getFieldValue(_Fields field) {
9027
      switch (field) {
9028
      case USERNAME:
9029
        return getUsername();
9030
 
9031
      }
9032
      throw new IllegalStateException();
9033
    }
9034
 
3430 rajveer 9035
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9036
    public boolean isSet(_Fields field) {
9037
      if (field == null) {
9038
        throw new IllegalArgumentException();
9039
      }
495 rajveer 9040
 
9041
      switch (field) {
9042
      case USERNAME:
9043
        return isSetUsername();
9044
      }
9045
      throw new IllegalStateException();
9046
    }
9047
 
9048
    @Override
9049
    public boolean equals(Object that) {
9050
      if (that == null)
9051
        return false;
9052
      if (that instanceof deleteUser_args)
9053
        return this.equals((deleteUser_args)that);
9054
      return false;
9055
    }
9056
 
9057
    public boolean equals(deleteUser_args that) {
9058
      if (that == null)
9059
        return false;
9060
 
9061
      boolean this_present_username = true && this.isSetUsername();
9062
      boolean that_present_username = true && that.isSetUsername();
9063
      if (this_present_username || that_present_username) {
9064
        if (!(this_present_username && that_present_username))
9065
          return false;
9066
        if (!this.username.equals(that.username))
9067
          return false;
9068
      }
9069
 
9070
      return true;
9071
    }
9072
 
9073
    @Override
9074
    public int hashCode() {
9075
      return 0;
9076
    }
9077
 
9078
    public int compareTo(deleteUser_args other) {
9079
      if (!getClass().equals(other.getClass())) {
9080
        return getClass().getName().compareTo(other.getClass().getName());
9081
      }
9082
 
9083
      int lastComparison = 0;
9084
      deleteUser_args typedOther = (deleteUser_args)other;
9085
 
3430 rajveer 9086
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9087
      if (lastComparison != 0) {
9088
        return lastComparison;
9089
      }
3430 rajveer 9090
      if (isSetUsername()) {
9091
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9092
        if (lastComparison != 0) {
9093
          return lastComparison;
9094
        }
495 rajveer 9095
      }
9096
      return 0;
9097
    }
9098
 
3430 rajveer 9099
    public _Fields fieldForId(int fieldId) {
9100
      return _Fields.findByThriftId(fieldId);
9101
    }
9102
 
9103
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9104
      org.apache.thrift.protocol.TField field;
495 rajveer 9105
      iprot.readStructBegin();
9106
      while (true)
9107
      {
9108
        field = iprot.readFieldBegin();
3430 rajveer 9109
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9110
          break;
9111
        }
3430 rajveer 9112
        switch (field.id) {
9113
          case 1: // USERNAME
9114
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9115
              this.username = iprot.readString();
9116
            } else { 
9117
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9118
            }
9119
            break;
9120
          default:
9121
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9122
        }
3430 rajveer 9123
        iprot.readFieldEnd();
495 rajveer 9124
      }
9125
      iprot.readStructEnd();
9126
      validate();
9127
    }
9128
 
3430 rajveer 9129
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9130
      validate();
9131
 
9132
      oprot.writeStructBegin(STRUCT_DESC);
9133
      if (this.username != null) {
9134
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9135
        oprot.writeString(this.username);
9136
        oprot.writeFieldEnd();
9137
      }
9138
      oprot.writeFieldStop();
9139
      oprot.writeStructEnd();
9140
    }
9141
 
9142
    @Override
9143
    public String toString() {
9144
      StringBuilder sb = new StringBuilder("deleteUser_args(");
9145
      boolean first = true;
9146
 
9147
      sb.append("username:");
9148
      if (this.username == null) {
9149
        sb.append("null");
9150
      } else {
9151
        sb.append(this.username);
9152
      }
9153
      first = false;
9154
      sb.append(")");
9155
      return sb.toString();
9156
    }
9157
 
3430 rajveer 9158
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9159
      // check for required fields
9160
    }
9161
 
3430 rajveer 9162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9163
      try {
9164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9165
      } catch (org.apache.thrift.TException te) {
9166
        throw new java.io.IOException(te);
9167
      }
9168
    }
9169
 
9170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9171
      try {
9172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9173
      } catch (org.apache.thrift.TException te) {
9174
        throw new java.io.IOException(te);
9175
      }
9176
    }
9177
 
495 rajveer 9178
  }
9179
 
3430 rajveer 9180
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
9181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 9182
 
3430 rajveer 9183
    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);
9184
    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 9185
 
3430 rajveer 9186
    private boolean success; // required
9187
    private HelperServiceException se; // required
495 rajveer 9188
 
9189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9191
      SUCCESS((short)0, "success"),
9192
      SE((short)1, "se");
9193
 
9194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9195
 
9196
      static {
9197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9198
          byName.put(field.getFieldName(), field);
9199
        }
9200
      }
9201
 
9202
      /**
9203
       * Find the _Fields constant that matches fieldId, or null if its not found.
9204
       */
9205
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9206
        switch(fieldId) {
9207
          case 0: // SUCCESS
9208
            return SUCCESS;
9209
          case 1: // SE
9210
            return SE;
9211
          default:
9212
            return null;
9213
        }
495 rajveer 9214
      }
9215
 
9216
      /**
9217
       * Find the _Fields constant that matches fieldId, throwing an exception
9218
       * if it is not found.
9219
       */
9220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9221
        _Fields fields = findByThriftId(fieldId);
9222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9223
        return fields;
9224
      }
9225
 
9226
      /**
9227
       * Find the _Fields constant that matches name, or null if its not found.
9228
       */
9229
      public static _Fields findByName(String name) {
9230
        return byName.get(name);
9231
      }
9232
 
9233
      private final short _thriftId;
9234
      private final String _fieldName;
9235
 
9236
      _Fields(short thriftId, String fieldName) {
9237
        _thriftId = thriftId;
9238
        _fieldName = fieldName;
9239
      }
9240
 
9241
      public short getThriftFieldId() {
9242
        return _thriftId;
9243
      }
9244
 
9245
      public String getFieldName() {
9246
        return _fieldName;
9247
      }
9248
    }
9249
 
9250
    // isset id assignments
9251
    private static final int __SUCCESS_ISSET_ID = 0;
9252
    private BitSet __isset_bit_vector = new BitSet(1);
9253
 
3430 rajveer 9254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9255
    static {
3430 rajveer 9256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9257
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9258
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9259
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9261
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9262
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 9263
    }
9264
 
9265
    public deleteUser_result() {
9266
    }
9267
 
9268
    public deleteUser_result(
9269
      boolean success,
9270
      HelperServiceException se)
9271
    {
9272
      this();
9273
      this.success = success;
9274
      setSuccessIsSet(true);
9275
      this.se = se;
9276
    }
9277
 
9278
    /**
9279
     * Performs a deep copy on <i>other</i>.
9280
     */
9281
    public deleteUser_result(deleteUser_result other) {
9282
      __isset_bit_vector.clear();
9283
      __isset_bit_vector.or(other.__isset_bit_vector);
9284
      this.success = other.success;
9285
      if (other.isSetSe()) {
9286
        this.se = new HelperServiceException(other.se);
9287
      }
9288
    }
9289
 
9290
    public deleteUser_result deepCopy() {
9291
      return new deleteUser_result(this);
9292
    }
9293
 
3430 rajveer 9294
    @Override
9295
    public void clear() {
9296
      setSuccessIsSet(false);
9297
      this.success = false;
9298
      this.se = null;
495 rajveer 9299
    }
9300
 
9301
    public boolean isSuccess() {
9302
      return this.success;
9303
    }
9304
 
3430 rajveer 9305
    public void setSuccess(boolean success) {
495 rajveer 9306
      this.success = success;
9307
      setSuccessIsSet(true);
9308
    }
9309
 
9310
    public void unsetSuccess() {
9311
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9312
    }
9313
 
3430 rajveer 9314
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9315
    public boolean isSetSuccess() {
9316
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9317
    }
9318
 
9319
    public void setSuccessIsSet(boolean value) {
9320
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9321
    }
9322
 
9323
    public HelperServiceException getSe() {
9324
      return this.se;
9325
    }
9326
 
3430 rajveer 9327
    public void setSe(HelperServiceException se) {
495 rajveer 9328
      this.se = se;
9329
    }
9330
 
9331
    public void unsetSe() {
9332
      this.se = null;
9333
    }
9334
 
3430 rajveer 9335
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9336
    public boolean isSetSe() {
9337
      return this.se != null;
9338
    }
9339
 
9340
    public void setSeIsSet(boolean value) {
9341
      if (!value) {
9342
        this.se = null;
9343
      }
9344
    }
9345
 
9346
    public void setFieldValue(_Fields field, Object value) {
9347
      switch (field) {
9348
      case SUCCESS:
9349
        if (value == null) {
9350
          unsetSuccess();
9351
        } else {
9352
          setSuccess((Boolean)value);
9353
        }
9354
        break;
9355
 
9356
      case SE:
9357
        if (value == null) {
9358
          unsetSe();
9359
        } else {
9360
          setSe((HelperServiceException)value);
9361
        }
9362
        break;
9363
 
9364
      }
9365
    }
9366
 
9367
    public Object getFieldValue(_Fields field) {
9368
      switch (field) {
9369
      case SUCCESS:
3430 rajveer 9370
        return Boolean.valueOf(isSuccess());
495 rajveer 9371
 
9372
      case SE:
9373
        return getSe();
9374
 
9375
      }
9376
      throw new IllegalStateException();
9377
    }
9378
 
3430 rajveer 9379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9380
    public boolean isSet(_Fields field) {
9381
      if (field == null) {
9382
        throw new IllegalArgumentException();
9383
      }
495 rajveer 9384
 
9385
      switch (field) {
9386
      case SUCCESS:
9387
        return isSetSuccess();
9388
      case SE:
9389
        return isSetSe();
9390
      }
9391
      throw new IllegalStateException();
9392
    }
9393
 
9394
    @Override
9395
    public boolean equals(Object that) {
9396
      if (that == null)
9397
        return false;
9398
      if (that instanceof deleteUser_result)
9399
        return this.equals((deleteUser_result)that);
9400
      return false;
9401
    }
9402
 
9403
    public boolean equals(deleteUser_result that) {
9404
      if (that == null)
9405
        return false;
9406
 
9407
      boolean this_present_success = true;
9408
      boolean that_present_success = true;
9409
      if (this_present_success || that_present_success) {
9410
        if (!(this_present_success && that_present_success))
9411
          return false;
9412
        if (this.success != that.success)
9413
          return false;
9414
      }
9415
 
9416
      boolean this_present_se = true && this.isSetSe();
9417
      boolean that_present_se = true && that.isSetSe();
9418
      if (this_present_se || that_present_se) {
9419
        if (!(this_present_se && that_present_se))
9420
          return false;
9421
        if (!this.se.equals(that.se))
9422
          return false;
9423
      }
9424
 
9425
      return true;
9426
    }
9427
 
9428
    @Override
9429
    public int hashCode() {
9430
      return 0;
9431
    }
9432
 
9433
    public int compareTo(deleteUser_result other) {
9434
      if (!getClass().equals(other.getClass())) {
9435
        return getClass().getName().compareTo(other.getClass().getName());
9436
      }
9437
 
9438
      int lastComparison = 0;
9439
      deleteUser_result typedOther = (deleteUser_result)other;
9440
 
3430 rajveer 9441
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9442
      if (lastComparison != 0) {
9443
        return lastComparison;
9444
      }
3430 rajveer 9445
      if (isSetSuccess()) {
9446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9447
        if (lastComparison != 0) {
9448
          return lastComparison;
9449
        }
495 rajveer 9450
      }
3430 rajveer 9451
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9452
      if (lastComparison != 0) {
9453
        return lastComparison;
9454
      }
3430 rajveer 9455
      if (isSetSe()) {
9456
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9457
        if (lastComparison != 0) {
9458
          return lastComparison;
9459
        }
495 rajveer 9460
      }
9461
      return 0;
9462
    }
9463
 
3430 rajveer 9464
    public _Fields fieldForId(int fieldId) {
9465
      return _Fields.findByThriftId(fieldId);
9466
    }
9467
 
9468
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9469
      org.apache.thrift.protocol.TField field;
495 rajveer 9470
      iprot.readStructBegin();
9471
      while (true)
9472
      {
9473
        field = iprot.readFieldBegin();
3430 rajveer 9474
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9475
          break;
9476
        }
3430 rajveer 9477
        switch (field.id) {
9478
          case 0: // SUCCESS
9479
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9480
              this.success = iprot.readBool();
9481
              setSuccessIsSet(true);
9482
            } else { 
9483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9484
            }
9485
            break;
9486
          case 1: // SE
9487
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9488
              this.se = new HelperServiceException();
9489
              this.se.read(iprot);
9490
            } else { 
9491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9492
            }
9493
            break;
9494
          default:
9495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9496
        }
3430 rajveer 9497
        iprot.readFieldEnd();
495 rajveer 9498
      }
9499
      iprot.readStructEnd();
9500
      validate();
9501
    }
9502
 
3430 rajveer 9503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9504
      oprot.writeStructBegin(STRUCT_DESC);
9505
 
9506
      if (this.isSetSuccess()) {
9507
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9508
        oprot.writeBool(this.success);
9509
        oprot.writeFieldEnd();
9510
      } else if (this.isSetSe()) {
9511
        oprot.writeFieldBegin(SE_FIELD_DESC);
9512
        this.se.write(oprot);
9513
        oprot.writeFieldEnd();
9514
      }
9515
      oprot.writeFieldStop();
9516
      oprot.writeStructEnd();
9517
    }
9518
 
9519
    @Override
9520
    public String toString() {
9521
      StringBuilder sb = new StringBuilder("deleteUser_result(");
9522
      boolean first = true;
9523
 
9524
      sb.append("success:");
9525
      sb.append(this.success);
9526
      first = false;
9527
      if (!first) sb.append(", ");
9528
      sb.append("se:");
9529
      if (this.se == null) {
9530
        sb.append("null");
9531
      } else {
9532
        sb.append(this.se);
9533
      }
9534
      first = false;
9535
      sb.append(")");
9536
      return sb.toString();
9537
    }
9538
 
3430 rajveer 9539
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9540
      // check for required fields
9541
    }
9542
 
3430 rajveer 9543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9544
      try {
9545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9546
      } catch (org.apache.thrift.TException te) {
9547
        throw new java.io.IOException(te);
9548
      }
9549
    }
9550
 
9551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9552
      try {
9553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9554
      } catch (org.apache.thrift.TException te) {
9555
        throw new java.io.IOException(te);
9556
      }
9557
    }
9558
 
495 rajveer 9559
  }
9560
 
3430 rajveer 9561
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
9562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 9563
 
3430 rajveer 9564
    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);
9565
    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 9566
 
3430 rajveer 9567
    private String username; // required
9568
    private String password; // required
495 rajveer 9569
 
9570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9572
      USERNAME((short)1, "username"),
9573
      PASSWORD((short)2, "password");
9574
 
9575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9576
 
9577
      static {
9578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9579
          byName.put(field.getFieldName(), field);
9580
        }
9581
      }
9582
 
9583
      /**
9584
       * Find the _Fields constant that matches fieldId, or null if its not found.
9585
       */
9586
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9587
        switch(fieldId) {
9588
          case 1: // USERNAME
9589
            return USERNAME;
9590
          case 2: // PASSWORD
9591
            return PASSWORD;
9592
          default:
9593
            return null;
9594
        }
495 rajveer 9595
      }
9596
 
9597
      /**
9598
       * Find the _Fields constant that matches fieldId, throwing an exception
9599
       * if it is not found.
9600
       */
9601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9602
        _Fields fields = findByThriftId(fieldId);
9603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9604
        return fields;
9605
      }
9606
 
9607
      /**
9608
       * Find the _Fields constant that matches name, or null if its not found.
9609
       */
9610
      public static _Fields findByName(String name) {
9611
        return byName.get(name);
9612
      }
9613
 
9614
      private final short _thriftId;
9615
      private final String _fieldName;
9616
 
9617
      _Fields(short thriftId, String fieldName) {
9618
        _thriftId = thriftId;
9619
        _fieldName = fieldName;
9620
      }
9621
 
9622
      public short getThriftFieldId() {
9623
        return _thriftId;
9624
      }
9625
 
9626
      public String getFieldName() {
9627
        return _fieldName;
9628
      }
9629
    }
9630
 
9631
    // isset id assignments
9632
 
3430 rajveer 9633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9634
    static {
3430 rajveer 9635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9636
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9638
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 9642
    }
9643
 
2443 chandransh 9644
    public authenticateDashboardUser_args() {
495 rajveer 9645
    }
9646
 
2443 chandransh 9647
    public authenticateDashboardUser_args(
495 rajveer 9648
      String username,
9649
      String password)
9650
    {
9651
      this();
9652
      this.username = username;
9653
      this.password = password;
9654
    }
9655
 
9656
    /**
9657
     * Performs a deep copy on <i>other</i>.
9658
     */
2443 chandransh 9659
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 9660
      if (other.isSetUsername()) {
9661
        this.username = other.username;
9662
      }
9663
      if (other.isSetPassword()) {
9664
        this.password = other.password;
9665
      }
9666
    }
9667
 
2443 chandransh 9668
    public authenticateDashboardUser_args deepCopy() {
9669
      return new authenticateDashboardUser_args(this);
495 rajveer 9670
    }
9671
 
3430 rajveer 9672
    @Override
9673
    public void clear() {
9674
      this.username = null;
9675
      this.password = null;
495 rajveer 9676
    }
9677
 
9678
    public String getUsername() {
9679
      return this.username;
9680
    }
9681
 
3430 rajveer 9682
    public void setUsername(String username) {
495 rajveer 9683
      this.username = username;
9684
    }
9685
 
9686
    public void unsetUsername() {
9687
      this.username = null;
9688
    }
9689
 
3430 rajveer 9690
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9691
    public boolean isSetUsername() {
9692
      return this.username != null;
9693
    }
9694
 
9695
    public void setUsernameIsSet(boolean value) {
9696
      if (!value) {
9697
        this.username = null;
9698
      }
9699
    }
9700
 
9701
    public String getPassword() {
9702
      return this.password;
9703
    }
9704
 
3430 rajveer 9705
    public void setPassword(String password) {
495 rajveer 9706
      this.password = password;
9707
    }
9708
 
9709
    public void unsetPassword() {
9710
      this.password = null;
9711
    }
9712
 
3430 rajveer 9713
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9714
    public boolean isSetPassword() {
9715
      return this.password != null;
9716
    }
9717
 
9718
    public void setPasswordIsSet(boolean value) {
9719
      if (!value) {
9720
        this.password = null;
9721
      }
9722
    }
9723
 
9724
    public void setFieldValue(_Fields field, Object value) {
9725
      switch (field) {
9726
      case USERNAME:
9727
        if (value == null) {
9728
          unsetUsername();
9729
        } else {
9730
          setUsername((String)value);
9731
        }
9732
        break;
9733
 
9734
      case PASSWORD:
9735
        if (value == null) {
9736
          unsetPassword();
9737
        } else {
9738
          setPassword((String)value);
9739
        }
9740
        break;
9741
 
9742
      }
9743
    }
9744
 
9745
    public Object getFieldValue(_Fields field) {
9746
      switch (field) {
9747
      case USERNAME:
9748
        return getUsername();
9749
 
9750
      case PASSWORD:
9751
        return getPassword();
9752
 
9753
      }
9754
      throw new IllegalStateException();
9755
    }
9756
 
3430 rajveer 9757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9758
    public boolean isSet(_Fields field) {
9759
      if (field == null) {
9760
        throw new IllegalArgumentException();
9761
      }
495 rajveer 9762
 
9763
      switch (field) {
9764
      case USERNAME:
9765
        return isSetUsername();
9766
      case PASSWORD:
9767
        return isSetPassword();
9768
      }
9769
      throw new IllegalStateException();
9770
    }
9771
 
9772
    @Override
9773
    public boolean equals(Object that) {
9774
      if (that == null)
9775
        return false;
2443 chandransh 9776
      if (that instanceof authenticateDashboardUser_args)
9777
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 9778
      return false;
9779
    }
9780
 
2443 chandransh 9781
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 9782
      if (that == null)
9783
        return false;
9784
 
9785
      boolean this_present_username = true && this.isSetUsername();
9786
      boolean that_present_username = true && that.isSetUsername();
9787
      if (this_present_username || that_present_username) {
9788
        if (!(this_present_username && that_present_username))
9789
          return false;
9790
        if (!this.username.equals(that.username))
9791
          return false;
9792
      }
9793
 
9794
      boolean this_present_password = true && this.isSetPassword();
9795
      boolean that_present_password = true && that.isSetPassword();
9796
      if (this_present_password || that_present_password) {
9797
        if (!(this_present_password && that_present_password))
9798
          return false;
9799
        if (!this.password.equals(that.password))
9800
          return false;
9801
      }
9802
 
9803
      return true;
9804
    }
9805
 
9806
    @Override
9807
    public int hashCode() {
9808
      return 0;
9809
    }
9810
 
2443 chandransh 9811
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 9812
      if (!getClass().equals(other.getClass())) {
9813
        return getClass().getName().compareTo(other.getClass().getName());
9814
      }
9815
 
9816
      int lastComparison = 0;
2443 chandransh 9817
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 9818
 
3430 rajveer 9819
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9820
      if (lastComparison != 0) {
9821
        return lastComparison;
9822
      }
3430 rajveer 9823
      if (isSetUsername()) {
9824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9825
        if (lastComparison != 0) {
9826
          return lastComparison;
9827
        }
495 rajveer 9828
      }
3430 rajveer 9829
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9830
      if (lastComparison != 0) {
9831
        return lastComparison;
9832
      }
3430 rajveer 9833
      if (isSetPassword()) {
9834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9835
        if (lastComparison != 0) {
9836
          return lastComparison;
9837
        }
495 rajveer 9838
      }
9839
      return 0;
9840
    }
9841
 
3430 rajveer 9842
    public _Fields fieldForId(int fieldId) {
9843
      return _Fields.findByThriftId(fieldId);
9844
    }
9845
 
9846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9847
      org.apache.thrift.protocol.TField field;
495 rajveer 9848
      iprot.readStructBegin();
9849
      while (true)
9850
      {
9851
        field = iprot.readFieldBegin();
3430 rajveer 9852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9853
          break;
9854
        }
3430 rajveer 9855
        switch (field.id) {
9856
          case 1: // USERNAME
9857
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9858
              this.username = iprot.readString();
9859
            } else { 
9860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9861
            }
9862
            break;
9863
          case 2: // PASSWORD
9864
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9865
              this.password = iprot.readString();
9866
            } else { 
9867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9868
            }
9869
            break;
9870
          default:
9871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9872
        }
3430 rajveer 9873
        iprot.readFieldEnd();
495 rajveer 9874
      }
9875
      iprot.readStructEnd();
9876
      validate();
9877
    }
9878
 
3430 rajveer 9879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9880
      validate();
9881
 
9882
      oprot.writeStructBegin(STRUCT_DESC);
9883
      if (this.username != null) {
9884
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9885
        oprot.writeString(this.username);
9886
        oprot.writeFieldEnd();
9887
      }
9888
      if (this.password != null) {
9889
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9890
        oprot.writeString(this.password);
9891
        oprot.writeFieldEnd();
9892
      }
9893
      oprot.writeFieldStop();
9894
      oprot.writeStructEnd();
9895
    }
9896
 
9897
    @Override
9898
    public String toString() {
2443 chandransh 9899
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 9900
      boolean first = true;
9901
 
9902
      sb.append("username:");
9903
      if (this.username == null) {
9904
        sb.append("null");
9905
      } else {
9906
        sb.append(this.username);
9907
      }
9908
      first = false;
9909
      if (!first) sb.append(", ");
9910
      sb.append("password:");
9911
      if (this.password == null) {
9912
        sb.append("null");
9913
      } else {
9914
        sb.append(this.password);
9915
      }
9916
      first = false;
9917
      sb.append(")");
9918
      return sb.toString();
9919
    }
9920
 
3430 rajveer 9921
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9922
      // check for required fields
9923
    }
9924
 
3430 rajveer 9925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9926
      try {
9927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9928
      } catch (org.apache.thrift.TException te) {
9929
        throw new java.io.IOException(te);
9930
      }
9931
    }
9932
 
9933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9934
      try {
9935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9936
      } catch (org.apache.thrift.TException te) {
9937
        throw new java.io.IOException(te);
9938
      }
9939
    }
9940
 
495 rajveer 9941
  }
9942
 
3430 rajveer 9943
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
9944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 9945
 
3430 rajveer 9946
    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);
9947
    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 9948
 
3430 rajveer 9949
    private DashboardUser success; // required
9950
    private HelperServiceException se; // required
495 rajveer 9951
 
9952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9954
      SUCCESS((short)0, "success"),
9955
      SE((short)1, "se");
9956
 
9957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9958
 
9959
      static {
9960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9961
          byName.put(field.getFieldName(), field);
9962
        }
9963
      }
9964
 
9965
      /**
9966
       * Find the _Fields constant that matches fieldId, or null if its not found.
9967
       */
9968
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9969
        switch(fieldId) {
9970
          case 0: // SUCCESS
9971
            return SUCCESS;
9972
          case 1: // SE
9973
            return SE;
9974
          default:
9975
            return null;
9976
        }
495 rajveer 9977
      }
9978
 
9979
      /**
9980
       * Find the _Fields constant that matches fieldId, throwing an exception
9981
       * if it is not found.
9982
       */
9983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9984
        _Fields fields = findByThriftId(fieldId);
9985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9986
        return fields;
9987
      }
9988
 
9989
      /**
9990
       * Find the _Fields constant that matches name, or null if its not found.
9991
       */
9992
      public static _Fields findByName(String name) {
9993
        return byName.get(name);
9994
      }
9995
 
9996
      private final short _thriftId;
9997
      private final String _fieldName;
9998
 
9999
      _Fields(short thriftId, String fieldName) {
10000
        _thriftId = thriftId;
10001
        _fieldName = fieldName;
10002
      }
10003
 
10004
      public short getThriftFieldId() {
10005
        return _thriftId;
10006
      }
10007
 
10008
      public String getFieldName() {
10009
        return _fieldName;
10010
      }
10011
    }
10012
 
10013
    // isset id assignments
10014
 
3430 rajveer 10015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10016
    static {
3430 rajveer 10017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10018
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10019
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
10020
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10021
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10022
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10023
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 10024
    }
10025
 
2443 chandransh 10026
    public authenticateDashboardUser_result() {
495 rajveer 10027
    }
10028
 
2443 chandransh 10029
    public authenticateDashboardUser_result(
10030
      DashboardUser success,
495 rajveer 10031
      HelperServiceException se)
10032
    {
10033
      this();
10034
      this.success = success;
10035
      this.se = se;
10036
    }
10037
 
10038
    /**
10039
     * Performs a deep copy on <i>other</i>.
10040
     */
2443 chandransh 10041
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
10042
      if (other.isSetSuccess()) {
10043
        this.success = new DashboardUser(other.success);
10044
      }
495 rajveer 10045
      if (other.isSetSe()) {
10046
        this.se = new HelperServiceException(other.se);
10047
      }
10048
    }
10049
 
2443 chandransh 10050
    public authenticateDashboardUser_result deepCopy() {
10051
      return new authenticateDashboardUser_result(this);
495 rajveer 10052
    }
10053
 
3430 rajveer 10054
    @Override
10055
    public void clear() {
10056
      this.success = null;
10057
      this.se = null;
495 rajveer 10058
    }
10059
 
2443 chandransh 10060
    public DashboardUser getSuccess() {
495 rajveer 10061
      return this.success;
10062
    }
10063
 
3430 rajveer 10064
    public void setSuccess(DashboardUser success) {
495 rajveer 10065
      this.success = success;
10066
    }
10067
 
10068
    public void unsetSuccess() {
2443 chandransh 10069
      this.success = null;
495 rajveer 10070
    }
10071
 
3430 rajveer 10072
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10073
    public boolean isSetSuccess() {
2443 chandransh 10074
      return this.success != null;
495 rajveer 10075
    }
10076
 
10077
    public void setSuccessIsSet(boolean value) {
2443 chandransh 10078
      if (!value) {
10079
        this.success = null;
10080
      }
495 rajveer 10081
    }
10082
 
10083
    public HelperServiceException getSe() {
10084
      return this.se;
10085
    }
10086
 
3430 rajveer 10087
    public void setSe(HelperServiceException se) {
495 rajveer 10088
      this.se = se;
10089
    }
10090
 
10091
    public void unsetSe() {
10092
      this.se = null;
10093
    }
10094
 
3430 rajveer 10095
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10096
    public boolean isSetSe() {
10097
      return this.se != null;
10098
    }
10099
 
10100
    public void setSeIsSet(boolean value) {
10101
      if (!value) {
10102
        this.se = null;
10103
      }
10104
    }
10105
 
10106
    public void setFieldValue(_Fields field, Object value) {
10107
      switch (field) {
10108
      case SUCCESS:
10109
        if (value == null) {
10110
          unsetSuccess();
10111
        } else {
2443 chandransh 10112
          setSuccess((DashboardUser)value);
495 rajveer 10113
        }
10114
        break;
10115
 
10116
      case SE:
10117
        if (value == null) {
10118
          unsetSe();
10119
        } else {
10120
          setSe((HelperServiceException)value);
10121
        }
10122
        break;
10123
 
10124
      }
10125
    }
10126
 
10127
    public Object getFieldValue(_Fields field) {
10128
      switch (field) {
10129
      case SUCCESS:
2443 chandransh 10130
        return getSuccess();
495 rajveer 10131
 
10132
      case SE:
10133
        return getSe();
10134
 
10135
      }
10136
      throw new IllegalStateException();
10137
    }
10138
 
3430 rajveer 10139
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10140
    public boolean isSet(_Fields field) {
10141
      if (field == null) {
10142
        throw new IllegalArgumentException();
10143
      }
495 rajveer 10144
 
10145
      switch (field) {
10146
      case SUCCESS:
10147
        return isSetSuccess();
10148
      case SE:
10149
        return isSetSe();
10150
      }
10151
      throw new IllegalStateException();
10152
    }
10153
 
10154
    @Override
10155
    public boolean equals(Object that) {
10156
      if (that == null)
10157
        return false;
2443 chandransh 10158
      if (that instanceof authenticateDashboardUser_result)
10159
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 10160
      return false;
10161
    }
10162
 
2443 chandransh 10163
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 10164
      if (that == null)
10165
        return false;
10166
 
2443 chandransh 10167
      boolean this_present_success = true && this.isSetSuccess();
10168
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 10169
      if (this_present_success || that_present_success) {
10170
        if (!(this_present_success && that_present_success))
10171
          return false;
2443 chandransh 10172
        if (!this.success.equals(that.success))
495 rajveer 10173
          return false;
10174
      }
10175
 
10176
      boolean this_present_se = true && this.isSetSe();
10177
      boolean that_present_se = true && that.isSetSe();
10178
      if (this_present_se || that_present_se) {
10179
        if (!(this_present_se && that_present_se))
10180
          return false;
10181
        if (!this.se.equals(that.se))
10182
          return false;
10183
      }
10184
 
10185
      return true;
10186
    }
10187
 
10188
    @Override
10189
    public int hashCode() {
10190
      return 0;
10191
    }
10192
 
2443 chandransh 10193
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 10194
      if (!getClass().equals(other.getClass())) {
10195
        return getClass().getName().compareTo(other.getClass().getName());
10196
      }
10197
 
10198
      int lastComparison = 0;
2443 chandransh 10199
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 10200
 
3430 rajveer 10201
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10202
      if (lastComparison != 0) {
10203
        return lastComparison;
10204
      }
3430 rajveer 10205
      if (isSetSuccess()) {
10206
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10207
        if (lastComparison != 0) {
10208
          return lastComparison;
10209
        }
495 rajveer 10210
      }
3430 rajveer 10211
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10212
      if (lastComparison != 0) {
10213
        return lastComparison;
10214
      }
3430 rajveer 10215
      if (isSetSe()) {
10216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10217
        if (lastComparison != 0) {
10218
          return lastComparison;
10219
        }
495 rajveer 10220
      }
10221
      return 0;
10222
    }
10223
 
3430 rajveer 10224
    public _Fields fieldForId(int fieldId) {
10225
      return _Fields.findByThriftId(fieldId);
10226
    }
10227
 
10228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10229
      org.apache.thrift.protocol.TField field;
495 rajveer 10230
      iprot.readStructBegin();
10231
      while (true)
10232
      {
10233
        field = iprot.readFieldBegin();
3430 rajveer 10234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10235
          break;
10236
        }
3430 rajveer 10237
        switch (field.id) {
10238
          case 0: // SUCCESS
10239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10240
              this.success = new DashboardUser();
10241
              this.success.read(iprot);
10242
            } else { 
10243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10244
            }
10245
            break;
10246
          case 1: // SE
10247
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10248
              this.se = new HelperServiceException();
10249
              this.se.read(iprot);
10250
            } else { 
10251
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10252
            }
10253
            break;
10254
          default:
10255
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10256
        }
3430 rajveer 10257
        iprot.readFieldEnd();
495 rajveer 10258
      }
10259
      iprot.readStructEnd();
10260
      validate();
10261
    }
10262
 
3430 rajveer 10263
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10264
      oprot.writeStructBegin(STRUCT_DESC);
10265
 
10266
      if (this.isSetSuccess()) {
10267
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 10268
        this.success.write(oprot);
495 rajveer 10269
        oprot.writeFieldEnd();
10270
      } else if (this.isSetSe()) {
10271
        oprot.writeFieldBegin(SE_FIELD_DESC);
10272
        this.se.write(oprot);
10273
        oprot.writeFieldEnd();
10274
      }
10275
      oprot.writeFieldStop();
10276
      oprot.writeStructEnd();
10277
    }
10278
 
10279
    @Override
10280
    public String toString() {
2443 chandransh 10281
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 10282
      boolean first = true;
10283
 
10284
      sb.append("success:");
2443 chandransh 10285
      if (this.success == null) {
10286
        sb.append("null");
10287
      } else {
10288
        sb.append(this.success);
10289
      }
495 rajveer 10290
      first = false;
10291
      if (!first) sb.append(", ");
10292
      sb.append("se:");
10293
      if (this.se == null) {
10294
        sb.append("null");
10295
      } else {
10296
        sb.append(this.se);
10297
      }
10298
      first = false;
10299
      sb.append(")");
10300
      return sb.toString();
10301
    }
10302
 
3430 rajveer 10303
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10304
      // check for required fields
10305
    }
10306
 
3430 rajveer 10307
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10308
      try {
10309
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10310
      } catch (org.apache.thrift.TException te) {
10311
        throw new java.io.IOException(te);
10312
      }
10313
    }
10314
 
10315
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10316
      try {
10317
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10318
      } catch (org.apache.thrift.TException te) {
10319
        throw new java.io.IOException(te);
10320
      }
10321
    }
10322
 
495 rajveer 10323
  }
10324
 
3430 rajveer 10325
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
10326
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 10327
 
3430 rajveer 10328
    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);
10329
    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);
10330
    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 10331
 
3430 rajveer 10332
    private String username; // required
10333
    private String oldPassword; // required
10334
    private String newPassword; // required
495 rajveer 10335
 
10336
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10337
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10338
      USERNAME((short)1, "username"),
10339
      OLD_PASSWORD((short)2, "oldPassword"),
10340
      NEW_PASSWORD((short)3, "newPassword");
10341
 
10342
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10343
 
10344
      static {
10345
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10346
          byName.put(field.getFieldName(), field);
10347
        }
10348
      }
10349
 
10350
      /**
10351
       * Find the _Fields constant that matches fieldId, or null if its not found.
10352
       */
10353
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10354
        switch(fieldId) {
10355
          case 1: // USERNAME
10356
            return USERNAME;
10357
          case 2: // OLD_PASSWORD
10358
            return OLD_PASSWORD;
10359
          case 3: // NEW_PASSWORD
10360
            return NEW_PASSWORD;
10361
          default:
10362
            return null;
10363
        }
495 rajveer 10364
      }
10365
 
10366
      /**
10367
       * Find the _Fields constant that matches fieldId, throwing an exception
10368
       * if it is not found.
10369
       */
10370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10371
        _Fields fields = findByThriftId(fieldId);
10372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10373
        return fields;
10374
      }
10375
 
10376
      /**
10377
       * Find the _Fields constant that matches name, or null if its not found.
10378
       */
10379
      public static _Fields findByName(String name) {
10380
        return byName.get(name);
10381
      }
10382
 
10383
      private final short _thriftId;
10384
      private final String _fieldName;
10385
 
10386
      _Fields(short thriftId, String fieldName) {
10387
        _thriftId = thriftId;
10388
        _fieldName = fieldName;
10389
      }
10390
 
10391
      public short getThriftFieldId() {
10392
        return _thriftId;
10393
      }
10394
 
10395
      public String getFieldName() {
10396
        return _fieldName;
10397
      }
10398
    }
10399
 
10400
    // isset id assignments
10401
 
3430 rajveer 10402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10403
    static {
3430 rajveer 10404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10405
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10406
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10407
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10409
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10411
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10412
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 10413
    }
10414
 
10415
    public updatePassword_args() {
10416
    }
10417
 
10418
    public updatePassword_args(
10419
      String username,
10420
      String oldPassword,
10421
      String newPassword)
10422
    {
10423
      this();
10424
      this.username = username;
10425
      this.oldPassword = oldPassword;
10426
      this.newPassword = newPassword;
10427
    }
10428
 
10429
    /**
10430
     * Performs a deep copy on <i>other</i>.
10431
     */
10432
    public updatePassword_args(updatePassword_args other) {
10433
      if (other.isSetUsername()) {
10434
        this.username = other.username;
10435
      }
10436
      if (other.isSetOldPassword()) {
10437
        this.oldPassword = other.oldPassword;
10438
      }
10439
      if (other.isSetNewPassword()) {
10440
        this.newPassword = other.newPassword;
10441
      }
10442
    }
10443
 
10444
    public updatePassword_args deepCopy() {
10445
      return new updatePassword_args(this);
10446
    }
10447
 
3430 rajveer 10448
    @Override
10449
    public void clear() {
10450
      this.username = null;
10451
      this.oldPassword = null;
10452
      this.newPassword = null;
495 rajveer 10453
    }
10454
 
10455
    public String getUsername() {
10456
      return this.username;
10457
    }
10458
 
3430 rajveer 10459
    public void setUsername(String username) {
495 rajveer 10460
      this.username = username;
10461
    }
10462
 
10463
    public void unsetUsername() {
10464
      this.username = null;
10465
    }
10466
 
3430 rajveer 10467
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10468
    public boolean isSetUsername() {
10469
      return this.username != null;
10470
    }
10471
 
10472
    public void setUsernameIsSet(boolean value) {
10473
      if (!value) {
10474
        this.username = null;
10475
      }
10476
    }
10477
 
10478
    public String getOldPassword() {
10479
      return this.oldPassword;
10480
    }
10481
 
3430 rajveer 10482
    public void setOldPassword(String oldPassword) {
495 rajveer 10483
      this.oldPassword = oldPassword;
10484
    }
10485
 
10486
    public void unsetOldPassword() {
10487
      this.oldPassword = null;
10488
    }
10489
 
3430 rajveer 10490
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10491
    public boolean isSetOldPassword() {
10492
      return this.oldPassword != null;
10493
    }
10494
 
10495
    public void setOldPasswordIsSet(boolean value) {
10496
      if (!value) {
10497
        this.oldPassword = null;
10498
      }
10499
    }
10500
 
10501
    public String getNewPassword() {
10502
      return this.newPassword;
10503
    }
10504
 
3430 rajveer 10505
    public void setNewPassword(String newPassword) {
495 rajveer 10506
      this.newPassword = newPassword;
10507
    }
10508
 
10509
    public void unsetNewPassword() {
10510
      this.newPassword = null;
10511
    }
10512
 
3430 rajveer 10513
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 10514
    public boolean isSetNewPassword() {
10515
      return this.newPassword != null;
10516
    }
10517
 
10518
    public void setNewPasswordIsSet(boolean value) {
10519
      if (!value) {
10520
        this.newPassword = null;
10521
      }
10522
    }
10523
 
10524
    public void setFieldValue(_Fields field, Object value) {
10525
      switch (field) {
10526
      case USERNAME:
10527
        if (value == null) {
10528
          unsetUsername();
10529
        } else {
10530
          setUsername((String)value);
10531
        }
10532
        break;
10533
 
10534
      case OLD_PASSWORD:
10535
        if (value == null) {
10536
          unsetOldPassword();
10537
        } else {
10538
          setOldPassword((String)value);
10539
        }
10540
        break;
10541
 
10542
      case NEW_PASSWORD:
10543
        if (value == null) {
10544
          unsetNewPassword();
10545
        } else {
10546
          setNewPassword((String)value);
10547
        }
10548
        break;
10549
 
10550
      }
10551
    }
10552
 
10553
    public Object getFieldValue(_Fields field) {
10554
      switch (field) {
10555
      case USERNAME:
10556
        return getUsername();
10557
 
10558
      case OLD_PASSWORD:
10559
        return getOldPassword();
10560
 
10561
      case NEW_PASSWORD:
10562
        return getNewPassword();
10563
 
10564
      }
10565
      throw new IllegalStateException();
10566
    }
10567
 
3430 rajveer 10568
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10569
    public boolean isSet(_Fields field) {
10570
      if (field == null) {
10571
        throw new IllegalArgumentException();
10572
      }
495 rajveer 10573
 
10574
      switch (field) {
10575
      case USERNAME:
10576
        return isSetUsername();
10577
      case OLD_PASSWORD:
10578
        return isSetOldPassword();
10579
      case NEW_PASSWORD:
10580
        return isSetNewPassword();
10581
      }
10582
      throw new IllegalStateException();
10583
    }
10584
 
10585
    @Override
10586
    public boolean equals(Object that) {
10587
      if (that == null)
10588
        return false;
10589
      if (that instanceof updatePassword_args)
10590
        return this.equals((updatePassword_args)that);
10591
      return false;
10592
    }
10593
 
10594
    public boolean equals(updatePassword_args that) {
10595
      if (that == null)
10596
        return false;
10597
 
10598
      boolean this_present_username = true && this.isSetUsername();
10599
      boolean that_present_username = true && that.isSetUsername();
10600
      if (this_present_username || that_present_username) {
10601
        if (!(this_present_username && that_present_username))
10602
          return false;
10603
        if (!this.username.equals(that.username))
10604
          return false;
10605
      }
10606
 
10607
      boolean this_present_oldPassword = true && this.isSetOldPassword();
10608
      boolean that_present_oldPassword = true && that.isSetOldPassword();
10609
      if (this_present_oldPassword || that_present_oldPassword) {
10610
        if (!(this_present_oldPassword && that_present_oldPassword))
10611
          return false;
10612
        if (!this.oldPassword.equals(that.oldPassword))
10613
          return false;
10614
      }
10615
 
10616
      boolean this_present_newPassword = true && this.isSetNewPassword();
10617
      boolean that_present_newPassword = true && that.isSetNewPassword();
10618
      if (this_present_newPassword || that_present_newPassword) {
10619
        if (!(this_present_newPassword && that_present_newPassword))
10620
          return false;
10621
        if (!this.newPassword.equals(that.newPassword))
10622
          return false;
10623
      }
10624
 
10625
      return true;
10626
    }
10627
 
10628
    @Override
10629
    public int hashCode() {
10630
      return 0;
10631
    }
10632
 
10633
    public int compareTo(updatePassword_args other) {
10634
      if (!getClass().equals(other.getClass())) {
10635
        return getClass().getName().compareTo(other.getClass().getName());
10636
      }
10637
 
10638
      int lastComparison = 0;
10639
      updatePassword_args typedOther = (updatePassword_args)other;
10640
 
3430 rajveer 10641
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10642
      if (lastComparison != 0) {
10643
        return lastComparison;
10644
      }
3430 rajveer 10645
      if (isSetUsername()) {
10646
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10647
        if (lastComparison != 0) {
10648
          return lastComparison;
10649
        }
495 rajveer 10650
      }
3430 rajveer 10651
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 10652
      if (lastComparison != 0) {
10653
        return lastComparison;
10654
      }
3430 rajveer 10655
      if (isSetOldPassword()) {
10656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
10657
        if (lastComparison != 0) {
10658
          return lastComparison;
10659
        }
495 rajveer 10660
      }
3430 rajveer 10661
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 10662
      if (lastComparison != 0) {
10663
        return lastComparison;
10664
      }
3430 rajveer 10665
      if (isSetNewPassword()) {
10666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
10667
        if (lastComparison != 0) {
10668
          return lastComparison;
10669
        }
495 rajveer 10670
      }
10671
      return 0;
10672
    }
10673
 
3430 rajveer 10674
    public _Fields fieldForId(int fieldId) {
10675
      return _Fields.findByThriftId(fieldId);
10676
    }
10677
 
10678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10679
      org.apache.thrift.protocol.TField field;
495 rajveer 10680
      iprot.readStructBegin();
10681
      while (true)
10682
      {
10683
        field = iprot.readFieldBegin();
3430 rajveer 10684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10685
          break;
10686
        }
3430 rajveer 10687
        switch (field.id) {
10688
          case 1: // USERNAME
10689
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10690
              this.username = iprot.readString();
10691
            } else { 
10692
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10693
            }
10694
            break;
10695
          case 2: // OLD_PASSWORD
10696
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10697
              this.oldPassword = iprot.readString();
10698
            } else { 
10699
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10700
            }
10701
            break;
10702
          case 3: // NEW_PASSWORD
10703
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10704
              this.newPassword = iprot.readString();
10705
            } else { 
10706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10707
            }
10708
            break;
10709
          default:
10710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10711
        }
3430 rajveer 10712
        iprot.readFieldEnd();
495 rajveer 10713
      }
10714
      iprot.readStructEnd();
10715
      validate();
10716
    }
10717
 
3430 rajveer 10718
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10719
      validate();
10720
 
10721
      oprot.writeStructBegin(STRUCT_DESC);
10722
      if (this.username != null) {
10723
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10724
        oprot.writeString(this.username);
10725
        oprot.writeFieldEnd();
10726
      }
10727
      if (this.oldPassword != null) {
10728
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
10729
        oprot.writeString(this.oldPassword);
10730
        oprot.writeFieldEnd();
10731
      }
10732
      if (this.newPassword != null) {
10733
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
10734
        oprot.writeString(this.newPassword);
10735
        oprot.writeFieldEnd();
10736
      }
10737
      oprot.writeFieldStop();
10738
      oprot.writeStructEnd();
10739
    }
10740
 
10741
    @Override
10742
    public String toString() {
10743
      StringBuilder sb = new StringBuilder("updatePassword_args(");
10744
      boolean first = true;
10745
 
10746
      sb.append("username:");
10747
      if (this.username == null) {
10748
        sb.append("null");
10749
      } else {
10750
        sb.append(this.username);
10751
      }
10752
      first = false;
10753
      if (!first) sb.append(", ");
10754
      sb.append("oldPassword:");
10755
      if (this.oldPassword == null) {
10756
        sb.append("null");
10757
      } else {
10758
        sb.append(this.oldPassword);
10759
      }
10760
      first = false;
10761
      if (!first) sb.append(", ");
10762
      sb.append("newPassword:");
10763
      if (this.newPassword == null) {
10764
        sb.append("null");
10765
      } else {
10766
        sb.append(this.newPassword);
10767
      }
10768
      first = false;
10769
      sb.append(")");
10770
      return sb.toString();
10771
    }
10772
 
3430 rajveer 10773
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10774
      // check for required fields
10775
    }
10776
 
3430 rajveer 10777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10778
      try {
10779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10780
      } catch (org.apache.thrift.TException te) {
10781
        throw new java.io.IOException(te);
10782
      }
10783
    }
10784
 
10785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10786
      try {
10787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10788
      } catch (org.apache.thrift.TException te) {
10789
        throw new java.io.IOException(te);
10790
      }
10791
    }
10792
 
495 rajveer 10793
  }
10794
 
3430 rajveer 10795
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
10796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 10797
 
3430 rajveer 10798
    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);
10799
    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 10800
 
3430 rajveer 10801
    private boolean success; // required
10802
    private HelperServiceException se; // required
495 rajveer 10803
 
10804
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10805
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10806
      SUCCESS((short)0, "success"),
10807
      SE((short)1, "se");
10808
 
10809
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10810
 
10811
      static {
10812
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10813
          byName.put(field.getFieldName(), field);
10814
        }
10815
      }
10816
 
10817
      /**
10818
       * Find the _Fields constant that matches fieldId, or null if its not found.
10819
       */
10820
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10821
        switch(fieldId) {
10822
          case 0: // SUCCESS
10823
            return SUCCESS;
10824
          case 1: // SE
10825
            return SE;
10826
          default:
10827
            return null;
10828
        }
495 rajveer 10829
      }
10830
 
10831
      /**
10832
       * Find the _Fields constant that matches fieldId, throwing an exception
10833
       * if it is not found.
10834
       */
10835
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10836
        _Fields fields = findByThriftId(fieldId);
10837
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10838
        return fields;
10839
      }
10840
 
10841
      /**
10842
       * Find the _Fields constant that matches name, or null if its not found.
10843
       */
10844
      public static _Fields findByName(String name) {
10845
        return byName.get(name);
10846
      }
10847
 
10848
      private final short _thriftId;
10849
      private final String _fieldName;
10850
 
10851
      _Fields(short thriftId, String fieldName) {
10852
        _thriftId = thriftId;
10853
        _fieldName = fieldName;
10854
      }
10855
 
10856
      public short getThriftFieldId() {
10857
        return _thriftId;
10858
      }
10859
 
10860
      public String getFieldName() {
10861
        return _fieldName;
10862
      }
10863
    }
10864
 
10865
    // isset id assignments
10866
    private static final int __SUCCESS_ISSET_ID = 0;
10867
    private BitSet __isset_bit_vector = new BitSet(1);
10868
 
3430 rajveer 10869
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10870
    static {
3430 rajveer 10871
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10872
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10874
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10875
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10876
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10877
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 10878
    }
10879
 
10880
    public updatePassword_result() {
10881
    }
10882
 
10883
    public updatePassword_result(
10884
      boolean success,
10885
      HelperServiceException se)
10886
    {
10887
      this();
10888
      this.success = success;
10889
      setSuccessIsSet(true);
10890
      this.se = se;
10891
    }
10892
 
10893
    /**
10894
     * Performs a deep copy on <i>other</i>.
10895
     */
10896
    public updatePassword_result(updatePassword_result other) {
10897
      __isset_bit_vector.clear();
10898
      __isset_bit_vector.or(other.__isset_bit_vector);
10899
      this.success = other.success;
10900
      if (other.isSetSe()) {
10901
        this.se = new HelperServiceException(other.se);
10902
      }
10903
    }
10904
 
10905
    public updatePassword_result deepCopy() {
10906
      return new updatePassword_result(this);
10907
    }
10908
 
3430 rajveer 10909
    @Override
10910
    public void clear() {
10911
      setSuccessIsSet(false);
10912
      this.success = false;
10913
      this.se = null;
495 rajveer 10914
    }
10915
 
10916
    public boolean isSuccess() {
10917
      return this.success;
10918
    }
10919
 
3430 rajveer 10920
    public void setSuccess(boolean success) {
495 rajveer 10921
      this.success = success;
10922
      setSuccessIsSet(true);
10923
    }
10924
 
10925
    public void unsetSuccess() {
10926
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10927
    }
10928
 
3430 rajveer 10929
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10930
    public boolean isSetSuccess() {
10931
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10932
    }
10933
 
10934
    public void setSuccessIsSet(boolean value) {
10935
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10936
    }
10937
 
10938
    public HelperServiceException getSe() {
10939
      return this.se;
10940
    }
10941
 
3430 rajveer 10942
    public void setSe(HelperServiceException se) {
495 rajveer 10943
      this.se = se;
10944
    }
10945
 
10946
    public void unsetSe() {
10947
      this.se = null;
10948
    }
10949
 
3430 rajveer 10950
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10951
    public boolean isSetSe() {
10952
      return this.se != null;
10953
    }
10954
 
10955
    public void setSeIsSet(boolean value) {
10956
      if (!value) {
10957
        this.se = null;
10958
      }
10959
    }
10960
 
10961
    public void setFieldValue(_Fields field, Object value) {
10962
      switch (field) {
10963
      case SUCCESS:
10964
        if (value == null) {
10965
          unsetSuccess();
10966
        } else {
10967
          setSuccess((Boolean)value);
10968
        }
10969
        break;
10970
 
10971
      case SE:
10972
        if (value == null) {
10973
          unsetSe();
10974
        } else {
10975
          setSe((HelperServiceException)value);
10976
        }
10977
        break;
10978
 
10979
      }
10980
    }
10981
 
10982
    public Object getFieldValue(_Fields field) {
10983
      switch (field) {
10984
      case SUCCESS:
3430 rajveer 10985
        return Boolean.valueOf(isSuccess());
495 rajveer 10986
 
10987
      case SE:
10988
        return getSe();
10989
 
10990
      }
10991
      throw new IllegalStateException();
10992
    }
10993
 
3430 rajveer 10994
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10995
    public boolean isSet(_Fields field) {
10996
      if (field == null) {
10997
        throw new IllegalArgumentException();
10998
      }
495 rajveer 10999
 
11000
      switch (field) {
11001
      case SUCCESS:
11002
        return isSetSuccess();
11003
      case SE:
11004
        return isSetSe();
11005
      }
11006
      throw new IllegalStateException();
11007
    }
11008
 
11009
    @Override
11010
    public boolean equals(Object that) {
11011
      if (that == null)
11012
        return false;
11013
      if (that instanceof updatePassword_result)
11014
        return this.equals((updatePassword_result)that);
11015
      return false;
11016
    }
11017
 
11018
    public boolean equals(updatePassword_result that) {
11019
      if (that == null)
11020
        return false;
11021
 
11022
      boolean this_present_success = true;
11023
      boolean that_present_success = true;
11024
      if (this_present_success || that_present_success) {
11025
        if (!(this_present_success && that_present_success))
11026
          return false;
11027
        if (this.success != that.success)
11028
          return false;
11029
      }
11030
 
11031
      boolean this_present_se = true && this.isSetSe();
11032
      boolean that_present_se = true && that.isSetSe();
11033
      if (this_present_se || that_present_se) {
11034
        if (!(this_present_se && that_present_se))
11035
          return false;
11036
        if (!this.se.equals(that.se))
11037
          return false;
11038
      }
11039
 
11040
      return true;
11041
    }
11042
 
11043
    @Override
11044
    public int hashCode() {
11045
      return 0;
11046
    }
11047
 
11048
    public int compareTo(updatePassword_result other) {
11049
      if (!getClass().equals(other.getClass())) {
11050
        return getClass().getName().compareTo(other.getClass().getName());
11051
      }
11052
 
11053
      int lastComparison = 0;
11054
      updatePassword_result typedOther = (updatePassword_result)other;
11055
 
3430 rajveer 11056
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11057
      if (lastComparison != 0) {
11058
        return lastComparison;
11059
      }
3430 rajveer 11060
      if (isSetSuccess()) {
11061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11062
        if (lastComparison != 0) {
11063
          return lastComparison;
11064
        }
495 rajveer 11065
      }
3430 rajveer 11066
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11067
      if (lastComparison != 0) {
11068
        return lastComparison;
11069
      }
3430 rajveer 11070
      if (isSetSe()) {
11071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11072
        if (lastComparison != 0) {
11073
          return lastComparison;
11074
        }
495 rajveer 11075
      }
11076
      return 0;
11077
    }
11078
 
3430 rajveer 11079
    public _Fields fieldForId(int fieldId) {
11080
      return _Fields.findByThriftId(fieldId);
11081
    }
11082
 
11083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11084
      org.apache.thrift.protocol.TField field;
495 rajveer 11085
      iprot.readStructBegin();
11086
      while (true)
11087
      {
11088
        field = iprot.readFieldBegin();
3430 rajveer 11089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11090
          break;
11091
        }
3430 rajveer 11092
        switch (field.id) {
11093
          case 0: // SUCCESS
11094
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11095
              this.success = iprot.readBool();
11096
              setSuccessIsSet(true);
11097
            } else { 
11098
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11099
            }
11100
            break;
11101
          case 1: // SE
11102
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11103
              this.se = new HelperServiceException();
11104
              this.se.read(iprot);
11105
            } else { 
11106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11107
            }
11108
            break;
11109
          default:
11110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11111
        }
3430 rajveer 11112
        iprot.readFieldEnd();
495 rajveer 11113
      }
11114
      iprot.readStructEnd();
11115
      validate();
11116
    }
11117
 
3430 rajveer 11118
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11119
      oprot.writeStructBegin(STRUCT_DESC);
11120
 
11121
      if (this.isSetSuccess()) {
11122
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11123
        oprot.writeBool(this.success);
11124
        oprot.writeFieldEnd();
11125
      } else if (this.isSetSe()) {
11126
        oprot.writeFieldBegin(SE_FIELD_DESC);
11127
        this.se.write(oprot);
11128
        oprot.writeFieldEnd();
11129
      }
11130
      oprot.writeFieldStop();
11131
      oprot.writeStructEnd();
11132
    }
11133
 
11134
    @Override
11135
    public String toString() {
11136
      StringBuilder sb = new StringBuilder("updatePassword_result(");
11137
      boolean first = true;
11138
 
11139
      sb.append("success:");
11140
      sb.append(this.success);
11141
      first = false;
11142
      if (!first) sb.append(", ");
11143
      sb.append("se:");
11144
      if (this.se == null) {
11145
        sb.append("null");
11146
      } else {
11147
        sb.append(this.se);
11148
      }
11149
      first = false;
11150
      sb.append(")");
11151
      return sb.toString();
11152
    }
11153
 
3430 rajveer 11154
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11155
      // check for required fields
11156
    }
11157
 
3430 rajveer 11158
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11159
      try {
11160
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11161
      } catch (org.apache.thrift.TException te) {
11162
        throw new java.io.IOException(te);
11163
      }
11164
    }
11165
 
11166
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11167
      try {
11168
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11169
      } catch (org.apache.thrift.TException te) {
11170
        throw new java.io.IOException(te);
11171
      }
11172
    }
11173
 
495 rajveer 11174
  }
11175
 
3430 rajveer 11176
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11177
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 11178
 
3430 rajveer 11179
    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);
11180
    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 11181
 
3430 rajveer 11182
    private String username; // required
11183
    private String password; // required
750 chandransh 11184
 
11185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11186
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11187
      USERNAME((short)1, "username"),
11188
      PASSWORD((short)2, "password");
11189
 
11190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11191
 
11192
      static {
11193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11194
          byName.put(field.getFieldName(), field);
11195
        }
11196
      }
11197
 
11198
      /**
11199
       * Find the _Fields constant that matches fieldId, or null if its not found.
11200
       */
11201
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11202
        switch(fieldId) {
11203
          case 1: // USERNAME
11204
            return USERNAME;
11205
          case 2: // PASSWORD
11206
            return PASSWORD;
11207
          default:
11208
            return null;
11209
        }
750 chandransh 11210
      }
11211
 
11212
      /**
11213
       * Find the _Fields constant that matches fieldId, throwing an exception
11214
       * if it is not found.
11215
       */
11216
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11217
        _Fields fields = findByThriftId(fieldId);
11218
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11219
        return fields;
11220
      }
11221
 
11222
      /**
11223
       * Find the _Fields constant that matches name, or null if its not found.
11224
       */
11225
      public static _Fields findByName(String name) {
11226
        return byName.get(name);
11227
      }
11228
 
11229
      private final short _thriftId;
11230
      private final String _fieldName;
11231
 
11232
      _Fields(short thriftId, String fieldName) {
11233
        _thriftId = thriftId;
11234
        _fieldName = fieldName;
11235
      }
11236
 
11237
      public short getThriftFieldId() {
11238
        return _thriftId;
11239
      }
11240
 
11241
      public String getFieldName() {
11242
        return _fieldName;
11243
      }
11244
    }
11245
 
11246
    // isset id assignments
11247
 
3430 rajveer 11248
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11249
    static {
3430 rajveer 11250
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11251
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11252
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11253
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 11257
    }
11258
 
11259
    public authenticateLogisticsUser_args() {
11260
    }
11261
 
11262
    public authenticateLogisticsUser_args(
11263
      String username,
11264
      String password)
11265
    {
11266
      this();
11267
      this.username = username;
11268
      this.password = password;
11269
    }
11270
 
11271
    /**
11272
     * Performs a deep copy on <i>other</i>.
11273
     */
11274
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
11275
      if (other.isSetUsername()) {
11276
        this.username = other.username;
11277
      }
11278
      if (other.isSetPassword()) {
11279
        this.password = other.password;
11280
      }
11281
    }
11282
 
11283
    public authenticateLogisticsUser_args deepCopy() {
11284
      return new authenticateLogisticsUser_args(this);
11285
    }
11286
 
3430 rajveer 11287
    @Override
11288
    public void clear() {
11289
      this.username = null;
11290
      this.password = null;
750 chandransh 11291
    }
11292
 
11293
    public String getUsername() {
11294
      return this.username;
11295
    }
11296
 
3430 rajveer 11297
    public void setUsername(String username) {
750 chandransh 11298
      this.username = username;
11299
    }
11300
 
11301
    public void unsetUsername() {
11302
      this.username = null;
11303
    }
11304
 
3430 rajveer 11305
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 11306
    public boolean isSetUsername() {
11307
      return this.username != null;
11308
    }
11309
 
11310
    public void setUsernameIsSet(boolean value) {
11311
      if (!value) {
11312
        this.username = null;
11313
      }
11314
    }
11315
 
11316
    public String getPassword() {
11317
      return this.password;
11318
    }
11319
 
3430 rajveer 11320
    public void setPassword(String password) {
750 chandransh 11321
      this.password = password;
11322
    }
11323
 
11324
    public void unsetPassword() {
11325
      this.password = null;
11326
    }
11327
 
3430 rajveer 11328
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 11329
    public boolean isSetPassword() {
11330
      return this.password != null;
11331
    }
11332
 
11333
    public void setPasswordIsSet(boolean value) {
11334
      if (!value) {
11335
        this.password = null;
11336
      }
11337
    }
11338
 
11339
    public void setFieldValue(_Fields field, Object value) {
11340
      switch (field) {
11341
      case USERNAME:
11342
        if (value == null) {
11343
          unsetUsername();
11344
        } else {
11345
          setUsername((String)value);
11346
        }
11347
        break;
11348
 
11349
      case PASSWORD:
11350
        if (value == null) {
11351
          unsetPassword();
11352
        } else {
11353
          setPassword((String)value);
11354
        }
11355
        break;
11356
 
11357
      }
11358
    }
11359
 
11360
    public Object getFieldValue(_Fields field) {
11361
      switch (field) {
11362
      case USERNAME:
11363
        return getUsername();
11364
 
11365
      case PASSWORD:
11366
        return getPassword();
11367
 
11368
      }
11369
      throw new IllegalStateException();
11370
    }
11371
 
3430 rajveer 11372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11373
    public boolean isSet(_Fields field) {
11374
      if (field == null) {
11375
        throw new IllegalArgumentException();
11376
      }
750 chandransh 11377
 
11378
      switch (field) {
11379
      case USERNAME:
11380
        return isSetUsername();
11381
      case PASSWORD:
11382
        return isSetPassword();
11383
      }
11384
      throw new IllegalStateException();
11385
    }
11386
 
11387
    @Override
11388
    public boolean equals(Object that) {
11389
      if (that == null)
11390
        return false;
11391
      if (that instanceof authenticateLogisticsUser_args)
11392
        return this.equals((authenticateLogisticsUser_args)that);
11393
      return false;
11394
    }
11395
 
11396
    public boolean equals(authenticateLogisticsUser_args that) {
11397
      if (that == null)
11398
        return false;
11399
 
11400
      boolean this_present_username = true && this.isSetUsername();
11401
      boolean that_present_username = true && that.isSetUsername();
11402
      if (this_present_username || that_present_username) {
11403
        if (!(this_present_username && that_present_username))
11404
          return false;
11405
        if (!this.username.equals(that.username))
11406
          return false;
11407
      }
11408
 
11409
      boolean this_present_password = true && this.isSetPassword();
11410
      boolean that_present_password = true && that.isSetPassword();
11411
      if (this_present_password || that_present_password) {
11412
        if (!(this_present_password && that_present_password))
11413
          return false;
11414
        if (!this.password.equals(that.password))
11415
          return false;
11416
      }
11417
 
11418
      return true;
11419
    }
11420
 
11421
    @Override
11422
    public int hashCode() {
11423
      return 0;
11424
    }
11425
 
11426
    public int compareTo(authenticateLogisticsUser_args other) {
11427
      if (!getClass().equals(other.getClass())) {
11428
        return getClass().getName().compareTo(other.getClass().getName());
11429
      }
11430
 
11431
      int lastComparison = 0;
11432
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
11433
 
3430 rajveer 11434
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 11435
      if (lastComparison != 0) {
11436
        return lastComparison;
11437
      }
3430 rajveer 11438
      if (isSetUsername()) {
11439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11440
        if (lastComparison != 0) {
11441
          return lastComparison;
11442
        }
750 chandransh 11443
      }
3430 rajveer 11444
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 11445
      if (lastComparison != 0) {
11446
        return lastComparison;
11447
      }
3430 rajveer 11448
      if (isSetPassword()) {
11449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11450
        if (lastComparison != 0) {
11451
          return lastComparison;
11452
        }
750 chandransh 11453
      }
11454
      return 0;
11455
    }
11456
 
3430 rajveer 11457
    public _Fields fieldForId(int fieldId) {
11458
      return _Fields.findByThriftId(fieldId);
11459
    }
11460
 
11461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11462
      org.apache.thrift.protocol.TField field;
750 chandransh 11463
      iprot.readStructBegin();
11464
      while (true)
11465
      {
11466
        field = iprot.readFieldBegin();
3430 rajveer 11467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 11468
          break;
11469
        }
3430 rajveer 11470
        switch (field.id) {
11471
          case 1: // USERNAME
11472
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11473
              this.username = iprot.readString();
11474
            } else { 
11475
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11476
            }
11477
            break;
11478
          case 2: // PASSWORD
11479
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11480
              this.password = iprot.readString();
11481
            } else { 
11482
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11483
            }
11484
            break;
11485
          default:
11486
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 11487
        }
3430 rajveer 11488
        iprot.readFieldEnd();
750 chandransh 11489
      }
11490
      iprot.readStructEnd();
11491
      validate();
11492
    }
11493
 
3430 rajveer 11494
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 11495
      validate();
11496
 
11497
      oprot.writeStructBegin(STRUCT_DESC);
11498
      if (this.username != null) {
11499
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11500
        oprot.writeString(this.username);
11501
        oprot.writeFieldEnd();
11502
      }
11503
      if (this.password != null) {
11504
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11505
        oprot.writeString(this.password);
11506
        oprot.writeFieldEnd();
11507
      }
11508
      oprot.writeFieldStop();
11509
      oprot.writeStructEnd();
11510
    }
11511
 
11512
    @Override
11513
    public String toString() {
11514
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
11515
      boolean first = true;
11516
 
11517
      sb.append("username:");
11518
      if (this.username == null) {
11519
        sb.append("null");
11520
      } else {
11521
        sb.append(this.username);
11522
      }
11523
      first = false;
11524
      if (!first) sb.append(", ");
11525
      sb.append("password:");
11526
      if (this.password == null) {
11527
        sb.append("null");
11528
      } else {
11529
        sb.append(this.password);
11530
      }
11531
      first = false;
11532
      sb.append(")");
11533
      return sb.toString();
11534
    }
11535
 
3430 rajveer 11536
    public void validate() throws org.apache.thrift.TException {
750 chandransh 11537
      // check for required fields
11538
    }
11539
 
3430 rajveer 11540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11541
      try {
11542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11543
      } catch (org.apache.thrift.TException te) {
11544
        throw new java.io.IOException(te);
11545
      }
11546
    }
11547
 
11548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11549
      try {
11550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11551
      } catch (org.apache.thrift.TException te) {
11552
        throw new java.io.IOException(te);
11553
      }
11554
    }
11555
 
750 chandransh 11556
  }
11557
 
3430 rajveer 11558
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
11559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 11560
 
3430 rajveer 11561
    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);
11562
    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 11563
 
3430 rajveer 11564
    private LogisticsUser success; // required
11565
    private HelperServiceException hse; // required
750 chandransh 11566
 
11567
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11568
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 11569
      SUCCESS((short)0, "success"),
11570
      HSE((short)1, "hse");
11571
 
11572
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11573
 
11574
      static {
11575
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11576
          byName.put(field.getFieldName(), field);
11577
        }
11578
      }
11579
 
11580
      /**
11581
       * Find the _Fields constant that matches fieldId, or null if its not found.
11582
       */
11583
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11584
        switch(fieldId) {
11585
          case 0: // SUCCESS
11586
            return SUCCESS;
11587
          case 1: // HSE
11588
            return HSE;
11589
          default:
11590
            return null;
11591
        }
750 chandransh 11592
      }
11593
 
11594
      /**
11595
       * Find the _Fields constant that matches fieldId, throwing an exception
11596
       * if it is not found.
11597
       */
11598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11599
        _Fields fields = findByThriftId(fieldId);
11600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11601
        return fields;
11602
      }
11603
 
11604
      /**
11605
       * Find the _Fields constant that matches name, or null if its not found.
11606
       */
11607
      public static _Fields findByName(String name) {
11608
        return byName.get(name);
11609
      }
11610
 
11611
      private final short _thriftId;
11612
      private final String _fieldName;
11613
 
11614
      _Fields(short thriftId, String fieldName) {
11615
        _thriftId = thriftId;
11616
        _fieldName = fieldName;
11617
      }
11618
 
11619
      public short getThriftFieldId() {
11620
        return _thriftId;
11621
      }
11622
 
11623
      public String getFieldName() {
11624
        return _fieldName;
11625
      }
11626
    }
11627
 
11628
    // isset id assignments
11629
 
3430 rajveer 11630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 11631
    static {
3430 rajveer 11632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11633
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11634
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
11635
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11636
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 11639
    }
11640
 
11641
    public authenticateLogisticsUser_result() {
11642
    }
11643
 
11644
    public authenticateLogisticsUser_result(
11645
      LogisticsUser success,
11646
      HelperServiceException hse)
11647
    {
11648
      this();
11649
      this.success = success;
11650
      this.hse = hse;
11651
    }
11652
 
11653
    /**
11654
     * Performs a deep copy on <i>other</i>.
11655
     */
11656
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
11657
      if (other.isSetSuccess()) {
11658
        this.success = new LogisticsUser(other.success);
11659
      }
11660
      if (other.isSetHse()) {
11661
        this.hse = new HelperServiceException(other.hse);
11662
      }
11663
    }
11664
 
11665
    public authenticateLogisticsUser_result deepCopy() {
11666
      return new authenticateLogisticsUser_result(this);
11667
    }
11668
 
3430 rajveer 11669
    @Override
11670
    public void clear() {
11671
      this.success = null;
11672
      this.hse = null;
750 chandransh 11673
    }
11674
 
11675
    public LogisticsUser getSuccess() {
11676
      return this.success;
11677
    }
11678
 
3430 rajveer 11679
    public void setSuccess(LogisticsUser success) {
750 chandransh 11680
      this.success = success;
11681
    }
11682
 
11683
    public void unsetSuccess() {
11684
      this.success = null;
11685
    }
11686
 
3430 rajveer 11687
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 11688
    public boolean isSetSuccess() {
11689
      return this.success != null;
11690
    }
11691
 
11692
    public void setSuccessIsSet(boolean value) {
11693
      if (!value) {
11694
        this.success = null;
11695
      }
11696
    }
11697
 
11698
    public HelperServiceException getHse() {
11699
      return this.hse;
11700
    }
11701
 
3430 rajveer 11702
    public void setHse(HelperServiceException hse) {
750 chandransh 11703
      this.hse = hse;
11704
    }
11705
 
11706
    public void unsetHse() {
11707
      this.hse = null;
11708
    }
11709
 
3430 rajveer 11710
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 11711
    public boolean isSetHse() {
11712
      return this.hse != null;
11713
    }
11714
 
11715
    public void setHseIsSet(boolean value) {
11716
      if (!value) {
11717
        this.hse = null;
11718
      }
11719
    }
11720
 
11721
    public void setFieldValue(_Fields field, Object value) {
11722
      switch (field) {
11723
      case SUCCESS:
11724
        if (value == null) {
11725
          unsetSuccess();
11726
        } else {
11727
          setSuccess((LogisticsUser)value);
11728
        }
11729
        break;
11730
 
11731
      case HSE:
11732
        if (value == null) {
11733
          unsetHse();
11734
        } else {
11735
          setHse((HelperServiceException)value);
11736
        }
11737
        break;
11738
 
11739
      }
11740
    }
11741
 
11742
    public Object getFieldValue(_Fields field) {
11743
      switch (field) {
11744
      case SUCCESS:
11745
        return getSuccess();
11746
 
11747
      case HSE:
11748
        return getHse();
11749
 
11750
      }
11751
      throw new IllegalStateException();
11752
    }
11753
 
3430 rajveer 11754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11755
    public boolean isSet(_Fields field) {
11756
      if (field == null) {
11757
        throw new IllegalArgumentException();
11758
      }
750 chandransh 11759
 
11760
      switch (field) {
11761
      case SUCCESS:
11762
        return isSetSuccess();
11763
      case HSE:
11764
        return isSetHse();
11765
      }
11766
      throw new IllegalStateException();
11767
    }
11768
 
11769
    @Override
11770
    public boolean equals(Object that) {
11771
      if (that == null)
11772
        return false;
11773
      if (that instanceof authenticateLogisticsUser_result)
11774
        return this.equals((authenticateLogisticsUser_result)that);
11775
      return false;
11776
    }
11777
 
11778
    public boolean equals(authenticateLogisticsUser_result that) {
11779
      if (that == null)
11780
        return false;
11781
 
11782
      boolean this_present_success = true && this.isSetSuccess();
11783
      boolean that_present_success = true && that.isSetSuccess();
11784
      if (this_present_success || that_present_success) {
11785
        if (!(this_present_success && that_present_success))
11786
          return false;
11787
        if (!this.success.equals(that.success))
11788
          return false;
11789
      }
11790
 
11791
      boolean this_present_hse = true && this.isSetHse();
11792
      boolean that_present_hse = true && that.isSetHse();
11793
      if (this_present_hse || that_present_hse) {
11794
        if (!(this_present_hse && that_present_hse))
11795
          return false;
11796
        if (!this.hse.equals(that.hse))
11797
          return false;
11798
      }
11799
 
11800
      return true;
11801
    }
11802
 
11803
    @Override
11804
    public int hashCode() {
11805
      return 0;
11806
    }
11807
 
11808
    public int compareTo(authenticateLogisticsUser_result other) {
11809
      if (!getClass().equals(other.getClass())) {
11810
        return getClass().getName().compareTo(other.getClass().getName());
11811
      }
11812
 
11813
      int lastComparison = 0;
11814
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
11815
 
3430 rajveer 11816
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 11817
      if (lastComparison != 0) {
11818
        return lastComparison;
11819
      }
3430 rajveer 11820
      if (isSetSuccess()) {
11821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11822
        if (lastComparison != 0) {
11823
          return lastComparison;
11824
        }
750 chandransh 11825
      }
3430 rajveer 11826
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 11827
      if (lastComparison != 0) {
11828
        return lastComparison;
11829
      }
3430 rajveer 11830
      if (isSetHse()) {
11831
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
11832
        if (lastComparison != 0) {
11833
          return lastComparison;
11834
        }
750 chandransh 11835
      }
11836
      return 0;
11837
    }
11838
 
3430 rajveer 11839
    public _Fields fieldForId(int fieldId) {
11840
      return _Fields.findByThriftId(fieldId);
11841
    }
11842
 
11843
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11844
      org.apache.thrift.protocol.TField field;
750 chandransh 11845
      iprot.readStructBegin();
11846
      while (true)
11847
      {
11848
        field = iprot.readFieldBegin();
3430 rajveer 11849
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 11850
          break;
11851
        }
3430 rajveer 11852
        switch (field.id) {
11853
          case 0: // SUCCESS
11854
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11855
              this.success = new LogisticsUser();
11856
              this.success.read(iprot);
11857
            } else { 
11858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11859
            }
11860
            break;
11861
          case 1: // HSE
11862
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11863
              this.hse = new HelperServiceException();
11864
              this.hse.read(iprot);
11865
            } else { 
11866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11867
            }
11868
            break;
11869
          default:
11870
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 11871
        }
3430 rajveer 11872
        iprot.readFieldEnd();
750 chandransh 11873
      }
11874
      iprot.readStructEnd();
11875
      validate();
11876
    }
11877
 
3430 rajveer 11878
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 11879
      oprot.writeStructBegin(STRUCT_DESC);
11880
 
11881
      if (this.isSetSuccess()) {
11882
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11883
        this.success.write(oprot);
11884
        oprot.writeFieldEnd();
11885
      } else if (this.isSetHse()) {
11886
        oprot.writeFieldBegin(HSE_FIELD_DESC);
11887
        this.hse.write(oprot);
11888
        oprot.writeFieldEnd();
11889
      }
11890
      oprot.writeFieldStop();
11891
      oprot.writeStructEnd();
11892
    }
11893
 
11894
    @Override
11895
    public String toString() {
11896
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
11897
      boolean first = true;
11898
 
11899
      sb.append("success:");
11900
      if (this.success == null) {
11901
        sb.append("null");
11902
      } else {
11903
        sb.append(this.success);
11904
      }
11905
      first = false;
11906
      if (!first) sb.append(", ");
11907
      sb.append("hse:");
11908
      if (this.hse == null) {
11909
        sb.append("null");
11910
      } else {
11911
        sb.append(this.hse);
11912
      }
11913
      first = false;
11914
      sb.append(")");
11915
      return sb.toString();
11916
    }
11917
 
3430 rajveer 11918
    public void validate() throws org.apache.thrift.TException {
750 chandransh 11919
      // check for required fields
11920
    }
11921
 
3430 rajveer 11922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11923
      try {
11924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11925
      } catch (org.apache.thrift.TException te) {
11926
        throw new java.io.IOException(te);
11927
      }
11928
    }
11929
 
11930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11931
      try {
11932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11933
      } catch (org.apache.thrift.TException te) {
11934
        throw new java.io.IOException(te);
11935
      }
11936
    }
11937
 
750 chandransh 11938
  }
11939
 
3430 rajveer 11940
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
11941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 11942
 
3430 rajveer 11943
    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);
11944
    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 11945
 
3430 rajveer 11946
    private String username; // required
11947
    private String password; // required
1611 ankur.sing 11948
 
11949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 11951
      USERNAME((short)1, "username"),
11952
      PASSWORD((short)2, "password");
11953
 
11954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11955
 
11956
      static {
11957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11958
          byName.put(field.getFieldName(), field);
11959
        }
11960
      }
11961
 
11962
      /**
11963
       * Find the _Fields constant that matches fieldId, or null if its not found.
11964
       */
11965
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11966
        switch(fieldId) {
11967
          case 1: // USERNAME
11968
            return USERNAME;
11969
          case 2: // PASSWORD
11970
            return PASSWORD;
11971
          default:
11972
            return null;
11973
        }
1611 ankur.sing 11974
      }
11975
 
11976
      /**
11977
       * Find the _Fields constant that matches fieldId, throwing an exception
11978
       * if it is not found.
11979
       */
11980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11981
        _Fields fields = findByThriftId(fieldId);
11982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11983
        return fields;
11984
      }
11985
 
11986
      /**
11987
       * Find the _Fields constant that matches name, or null if its not found.
11988
       */
11989
      public static _Fields findByName(String name) {
11990
        return byName.get(name);
11991
      }
11992
 
11993
      private final short _thriftId;
11994
      private final String _fieldName;
11995
 
11996
      _Fields(short thriftId, String fieldName) {
11997
        _thriftId = thriftId;
11998
        _fieldName = fieldName;
11999
      }
12000
 
12001
      public short getThriftFieldId() {
12002
        return _thriftId;
12003
      }
12004
 
12005
      public String getFieldName() {
12006
        return _fieldName;
12007
      }
12008
    }
12009
 
12010
    // isset id assignments
12011
 
3430 rajveer 12012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12013
    static {
3430 rajveer 12014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12015
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12016
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12017
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 12021
    }
12022
 
12023
    public authenticateStatisticsUser_args() {
12024
    }
12025
 
12026
    public authenticateStatisticsUser_args(
12027
      String username,
12028
      String password)
12029
    {
12030
      this();
12031
      this.username = username;
12032
      this.password = password;
12033
    }
12034
 
12035
    /**
12036
     * Performs a deep copy on <i>other</i>.
12037
     */
12038
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
12039
      if (other.isSetUsername()) {
12040
        this.username = other.username;
12041
      }
12042
      if (other.isSetPassword()) {
12043
        this.password = other.password;
12044
      }
12045
    }
12046
 
12047
    public authenticateStatisticsUser_args deepCopy() {
12048
      return new authenticateStatisticsUser_args(this);
12049
    }
12050
 
3430 rajveer 12051
    @Override
12052
    public void clear() {
12053
      this.username = null;
12054
      this.password = null;
1611 ankur.sing 12055
    }
12056
 
12057
    public String getUsername() {
12058
      return this.username;
12059
    }
12060
 
3430 rajveer 12061
    public void setUsername(String username) {
1611 ankur.sing 12062
      this.username = username;
12063
    }
12064
 
12065
    public void unsetUsername() {
12066
      this.username = null;
12067
    }
12068
 
3430 rajveer 12069
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12070
    public boolean isSetUsername() {
12071
      return this.username != null;
12072
    }
12073
 
12074
    public void setUsernameIsSet(boolean value) {
12075
      if (!value) {
12076
        this.username = null;
12077
      }
12078
    }
12079
 
12080
    public String getPassword() {
12081
      return this.password;
12082
    }
12083
 
3430 rajveer 12084
    public void setPassword(String password) {
1611 ankur.sing 12085
      this.password = password;
12086
    }
12087
 
12088
    public void unsetPassword() {
12089
      this.password = null;
12090
    }
12091
 
3430 rajveer 12092
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12093
    public boolean isSetPassword() {
12094
      return this.password != null;
12095
    }
12096
 
12097
    public void setPasswordIsSet(boolean value) {
12098
      if (!value) {
12099
        this.password = null;
12100
      }
12101
    }
12102
 
12103
    public void setFieldValue(_Fields field, Object value) {
12104
      switch (field) {
12105
      case USERNAME:
12106
        if (value == null) {
12107
          unsetUsername();
12108
        } else {
12109
          setUsername((String)value);
12110
        }
12111
        break;
12112
 
12113
      case PASSWORD:
12114
        if (value == null) {
12115
          unsetPassword();
12116
        } else {
12117
          setPassword((String)value);
12118
        }
12119
        break;
12120
 
12121
      }
12122
    }
12123
 
12124
    public Object getFieldValue(_Fields field) {
12125
      switch (field) {
12126
      case USERNAME:
12127
        return getUsername();
12128
 
12129
      case PASSWORD:
12130
        return getPassword();
12131
 
12132
      }
12133
      throw new IllegalStateException();
12134
    }
12135
 
3430 rajveer 12136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12137
    public boolean isSet(_Fields field) {
12138
      if (field == null) {
12139
        throw new IllegalArgumentException();
12140
      }
1611 ankur.sing 12141
 
12142
      switch (field) {
12143
      case USERNAME:
12144
        return isSetUsername();
12145
      case PASSWORD:
12146
        return isSetPassword();
12147
      }
12148
      throw new IllegalStateException();
12149
    }
12150
 
12151
    @Override
12152
    public boolean equals(Object that) {
12153
      if (that == null)
12154
        return false;
12155
      if (that instanceof authenticateStatisticsUser_args)
12156
        return this.equals((authenticateStatisticsUser_args)that);
12157
      return false;
12158
    }
12159
 
12160
    public boolean equals(authenticateStatisticsUser_args that) {
12161
      if (that == null)
12162
        return false;
12163
 
12164
      boolean this_present_username = true && this.isSetUsername();
12165
      boolean that_present_username = true && that.isSetUsername();
12166
      if (this_present_username || that_present_username) {
12167
        if (!(this_present_username && that_present_username))
12168
          return false;
12169
        if (!this.username.equals(that.username))
12170
          return false;
12171
      }
12172
 
12173
      boolean this_present_password = true && this.isSetPassword();
12174
      boolean that_present_password = true && that.isSetPassword();
12175
      if (this_present_password || that_present_password) {
12176
        if (!(this_present_password && that_present_password))
12177
          return false;
12178
        if (!this.password.equals(that.password))
12179
          return false;
12180
      }
12181
 
12182
      return true;
12183
    }
12184
 
12185
    @Override
12186
    public int hashCode() {
12187
      return 0;
12188
    }
12189
 
12190
    public int compareTo(authenticateStatisticsUser_args other) {
12191
      if (!getClass().equals(other.getClass())) {
12192
        return getClass().getName().compareTo(other.getClass().getName());
12193
      }
12194
 
12195
      int lastComparison = 0;
12196
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12197
 
3430 rajveer 12198
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 12199
      if (lastComparison != 0) {
12200
        return lastComparison;
12201
      }
3430 rajveer 12202
      if (isSetUsername()) {
12203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12204
        if (lastComparison != 0) {
12205
          return lastComparison;
12206
        }
1611 ankur.sing 12207
      }
3430 rajveer 12208
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 12209
      if (lastComparison != 0) {
12210
        return lastComparison;
12211
      }
3430 rajveer 12212
      if (isSetPassword()) {
12213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12214
        if (lastComparison != 0) {
12215
          return lastComparison;
12216
        }
1611 ankur.sing 12217
      }
12218
      return 0;
12219
    }
12220
 
3430 rajveer 12221
    public _Fields fieldForId(int fieldId) {
12222
      return _Fields.findByThriftId(fieldId);
12223
    }
12224
 
12225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12226
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12227
      iprot.readStructBegin();
12228
      while (true)
12229
      {
12230
        field = iprot.readFieldBegin();
3430 rajveer 12231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12232
          break;
12233
        }
3430 rajveer 12234
        switch (field.id) {
12235
          case 1: // USERNAME
12236
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12237
              this.username = iprot.readString();
12238
            } else { 
12239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12240
            }
12241
            break;
12242
          case 2: // PASSWORD
12243
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12244
              this.password = iprot.readString();
12245
            } else { 
12246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12247
            }
12248
            break;
12249
          default:
12250
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12251
        }
3430 rajveer 12252
        iprot.readFieldEnd();
1611 ankur.sing 12253
      }
12254
      iprot.readStructEnd();
12255
      validate();
12256
    }
12257
 
3430 rajveer 12258
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12259
      validate();
12260
 
12261
      oprot.writeStructBegin(STRUCT_DESC);
12262
      if (this.username != null) {
12263
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12264
        oprot.writeString(this.username);
12265
        oprot.writeFieldEnd();
12266
      }
12267
      if (this.password != null) {
12268
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12269
        oprot.writeString(this.password);
12270
        oprot.writeFieldEnd();
12271
      }
12272
      oprot.writeFieldStop();
12273
      oprot.writeStructEnd();
12274
    }
12275
 
12276
    @Override
12277
    public String toString() {
12278
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
12279
      boolean first = true;
12280
 
12281
      sb.append("username:");
12282
      if (this.username == null) {
12283
        sb.append("null");
12284
      } else {
12285
        sb.append(this.username);
12286
      }
12287
      first = false;
12288
      if (!first) sb.append(", ");
12289
      sb.append("password:");
12290
      if (this.password == null) {
12291
        sb.append("null");
12292
      } else {
12293
        sb.append(this.password);
12294
      }
12295
      first = false;
12296
      sb.append(")");
12297
      return sb.toString();
12298
    }
12299
 
3430 rajveer 12300
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12301
      // check for required fields
12302
    }
12303
 
3430 rajveer 12304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12305
      try {
12306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12307
      } catch (org.apache.thrift.TException te) {
12308
        throw new java.io.IOException(te);
12309
      }
12310
    }
12311
 
12312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12313
      try {
12314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12315
      } catch (org.apache.thrift.TException te) {
12316
        throw new java.io.IOException(te);
12317
      }
12318
    }
12319
 
1611 ankur.sing 12320
  }
12321
 
3430 rajveer 12322
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 12324
 
3430 rajveer 12325
    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);
12326
    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 12327
 
3430 rajveer 12328
    private StatisticsUser success; // required
12329
    private HelperServiceException hse; // required
1611 ankur.sing 12330
 
12331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 12333
      SUCCESS((short)0, "success"),
12334
      HSE((short)1, "hse");
12335
 
12336
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12337
 
12338
      static {
12339
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12340
          byName.put(field.getFieldName(), field);
12341
        }
12342
      }
12343
 
12344
      /**
12345
       * Find the _Fields constant that matches fieldId, or null if its not found.
12346
       */
12347
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12348
        switch(fieldId) {
12349
          case 0: // SUCCESS
12350
            return SUCCESS;
12351
          case 1: // HSE
12352
            return HSE;
12353
          default:
12354
            return null;
12355
        }
1611 ankur.sing 12356
      }
12357
 
12358
      /**
12359
       * Find the _Fields constant that matches fieldId, throwing an exception
12360
       * if it is not found.
12361
       */
12362
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12363
        _Fields fields = findByThriftId(fieldId);
12364
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12365
        return fields;
12366
      }
12367
 
12368
      /**
12369
       * Find the _Fields constant that matches name, or null if its not found.
12370
       */
12371
      public static _Fields findByName(String name) {
12372
        return byName.get(name);
12373
      }
12374
 
12375
      private final short _thriftId;
12376
      private final String _fieldName;
12377
 
12378
      _Fields(short thriftId, String fieldName) {
12379
        _thriftId = thriftId;
12380
        _fieldName = fieldName;
12381
      }
12382
 
12383
      public short getThriftFieldId() {
12384
        return _thriftId;
12385
      }
12386
 
12387
      public String getFieldName() {
12388
        return _fieldName;
12389
      }
12390
    }
12391
 
12392
    // isset id assignments
12393
 
3430 rajveer 12394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 12395
    static {
3430 rajveer 12396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12397
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12398
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
12399
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12400
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12401
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12402
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 12403
    }
12404
 
12405
    public authenticateStatisticsUser_result() {
12406
    }
12407
 
12408
    public authenticateStatisticsUser_result(
12409
      StatisticsUser success,
12410
      HelperServiceException hse)
12411
    {
12412
      this();
12413
      this.success = success;
12414
      this.hse = hse;
12415
    }
12416
 
12417
    /**
12418
     * Performs a deep copy on <i>other</i>.
12419
     */
12420
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
12421
      if (other.isSetSuccess()) {
12422
        this.success = new StatisticsUser(other.success);
12423
      }
12424
      if (other.isSetHse()) {
12425
        this.hse = new HelperServiceException(other.hse);
12426
      }
12427
    }
12428
 
12429
    public authenticateStatisticsUser_result deepCopy() {
12430
      return new authenticateStatisticsUser_result(this);
12431
    }
12432
 
3430 rajveer 12433
    @Override
12434
    public void clear() {
12435
      this.success = null;
12436
      this.hse = null;
1611 ankur.sing 12437
    }
12438
 
12439
    public StatisticsUser getSuccess() {
12440
      return this.success;
12441
    }
12442
 
3430 rajveer 12443
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 12444
      this.success = success;
12445
    }
12446
 
12447
    public void unsetSuccess() {
12448
      this.success = null;
12449
    }
12450
 
3430 rajveer 12451
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12452
    public boolean isSetSuccess() {
12453
      return this.success != null;
12454
    }
12455
 
12456
    public void setSuccessIsSet(boolean value) {
12457
      if (!value) {
12458
        this.success = null;
12459
      }
12460
    }
12461
 
12462
    public HelperServiceException getHse() {
12463
      return this.hse;
12464
    }
12465
 
3430 rajveer 12466
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 12467
      this.hse = hse;
12468
    }
12469
 
12470
    public void unsetHse() {
12471
      this.hse = null;
12472
    }
12473
 
3430 rajveer 12474
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 12475
    public boolean isSetHse() {
12476
      return this.hse != null;
12477
    }
12478
 
12479
    public void setHseIsSet(boolean value) {
12480
      if (!value) {
12481
        this.hse = null;
12482
      }
12483
    }
12484
 
12485
    public void setFieldValue(_Fields field, Object value) {
12486
      switch (field) {
12487
      case SUCCESS:
12488
        if (value == null) {
12489
          unsetSuccess();
12490
        } else {
12491
          setSuccess((StatisticsUser)value);
12492
        }
12493
        break;
12494
 
12495
      case HSE:
12496
        if (value == null) {
12497
          unsetHse();
12498
        } else {
12499
          setHse((HelperServiceException)value);
12500
        }
12501
        break;
12502
 
12503
      }
12504
    }
12505
 
12506
    public Object getFieldValue(_Fields field) {
12507
      switch (field) {
12508
      case SUCCESS:
12509
        return getSuccess();
12510
 
12511
      case HSE:
12512
        return getHse();
12513
 
12514
      }
12515
      throw new IllegalStateException();
12516
    }
12517
 
3430 rajveer 12518
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12519
    public boolean isSet(_Fields field) {
12520
      if (field == null) {
12521
        throw new IllegalArgumentException();
12522
      }
1611 ankur.sing 12523
 
12524
      switch (field) {
12525
      case SUCCESS:
12526
        return isSetSuccess();
12527
      case HSE:
12528
        return isSetHse();
12529
      }
12530
      throw new IllegalStateException();
12531
    }
12532
 
12533
    @Override
12534
    public boolean equals(Object that) {
12535
      if (that == null)
12536
        return false;
12537
      if (that instanceof authenticateStatisticsUser_result)
12538
        return this.equals((authenticateStatisticsUser_result)that);
12539
      return false;
12540
    }
12541
 
12542
    public boolean equals(authenticateStatisticsUser_result that) {
12543
      if (that == null)
12544
        return false;
12545
 
12546
      boolean this_present_success = true && this.isSetSuccess();
12547
      boolean that_present_success = true && that.isSetSuccess();
12548
      if (this_present_success || that_present_success) {
12549
        if (!(this_present_success && that_present_success))
12550
          return false;
12551
        if (!this.success.equals(that.success))
12552
          return false;
12553
      }
12554
 
12555
      boolean this_present_hse = true && this.isSetHse();
12556
      boolean that_present_hse = true && that.isSetHse();
12557
      if (this_present_hse || that_present_hse) {
12558
        if (!(this_present_hse && that_present_hse))
12559
          return false;
12560
        if (!this.hse.equals(that.hse))
12561
          return false;
12562
      }
12563
 
12564
      return true;
12565
    }
12566
 
12567
    @Override
12568
    public int hashCode() {
12569
      return 0;
12570
    }
12571
 
12572
    public int compareTo(authenticateStatisticsUser_result other) {
12573
      if (!getClass().equals(other.getClass())) {
12574
        return getClass().getName().compareTo(other.getClass().getName());
12575
      }
12576
 
12577
      int lastComparison = 0;
12578
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
12579
 
3430 rajveer 12580
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 12581
      if (lastComparison != 0) {
12582
        return lastComparison;
12583
      }
3430 rajveer 12584
      if (isSetSuccess()) {
12585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12586
        if (lastComparison != 0) {
12587
          return lastComparison;
12588
        }
1611 ankur.sing 12589
      }
3430 rajveer 12590
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 12591
      if (lastComparison != 0) {
12592
        return lastComparison;
12593
      }
3430 rajveer 12594
      if (isSetHse()) {
12595
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12596
        if (lastComparison != 0) {
12597
          return lastComparison;
12598
        }
1611 ankur.sing 12599
      }
12600
      return 0;
12601
    }
12602
 
3430 rajveer 12603
    public _Fields fieldForId(int fieldId) {
12604
      return _Fields.findByThriftId(fieldId);
12605
    }
12606
 
12607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12608
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 12609
      iprot.readStructBegin();
12610
      while (true)
12611
      {
12612
        field = iprot.readFieldBegin();
3430 rajveer 12613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 12614
          break;
12615
        }
3430 rajveer 12616
        switch (field.id) {
12617
          case 0: // SUCCESS
12618
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12619
              this.success = new StatisticsUser();
12620
              this.success.read(iprot);
12621
            } else { 
12622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12623
            }
12624
            break;
12625
          case 1: // HSE
12626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12627
              this.hse = new HelperServiceException();
12628
              this.hse.read(iprot);
12629
            } else { 
12630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12631
            }
12632
            break;
12633
          default:
12634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 12635
        }
3430 rajveer 12636
        iprot.readFieldEnd();
1611 ankur.sing 12637
      }
12638
      iprot.readStructEnd();
12639
      validate();
12640
    }
12641
 
3430 rajveer 12642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 12643
      oprot.writeStructBegin(STRUCT_DESC);
12644
 
12645
      if (this.isSetSuccess()) {
12646
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12647
        this.success.write(oprot);
12648
        oprot.writeFieldEnd();
12649
      } else if (this.isSetHse()) {
12650
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12651
        this.hse.write(oprot);
12652
        oprot.writeFieldEnd();
12653
      }
12654
      oprot.writeFieldStop();
12655
      oprot.writeStructEnd();
12656
    }
12657
 
12658
    @Override
12659
    public String toString() {
12660
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
12661
      boolean first = true;
12662
 
12663
      sb.append("success:");
12664
      if (this.success == null) {
12665
        sb.append("null");
12666
      } else {
12667
        sb.append(this.success);
12668
      }
12669
      first = false;
12670
      if (!first) sb.append(", ");
12671
      sb.append("hse:");
12672
      if (this.hse == null) {
12673
        sb.append("null");
12674
      } else {
12675
        sb.append(this.hse);
12676
      }
12677
      first = false;
12678
      sb.append(")");
12679
      return sb.toString();
12680
    }
12681
 
3430 rajveer 12682
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 12683
      // check for required fields
12684
    }
12685
 
3430 rajveer 12686
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12687
      try {
12688
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12689
      } catch (org.apache.thrift.TException te) {
12690
        throw new java.io.IOException(te);
12691
      }
12692
    }
12693
 
12694
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12695
      try {
12696
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12697
      } catch (org.apache.thrift.TException te) {
12698
        throw new java.io.IOException(te);
12699
      }
12700
    }
12701
 
1611 ankur.sing 12702
  }
12703
 
3430 rajveer 12704
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
12705
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 12706
 
3430 rajveer 12707
    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);
12708
    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 12709
 
3430 rajveer 12710
    private String username; // required
12711
    private String password; // required
1891 ankur.sing 12712
 
12713
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12714
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 12715
      USERNAME((short)1, "username"),
12716
      PASSWORD((short)2, "password");
12717
 
12718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12719
 
12720
      static {
12721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12722
          byName.put(field.getFieldName(), field);
12723
        }
12724
      }
12725
 
12726
      /**
12727
       * Find the _Fields constant that matches fieldId, or null if its not found.
12728
       */
12729
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12730
        switch(fieldId) {
12731
          case 1: // USERNAME
12732
            return USERNAME;
12733
          case 2: // PASSWORD
12734
            return PASSWORD;
12735
          default:
12736
            return null;
12737
        }
1891 ankur.sing 12738
      }
12739
 
12740
      /**
12741
       * Find the _Fields constant that matches fieldId, throwing an exception
12742
       * if it is not found.
12743
       */
12744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12745
        _Fields fields = findByThriftId(fieldId);
12746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12747
        return fields;
12748
      }
12749
 
12750
      /**
12751
       * Find the _Fields constant that matches name, or null if its not found.
12752
       */
12753
      public static _Fields findByName(String name) {
12754
        return byName.get(name);
12755
      }
12756
 
12757
      private final short _thriftId;
12758
      private final String _fieldName;
12759
 
12760
      _Fields(short thriftId, String fieldName) {
12761
        _thriftId = thriftId;
12762
        _fieldName = fieldName;
12763
      }
12764
 
12765
      public short getThriftFieldId() {
12766
        return _thriftId;
12767
      }
12768
 
12769
      public String getFieldName() {
12770
        return _fieldName;
12771
      }
12772
    }
12773
 
12774
    // isset id assignments
12775
 
3430 rajveer 12776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 12777
    static {
3430 rajveer 12778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12779
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12781
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12782
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12783
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12784
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 12785
    }
12786
 
12787
    public authenticateReportUser_args() {
12788
    }
12789
 
12790
    public authenticateReportUser_args(
12791
      String username,
12792
      String password)
12793
    {
12794
      this();
12795
      this.username = username;
12796
      this.password = password;
12797
    }
12798
 
12799
    /**
12800
     * Performs a deep copy on <i>other</i>.
12801
     */
12802
    public authenticateReportUser_args(authenticateReportUser_args other) {
12803
      if (other.isSetUsername()) {
12804
        this.username = other.username;
12805
      }
12806
      if (other.isSetPassword()) {
12807
        this.password = other.password;
12808
      }
12809
    }
12810
 
12811
    public authenticateReportUser_args deepCopy() {
12812
      return new authenticateReportUser_args(this);
12813
    }
12814
 
3430 rajveer 12815
    @Override
12816
    public void clear() {
12817
      this.username = null;
12818
      this.password = null;
1891 ankur.sing 12819
    }
12820
 
12821
    public String getUsername() {
12822
      return this.username;
12823
    }
12824
 
3430 rajveer 12825
    public void setUsername(String username) {
1891 ankur.sing 12826
      this.username = username;
12827
    }
12828
 
12829
    public void unsetUsername() {
12830
      this.username = null;
12831
    }
12832
 
3430 rajveer 12833
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 12834
    public boolean isSetUsername() {
12835
      return this.username != null;
12836
    }
12837
 
12838
    public void setUsernameIsSet(boolean value) {
12839
      if (!value) {
12840
        this.username = null;
12841
      }
12842
    }
12843
 
12844
    public String getPassword() {
12845
      return this.password;
12846
    }
12847
 
3430 rajveer 12848
    public void setPassword(String password) {
1891 ankur.sing 12849
      this.password = password;
12850
    }
12851
 
12852
    public void unsetPassword() {
12853
      this.password = null;
12854
    }
12855
 
3430 rajveer 12856
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 12857
    public boolean isSetPassword() {
12858
      return this.password != null;
12859
    }
12860
 
12861
    public void setPasswordIsSet(boolean value) {
12862
      if (!value) {
12863
        this.password = null;
12864
      }
12865
    }
12866
 
12867
    public void setFieldValue(_Fields field, Object value) {
12868
      switch (field) {
12869
      case USERNAME:
12870
        if (value == null) {
12871
          unsetUsername();
12872
        } else {
12873
          setUsername((String)value);
12874
        }
12875
        break;
12876
 
12877
      case PASSWORD:
12878
        if (value == null) {
12879
          unsetPassword();
12880
        } else {
12881
          setPassword((String)value);
12882
        }
12883
        break;
12884
 
12885
      }
12886
    }
12887
 
12888
    public Object getFieldValue(_Fields field) {
12889
      switch (field) {
12890
      case USERNAME:
12891
        return getUsername();
12892
 
12893
      case PASSWORD:
12894
        return getPassword();
12895
 
12896
      }
12897
      throw new IllegalStateException();
12898
    }
12899
 
3430 rajveer 12900
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12901
    public boolean isSet(_Fields field) {
12902
      if (field == null) {
12903
        throw new IllegalArgumentException();
12904
      }
1891 ankur.sing 12905
 
12906
      switch (field) {
12907
      case USERNAME:
12908
        return isSetUsername();
12909
      case PASSWORD:
12910
        return isSetPassword();
12911
      }
12912
      throw new IllegalStateException();
12913
    }
12914
 
12915
    @Override
12916
    public boolean equals(Object that) {
12917
      if (that == null)
12918
        return false;
12919
      if (that instanceof authenticateReportUser_args)
12920
        return this.equals((authenticateReportUser_args)that);
12921
      return false;
12922
    }
12923
 
12924
    public boolean equals(authenticateReportUser_args that) {
12925
      if (that == null)
12926
        return false;
12927
 
12928
      boolean this_present_username = true && this.isSetUsername();
12929
      boolean that_present_username = true && that.isSetUsername();
12930
      if (this_present_username || that_present_username) {
12931
        if (!(this_present_username && that_present_username))
12932
          return false;
12933
        if (!this.username.equals(that.username))
12934
          return false;
12935
      }
12936
 
12937
      boolean this_present_password = true && this.isSetPassword();
12938
      boolean that_present_password = true && that.isSetPassword();
12939
      if (this_present_password || that_present_password) {
12940
        if (!(this_present_password && that_present_password))
12941
          return false;
12942
        if (!this.password.equals(that.password))
12943
          return false;
12944
      }
12945
 
12946
      return true;
12947
    }
12948
 
12949
    @Override
12950
    public int hashCode() {
12951
      return 0;
12952
    }
12953
 
12954
    public int compareTo(authenticateReportUser_args other) {
12955
      if (!getClass().equals(other.getClass())) {
12956
        return getClass().getName().compareTo(other.getClass().getName());
12957
      }
12958
 
12959
      int lastComparison = 0;
12960
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
12961
 
3430 rajveer 12962
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 12963
      if (lastComparison != 0) {
12964
        return lastComparison;
12965
      }
3430 rajveer 12966
      if (isSetUsername()) {
12967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12968
        if (lastComparison != 0) {
12969
          return lastComparison;
12970
        }
1891 ankur.sing 12971
      }
3430 rajveer 12972
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 12973
      if (lastComparison != 0) {
12974
        return lastComparison;
12975
      }
3430 rajveer 12976
      if (isSetPassword()) {
12977
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12978
        if (lastComparison != 0) {
12979
          return lastComparison;
12980
        }
1891 ankur.sing 12981
      }
12982
      return 0;
12983
    }
12984
 
3430 rajveer 12985
    public _Fields fieldForId(int fieldId) {
12986
      return _Fields.findByThriftId(fieldId);
12987
    }
12988
 
12989
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12990
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 12991
      iprot.readStructBegin();
12992
      while (true)
12993
      {
12994
        field = iprot.readFieldBegin();
3430 rajveer 12995
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 12996
          break;
12997
        }
3430 rajveer 12998
        switch (field.id) {
12999
          case 1: // USERNAME
13000
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13001
              this.username = iprot.readString();
13002
            } else { 
13003
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13004
            }
13005
            break;
13006
          case 2: // PASSWORD
13007
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13008
              this.password = iprot.readString();
13009
            } else { 
13010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13011
            }
13012
            break;
13013
          default:
13014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13015
        }
3430 rajveer 13016
        iprot.readFieldEnd();
1891 ankur.sing 13017
      }
13018
      iprot.readStructEnd();
13019
      validate();
13020
    }
13021
 
3430 rajveer 13022
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13023
      validate();
13024
 
13025
      oprot.writeStructBegin(STRUCT_DESC);
13026
      if (this.username != null) {
13027
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13028
        oprot.writeString(this.username);
13029
        oprot.writeFieldEnd();
13030
      }
13031
      if (this.password != null) {
13032
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13033
        oprot.writeString(this.password);
13034
        oprot.writeFieldEnd();
13035
      }
13036
      oprot.writeFieldStop();
13037
      oprot.writeStructEnd();
13038
    }
13039
 
13040
    @Override
13041
    public String toString() {
13042
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
13043
      boolean first = true;
13044
 
13045
      sb.append("username:");
13046
      if (this.username == null) {
13047
        sb.append("null");
13048
      } else {
13049
        sb.append(this.username);
13050
      }
13051
      first = false;
13052
      if (!first) sb.append(", ");
13053
      sb.append("password:");
13054
      if (this.password == null) {
13055
        sb.append("null");
13056
      } else {
13057
        sb.append(this.password);
13058
      }
13059
      first = false;
13060
      sb.append(")");
13061
      return sb.toString();
13062
    }
13063
 
3430 rajveer 13064
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13065
      // check for required fields
13066
    }
13067
 
3430 rajveer 13068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13069
      try {
13070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13071
      } catch (org.apache.thrift.TException te) {
13072
        throw new java.io.IOException(te);
13073
      }
13074
    }
13075
 
13076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13077
      try {
13078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13079
      } catch (org.apache.thrift.TException te) {
13080
        throw new java.io.IOException(te);
13081
      }
13082
    }
13083
 
1891 ankur.sing 13084
  }
13085
 
3430 rajveer 13086
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
13087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 13088
 
3430 rajveer 13089
    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);
13090
    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 13091
 
3430 rajveer 13092
    private ReportUser success; // required
13093
    private HelperServiceException hse; // required
1891 ankur.sing 13094
 
13095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13097
      SUCCESS((short)0, "success"),
13098
      HSE((short)1, "hse");
13099
 
13100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13101
 
13102
      static {
13103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13104
          byName.put(field.getFieldName(), field);
13105
        }
13106
      }
13107
 
13108
      /**
13109
       * Find the _Fields constant that matches fieldId, or null if its not found.
13110
       */
13111
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13112
        switch(fieldId) {
13113
          case 0: // SUCCESS
13114
            return SUCCESS;
13115
          case 1: // HSE
13116
            return HSE;
13117
          default:
13118
            return null;
13119
        }
1891 ankur.sing 13120
      }
13121
 
13122
      /**
13123
       * Find the _Fields constant that matches fieldId, throwing an exception
13124
       * if it is not found.
13125
       */
13126
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13127
        _Fields fields = findByThriftId(fieldId);
13128
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13129
        return fields;
13130
      }
13131
 
13132
      /**
13133
       * Find the _Fields constant that matches name, or null if its not found.
13134
       */
13135
      public static _Fields findByName(String name) {
13136
        return byName.get(name);
13137
      }
13138
 
13139
      private final short _thriftId;
13140
      private final String _fieldName;
13141
 
13142
      _Fields(short thriftId, String fieldName) {
13143
        _thriftId = thriftId;
13144
        _fieldName = fieldName;
13145
      }
13146
 
13147
      public short getThriftFieldId() {
13148
        return _thriftId;
13149
      }
13150
 
13151
      public String getFieldName() {
13152
        return _fieldName;
13153
      }
13154
    }
13155
 
13156
    // isset id assignments
13157
 
3430 rajveer 13158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13159
    static {
3430 rajveer 13160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13161
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13162
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
13163
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 13167
    }
13168
 
13169
    public authenticateReportUser_result() {
13170
    }
13171
 
13172
    public authenticateReportUser_result(
13173
      ReportUser success,
13174
      HelperServiceException hse)
13175
    {
13176
      this();
13177
      this.success = success;
13178
      this.hse = hse;
13179
    }
13180
 
13181
    /**
13182
     * Performs a deep copy on <i>other</i>.
13183
     */
13184
    public authenticateReportUser_result(authenticateReportUser_result other) {
13185
      if (other.isSetSuccess()) {
13186
        this.success = new ReportUser(other.success);
13187
      }
13188
      if (other.isSetHse()) {
13189
        this.hse = new HelperServiceException(other.hse);
13190
      }
13191
    }
13192
 
13193
    public authenticateReportUser_result deepCopy() {
13194
      return new authenticateReportUser_result(this);
13195
    }
13196
 
3430 rajveer 13197
    @Override
13198
    public void clear() {
13199
      this.success = null;
13200
      this.hse = null;
1891 ankur.sing 13201
    }
13202
 
13203
    public ReportUser getSuccess() {
13204
      return this.success;
13205
    }
13206
 
3430 rajveer 13207
    public void setSuccess(ReportUser success) {
1891 ankur.sing 13208
      this.success = success;
13209
    }
13210
 
13211
    public void unsetSuccess() {
13212
      this.success = null;
13213
    }
13214
 
3430 rajveer 13215
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13216
    public boolean isSetSuccess() {
13217
      return this.success != null;
13218
    }
13219
 
13220
    public void setSuccessIsSet(boolean value) {
13221
      if (!value) {
13222
        this.success = null;
13223
      }
13224
    }
13225
 
13226
    public HelperServiceException getHse() {
13227
      return this.hse;
13228
    }
13229
 
3430 rajveer 13230
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 13231
      this.hse = hse;
13232
    }
13233
 
13234
    public void unsetHse() {
13235
      this.hse = null;
13236
    }
13237
 
3430 rajveer 13238
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13239
    public boolean isSetHse() {
13240
      return this.hse != null;
13241
    }
13242
 
13243
    public void setHseIsSet(boolean value) {
13244
      if (!value) {
13245
        this.hse = null;
13246
      }
13247
    }
13248
 
13249
    public void setFieldValue(_Fields field, Object value) {
13250
      switch (field) {
13251
      case SUCCESS:
13252
        if (value == null) {
13253
          unsetSuccess();
13254
        } else {
13255
          setSuccess((ReportUser)value);
13256
        }
13257
        break;
13258
 
13259
      case HSE:
13260
        if (value == null) {
13261
          unsetHse();
13262
        } else {
13263
          setHse((HelperServiceException)value);
13264
        }
13265
        break;
13266
 
13267
      }
13268
    }
13269
 
13270
    public Object getFieldValue(_Fields field) {
13271
      switch (field) {
13272
      case SUCCESS:
13273
        return getSuccess();
13274
 
13275
      case HSE:
13276
        return getHse();
13277
 
13278
      }
13279
      throw new IllegalStateException();
13280
    }
13281
 
3430 rajveer 13282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13283
    public boolean isSet(_Fields field) {
13284
      if (field == null) {
13285
        throw new IllegalArgumentException();
13286
      }
1891 ankur.sing 13287
 
13288
      switch (field) {
13289
      case SUCCESS:
13290
        return isSetSuccess();
13291
      case HSE:
13292
        return isSetHse();
13293
      }
13294
      throw new IllegalStateException();
13295
    }
13296
 
13297
    @Override
13298
    public boolean equals(Object that) {
13299
      if (that == null)
13300
        return false;
13301
      if (that instanceof authenticateReportUser_result)
13302
        return this.equals((authenticateReportUser_result)that);
13303
      return false;
13304
    }
13305
 
13306
    public boolean equals(authenticateReportUser_result that) {
13307
      if (that == null)
13308
        return false;
13309
 
13310
      boolean this_present_success = true && this.isSetSuccess();
13311
      boolean that_present_success = true && that.isSetSuccess();
13312
      if (this_present_success || that_present_success) {
13313
        if (!(this_present_success && that_present_success))
13314
          return false;
13315
        if (!this.success.equals(that.success))
13316
          return false;
13317
      }
13318
 
13319
      boolean this_present_hse = true && this.isSetHse();
13320
      boolean that_present_hse = true && that.isSetHse();
13321
      if (this_present_hse || that_present_hse) {
13322
        if (!(this_present_hse && that_present_hse))
13323
          return false;
13324
        if (!this.hse.equals(that.hse))
13325
          return false;
13326
      }
13327
 
13328
      return true;
13329
    }
13330
 
13331
    @Override
13332
    public int hashCode() {
13333
      return 0;
13334
    }
13335
 
13336
    public int compareTo(authenticateReportUser_result other) {
13337
      if (!getClass().equals(other.getClass())) {
13338
        return getClass().getName().compareTo(other.getClass().getName());
13339
      }
13340
 
13341
      int lastComparison = 0;
13342
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13343
 
3430 rajveer 13344
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13345
      if (lastComparison != 0) {
13346
        return lastComparison;
13347
      }
3430 rajveer 13348
      if (isSetSuccess()) {
13349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13350
        if (lastComparison != 0) {
13351
          return lastComparison;
13352
        }
1891 ankur.sing 13353
      }
3430 rajveer 13354
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 13355
      if (lastComparison != 0) {
13356
        return lastComparison;
13357
      }
3430 rajveer 13358
      if (isSetHse()) {
13359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13360
        if (lastComparison != 0) {
13361
          return lastComparison;
13362
        }
1891 ankur.sing 13363
      }
13364
      return 0;
13365
    }
13366
 
3430 rajveer 13367
    public _Fields fieldForId(int fieldId) {
13368
      return _Fields.findByThriftId(fieldId);
13369
    }
13370
 
13371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13372
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13373
      iprot.readStructBegin();
13374
      while (true)
13375
      {
13376
        field = iprot.readFieldBegin();
3430 rajveer 13377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13378
          break;
13379
        }
3430 rajveer 13380
        switch (field.id) {
13381
          case 0: // SUCCESS
13382
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13383
              this.success = new ReportUser();
13384
              this.success.read(iprot);
13385
            } else { 
13386
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13387
            }
13388
            break;
13389
          case 1: // HSE
13390
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13391
              this.hse = new HelperServiceException();
13392
              this.hse.read(iprot);
13393
            } else { 
13394
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13395
            }
13396
            break;
13397
          default:
13398
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13399
        }
3430 rajveer 13400
        iprot.readFieldEnd();
1891 ankur.sing 13401
      }
13402
      iprot.readStructEnd();
13403
      validate();
13404
    }
13405
 
3430 rajveer 13406
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13407
      oprot.writeStructBegin(STRUCT_DESC);
13408
 
13409
      if (this.isSetSuccess()) {
13410
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13411
        this.success.write(oprot);
13412
        oprot.writeFieldEnd();
13413
      } else if (this.isSetHse()) {
13414
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13415
        this.hse.write(oprot);
13416
        oprot.writeFieldEnd();
13417
      }
13418
      oprot.writeFieldStop();
13419
      oprot.writeStructEnd();
13420
    }
13421
 
13422
    @Override
13423
    public String toString() {
13424
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
13425
      boolean first = true;
13426
 
13427
      sb.append("success:");
13428
      if (this.success == null) {
13429
        sb.append("null");
13430
      } else {
13431
        sb.append(this.success);
13432
      }
13433
      first = false;
13434
      if (!first) sb.append(", ");
13435
      sb.append("hse:");
13436
      if (this.hse == null) {
13437
        sb.append("null");
13438
      } else {
13439
        sb.append(this.hse);
13440
      }
13441
      first = false;
13442
      sb.append(")");
13443
      return sb.toString();
13444
    }
13445
 
3430 rajveer 13446
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13447
      // check for required fields
13448
    }
13449
 
3430 rajveer 13450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13451
      try {
13452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13453
      } catch (org.apache.thrift.TException te) {
13454
        throw new java.io.IOException(te);
13455
      }
13456
    }
13457
 
13458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13459
      try {
13460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13461
      } catch (org.apache.thrift.TException te) {
13462
        throw new java.io.IOException(te);
13463
      }
13464
    }
13465
 
1891 ankur.sing 13466
  }
13467
 
3430 rajveer 13468
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
13469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 13470
 
3430 rajveer 13471
    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 13472
 
3430 rajveer 13473
    private long role; // required
1891 ankur.sing 13474
 
13475
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13476
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13477
      ROLE((short)1, "role");
13478
 
13479
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13480
 
13481
      static {
13482
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13483
          byName.put(field.getFieldName(), field);
13484
        }
13485
      }
13486
 
13487
      /**
13488
       * Find the _Fields constant that matches fieldId, or null if its not found.
13489
       */
13490
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13491
        switch(fieldId) {
13492
          case 1: // ROLE
13493
            return ROLE;
13494
          default:
13495
            return null;
13496
        }
1891 ankur.sing 13497
      }
13498
 
13499
      /**
13500
       * Find the _Fields constant that matches fieldId, throwing an exception
13501
       * if it is not found.
13502
       */
13503
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13504
        _Fields fields = findByThriftId(fieldId);
13505
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13506
        return fields;
13507
      }
13508
 
13509
      /**
13510
       * Find the _Fields constant that matches name, or null if its not found.
13511
       */
13512
      public static _Fields findByName(String name) {
13513
        return byName.get(name);
13514
      }
13515
 
13516
      private final short _thriftId;
13517
      private final String _fieldName;
13518
 
13519
      _Fields(short thriftId, String fieldName) {
13520
        _thriftId = thriftId;
13521
        _fieldName = fieldName;
13522
      }
13523
 
13524
      public short getThriftFieldId() {
13525
        return _thriftId;
13526
      }
13527
 
13528
      public String getFieldName() {
13529
        return _fieldName;
13530
      }
13531
    }
13532
 
13533
    // isset id assignments
13534
    private static final int __ROLE_ISSET_ID = 0;
13535
    private BitSet __isset_bit_vector = new BitSet(1);
13536
 
3430 rajveer 13537
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13538
    static {
3430 rajveer 13539
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13540
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13541
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
13542
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13543
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 13544
    }
13545
 
13546
    public getReports_args() {
13547
    }
13548
 
13549
    public getReports_args(
13550
      long role)
13551
    {
13552
      this();
13553
      this.role = role;
13554
      setRoleIsSet(true);
13555
    }
13556
 
13557
    /**
13558
     * Performs a deep copy on <i>other</i>.
13559
     */
13560
    public getReports_args(getReports_args other) {
13561
      __isset_bit_vector.clear();
13562
      __isset_bit_vector.or(other.__isset_bit_vector);
13563
      this.role = other.role;
13564
    }
13565
 
13566
    public getReports_args deepCopy() {
13567
      return new getReports_args(this);
13568
    }
13569
 
3430 rajveer 13570
    @Override
13571
    public void clear() {
13572
      setRoleIsSet(false);
13573
      this.role = 0;
1891 ankur.sing 13574
    }
13575
 
13576
    public long getRole() {
13577
      return this.role;
13578
    }
13579
 
3430 rajveer 13580
    public void setRole(long role) {
1891 ankur.sing 13581
      this.role = role;
13582
      setRoleIsSet(true);
13583
    }
13584
 
13585
    public void unsetRole() {
13586
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
13587
    }
13588
 
3430 rajveer 13589
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13590
    public boolean isSetRole() {
13591
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
13592
    }
13593
 
13594
    public void setRoleIsSet(boolean value) {
13595
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
13596
    }
13597
 
13598
    public void setFieldValue(_Fields field, Object value) {
13599
      switch (field) {
13600
      case ROLE:
13601
        if (value == null) {
13602
          unsetRole();
13603
        } else {
13604
          setRole((Long)value);
13605
        }
13606
        break;
13607
 
13608
      }
13609
    }
13610
 
13611
    public Object getFieldValue(_Fields field) {
13612
      switch (field) {
13613
      case ROLE:
3430 rajveer 13614
        return Long.valueOf(getRole());
1891 ankur.sing 13615
 
13616
      }
13617
      throw new IllegalStateException();
13618
    }
13619
 
3430 rajveer 13620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13621
    public boolean isSet(_Fields field) {
13622
      if (field == null) {
13623
        throw new IllegalArgumentException();
13624
      }
1891 ankur.sing 13625
 
13626
      switch (field) {
13627
      case ROLE:
13628
        return isSetRole();
13629
      }
13630
      throw new IllegalStateException();
13631
    }
13632
 
13633
    @Override
13634
    public boolean equals(Object that) {
13635
      if (that == null)
13636
        return false;
13637
      if (that instanceof getReports_args)
13638
        return this.equals((getReports_args)that);
13639
      return false;
13640
    }
13641
 
13642
    public boolean equals(getReports_args that) {
13643
      if (that == null)
13644
        return false;
13645
 
13646
      boolean this_present_role = true;
13647
      boolean that_present_role = true;
13648
      if (this_present_role || that_present_role) {
13649
        if (!(this_present_role && that_present_role))
13650
          return false;
13651
        if (this.role != that.role)
13652
          return false;
13653
      }
13654
 
13655
      return true;
13656
    }
13657
 
13658
    @Override
13659
    public int hashCode() {
13660
      return 0;
13661
    }
13662
 
13663
    public int compareTo(getReports_args other) {
13664
      if (!getClass().equals(other.getClass())) {
13665
        return getClass().getName().compareTo(other.getClass().getName());
13666
      }
13667
 
13668
      int lastComparison = 0;
13669
      getReports_args typedOther = (getReports_args)other;
13670
 
3430 rajveer 13671
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 13672
      if (lastComparison != 0) {
13673
        return lastComparison;
13674
      }
3430 rajveer 13675
      if (isSetRole()) {
13676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
13677
        if (lastComparison != 0) {
13678
          return lastComparison;
13679
        }
1891 ankur.sing 13680
      }
13681
      return 0;
13682
    }
13683
 
3430 rajveer 13684
    public _Fields fieldForId(int fieldId) {
13685
      return _Fields.findByThriftId(fieldId);
13686
    }
13687
 
13688
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13689
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 13690
      iprot.readStructBegin();
13691
      while (true)
13692
      {
13693
        field = iprot.readFieldBegin();
3430 rajveer 13694
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 13695
          break;
13696
        }
3430 rajveer 13697
        switch (field.id) {
13698
          case 1: // ROLE
13699
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13700
              this.role = iprot.readI64();
13701
              setRoleIsSet(true);
13702
            } else { 
13703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13704
            }
13705
            break;
13706
          default:
13707
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 13708
        }
3430 rajveer 13709
        iprot.readFieldEnd();
1891 ankur.sing 13710
      }
13711
      iprot.readStructEnd();
13712
      validate();
13713
    }
13714
 
3430 rajveer 13715
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 13716
      validate();
13717
 
13718
      oprot.writeStructBegin(STRUCT_DESC);
13719
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
13720
      oprot.writeI64(this.role);
13721
      oprot.writeFieldEnd();
13722
      oprot.writeFieldStop();
13723
      oprot.writeStructEnd();
13724
    }
13725
 
13726
    @Override
13727
    public String toString() {
13728
      StringBuilder sb = new StringBuilder("getReports_args(");
13729
      boolean first = true;
13730
 
13731
      sb.append("role:");
13732
      sb.append(this.role);
13733
      first = false;
13734
      sb.append(")");
13735
      return sb.toString();
13736
    }
13737
 
3430 rajveer 13738
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 13739
      // check for required fields
13740
    }
13741
 
3430 rajveer 13742
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13743
      try {
13744
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13745
      } catch (org.apache.thrift.TException te) {
13746
        throw new java.io.IOException(te);
13747
      }
13748
    }
13749
 
13750
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13751
      try {
13752
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
13753
        __isset_bit_vector = new BitSet(1);
13754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13755
      } catch (org.apache.thrift.TException te) {
13756
        throw new java.io.IOException(te);
13757
      }
13758
    }
13759
 
1891 ankur.sing 13760
  }
13761
 
3430 rajveer 13762
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
13763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 13764
 
3430 rajveer 13765
    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 13766
 
3430 rajveer 13767
    private List<Report> success; // required
1891 ankur.sing 13768
 
13769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13771
      SUCCESS((short)0, "success");
13772
 
13773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13774
 
13775
      static {
13776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13777
          byName.put(field.getFieldName(), field);
13778
        }
13779
      }
13780
 
13781
      /**
13782
       * Find the _Fields constant that matches fieldId, or null if its not found.
13783
       */
13784
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13785
        switch(fieldId) {
13786
          case 0: // SUCCESS
13787
            return SUCCESS;
13788
          default:
13789
            return null;
13790
        }
1891 ankur.sing 13791
      }
13792
 
13793
      /**
13794
       * Find the _Fields constant that matches fieldId, throwing an exception
13795
       * if it is not found.
13796
       */
13797
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13798
        _Fields fields = findByThriftId(fieldId);
13799
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13800
        return fields;
13801
      }
13802
 
13803
      /**
13804
       * Find the _Fields constant that matches name, or null if its not found.
13805
       */
13806
      public static _Fields findByName(String name) {
13807
        return byName.get(name);
13808
      }
13809
 
13810
      private final short _thriftId;
13811
      private final String _fieldName;
13812
 
13813
      _Fields(short thriftId, String fieldName) {
13814
        _thriftId = thriftId;
13815
        _fieldName = fieldName;
13816
      }
13817
 
13818
      public short getThriftFieldId() {
13819
        return _thriftId;
13820
      }
13821
 
13822
      public String getFieldName() {
13823
        return _fieldName;
13824
      }
13825
    }
13826
 
13827
    // isset id assignments
13828
 
3430 rajveer 13829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13830
    static {
3430 rajveer 13831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13832
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13833
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13834
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
13835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 13837
    }
13838
 
13839
    public getReports_result() {
13840
    }
13841
 
13842
    public getReports_result(
13843
      List<Report> success)
13844
    {
13845
      this();
13846
      this.success = success;
13847
    }
13848
 
13849
    /**
13850
     * Performs a deep copy on <i>other</i>.
13851
     */
13852
    public getReports_result(getReports_result other) {
13853
      if (other.isSetSuccess()) {
13854
        List<Report> __this__success = new ArrayList<Report>();
13855
        for (Report other_element : other.success) {
13856
          __this__success.add(new Report(other_element));
13857
        }
13858
        this.success = __this__success;
13859
      }
13860
    }
13861
 
13862
    public getReports_result deepCopy() {
13863
      return new getReports_result(this);
13864
    }
13865
 
3430 rajveer 13866
    @Override
13867
    public void clear() {
13868
      this.success = null;
1891 ankur.sing 13869
    }
13870
 
13871
    public int getSuccessSize() {
13872
      return (this.success == null) ? 0 : this.success.size();
13873
    }
13874
 
13875
    public java.util.Iterator<Report> getSuccessIterator() {
13876
      return (this.success == null) ? null : this.success.iterator();
13877
    }
13878
 
13879
    public void addToSuccess(Report elem) {
13880
      if (this.success == null) {
13881
        this.success = new ArrayList<Report>();
13882
      }
13883
      this.success.add(elem);
13884
    }
13885
 
13886
    public List<Report> getSuccess() {
13887
      return this.success;
13888
    }
13889
 
3430 rajveer 13890
    public void setSuccess(List<Report> success) {
1891 ankur.sing 13891
      this.success = success;
13892
    }
13893
 
13894
    public void unsetSuccess() {
13895
      this.success = null;
13896
    }
13897
 
3430 rajveer 13898
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13899
    public boolean isSetSuccess() {
13900
      return this.success != null;
13901
    }
13902
 
13903
    public void setSuccessIsSet(boolean value) {
13904
      if (!value) {
13905
        this.success = null;
13906
      }
13907
    }
13908
 
13909
    public void setFieldValue(_Fields field, Object value) {
13910
      switch (field) {
13911
      case SUCCESS:
13912
        if (value == null) {
13913
          unsetSuccess();
13914
        } else {
13915
          setSuccess((List<Report>)value);
13916
        }
13917
        break;
13918
 
13919
      }
13920
    }
13921
 
13922
    public Object getFieldValue(_Fields field) {
13923
      switch (field) {
13924
      case SUCCESS:
13925
        return getSuccess();
13926
 
13927
      }
13928
      throw new IllegalStateException();
13929
    }
13930
 
3430 rajveer 13931
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13932
    public boolean isSet(_Fields field) {
13933
      if (field == null) {
13934
        throw new IllegalArgumentException();
13935
      }
1891 ankur.sing 13936
 
13937
      switch (field) {
13938
      case SUCCESS:
13939
        return isSetSuccess();
13940
      }
13941
      throw new IllegalStateException();
13942
    }
13943
 
13944
    @Override
13945
    public boolean equals(Object that) {
13946
      if (that == null)
13947
        return false;
13948
      if (that instanceof getReports_result)
13949
        return this.equals((getReports_result)that);
13950
      return false;
13951
    }
13952
 
13953
    public boolean equals(getReports_result that) {
13954
      if (that == null)
13955
        return false;
13956
 
13957
      boolean this_present_success = true && this.isSetSuccess();
13958
      boolean that_present_success = true && that.isSetSuccess();
13959
      if (this_present_success || that_present_success) {
13960
        if (!(this_present_success && that_present_success))
13961
          return false;
13962
        if (!this.success.equals(that.success))
13963
          return false;
13964
      }
13965
 
13966
      return true;
13967
    }
13968
 
13969
    @Override
13970
    public int hashCode() {
13971
      return 0;
13972
    }
13973
 
13974
    public int compareTo(getReports_result other) {
13975
      if (!getClass().equals(other.getClass())) {
13976
        return getClass().getName().compareTo(other.getClass().getName());
13977
      }
13978
 
13979
      int lastComparison = 0;
13980
      getReports_result typedOther = (getReports_result)other;
13981
 
3430 rajveer 13982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 13983
      if (lastComparison != 0) {
13984
        return lastComparison;
13985
      }
3430 rajveer 13986
      if (isSetSuccess()) {
13987
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13988
        if (lastComparison != 0) {
13989
          return lastComparison;
13990
        }
1891 ankur.sing 13991
      }
13992
      return 0;
13993
    }
13994
 
3430 rajveer 13995
    public _Fields fieldForId(int fieldId) {
13996
      return _Fields.findByThriftId(fieldId);
13997
    }
13998
 
13999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14000
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14001
      iprot.readStructBegin();
14002
      while (true)
14003
      {
14004
        field = iprot.readFieldBegin();
3430 rajveer 14005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14006
          break;
14007
        }
3430 rajveer 14008
        switch (field.id) {
14009
          case 0: // SUCCESS
14010
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
14011
              {
14012
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
14013
                this.success = new ArrayList<Report>(_list17.size);
14014
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
1891 ankur.sing 14015
                {
3430 rajveer 14016
                  Report _elem19; // required
14017
                  _elem19 = new Report();
14018
                  _elem19.read(iprot);
14019
                  this.success.add(_elem19);
1891 ankur.sing 14020
                }
3430 rajveer 14021
                iprot.readListEnd();
1891 ankur.sing 14022
              }
3430 rajveer 14023
            } else { 
14024
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14025
            }
14026
            break;
14027
          default:
14028
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14029
        }
3430 rajveer 14030
        iprot.readFieldEnd();
1891 ankur.sing 14031
      }
14032
      iprot.readStructEnd();
14033
      validate();
14034
    }
14035
 
3430 rajveer 14036
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14037
      oprot.writeStructBegin(STRUCT_DESC);
14038
 
14039
      if (this.isSetSuccess()) {
14040
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14041
        {
3430 rajveer 14042
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1891 ankur.sing 14043
          for (Report _iter20 : this.success)
14044
          {
14045
            _iter20.write(oprot);
14046
          }
14047
          oprot.writeListEnd();
14048
        }
14049
        oprot.writeFieldEnd();
14050
      }
14051
      oprot.writeFieldStop();
14052
      oprot.writeStructEnd();
14053
    }
14054
 
14055
    @Override
14056
    public String toString() {
14057
      StringBuilder sb = new StringBuilder("getReports_result(");
14058
      boolean first = true;
14059
 
14060
      sb.append("success:");
14061
      if (this.success == null) {
14062
        sb.append("null");
14063
      } else {
14064
        sb.append(this.success);
14065
      }
14066
      first = false;
14067
      sb.append(")");
14068
      return sb.toString();
14069
    }
14070
 
3430 rajveer 14071
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14072
      // check for required fields
14073
    }
14074
 
3430 rajveer 14075
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14076
      try {
14077
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14078
      } catch (org.apache.thrift.TException te) {
14079
        throw new java.io.IOException(te);
14080
      }
14081
    }
14082
 
14083
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14084
      try {
14085
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14086
      } catch (org.apache.thrift.TException te) {
14087
        throw new java.io.IOException(te);
14088
      }
14089
    }
14090
 
1891 ankur.sing 14091
  }
14092
 
3430 rajveer 14093
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
14094
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 14095
 
3430 rajveer 14096
    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);
14097
    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);
14098
    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 14099
 
3430 rajveer 14100
    private String username; // required
14101
    private String password; // required
14102
    private long role; // required
2024 ankur.sing 14103
 
14104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14106
      USERNAME((short)1, "username"),
2357 ankur.sing 14107
      PASSWORD((short)2, "password"),
14108
      ROLE((short)3, "role");
2024 ankur.sing 14109
 
14110
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14111
 
14112
      static {
14113
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14114
          byName.put(field.getFieldName(), field);
14115
        }
14116
      }
14117
 
14118
      /**
14119
       * Find the _Fields constant that matches fieldId, or null if its not found.
14120
       */
14121
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14122
        switch(fieldId) {
14123
          case 1: // USERNAME
14124
            return USERNAME;
14125
          case 2: // PASSWORD
14126
            return PASSWORD;
14127
          case 3: // ROLE
14128
            return ROLE;
14129
          default:
14130
            return null;
14131
        }
2024 ankur.sing 14132
      }
14133
 
14134
      /**
14135
       * Find the _Fields constant that matches fieldId, throwing an exception
14136
       * if it is not found.
14137
       */
14138
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14139
        _Fields fields = findByThriftId(fieldId);
14140
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14141
        return fields;
14142
      }
14143
 
14144
      /**
14145
       * Find the _Fields constant that matches name, or null if its not found.
14146
       */
14147
      public static _Fields findByName(String name) {
14148
        return byName.get(name);
14149
      }
14150
 
14151
      private final short _thriftId;
14152
      private final String _fieldName;
14153
 
14154
      _Fields(short thriftId, String fieldName) {
14155
        _thriftId = thriftId;
14156
        _fieldName = fieldName;
14157
      }
14158
 
14159
      public short getThriftFieldId() {
14160
        return _thriftId;
14161
      }
14162
 
14163
      public String getFieldName() {
14164
        return _fieldName;
14165
      }
14166
    }
14167
 
14168
    // isset id assignments
2357 ankur.sing 14169
    private static final int __ROLE_ISSET_ID = 0;
14170
    private BitSet __isset_bit_vector = new BitSet(1);
2024 ankur.sing 14171
 
3430 rajveer 14172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14173
    static {
3430 rajveer 14174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14175
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14176
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14177
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14178
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14179
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 14183
    }
14184
 
14185
    public authenticateCatalogUser_args() {
14186
    }
14187
 
14188
    public authenticateCatalogUser_args(
14189
      String username,
2357 ankur.sing 14190
      String password,
14191
      long role)
2024 ankur.sing 14192
    {
14193
      this();
14194
      this.username = username;
14195
      this.password = password;
2357 ankur.sing 14196
      this.role = role;
14197
      setRoleIsSet(true);
2024 ankur.sing 14198
    }
14199
 
14200
    /**
14201
     * Performs a deep copy on <i>other</i>.
14202
     */
14203
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
2357 ankur.sing 14204
      __isset_bit_vector.clear();
14205
      __isset_bit_vector.or(other.__isset_bit_vector);
2024 ankur.sing 14206
      if (other.isSetUsername()) {
14207
        this.username = other.username;
14208
      }
14209
      if (other.isSetPassword()) {
14210
        this.password = other.password;
14211
      }
2357 ankur.sing 14212
      this.role = other.role;
2024 ankur.sing 14213
    }
14214
 
14215
    public authenticateCatalogUser_args deepCopy() {
14216
      return new authenticateCatalogUser_args(this);
14217
    }
14218
 
3430 rajveer 14219
    @Override
14220
    public void clear() {
14221
      this.username = null;
14222
      this.password = null;
14223
      setRoleIsSet(false);
14224
      this.role = 0;
2024 ankur.sing 14225
    }
14226
 
14227
    public String getUsername() {
14228
      return this.username;
14229
    }
14230
 
3430 rajveer 14231
    public void setUsername(String username) {
2024 ankur.sing 14232
      this.username = username;
14233
    }
14234
 
14235
    public void unsetUsername() {
14236
      this.username = null;
14237
    }
14238
 
3430 rajveer 14239
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14240
    public boolean isSetUsername() {
14241
      return this.username != null;
14242
    }
14243
 
14244
    public void setUsernameIsSet(boolean value) {
14245
      if (!value) {
14246
        this.username = null;
14247
      }
14248
    }
14249
 
14250
    public String getPassword() {
14251
      return this.password;
14252
    }
14253
 
3430 rajveer 14254
    public void setPassword(String password) {
2024 ankur.sing 14255
      this.password = password;
14256
    }
14257
 
14258
    public void unsetPassword() {
14259
      this.password = null;
14260
    }
14261
 
3430 rajveer 14262
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14263
    public boolean isSetPassword() {
14264
      return this.password != null;
14265
    }
14266
 
14267
    public void setPasswordIsSet(boolean value) {
14268
      if (!value) {
14269
        this.password = null;
14270
      }
14271
    }
14272
 
2357 ankur.sing 14273
    public long getRole() {
14274
      return this.role;
14275
    }
14276
 
3430 rajveer 14277
    public void setRole(long role) {
2357 ankur.sing 14278
      this.role = role;
14279
      setRoleIsSet(true);
14280
    }
14281
 
14282
    public void unsetRole() {
14283
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14284
    }
14285
 
3430 rajveer 14286
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
2357 ankur.sing 14287
    public boolean isSetRole() {
14288
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14289
    }
14290
 
14291
    public void setRoleIsSet(boolean value) {
14292
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14293
    }
14294
 
2024 ankur.sing 14295
    public void setFieldValue(_Fields field, Object value) {
14296
      switch (field) {
14297
      case USERNAME:
14298
        if (value == null) {
14299
          unsetUsername();
14300
        } else {
14301
          setUsername((String)value);
14302
        }
14303
        break;
14304
 
14305
      case PASSWORD:
14306
        if (value == null) {
14307
          unsetPassword();
14308
        } else {
14309
          setPassword((String)value);
14310
        }
14311
        break;
14312
 
2357 ankur.sing 14313
      case ROLE:
14314
        if (value == null) {
14315
          unsetRole();
14316
        } else {
14317
          setRole((Long)value);
14318
        }
14319
        break;
14320
 
2024 ankur.sing 14321
      }
14322
    }
14323
 
14324
    public Object getFieldValue(_Fields field) {
14325
      switch (field) {
14326
      case USERNAME:
14327
        return getUsername();
14328
 
14329
      case PASSWORD:
14330
        return getPassword();
14331
 
2357 ankur.sing 14332
      case ROLE:
3430 rajveer 14333
        return Long.valueOf(getRole());
2357 ankur.sing 14334
 
2024 ankur.sing 14335
      }
14336
      throw new IllegalStateException();
14337
    }
14338
 
3430 rajveer 14339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14340
    public boolean isSet(_Fields field) {
14341
      if (field == null) {
14342
        throw new IllegalArgumentException();
14343
      }
2024 ankur.sing 14344
 
14345
      switch (field) {
14346
      case USERNAME:
14347
        return isSetUsername();
14348
      case PASSWORD:
14349
        return isSetPassword();
2357 ankur.sing 14350
      case ROLE:
14351
        return isSetRole();
2024 ankur.sing 14352
      }
14353
      throw new IllegalStateException();
14354
    }
14355
 
14356
    @Override
14357
    public boolean equals(Object that) {
14358
      if (that == null)
14359
        return false;
14360
      if (that instanceof authenticateCatalogUser_args)
14361
        return this.equals((authenticateCatalogUser_args)that);
14362
      return false;
14363
    }
14364
 
14365
    public boolean equals(authenticateCatalogUser_args that) {
14366
      if (that == null)
14367
        return false;
14368
 
14369
      boolean this_present_username = true && this.isSetUsername();
14370
      boolean that_present_username = true && that.isSetUsername();
14371
      if (this_present_username || that_present_username) {
14372
        if (!(this_present_username && that_present_username))
14373
          return false;
14374
        if (!this.username.equals(that.username))
14375
          return false;
14376
      }
14377
 
14378
      boolean this_present_password = true && this.isSetPassword();
14379
      boolean that_present_password = true && that.isSetPassword();
14380
      if (this_present_password || that_present_password) {
14381
        if (!(this_present_password && that_present_password))
14382
          return false;
14383
        if (!this.password.equals(that.password))
14384
          return false;
14385
      }
14386
 
2357 ankur.sing 14387
      boolean this_present_role = true;
14388
      boolean that_present_role = true;
14389
      if (this_present_role || that_present_role) {
14390
        if (!(this_present_role && that_present_role))
14391
          return false;
14392
        if (this.role != that.role)
14393
          return false;
14394
      }
14395
 
2024 ankur.sing 14396
      return true;
14397
    }
14398
 
14399
    @Override
14400
    public int hashCode() {
14401
      return 0;
14402
    }
14403
 
14404
    public int compareTo(authenticateCatalogUser_args other) {
14405
      if (!getClass().equals(other.getClass())) {
14406
        return getClass().getName().compareTo(other.getClass().getName());
14407
      }
14408
 
14409
      int lastComparison = 0;
14410
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
14411
 
3430 rajveer 14412
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 14413
      if (lastComparison != 0) {
14414
        return lastComparison;
14415
      }
3430 rajveer 14416
      if (isSetUsername()) {
14417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14418
        if (lastComparison != 0) {
14419
          return lastComparison;
14420
        }
2024 ankur.sing 14421
      }
3430 rajveer 14422
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 14423
      if (lastComparison != 0) {
14424
        return lastComparison;
14425
      }
3430 rajveer 14426
      if (isSetPassword()) {
14427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14428
        if (lastComparison != 0) {
14429
          return lastComparison;
14430
        }
2024 ankur.sing 14431
      }
3430 rajveer 14432
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
2357 ankur.sing 14433
      if (lastComparison != 0) {
14434
        return lastComparison;
14435
      }
3430 rajveer 14436
      if (isSetRole()) {
14437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14438
        if (lastComparison != 0) {
14439
          return lastComparison;
14440
        }
2357 ankur.sing 14441
      }
2024 ankur.sing 14442
      return 0;
14443
    }
14444
 
3430 rajveer 14445
    public _Fields fieldForId(int fieldId) {
14446
      return _Fields.findByThriftId(fieldId);
14447
    }
14448
 
14449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14450
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14451
      iprot.readStructBegin();
14452
      while (true)
14453
      {
14454
        field = iprot.readFieldBegin();
3430 rajveer 14455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 14456
          break;
14457
        }
3430 rajveer 14458
        switch (field.id) {
14459
          case 1: // USERNAME
14460
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14461
              this.username = iprot.readString();
14462
            } else { 
14463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14464
            }
14465
            break;
14466
          case 2: // PASSWORD
14467
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14468
              this.password = iprot.readString();
14469
            } else { 
14470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14471
            }
14472
            break;
14473
          case 3: // ROLE
14474
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14475
              this.role = iprot.readI64();
14476
              setRoleIsSet(true);
14477
            } else { 
14478
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14479
            }
14480
            break;
14481
          default:
14482
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 14483
        }
3430 rajveer 14484
        iprot.readFieldEnd();
2024 ankur.sing 14485
      }
14486
      iprot.readStructEnd();
14487
      validate();
14488
    }
14489
 
3430 rajveer 14490
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 14491
      validate();
14492
 
14493
      oprot.writeStructBegin(STRUCT_DESC);
14494
      if (this.username != null) {
14495
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14496
        oprot.writeString(this.username);
14497
        oprot.writeFieldEnd();
14498
      }
14499
      if (this.password != null) {
14500
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14501
        oprot.writeString(this.password);
14502
        oprot.writeFieldEnd();
14503
      }
2357 ankur.sing 14504
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14505
      oprot.writeI64(this.role);
14506
      oprot.writeFieldEnd();
2024 ankur.sing 14507
      oprot.writeFieldStop();
14508
      oprot.writeStructEnd();
14509
    }
14510
 
14511
    @Override
14512
    public String toString() {
14513
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
14514
      boolean first = true;
14515
 
14516
      sb.append("username:");
14517
      if (this.username == null) {
14518
        sb.append("null");
14519
      } else {
14520
        sb.append(this.username);
14521
      }
14522
      first = false;
14523
      if (!first) sb.append(", ");
14524
      sb.append("password:");
14525
      if (this.password == null) {
14526
        sb.append("null");
14527
      } else {
14528
        sb.append(this.password);
14529
      }
14530
      first = false;
2357 ankur.sing 14531
      if (!first) sb.append(", ");
14532
      sb.append("role:");
14533
      sb.append(this.role);
14534
      first = false;
2024 ankur.sing 14535
      sb.append(")");
14536
      return sb.toString();
14537
    }
14538
 
3430 rajveer 14539
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 14540
      // check for required fields
14541
    }
14542
 
3430 rajveer 14543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14544
      try {
14545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14546
      } catch (org.apache.thrift.TException te) {
14547
        throw new java.io.IOException(te);
14548
      }
14549
    }
14550
 
14551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14552
      try {
14553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14554
      } catch (org.apache.thrift.TException te) {
14555
        throw new java.io.IOException(te);
14556
      }
14557
    }
14558
 
2024 ankur.sing 14559
  }
14560
 
3430 rajveer 14561
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
14562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 14563
 
3430 rajveer 14564
    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);
14565
    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 14566
 
3430 rajveer 14567
    private CatalogDashboardUser success; // required
14568
    private HelperServiceException hse; // required
2024 ankur.sing 14569
 
14570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 14572
      SUCCESS((short)0, "success"),
14573
      HSE((short)1, "hse");
14574
 
14575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14576
 
14577
      static {
14578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14579
          byName.put(field.getFieldName(), field);
14580
        }
14581
      }
14582
 
14583
      /**
14584
       * Find the _Fields constant that matches fieldId, or null if its not found.
14585
       */
14586
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14587
        switch(fieldId) {
14588
          case 0: // SUCCESS
14589
            return SUCCESS;
14590
          case 1: // HSE
14591
            return HSE;
14592
          default:
14593
            return null;
14594
        }
2024 ankur.sing 14595
      }
14596
 
14597
      /**
14598
       * Find the _Fields constant that matches fieldId, throwing an exception
14599
       * if it is not found.
14600
       */
14601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14602
        _Fields fields = findByThriftId(fieldId);
14603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14604
        return fields;
14605
      }
14606
 
14607
      /**
14608
       * Find the _Fields constant that matches name, or null if its not found.
14609
       */
14610
      public static _Fields findByName(String name) {
14611
        return byName.get(name);
14612
      }
14613
 
14614
      private final short _thriftId;
14615
      private final String _fieldName;
14616
 
14617
      _Fields(short thriftId, String fieldName) {
14618
        _thriftId = thriftId;
14619
        _fieldName = fieldName;
14620
      }
14621
 
14622
      public short getThriftFieldId() {
14623
        return _thriftId;
14624
      }
14625
 
14626
      public String getFieldName() {
14627
        return _fieldName;
14628
      }
14629
    }
14630
 
14631
    // isset id assignments
14632
 
3430 rajveer 14633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 14634
    static {
3430 rajveer 14635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14637
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
14638
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14640
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14641
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 14642
    }
14643
 
14644
    public authenticateCatalogUser_result() {
14645
    }
14646
 
14647
    public authenticateCatalogUser_result(
14648
      CatalogDashboardUser success,
14649
      HelperServiceException hse)
14650
    {
14651
      this();
14652
      this.success = success;
14653
      this.hse = hse;
14654
    }
14655
 
14656
    /**
14657
     * Performs a deep copy on <i>other</i>.
14658
     */
14659
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
14660
      if (other.isSetSuccess()) {
14661
        this.success = new CatalogDashboardUser(other.success);
14662
      }
14663
      if (other.isSetHse()) {
14664
        this.hse = new HelperServiceException(other.hse);
14665
      }
14666
    }
14667
 
14668
    public authenticateCatalogUser_result deepCopy() {
14669
      return new authenticateCatalogUser_result(this);
14670
    }
14671
 
3430 rajveer 14672
    @Override
14673
    public void clear() {
14674
      this.success = null;
14675
      this.hse = null;
2024 ankur.sing 14676
    }
14677
 
14678
    public CatalogDashboardUser getSuccess() {
14679
      return this.success;
14680
    }
14681
 
3430 rajveer 14682
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 14683
      this.success = success;
14684
    }
14685
 
14686
    public void unsetSuccess() {
14687
      this.success = null;
14688
    }
14689
 
3430 rajveer 14690
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14691
    public boolean isSetSuccess() {
14692
      return this.success != null;
14693
    }
14694
 
14695
    public void setSuccessIsSet(boolean value) {
14696
      if (!value) {
14697
        this.success = null;
14698
      }
14699
    }
14700
 
14701
    public HelperServiceException getHse() {
14702
      return this.hse;
14703
    }
14704
 
3430 rajveer 14705
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 14706
      this.hse = hse;
14707
    }
14708
 
14709
    public void unsetHse() {
14710
      this.hse = null;
14711
    }
14712
 
3430 rajveer 14713
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 14714
    public boolean isSetHse() {
14715
      return this.hse != null;
14716
    }
14717
 
14718
    public void setHseIsSet(boolean value) {
14719
      if (!value) {
14720
        this.hse = null;
14721
      }
14722
    }
14723
 
14724
    public void setFieldValue(_Fields field, Object value) {
14725
      switch (field) {
14726
      case SUCCESS:
14727
        if (value == null) {
14728
          unsetSuccess();
14729
        } else {
14730
          setSuccess((CatalogDashboardUser)value);
14731
        }
14732
        break;
14733
 
14734
      case HSE:
14735
        if (value == null) {
14736
          unsetHse();
14737
        } else {
14738
          setHse((HelperServiceException)value);
14739
        }
14740
        break;
14741
 
14742
      }
14743
    }
14744
 
14745
    public Object getFieldValue(_Fields field) {
14746
      switch (field) {
14747
      case SUCCESS:
14748
        return getSuccess();
14749
 
14750
      case HSE:
14751
        return getHse();
14752
 
14753
      }
14754
      throw new IllegalStateException();
14755
    }
14756
 
3430 rajveer 14757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14758
    public boolean isSet(_Fields field) {
14759
      if (field == null) {
14760
        throw new IllegalArgumentException();
14761
      }
2024 ankur.sing 14762
 
14763
      switch (field) {
14764
      case SUCCESS:
14765
        return isSetSuccess();
14766
      case HSE:
14767
        return isSetHse();
14768
      }
14769
      throw new IllegalStateException();
14770
    }
14771
 
14772
    @Override
14773
    public boolean equals(Object that) {
14774
      if (that == null)
14775
        return false;
14776
      if (that instanceof authenticateCatalogUser_result)
14777
        return this.equals((authenticateCatalogUser_result)that);
14778
      return false;
14779
    }
14780
 
14781
    public boolean equals(authenticateCatalogUser_result that) {
14782
      if (that == null)
14783
        return false;
14784
 
14785
      boolean this_present_success = true && this.isSetSuccess();
14786
      boolean that_present_success = true && that.isSetSuccess();
14787
      if (this_present_success || that_present_success) {
14788
        if (!(this_present_success && that_present_success))
14789
          return false;
14790
        if (!this.success.equals(that.success))
14791
          return false;
14792
      }
14793
 
14794
      boolean this_present_hse = true && this.isSetHse();
14795
      boolean that_present_hse = true && that.isSetHse();
14796
      if (this_present_hse || that_present_hse) {
14797
        if (!(this_present_hse && that_present_hse))
14798
          return false;
14799
        if (!this.hse.equals(that.hse))
14800
          return false;
14801
      }
14802
 
14803
      return true;
14804
    }
14805
 
14806
    @Override
14807
    public int hashCode() {
14808
      return 0;
14809
    }
14810
 
14811
    public int compareTo(authenticateCatalogUser_result other) {
14812
      if (!getClass().equals(other.getClass())) {
14813
        return getClass().getName().compareTo(other.getClass().getName());
14814
      }
14815
 
14816
      int lastComparison = 0;
14817
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
14818
 
3430 rajveer 14819
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 14820
      if (lastComparison != 0) {
14821
        return lastComparison;
14822
      }
3430 rajveer 14823
      if (isSetSuccess()) {
14824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14825
        if (lastComparison != 0) {
14826
          return lastComparison;
14827
        }
2024 ankur.sing 14828
      }
3430 rajveer 14829
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 14830
      if (lastComparison != 0) {
14831
        return lastComparison;
14832
      }
3430 rajveer 14833
      if (isSetHse()) {
14834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14835
        if (lastComparison != 0) {
14836
          return lastComparison;
14837
        }
2024 ankur.sing 14838
      }
14839
      return 0;
14840
    }
14841
 
3430 rajveer 14842
    public _Fields fieldForId(int fieldId) {
14843
      return _Fields.findByThriftId(fieldId);
14844
    }
14845
 
14846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14847
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 14848
      iprot.readStructBegin();
14849
      while (true)
14850
      {
14851
        field = iprot.readFieldBegin();
3430 rajveer 14852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 14853
          break;
14854
        }
3430 rajveer 14855
        switch (field.id) {
14856
          case 0: // SUCCESS
14857
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14858
              this.success = new CatalogDashboardUser();
14859
              this.success.read(iprot);
14860
            } else { 
14861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14862
            }
14863
            break;
14864
          case 1: // HSE
14865
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14866
              this.hse = new HelperServiceException();
14867
              this.hse.read(iprot);
14868
            } else { 
14869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14870
            }
14871
            break;
14872
          default:
14873
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 14874
        }
3430 rajveer 14875
        iprot.readFieldEnd();
2024 ankur.sing 14876
      }
14877
      iprot.readStructEnd();
14878
      validate();
14879
    }
14880
 
3430 rajveer 14881
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 14882
      oprot.writeStructBegin(STRUCT_DESC);
14883
 
14884
      if (this.isSetSuccess()) {
14885
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14886
        this.success.write(oprot);
14887
        oprot.writeFieldEnd();
14888
      } else if (this.isSetHse()) {
14889
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14890
        this.hse.write(oprot);
14891
        oprot.writeFieldEnd();
14892
      }
14893
      oprot.writeFieldStop();
14894
      oprot.writeStructEnd();
14895
    }
14896
 
14897
    @Override
14898
    public String toString() {
14899
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
14900
      boolean first = true;
14901
 
14902
      sb.append("success:");
14903
      if (this.success == null) {
14904
        sb.append("null");
14905
      } else {
14906
        sb.append(this.success);
14907
      }
14908
      first = false;
14909
      if (!first) sb.append(", ");
14910
      sb.append("hse:");
14911
      if (this.hse == null) {
14912
        sb.append("null");
14913
      } else {
14914
        sb.append(this.hse);
14915
      }
14916
      first = false;
14917
      sb.append(")");
14918
      return sb.toString();
14919
    }
14920
 
3430 rajveer 14921
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 14922
      // check for required fields
14923
    }
14924
 
3430 rajveer 14925
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14926
      try {
14927
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14928
      } catch (org.apache.thrift.TException te) {
14929
        throw new java.io.IOException(te);
14930
      }
14931
    }
14932
 
14933
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14934
      try {
14935
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14936
      } catch (org.apache.thrift.TException te) {
14937
        throw new java.io.IOException(te);
14938
      }
14939
    }
14940
 
2024 ankur.sing 14941
  }
14942
 
4544 varun.gupt 14943
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
14944
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
14945
 
14946
    private static final org.apache.thrift.protocol.TField ENTITY_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("entityIds", org.apache.thrift.protocol.TType.LIST, (short)1);
14947
    private static final org.apache.thrift.protocol.TField EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("email", org.apache.thrift.protocol.TType.STRING, (short)2);
14948
 
14949
    private List<Long> entityIds; // required
14950
    private String email; // required
14951
 
14952
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14953
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
14954
      ENTITY_IDS((short)1, "entityIds"),
14955
      EMAIL((short)2, "email");
14956
 
14957
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14958
 
14959
      static {
14960
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14961
          byName.put(field.getFieldName(), field);
14962
        }
14963
      }
14964
 
14965
      /**
14966
       * Find the _Fields constant that matches fieldId, or null if its not found.
14967
       */
14968
      public static _Fields findByThriftId(int fieldId) {
14969
        switch(fieldId) {
14970
          case 1: // ENTITY_IDS
14971
            return ENTITY_IDS;
14972
          case 2: // EMAIL
14973
            return EMAIL;
14974
          default:
14975
            return null;
14976
        }
14977
      }
14978
 
14979
      /**
14980
       * Find the _Fields constant that matches fieldId, throwing an exception
14981
       * if it is not found.
14982
       */
14983
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14984
        _Fields fields = findByThriftId(fieldId);
14985
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14986
        return fields;
14987
      }
14988
 
14989
      /**
14990
       * Find the _Fields constant that matches name, or null if its not found.
14991
       */
14992
      public static _Fields findByName(String name) {
14993
        return byName.get(name);
14994
      }
14995
 
14996
      private final short _thriftId;
14997
      private final String _fieldName;
14998
 
14999
      _Fields(short thriftId, String fieldName) {
15000
        _thriftId = thriftId;
15001
        _fieldName = fieldName;
15002
      }
15003
 
15004
      public short getThriftFieldId() {
15005
        return _thriftId;
15006
      }
15007
 
15008
      public String getFieldName() {
15009
        return _fieldName;
15010
      }
15011
    }
15012
 
15013
    // isset id assignments
15014
 
15015
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15016
    static {
15017
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15018
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15019
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15020
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
15021
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
15025
    }
15026
 
15027
    public shareEntities_args() {
15028
    }
15029
 
15030
    public shareEntities_args(
15031
      List<Long> entityIds,
15032
      String email)
15033
    {
15034
      this();
15035
      this.entityIds = entityIds;
15036
      this.email = email;
15037
    }
15038
 
15039
    /**
15040
     * Performs a deep copy on <i>other</i>.
15041
     */
15042
    public shareEntities_args(shareEntities_args other) {
15043
      if (other.isSetEntityIds()) {
15044
        List<Long> __this__entityIds = new ArrayList<Long>();
15045
        for (Long other_element : other.entityIds) {
15046
          __this__entityIds.add(other_element);
15047
        }
15048
        this.entityIds = __this__entityIds;
15049
      }
15050
      if (other.isSetEmail()) {
15051
        this.email = other.email;
15052
      }
15053
    }
15054
 
15055
    public shareEntities_args deepCopy() {
15056
      return new shareEntities_args(this);
15057
    }
15058
 
15059
    @Override
15060
    public void clear() {
15061
      this.entityIds = null;
15062
      this.email = null;
15063
    }
15064
 
15065
    public int getEntityIdsSize() {
15066
      return (this.entityIds == null) ? 0 : this.entityIds.size();
15067
    }
15068
 
15069
    public java.util.Iterator<Long> getEntityIdsIterator() {
15070
      return (this.entityIds == null) ? null : this.entityIds.iterator();
15071
    }
15072
 
15073
    public void addToEntityIds(long elem) {
15074
      if (this.entityIds == null) {
15075
        this.entityIds = new ArrayList<Long>();
15076
      }
15077
      this.entityIds.add(elem);
15078
    }
15079
 
15080
    public List<Long> getEntityIds() {
15081
      return this.entityIds;
15082
    }
15083
 
15084
    public void setEntityIds(List<Long> entityIds) {
15085
      this.entityIds = entityIds;
15086
    }
15087
 
15088
    public void unsetEntityIds() {
15089
      this.entityIds = null;
15090
    }
15091
 
15092
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
15093
    public boolean isSetEntityIds() {
15094
      return this.entityIds != null;
15095
    }
15096
 
15097
    public void setEntityIdsIsSet(boolean value) {
15098
      if (!value) {
15099
        this.entityIds = null;
15100
      }
15101
    }
15102
 
15103
    public String getEmail() {
15104
      return this.email;
15105
    }
15106
 
15107
    public void setEmail(String email) {
15108
      this.email = email;
15109
    }
15110
 
15111
    public void unsetEmail() {
15112
      this.email = null;
15113
    }
15114
 
15115
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
15116
    public boolean isSetEmail() {
15117
      return this.email != null;
15118
    }
15119
 
15120
    public void setEmailIsSet(boolean value) {
15121
      if (!value) {
15122
        this.email = null;
15123
      }
15124
    }
15125
 
15126
    public void setFieldValue(_Fields field, Object value) {
15127
      switch (field) {
15128
      case ENTITY_IDS:
15129
        if (value == null) {
15130
          unsetEntityIds();
15131
        } else {
15132
          setEntityIds((List<Long>)value);
15133
        }
15134
        break;
15135
 
15136
      case EMAIL:
15137
        if (value == null) {
15138
          unsetEmail();
15139
        } else {
15140
          setEmail((String)value);
15141
        }
15142
        break;
15143
 
15144
      }
15145
    }
15146
 
15147
    public Object getFieldValue(_Fields field) {
15148
      switch (field) {
15149
      case ENTITY_IDS:
15150
        return getEntityIds();
15151
 
15152
      case EMAIL:
15153
        return getEmail();
15154
 
15155
      }
15156
      throw new IllegalStateException();
15157
    }
15158
 
15159
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15160
    public boolean isSet(_Fields field) {
15161
      if (field == null) {
15162
        throw new IllegalArgumentException();
15163
      }
15164
 
15165
      switch (field) {
15166
      case ENTITY_IDS:
15167
        return isSetEntityIds();
15168
      case EMAIL:
15169
        return isSetEmail();
15170
      }
15171
      throw new IllegalStateException();
15172
    }
15173
 
15174
    @Override
15175
    public boolean equals(Object that) {
15176
      if (that == null)
15177
        return false;
15178
      if (that instanceof shareEntities_args)
15179
        return this.equals((shareEntities_args)that);
15180
      return false;
15181
    }
15182
 
15183
    public boolean equals(shareEntities_args that) {
15184
      if (that == null)
15185
        return false;
15186
 
15187
      boolean this_present_entityIds = true && this.isSetEntityIds();
15188
      boolean that_present_entityIds = true && that.isSetEntityIds();
15189
      if (this_present_entityIds || that_present_entityIds) {
15190
        if (!(this_present_entityIds && that_present_entityIds))
15191
          return false;
15192
        if (!this.entityIds.equals(that.entityIds))
15193
          return false;
15194
      }
15195
 
15196
      boolean this_present_email = true && this.isSetEmail();
15197
      boolean that_present_email = true && that.isSetEmail();
15198
      if (this_present_email || that_present_email) {
15199
        if (!(this_present_email && that_present_email))
15200
          return false;
15201
        if (!this.email.equals(that.email))
15202
          return false;
15203
      }
15204
 
15205
      return true;
15206
    }
15207
 
15208
    @Override
15209
    public int hashCode() {
15210
      return 0;
15211
    }
15212
 
15213
    public int compareTo(shareEntities_args other) {
15214
      if (!getClass().equals(other.getClass())) {
15215
        return getClass().getName().compareTo(other.getClass().getName());
15216
      }
15217
 
15218
      int lastComparison = 0;
15219
      shareEntities_args typedOther = (shareEntities_args)other;
15220
 
15221
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
15222
      if (lastComparison != 0) {
15223
        return lastComparison;
15224
      }
15225
      if (isSetEntityIds()) {
15226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
15227
        if (lastComparison != 0) {
15228
          return lastComparison;
15229
        }
15230
      }
15231
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
15232
      if (lastComparison != 0) {
15233
        return lastComparison;
15234
      }
15235
      if (isSetEmail()) {
15236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
15237
        if (lastComparison != 0) {
15238
          return lastComparison;
15239
        }
15240
      }
15241
      return 0;
15242
    }
15243
 
15244
    public _Fields fieldForId(int fieldId) {
15245
      return _Fields.findByThriftId(fieldId);
15246
    }
15247
 
15248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15249
      org.apache.thrift.protocol.TField field;
15250
      iprot.readStructBegin();
15251
      while (true)
15252
      {
15253
        field = iprot.readFieldBegin();
15254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15255
          break;
15256
        }
15257
        switch (field.id) {
15258
          case 1: // ENTITY_IDS
15259
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15260
              {
15261
                org.apache.thrift.protocol.TList _list21 = iprot.readListBegin();
15262
                this.entityIds = new ArrayList<Long>(_list21.size);
15263
                for (int _i22 = 0; _i22 < _list21.size; ++_i22)
15264
                {
15265
                  long _elem23; // required
15266
                  _elem23 = iprot.readI64();
15267
                  this.entityIds.add(_elem23);
15268
                }
15269
                iprot.readListEnd();
15270
              }
15271
            } else { 
15272
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15273
            }
15274
            break;
15275
          case 2: // EMAIL
15276
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15277
              this.email = iprot.readString();
15278
            } else { 
15279
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15280
            }
15281
            break;
15282
          default:
15283
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15284
        }
15285
        iprot.readFieldEnd();
15286
      }
15287
      iprot.readStructEnd();
15288
      validate();
15289
    }
15290
 
15291
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15292
      validate();
15293
 
15294
      oprot.writeStructBegin(STRUCT_DESC);
15295
      if (this.entityIds != null) {
15296
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
15297
        {
15298
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
15299
          for (long _iter24 : this.entityIds)
15300
          {
15301
            oprot.writeI64(_iter24);
15302
          }
15303
          oprot.writeListEnd();
15304
        }
15305
        oprot.writeFieldEnd();
15306
      }
15307
      if (this.email != null) {
15308
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
15309
        oprot.writeString(this.email);
15310
        oprot.writeFieldEnd();
15311
      }
15312
      oprot.writeFieldStop();
15313
      oprot.writeStructEnd();
15314
    }
15315
 
15316
    @Override
15317
    public String toString() {
15318
      StringBuilder sb = new StringBuilder("shareEntities_args(");
15319
      boolean first = true;
15320
 
15321
      sb.append("entityIds:");
15322
      if (this.entityIds == null) {
15323
        sb.append("null");
15324
      } else {
15325
        sb.append(this.entityIds);
15326
      }
15327
      first = false;
15328
      if (!first) sb.append(", ");
15329
      sb.append("email:");
15330
      if (this.email == null) {
15331
        sb.append("null");
15332
      } else {
15333
        sb.append(this.email);
15334
      }
15335
      first = false;
15336
      sb.append(")");
15337
      return sb.toString();
15338
    }
15339
 
15340
    public void validate() throws org.apache.thrift.TException {
15341
      // check for required fields
15342
    }
15343
 
15344
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15345
      try {
15346
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15347
      } catch (org.apache.thrift.TException te) {
15348
        throw new java.io.IOException(te);
15349
      }
15350
    }
15351
 
15352
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15353
      try {
15354
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15355
      } catch (org.apache.thrift.TException te) {
15356
        throw new java.io.IOException(te);
15357
      }
15358
    }
15359
 
15360
  }
15361
 
15362
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
15363
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
15364
 
15365
    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);
15366
 
15367
    private HelperServiceException hse; // required
15368
 
15369
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15370
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15371
      HSE((short)1, "hse");
15372
 
15373
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15374
 
15375
      static {
15376
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15377
          byName.put(field.getFieldName(), field);
15378
        }
15379
      }
15380
 
15381
      /**
15382
       * Find the _Fields constant that matches fieldId, or null if its not found.
15383
       */
15384
      public static _Fields findByThriftId(int fieldId) {
15385
        switch(fieldId) {
15386
          case 1: // HSE
15387
            return HSE;
15388
          default:
15389
            return null;
15390
        }
15391
      }
15392
 
15393
      /**
15394
       * Find the _Fields constant that matches fieldId, throwing an exception
15395
       * if it is not found.
15396
       */
15397
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15398
        _Fields fields = findByThriftId(fieldId);
15399
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15400
        return fields;
15401
      }
15402
 
15403
      /**
15404
       * Find the _Fields constant that matches name, or null if its not found.
15405
       */
15406
      public static _Fields findByName(String name) {
15407
        return byName.get(name);
15408
      }
15409
 
15410
      private final short _thriftId;
15411
      private final String _fieldName;
15412
 
15413
      _Fields(short thriftId, String fieldName) {
15414
        _thriftId = thriftId;
15415
        _fieldName = fieldName;
15416
      }
15417
 
15418
      public short getThriftFieldId() {
15419
        return _thriftId;
15420
      }
15421
 
15422
      public String getFieldName() {
15423
        return _fieldName;
15424
      }
15425
    }
15426
 
15427
    // isset id assignments
15428
 
15429
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
15430
    static {
15431
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15432
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15433
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15434
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15435
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
15436
    }
15437
 
15438
    public shareEntities_result() {
15439
    }
15440
 
15441
    public shareEntities_result(
15442
      HelperServiceException hse)
15443
    {
15444
      this();
15445
      this.hse = hse;
15446
    }
15447
 
15448
    /**
15449
     * Performs a deep copy on <i>other</i>.
15450
     */
15451
    public shareEntities_result(shareEntities_result other) {
15452
      if (other.isSetHse()) {
15453
        this.hse = new HelperServiceException(other.hse);
15454
      }
15455
    }
15456
 
15457
    public shareEntities_result deepCopy() {
15458
      return new shareEntities_result(this);
15459
    }
15460
 
15461
    @Override
15462
    public void clear() {
15463
      this.hse = null;
15464
    }
15465
 
15466
    public HelperServiceException getHse() {
15467
      return this.hse;
15468
    }
15469
 
15470
    public void setHse(HelperServiceException hse) {
15471
      this.hse = hse;
15472
    }
15473
 
15474
    public void unsetHse() {
15475
      this.hse = null;
15476
    }
15477
 
15478
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
15479
    public boolean isSetHse() {
15480
      return this.hse != null;
15481
    }
15482
 
15483
    public void setHseIsSet(boolean value) {
15484
      if (!value) {
15485
        this.hse = null;
15486
      }
15487
    }
15488
 
15489
    public void setFieldValue(_Fields field, Object value) {
15490
      switch (field) {
15491
      case HSE:
15492
        if (value == null) {
15493
          unsetHse();
15494
        } else {
15495
          setHse((HelperServiceException)value);
15496
        }
15497
        break;
15498
 
15499
      }
15500
    }
15501
 
15502
    public Object getFieldValue(_Fields field) {
15503
      switch (field) {
15504
      case HSE:
15505
        return getHse();
15506
 
15507
      }
15508
      throw new IllegalStateException();
15509
    }
15510
 
15511
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15512
    public boolean isSet(_Fields field) {
15513
      if (field == null) {
15514
        throw new IllegalArgumentException();
15515
      }
15516
 
15517
      switch (field) {
15518
      case HSE:
15519
        return isSetHse();
15520
      }
15521
      throw new IllegalStateException();
15522
    }
15523
 
15524
    @Override
15525
    public boolean equals(Object that) {
15526
      if (that == null)
15527
        return false;
15528
      if (that instanceof shareEntities_result)
15529
        return this.equals((shareEntities_result)that);
15530
      return false;
15531
    }
15532
 
15533
    public boolean equals(shareEntities_result that) {
15534
      if (that == null)
15535
        return false;
15536
 
15537
      boolean this_present_hse = true && this.isSetHse();
15538
      boolean that_present_hse = true && that.isSetHse();
15539
      if (this_present_hse || that_present_hse) {
15540
        if (!(this_present_hse && that_present_hse))
15541
          return false;
15542
        if (!this.hse.equals(that.hse))
15543
          return false;
15544
      }
15545
 
15546
      return true;
15547
    }
15548
 
15549
    @Override
15550
    public int hashCode() {
15551
      return 0;
15552
    }
15553
 
15554
    public int compareTo(shareEntities_result other) {
15555
      if (!getClass().equals(other.getClass())) {
15556
        return getClass().getName().compareTo(other.getClass().getName());
15557
      }
15558
 
15559
      int lastComparison = 0;
15560
      shareEntities_result typedOther = (shareEntities_result)other;
15561
 
15562
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
15563
      if (lastComparison != 0) {
15564
        return lastComparison;
15565
      }
15566
      if (isSetHse()) {
15567
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15568
        if (lastComparison != 0) {
15569
          return lastComparison;
15570
        }
15571
      }
15572
      return 0;
15573
    }
15574
 
15575
    public _Fields fieldForId(int fieldId) {
15576
      return _Fields.findByThriftId(fieldId);
15577
    }
15578
 
15579
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15580
      org.apache.thrift.protocol.TField field;
15581
      iprot.readStructBegin();
15582
      while (true)
15583
      {
15584
        field = iprot.readFieldBegin();
15585
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
15586
          break;
15587
        }
15588
        switch (field.id) {
15589
          case 1: // HSE
15590
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15591
              this.hse = new HelperServiceException();
15592
              this.hse.read(iprot);
15593
            } else { 
15594
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15595
            }
15596
            break;
15597
          default:
15598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15599
        }
15600
        iprot.readFieldEnd();
15601
      }
15602
      iprot.readStructEnd();
15603
      validate();
15604
    }
15605
 
15606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
15607
      oprot.writeStructBegin(STRUCT_DESC);
15608
 
15609
      if (this.isSetHse()) {
15610
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15611
        this.hse.write(oprot);
15612
        oprot.writeFieldEnd();
15613
      }
15614
      oprot.writeFieldStop();
15615
      oprot.writeStructEnd();
15616
    }
15617
 
15618
    @Override
15619
    public String toString() {
15620
      StringBuilder sb = new StringBuilder("shareEntities_result(");
15621
      boolean first = true;
15622
 
15623
      sb.append("hse:");
15624
      if (this.hse == null) {
15625
        sb.append("null");
15626
      } else {
15627
        sb.append(this.hse);
15628
      }
15629
      first = false;
15630
      sb.append(")");
15631
      return sb.toString();
15632
    }
15633
 
15634
    public void validate() throws org.apache.thrift.TException {
15635
      // check for required fields
15636
    }
15637
 
15638
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15639
      try {
15640
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15641
      } catch (org.apache.thrift.TException te) {
15642
        throw new java.io.IOException(te);
15643
      }
15644
    }
15645
 
15646
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15647
      try {
15648
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15649
      } catch (org.apache.thrift.TException te) {
15650
        throw new java.io.IOException(te);
15651
      }
15652
    }
15653
 
15654
  }
15655
 
352 ashish 15656
}