Subversion Repositories SmartDukaan

Rev

Rev 6322 | Rev 7221 | 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
5864 rajveer 36
     * @param cc
37
     * @param bcc
2779 chandransh 38
     */
5864 rajveer 39
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 40
 
2779 chandransh 41
    /**
42
     * Retreives all the emails pending for dispatch
43
     */
3430 rajveer 44
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 45
 
2779 chandransh 46
    /**
47
     * Marks email as sent after successful dispatch
48
     * 
49
     * @param emailId
50
     */
3430 rajveer 51
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 52
 
3430 rajveer 53
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 64
 
3430 rajveer 65
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
3430 rajveer 67
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 68
 
750 chandransh 69
    /**
2443 chandransh 70
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
71
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 72
     * 
73
     * @param username
74
     * @param password
75
     */
3430 rajveer 76
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 77
 
2443 chandransh 78
    /**
79
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
80
     * 
81
     * @param username
82
     * @param oldPassword
83
     * @param newPassword
84
     */
3430 rajveer 85
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 86
 
750 chandransh 87
    /**
88
     * Returns the LogisticsUser struct associated with the given username and password if they match.
89
     * Throws an exception otherwise.
90
     * 
91
     * @param username
92
     * @param password
93
     */
3430 rajveer 94
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 95
 
1611 ankur.sing 96
    /**
97
     * Returns the StatisticsUser struct associated with the given username and password if they match.
98
     * Throws an exception otherwise.
99
     * 
100
     * @param username
101
     * @param password
102
     */
3430 rajveer 103
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 104
 
1891 ankur.sing 105
    /**
106
     * Returns the ReportUser struct associated with the given username and password if they match.
107
     * Throws an exception otherwise.
108
     * 
109
     * @param username
110
     * @param password
111
     */
3430 rajveer 112
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 113
 
114
    /**
115
     * Returns list of reports which are configured for the given role.
116
     * 
117
     * @param role
118
     */
3430 rajveer 119
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 120
 
2024 ankur.sing 121
    /**
2357 ankur.sing 122
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 123
     * Throws an exception otherwise.
124
     * 
125
     * @param username
126
     * @param password
127
     */
6788 rajveer 128
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 129
 
4544 varun.gupt 130
    /**
131
     * Saves the list of entity Ids to be shared with an email address
132
     * 
133
     * @param entityIds
134
     * @param email
135
     */
136
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
137
 
4693 mandeep.dh 138
    public List<Agent> getAgents() throws org.apache.thrift.TException;
139
 
140
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
141
 
142
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
143
 
144
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
145
 
146
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
147
 
4806 varun.gupt 148
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
149
 
150
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
151
 
4996 varun.gupt 152
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
153
 
5055 varun.gupt 154
    /**
155
     * Returns a list of emails to which product notifications have been sent in a given date range
156
     * 
157
     * @param startDatetime
158
     * @param endDatetime
159
     */
160
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
161
 
6322 amar.kumar 162
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
163
 
352 ashish 164
  }
165
 
3430 rajveer 166
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
167
 
5864 rajveer 168
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 169
 
170
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
171
 
172
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
173
 
174
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
175
 
176
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
177
 
178
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
179
 
180
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
181
 
182
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
183
 
184
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
185
 
186
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
187
 
188
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
189
 
190
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
191
 
192
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
193
 
194
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
195
 
196
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
197
 
198
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
199
 
200
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
201
 
6788 rajveer 202
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 203
 
4544 varun.gupt 204
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
205
 
4693 mandeep.dh 206
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
207
 
208
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
209
 
210
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
211
 
212
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
213
 
214
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
215
 
4806 varun.gupt 216
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
217
 
218
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
219
 
4996 varun.gupt 220
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
221
 
5055 varun.gupt 222
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
223
 
6322 amar.kumar 224
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
225
 
3430 rajveer 226
  }
227
 
3374 rajveer 228
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 229
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
230
      public Factory() {}
231
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
232
        return new Client(prot);
233
      }
234
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
235
        return new Client(iprot, oprot);
236
      }
237
    }
238
 
239
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 240
    {
3430 rajveer 241
      super(prot, prot);
352 ashish 242
    }
243
 
3430 rajveer 244
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 245
      super(iprot, oprot);
352 ashish 246
    }
247
 
5864 rajveer 248
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 249
    {
5864 rajveer 250
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
3206 mandeep.dh 251
      return recv_saveUserEmailForSending();
1395 varun.gupt 252
    }
253
 
5864 rajveer 254
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws org.apache.thrift.TException
1395 varun.gupt 255
    {
256
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 257
      args.setEmailTo(emailTo);
258
      args.setEmailFrom(emailFrom);
259
      args.setSubject(subject);
260
      args.setBody(body);
261
      args.setSource(source);
262
      args.setEmailType(emailType);
5864 rajveer 263
      args.setCc(cc);
264
      args.setBcc(bcc);
3430 rajveer 265
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 266
    }
267
 
3430 rajveer 268
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 269
    {
270
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 271
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 272
      if (result.isSetSuccess()) {
273
        return result.success;
274
      }
1395 varun.gupt 275
      if (result.se != null) {
276
        throw result.se;
277
      }
3430 rajveer 278
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 279
    }
280
 
3430 rajveer 281
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 282
    {
3086 rajveer 283
      send_getEmailsToBeSent();
1422 varun.gupt 284
      return recv_getEmailsToBeSent();
285
    }
286
 
3430 rajveer 287
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 288
    {
289
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 290
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 291
    }
292
 
3430 rajveer 293
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 294
    {
295
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 296
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 297
      if (result.isSetSuccess()) {
298
        return result.success;
299
      }
300
      if (result.se != null) {
301
        throw result.se;
302
      }
3430 rajveer 303
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 304
    }
305
 
3430 rajveer 306
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 307
    {
308
      send_markEmailAsSent(emailId);
309
      recv_markEmailAsSent();
310
    }
311
 
3430 rajveer 312
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 313
    {
314
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 315
      args.setEmailId(emailId);
316
      sendBase("markEmailAsSent", args);
1422 varun.gupt 317
    }
318
 
3430 rajveer 319
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 320
    {
321
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 322
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 323
      if (result.se != null) {
324
        throw result.se;
325
      }
326
      return;
327
    }
328
 
3430 rajveer 329
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 330
    {
331
      send_sendMail(mail);
332
      recv_sendMail();
333
    }
334
 
3430 rajveer 335
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 336
    {
337
      sendMail_args args = new sendMail_args();
3430 rajveer 338
      args.setMail(mail);
339
      sendBase("sendMail", args);
352 ashish 340
    }
341
 
3430 rajveer 342
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 343
    {
344
      sendMail_result result = new sendMail_result();
3430 rajveer 345
      receiveBase(result, "sendMail");
352 ashish 346
      if (result.se != null) {
347
        throw result.se;
348
      }
349
      return;
350
    }
351
 
3430 rajveer 352
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 353
    {
354
      send_sendText(message);
355
      recv_sendText();
356
    }
357
 
3430 rajveer 358
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 359
    {
360
      sendText_args args = new sendText_args();
3430 rajveer 361
      args.setMessage(message);
362
      sendBase("sendText", args);
352 ashish 363
    }
364
 
3430 rajveer 365
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 366
    {
367
      sendText_result result = new sendText_result();
3430 rajveer 368
      receiveBase(result, "sendText");
352 ashish 369
      if (result.se != null) {
370
        throw result.se;
371
      }
372
      return;
373
    }
374
 
3430 rajveer 375
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 376
    {
377
      send_addMessage(message);
378
      recv_addMessage();
379
    }
380
 
3430 rajveer 381
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 382
    {
383
      addMessage_args args = new addMessage_args();
3430 rajveer 384
      args.setMessage(message);
385
      sendBase("addMessage", args);
352 ashish 386
    }
387
 
3430 rajveer 388
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 389
    {
390
      addMessage_result result = new addMessage_result();
3430 rajveer 391
      receiveBase(result, "addMessage");
352 ashish 392
      if (result.se != null) {
393
        throw result.se;
394
      }
395
      return;
396
    }
397
 
3430 rajveer 398
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 399
    {
400
      send_updateMessage(id, message);
401
      recv_updateMessage();
402
    }
403
 
3430 rajveer 404
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 405
    {
406
      updateMessage_args args = new updateMessage_args();
3430 rajveer 407
      args.setId(id);
408
      args.setMessage(message);
409
      sendBase("updateMessage", args);
352 ashish 410
    }
411
 
3430 rajveer 412
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 413
    {
414
      updateMessage_result result = new updateMessage_result();
3430 rajveer 415
      receiveBase(result, "updateMessage");
352 ashish 416
      if (result.se != null) {
417
        throw result.se;
418
      }
419
      return;
420
    }
421
 
3430 rajveer 422
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 423
    {
424
      send_getMessage(id);
425
      return recv_getMessage();
426
    }
427
 
3430 rajveer 428
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 429
    {
430
      getMessage_args args = new getMessage_args();
3430 rajveer 431
      args.setId(id);
432
      sendBase("getMessage", args);
352 ashish 433
    }
434
 
3430 rajveer 435
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 436
    {
437
      getMessage_result result = new getMessage_result();
3430 rajveer 438
      receiveBase(result, "getMessage");
352 ashish 439
      if (result.isSetSuccess()) {
440
        return result.success;
441
      }
442
      if (result.se != null) {
443
        throw result.se;
444
      }
3430 rajveer 445
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 446
    }
447
 
3430 rajveer 448
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 449
    {
450
      send_getSubstitutedMessage(id, params);
451
      return recv_getSubstitutedMessage();
452
    }
453
 
3430 rajveer 454
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 455
    {
456
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 457
      args.setId(id);
458
      args.setParams(params);
459
      sendBase("getSubstitutedMessage", args);
352 ashish 460
    }
461
 
3430 rajveer 462
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 463
    {
464
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 465
      receiveBase(result, "getSubstitutedMessage");
352 ashish 466
      if (result.isSetSuccess()) {
467
        return result.success;
468
      }
469
      if (result.se != null) {
470
        throw result.se;
471
      }
3430 rajveer 472
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 473
    }
474
 
3430 rajveer 475
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 476
    {
477
      send_addUser(username, password, warehouseId);
478
      return recv_addUser();
479
    }
480
 
3430 rajveer 481
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 482
    {
483
      addUser_args args = new addUser_args();
3430 rajveer 484
      args.setUsername(username);
485
      args.setPassword(password);
486
      args.setWarehouseId(warehouseId);
487
      sendBase("addUser", args);
495 rajveer 488
    }
489
 
3430 rajveer 490
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 491
    {
492
      addUser_result result = new addUser_result();
3430 rajveer 493
      receiveBase(result, "addUser");
495 rajveer 494
      if (result.isSetSuccess()) {
495
        return result.success;
496
      }
497
      if (result.se != null) {
498
        throw result.se;
499
      }
3430 rajveer 500
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 501
    }
502
 
3430 rajveer 503
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 504
    {
505
      send_deleteUser(username);
506
      return recv_deleteUser();
507
    }
508
 
3430 rajveer 509
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 510
    {
511
      deleteUser_args args = new deleteUser_args();
3430 rajveer 512
      args.setUsername(username);
513
      sendBase("deleteUser", args);
495 rajveer 514
    }
515
 
3430 rajveer 516
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 517
    {
518
      deleteUser_result result = new deleteUser_result();
3430 rajveer 519
      receiveBase(result, "deleteUser");
495 rajveer 520
      if (result.isSetSuccess()) {
521
        return result.success;
522
      }
523
      if (result.se != null) {
524
        throw result.se;
525
      }
3430 rajveer 526
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 527
    }
528
 
3430 rajveer 529
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 530
    {
2443 chandransh 531
      send_authenticateDashboardUser(username, password);
532
      return recv_authenticateDashboardUser();
495 rajveer 533
    }
534
 
3430 rajveer 535
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 536
    {
2443 chandransh 537
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 538
      args.setUsername(username);
539
      args.setPassword(password);
540
      sendBase("authenticateDashboardUser", args);
495 rajveer 541
    }
542
 
3430 rajveer 543
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 544
    {
2443 chandransh 545
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 546
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 547
      if (result.isSetSuccess()) {
548
        return result.success;
549
      }
550
      if (result.se != null) {
551
        throw result.se;
552
      }
3430 rajveer 553
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 554
    }
555
 
3430 rajveer 556
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 557
    {
558
      send_updatePassword(username, oldPassword, newPassword);
559
      return recv_updatePassword();
560
    }
561
 
3430 rajveer 562
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 563
    {
564
      updatePassword_args args = new updatePassword_args();
3430 rajveer 565
      args.setUsername(username);
566
      args.setOldPassword(oldPassword);
567
      args.setNewPassword(newPassword);
568
      sendBase("updatePassword", args);
495 rajveer 569
    }
570
 
3430 rajveer 571
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 572
    {
573
      updatePassword_result result = new updatePassword_result();
3430 rajveer 574
      receiveBase(result, "updatePassword");
495 rajveer 575
      if (result.isSetSuccess()) {
576
        return result.success;
577
      }
578
      if (result.se != null) {
579
        throw result.se;
580
      }
3430 rajveer 581
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 582
    }
583
 
3430 rajveer 584
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 585
    {
586
      send_authenticateLogisticsUser(username, password);
587
      return recv_authenticateLogisticsUser();
588
    }
589
 
3430 rajveer 590
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 591
    {
592
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 593
      args.setUsername(username);
594
      args.setPassword(password);
595
      sendBase("authenticateLogisticsUser", args);
750 chandransh 596
    }
597
 
3430 rajveer 598
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 599
    {
600
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 601
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 602
      if (result.isSetSuccess()) {
603
        return result.success;
604
      }
605
      if (result.hse != null) {
606
        throw result.hse;
607
      }
3430 rajveer 608
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 609
    }
610
 
3430 rajveer 611
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 612
    {
613
      send_authenticateStatisticsUser(username, password);
614
      return recv_authenticateStatisticsUser();
615
    }
616
 
3430 rajveer 617
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 618
    {
619
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 620
      args.setUsername(username);
621
      args.setPassword(password);
622
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 623
    }
624
 
3430 rajveer 625
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 626
    {
627
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 628
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 629
      if (result.isSetSuccess()) {
630
        return result.success;
631
      }
632
      if (result.hse != null) {
633
        throw result.hse;
634
      }
3430 rajveer 635
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 636
    }
637
 
3430 rajveer 638
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 639
    {
640
      send_authenticateReportUser(username, password);
641
      return recv_authenticateReportUser();
642
    }
643
 
3430 rajveer 644
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 645
    {
646
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 647
      args.setUsername(username);
648
      args.setPassword(password);
649
      sendBase("authenticateReportUser", args);
1891 ankur.sing 650
    }
651
 
3430 rajveer 652
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 653
    {
654
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 655
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 656
      if (result.isSetSuccess()) {
657
        return result.success;
658
      }
659
      if (result.hse != null) {
660
        throw result.hse;
661
      }
3430 rajveer 662
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 663
    }
664
 
3430 rajveer 665
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 666
    {
667
      send_getReports(role);
668
      return recv_getReports();
669
    }
670
 
3430 rajveer 671
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 672
    {
673
      getReports_args args = new getReports_args();
3430 rajveer 674
      args.setRole(role);
675
      sendBase("getReports", args);
1891 ankur.sing 676
    }
677
 
3430 rajveer 678
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 679
    {
680
      getReports_result result = new getReports_result();
3430 rajveer 681
      receiveBase(result, "getReports");
1891 ankur.sing 682
      if (result.isSetSuccess()) {
683
        return result.success;
684
      }
3430 rajveer 685
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 686
    }
687
 
6788 rajveer 688
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 689
    {
6788 rajveer 690
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 691
      return recv_authenticateCatalogUser();
692
    }
693
 
6788 rajveer 694
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 695
    {
696
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 697
      args.setUsername(username);
698
      args.setPassword(password);
699
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 700
    }
701
 
3430 rajveer 702
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 703
    {
704
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 705
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 706
      if (result.isSetSuccess()) {
707
        return result.success;
708
      }
709
      if (result.hse != null) {
710
        throw result.hse;
711
      }
3430 rajveer 712
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 713
    }
714
 
4544 varun.gupt 715
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
716
    {
717
      send_shareEntities(entityIds, email);
718
      recv_shareEntities();
719
    }
720
 
721
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
722
    {
723
      shareEntities_args args = new shareEntities_args();
724
      args.setEntityIds(entityIds);
725
      args.setEmail(email);
726
      sendBase("shareEntities", args);
727
    }
728
 
729
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
730
    {
731
      shareEntities_result result = new shareEntities_result();
732
      receiveBase(result, "shareEntities");
733
      if (result.hse != null) {
734
        throw result.hse;
735
      }
736
      return;
737
    }
738
 
4693 mandeep.dh 739
    public List<Agent> getAgents() throws org.apache.thrift.TException
740
    {
741
      send_getAgents();
742
      return recv_getAgents();
743
    }
744
 
745
    public void send_getAgents() throws org.apache.thrift.TException
746
    {
747
      getAgents_args args = new getAgents_args();
748
      sendBase("getAgents", args);
749
    }
750
 
751
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
752
    {
753
      getAgents_result result = new getAgents_result();
754
      receiveBase(result, "getAgents");
755
      if (result.isSetSuccess()) {
756
        return result.success;
757
      }
758
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
759
    }
760
 
761
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
762
    {
763
      send_validateLogIn(emailId, password);
764
      return recv_validateLogIn();
765
    }
766
 
767
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
768
    {
769
      validateLogIn_args args = new validateLogIn_args();
770
      args.setEmailId(emailId);
771
      args.setPassword(password);
772
      sendBase("validateLogIn", args);
773
    }
774
 
775
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
776
    {
777
      validateLogIn_result result = new validateLogIn_result();
778
      receiveBase(result, "validateLogIn");
779
      if (result.isSetSuccess()) {
780
        return result.success;
781
      }
782
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
783
    }
784
 
785
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
786
    {
787
      send_updatePasswordForAgent(agentEmailId, password);
788
      recv_updatePasswordForAgent();
789
    }
790
 
791
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
792
    {
793
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
794
      args.setAgentEmailId(agentEmailId);
795
      args.setPassword(password);
796
      sendBase("updatePasswordForAgent", args);
797
    }
798
 
799
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
800
    {
801
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
802
      receiveBase(result, "updatePasswordForAgent");
803
      return;
804
    }
805
 
806
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
807
    {
808
      send_getRoleNamesForAgent(agentEmailId);
809
      return recv_getRoleNamesForAgent();
810
    }
811
 
812
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
813
    {
814
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
815
      args.setAgentEmailId(agentEmailId);
816
      sendBase("getRoleNamesForAgent", args);
817
    }
818
 
819
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
820
    {
821
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
822
      receiveBase(result, "getRoleNamesForAgent");
823
      if (result.isSetSuccess()) {
824
        return result.success;
825
      }
826
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
827
    }
828
 
829
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
830
    {
831
      send_getPermissionsForRoleName(roleName);
832
      return recv_getPermissionsForRoleName();
833
    }
834
 
835
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
836
    {
837
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
838
      args.setRoleName(roleName);
839
      sendBase("getPermissionsForRoleName", args);
840
    }
841
 
842
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
843
    {
844
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
845
      receiveBase(result, "getPermissionsForRoleName");
846
      if (result.isSetSuccess()) {
847
        return result.success;
848
      }
849
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
850
    }
851
 
4806 varun.gupt 852
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
853
    {
854
      send_saveQuickLink(url, text);
855
      recv_saveQuickLink();
856
    }
857
 
858
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
859
    {
860
      saveQuickLink_args args = new saveQuickLink_args();
861
      args.setUrl(url);
862
      args.setText(text);
863
      sendBase("saveQuickLink", args);
864
    }
865
 
866
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
867
    {
868
      saveQuickLink_result result = new saveQuickLink_result();
869
      receiveBase(result, "saveQuickLink");
870
      if (result.hse != null) {
871
        throw result.hse;
872
      }
873
      return;
874
    }
875
 
876
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
877
    {
878
      send_getQuickLinks();
879
      return recv_getQuickLinks();
880
    }
881
 
882
    public void send_getQuickLinks() throws org.apache.thrift.TException
883
    {
884
      getQuickLinks_args args = new getQuickLinks_args();
885
      sendBase("getQuickLinks", args);
886
    }
887
 
888
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
889
    {
890
      getQuickLinks_result result = new getQuickLinks_result();
891
      receiveBase(result, "getQuickLinks");
892
      if (result.isSetSuccess()) {
893
        return result.success;
894
      }
895
      if (result.hse != null) {
896
        throw result.hse;
897
      }
898
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
899
    }
900
 
4996 varun.gupt 901
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
902
    {
903
      send_updateQuickLink(id, url, text);
904
      recv_updateQuickLink();
905
    }
906
 
907
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
908
    {
909
      updateQuickLink_args args = new updateQuickLink_args();
910
      args.setId(id);
911
      args.setUrl(url);
912
      args.setText(text);
913
      sendBase("updateQuickLink", args);
914
    }
915
 
916
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
917
    {
918
      updateQuickLink_result result = new updateQuickLink_result();
919
      receiveBase(result, "updateQuickLink");
920
      if (result.hse != null) {
921
        throw result.hse;
922
      }
923
      return;
924
    }
925
 
5055 varun.gupt 926
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
927
    {
928
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
929
      return recv_getEmailsForNotificationsSent();
930
    }
931
 
932
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
933
    {
934
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
935
      args.setStartDatetime(startDatetime);
936
      args.setEndDatetime(endDatetime);
937
      sendBase("getEmailsForNotificationsSent", args);
938
    }
939
 
940
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
941
    {
942
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
943
      receiveBase(result, "getEmailsForNotificationsSent");
944
      if (result.isSetSuccess()) {
945
        return result.success;
946
      }
947
      if (result.hse != null) {
948
        throw result.hse;
949
      }
950
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
951
    }
952
 
6322 amar.kumar 953
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
954
    {
955
      send_getOrderConfirmationMail(orderId);
956
      return recv_getOrderConfirmationMail();
957
    }
958
 
959
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
960
    {
961
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
962
      args.setOrderId(orderId);
963
      sendBase("getOrderConfirmationMail", args);
964
    }
965
 
966
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
967
    {
968
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
969
      receiveBase(result, "getOrderConfirmationMail");
970
      if (result.isSetSuccess()) {
971
        return result.success;
972
      }
973
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
974
    }
975
 
352 ashish 976
  }
3430 rajveer 977
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
978
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
979
      private org.apache.thrift.async.TAsyncClientManager clientManager;
980
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
981
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
982
        this.clientManager = clientManager;
983
        this.protocolFactory = protocolFactory;
984
      }
985
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
986
        return new AsyncClient(protocolFactory, clientManager, transport);
987
      }
352 ashish 988
    }
989
 
3430 rajveer 990
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
991
      super(protocolFactory, clientManager, transport);
992
    }
352 ashish 993
 
5864 rajveer 994
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 995
      checkReady();
5864 rajveer 996
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 997
      this.___currentMethod = method_call;
998
      ___manager.call(method_call);
999
    }
1000
 
1001
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1002
      private List<String> emailTo;
3430 rajveer 1003
      private String emailFrom;
1004
      private String subject;
1005
      private String body;
1006
      private String source;
1007
      private String emailType;
5864 rajveer 1008
      private List<String> cc;
1009
      private List<String> bcc;
1010
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, 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 {
3430 rajveer 1011
        super(client, protocolFactory, transport, resultHandler, false);
1012
        this.emailTo = emailTo;
1013
        this.emailFrom = emailFrom;
1014
        this.subject = subject;
1015
        this.body = body;
1016
        this.source = source;
1017
        this.emailType = emailType;
5864 rajveer 1018
        this.cc = cc;
1019
        this.bcc = bcc;
352 ashish 1020
      }
3430 rajveer 1021
 
1022
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1023
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1024
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1025
        args.setEmailTo(emailTo);
1026
        args.setEmailFrom(emailFrom);
1027
        args.setSubject(subject);
1028
        args.setBody(body);
1029
        args.setSource(source);
1030
        args.setEmailType(emailType);
5864 rajveer 1031
        args.setCc(cc);
1032
        args.setBcc(bcc);
3430 rajveer 1033
        args.write(prot);
1034
        prot.writeMessageEnd();
1035
      }
1036
 
1037
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1039
          throw new IllegalStateException("Method call not finished!");
1040
        }
1041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1043
        return (new Client(prot)).recv_saveUserEmailForSending();
1044
      }
352 ashish 1045
    }
1046
 
3430 rajveer 1047
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1048
      checkReady();
1049
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1050
      this.___currentMethod = method_call;
1051
      ___manager.call(method_call);
1052
    }
1053
 
1054
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1055
      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 {
1056
        super(client, protocolFactory, transport, resultHandler, false);
1057
      }
1058
 
1059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1061
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1062
        args.write(prot);
1063
        prot.writeMessageEnd();
1064
      }
1065
 
1066
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1067
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1068
          throw new IllegalStateException("Method call not finished!");
1069
        }
1070
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1071
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1072
        return (new Client(prot)).recv_getEmailsToBeSent();
1073
      }
1074
    }
1075
 
1076
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1077
      checkReady();
1078
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1079
      this.___currentMethod = method_call;
1080
      ___manager.call(method_call);
1081
    }
1082
 
1083
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1084
      private long emailId;
1085
      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 {
1086
        super(client, protocolFactory, transport, resultHandler, false);
1087
        this.emailId = emailId;
1088
      }
1089
 
1090
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1091
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1092
        markEmailAsSent_args args = new markEmailAsSent_args();
1093
        args.setEmailId(emailId);
1094
        args.write(prot);
1095
        prot.writeMessageEnd();
1096
      }
1097
 
1098
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1099
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1100
          throw new IllegalStateException("Method call not finished!");
1101
        }
1102
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1103
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1104
        (new Client(prot)).recv_markEmailAsSent();
1105
      }
1106
    }
1107
 
1108
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1109
      checkReady();
1110
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1111
      this.___currentMethod = method_call;
1112
      ___manager.call(method_call);
1113
    }
1114
 
1115
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1116
      private Mail mail;
1117
      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 {
1118
        super(client, protocolFactory, transport, resultHandler, false);
1119
        this.mail = mail;
1120
      }
1121
 
1122
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1123
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1124
        sendMail_args args = new sendMail_args();
1125
        args.setMail(mail);
1126
        args.write(prot);
1127
        prot.writeMessageEnd();
1128
      }
1129
 
1130
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1131
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1132
          throw new IllegalStateException("Method call not finished!");
1133
        }
1134
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1135
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1136
        (new Client(prot)).recv_sendMail();
1137
      }
1138
    }
1139
 
1140
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1141
      checkReady();
1142
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1143
      this.___currentMethod = method_call;
1144
      ___manager.call(method_call);
1145
    }
1146
 
1147
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1148
      private TextMessage message;
1149
      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 {
1150
        super(client, protocolFactory, transport, resultHandler, false);
1151
        this.message = message;
1152
      }
1153
 
1154
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1155
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1156
        sendText_args args = new sendText_args();
1157
        args.setMessage(message);
1158
        args.write(prot);
1159
        prot.writeMessageEnd();
1160
      }
1161
 
1162
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1163
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1164
          throw new IllegalStateException("Method call not finished!");
1165
        }
1166
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1167
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1168
        (new Client(prot)).recv_sendText();
1169
      }
1170
    }
1171
 
1172
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1173
      checkReady();
1174
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1175
      this.___currentMethod = method_call;
1176
      ___manager.call(method_call);
1177
    }
1178
 
1179
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1180
      private Message message;
1181
      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 {
1182
        super(client, protocolFactory, transport, resultHandler, false);
1183
        this.message = message;
1184
      }
1185
 
1186
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1187
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1188
        addMessage_args args = new addMessage_args();
1189
        args.setMessage(message);
1190
        args.write(prot);
1191
        prot.writeMessageEnd();
1192
      }
1193
 
1194
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1195
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1196
          throw new IllegalStateException("Method call not finished!");
1197
        }
1198
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1199
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1200
        (new Client(prot)).recv_addMessage();
1201
      }
1202
    }
1203
 
1204
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1205
      checkReady();
1206
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1207
      this.___currentMethod = method_call;
1208
      ___manager.call(method_call);
1209
    }
1210
 
1211
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1212
      private long id;
1213
      private String message;
1214
      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 {
1215
        super(client, protocolFactory, transport, resultHandler, false);
1216
        this.id = id;
1217
        this.message = message;
1218
      }
1219
 
1220
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1221
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1222
        updateMessage_args args = new updateMessage_args();
1223
        args.setId(id);
1224
        args.setMessage(message);
1225
        args.write(prot);
1226
        prot.writeMessageEnd();
1227
      }
1228
 
1229
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1230
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1231
          throw new IllegalStateException("Method call not finished!");
1232
        }
1233
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1234
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1235
        (new Client(prot)).recv_updateMessage();
1236
      }
1237
    }
1238
 
1239
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1240
      checkReady();
1241
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1242
      this.___currentMethod = method_call;
1243
      ___manager.call(method_call);
1244
    }
1245
 
1246
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1247
      private long id;
1248
      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 {
1249
        super(client, protocolFactory, transport, resultHandler, false);
1250
        this.id = id;
1251
      }
1252
 
1253
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1254
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1255
        getMessage_args args = new getMessage_args();
1256
        args.setId(id);
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getMessage();
1268
      }
1269
    }
1270
 
1271
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private long id;
1280
      private Map<String,String> params;
1281
      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 {
1282
        super(client, protocolFactory, transport, resultHandler, false);
1283
        this.id = id;
1284
        this.params = params;
1285
      }
1286
 
1287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1289
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1290
        args.setId(id);
1291
        args.setParams(params);
1292
        args.write(prot);
1293
        prot.writeMessageEnd();
1294
      }
1295
 
1296
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1297
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1298
          throw new IllegalStateException("Method call not finished!");
1299
        }
1300
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1301
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1302
        return (new Client(prot)).recv_getSubstitutedMessage();
1303
      }
1304
    }
1305
 
1306
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1307
      checkReady();
1308
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1309
      this.___currentMethod = method_call;
1310
      ___manager.call(method_call);
1311
    }
1312
 
1313
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1314
      private String username;
1315
      private String password;
1316
      private long warehouseId;
1317
      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 {
1318
        super(client, protocolFactory, transport, resultHandler, false);
1319
        this.username = username;
1320
        this.password = password;
1321
        this.warehouseId = warehouseId;
1322
      }
1323
 
1324
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1325
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1326
        addUser_args args = new addUser_args();
1327
        args.setUsername(username);
1328
        args.setPassword(password);
1329
        args.setWarehouseId(warehouseId);
1330
        args.write(prot);
1331
        prot.writeMessageEnd();
1332
      }
1333
 
1334
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1335
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1336
          throw new IllegalStateException("Method call not finished!");
1337
        }
1338
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1339
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1340
        return (new Client(prot)).recv_addUser();
1341
      }
1342
    }
1343
 
1344
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1345
      checkReady();
1346
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1347
      this.___currentMethod = method_call;
1348
      ___manager.call(method_call);
1349
    }
1350
 
1351
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1352
      private String username;
1353
      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 {
1354
        super(client, protocolFactory, transport, resultHandler, false);
1355
        this.username = username;
1356
      }
1357
 
1358
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1359
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1360
        deleteUser_args args = new deleteUser_args();
1361
        args.setUsername(username);
1362
        args.write(prot);
1363
        prot.writeMessageEnd();
1364
      }
1365
 
1366
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1367
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1368
          throw new IllegalStateException("Method call not finished!");
1369
        }
1370
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1371
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1372
        return (new Client(prot)).recv_deleteUser();
1373
      }
1374
    }
1375
 
1376
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1377
      checkReady();
1378
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1379
      this.___currentMethod = method_call;
1380
      ___manager.call(method_call);
1381
    }
1382
 
1383
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1384
      private String username;
1385
      private String password;
1386
      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 {
1387
        super(client, protocolFactory, transport, resultHandler, false);
1388
        this.username = username;
1389
        this.password = password;
1390
      }
1391
 
1392
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1393
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1394
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1395
        args.setUsername(username);
1396
        args.setPassword(password);
1397
        args.write(prot);
1398
        prot.writeMessageEnd();
1399
      }
1400
 
1401
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1402
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1403
          throw new IllegalStateException("Method call not finished!");
1404
        }
1405
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1406
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1407
        return (new Client(prot)).recv_authenticateDashboardUser();
1408
      }
1409
    }
1410
 
1411
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1412
      checkReady();
1413
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1414
      this.___currentMethod = method_call;
1415
      ___manager.call(method_call);
1416
    }
1417
 
1418
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1419
      private String username;
1420
      private String oldPassword;
1421
      private String newPassword;
1422
      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 {
1423
        super(client, protocolFactory, transport, resultHandler, false);
1424
        this.username = username;
1425
        this.oldPassword = oldPassword;
1426
        this.newPassword = newPassword;
1427
      }
1428
 
1429
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1430
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1431
        updatePassword_args args = new updatePassword_args();
1432
        args.setUsername(username);
1433
        args.setOldPassword(oldPassword);
1434
        args.setNewPassword(newPassword);
1435
        args.write(prot);
1436
        prot.writeMessageEnd();
1437
      }
1438
 
1439
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1440
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1441
          throw new IllegalStateException("Method call not finished!");
1442
        }
1443
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1444
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1445
        return (new Client(prot)).recv_updatePassword();
1446
      }
1447
    }
1448
 
1449
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1450
      checkReady();
1451
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1452
      this.___currentMethod = method_call;
1453
      ___manager.call(method_call);
1454
    }
1455
 
1456
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1457
      private String username;
1458
      private String password;
1459
      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 {
1460
        super(client, protocolFactory, transport, resultHandler, false);
1461
        this.username = username;
1462
        this.password = password;
1463
      }
1464
 
1465
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1466
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1467
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1468
        args.setUsername(username);
1469
        args.setPassword(password);
1470
        args.write(prot);
1471
        prot.writeMessageEnd();
1472
      }
1473
 
1474
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1475
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1476
          throw new IllegalStateException("Method call not finished!");
1477
        }
1478
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1479
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1480
        return (new Client(prot)).recv_authenticateLogisticsUser();
1481
      }
1482
    }
1483
 
1484
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1485
      checkReady();
1486
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1487
      this.___currentMethod = method_call;
1488
      ___manager.call(method_call);
1489
    }
1490
 
1491
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1492
      private String username;
1493
      private String password;
1494
      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 {
1495
        super(client, protocolFactory, transport, resultHandler, false);
1496
        this.username = username;
1497
        this.password = password;
1498
      }
1499
 
1500
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1501
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1502
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1503
        args.setUsername(username);
1504
        args.setPassword(password);
1505
        args.write(prot);
1506
        prot.writeMessageEnd();
1507
      }
1508
 
1509
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1510
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1511
          throw new IllegalStateException("Method call not finished!");
1512
        }
1513
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1514
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1515
        return (new Client(prot)).recv_authenticateStatisticsUser();
1516
      }
1517
    }
1518
 
1519
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1520
      checkReady();
1521
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1522
      this.___currentMethod = method_call;
1523
      ___manager.call(method_call);
1524
    }
1525
 
1526
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1527
      private String username;
1528
      private String password;
1529
      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 {
1530
        super(client, protocolFactory, transport, resultHandler, false);
1531
        this.username = username;
1532
        this.password = password;
1533
      }
1534
 
1535
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1536
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1537
        authenticateReportUser_args args = new authenticateReportUser_args();
1538
        args.setUsername(username);
1539
        args.setPassword(password);
1540
        args.write(prot);
1541
        prot.writeMessageEnd();
1542
      }
1543
 
1544
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1545
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1546
          throw new IllegalStateException("Method call not finished!");
1547
        }
1548
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1549
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1550
        return (new Client(prot)).recv_authenticateReportUser();
1551
      }
1552
    }
1553
 
1554
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1555
      checkReady();
1556
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1557
      this.___currentMethod = method_call;
1558
      ___manager.call(method_call);
1559
    }
1560
 
1561
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1562
      private long role;
1563
      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 {
1564
        super(client, protocolFactory, transport, resultHandler, false);
1565
        this.role = role;
1566
      }
1567
 
1568
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1569
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1570
        getReports_args args = new getReports_args();
1571
        args.setRole(role);
1572
        args.write(prot);
1573
        prot.writeMessageEnd();
1574
      }
1575
 
1576
      public List<Report> getResult() throws org.apache.thrift.TException {
1577
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1578
          throw new IllegalStateException("Method call not finished!");
1579
        }
1580
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1581
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1582
        return (new Client(prot)).recv_getReports();
1583
      }
1584
    }
1585
 
6788 rajveer 1586
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1587
      checkReady();
6788 rajveer 1588
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1589
      this.___currentMethod = method_call;
1590
      ___manager.call(method_call);
1591
    }
1592
 
1593
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1594
      private String username;
1595
      private String password;
6788 rajveer 1596
      public authenticateCatalogUser_call(String username, String password, 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 {
3430 rajveer 1597
        super(client, protocolFactory, transport, resultHandler, false);
1598
        this.username = username;
1599
        this.password = password;
1600
      }
1601
 
1602
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1603
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1604
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1605
        args.setUsername(username);
1606
        args.setPassword(password);
1607
        args.write(prot);
1608
        prot.writeMessageEnd();
1609
      }
1610
 
1611
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1612
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1613
          throw new IllegalStateException("Method call not finished!");
1614
        }
1615
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1616
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1617
        return (new Client(prot)).recv_authenticateCatalogUser();
1618
      }
1619
    }
1620
 
4544 varun.gupt 1621
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1622
      checkReady();
1623
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1624
      this.___currentMethod = method_call;
1625
      ___manager.call(method_call);
1626
    }
1627
 
1628
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1629
      private List<Long> entityIds;
1630
      private String email;
1631
      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 {
1632
        super(client, protocolFactory, transport, resultHandler, false);
1633
        this.entityIds = entityIds;
1634
        this.email = email;
1635
      }
1636
 
1637
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1638
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1639
        shareEntities_args args = new shareEntities_args();
1640
        args.setEntityIds(entityIds);
1641
        args.setEmail(email);
1642
        args.write(prot);
1643
        prot.writeMessageEnd();
1644
      }
1645
 
1646
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1647
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1648
          throw new IllegalStateException("Method call not finished!");
1649
        }
1650
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1651
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1652
        (new Client(prot)).recv_shareEntities();
1653
      }
1654
    }
1655
 
4693 mandeep.dh 1656
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1657
      checkReady();
1658
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1659
      this.___currentMethod = method_call;
1660
      ___manager.call(method_call);
1661
    }
1662
 
1663
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1664
      public getAgents_call(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1665
        super(client, protocolFactory, transport, resultHandler, false);
1666
      }
1667
 
1668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1670
        getAgents_args args = new getAgents_args();
1671
        args.write(prot);
1672
        prot.writeMessageEnd();
1673
      }
1674
 
1675
      public List<Agent> getResult() throws org.apache.thrift.TException {
1676
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1677
          throw new IllegalStateException("Method call not finished!");
1678
        }
1679
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1680
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1681
        return (new Client(prot)).recv_getAgents();
1682
      }
1683
    }
1684
 
1685
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1686
      checkReady();
1687
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1688
      this.___currentMethod = method_call;
1689
      ___manager.call(method_call);
1690
    }
1691
 
1692
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1693
      private String emailId;
1694
      private String password;
1695
      public validateLogIn_call(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1696
        super(client, protocolFactory, transport, resultHandler, false);
1697
        this.emailId = emailId;
1698
        this.password = password;
1699
      }
1700
 
1701
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1702
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1703
        validateLogIn_args args = new validateLogIn_args();
1704
        args.setEmailId(emailId);
1705
        args.setPassword(password);
1706
        args.write(prot);
1707
        prot.writeMessageEnd();
1708
      }
1709
 
1710
      public boolean getResult() throws org.apache.thrift.TException {
1711
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1712
          throw new IllegalStateException("Method call not finished!");
1713
        }
1714
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1715
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1716
        return (new Client(prot)).recv_validateLogIn();
1717
      }
1718
    }
1719
 
1720
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1721
      checkReady();
1722
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1723
      this.___currentMethod = method_call;
1724
      ___manager.call(method_call);
1725
    }
1726
 
1727
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1728
      private String agentEmailId;
1729
      private String password;
1730
      public updatePasswordForAgent_call(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1731
        super(client, protocolFactory, transport, resultHandler, false);
1732
        this.agentEmailId = agentEmailId;
1733
        this.password = password;
1734
      }
1735
 
1736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1738
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1739
        args.setAgentEmailId(agentEmailId);
1740
        args.setPassword(password);
1741
        args.write(prot);
1742
        prot.writeMessageEnd();
1743
      }
1744
 
1745
      public void getResult() throws org.apache.thrift.TException {
1746
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1747
          throw new IllegalStateException("Method call not finished!");
1748
        }
1749
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1750
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1751
        (new Client(prot)).recv_updatePasswordForAgent();
1752
      }
1753
    }
1754
 
1755
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1756
      checkReady();
1757
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1758
      this.___currentMethod = method_call;
1759
      ___manager.call(method_call);
1760
    }
1761
 
1762
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1763
      private String agentEmailId;
1764
      public getRoleNamesForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1765
        super(client, protocolFactory, transport, resultHandler, false);
1766
        this.agentEmailId = agentEmailId;
1767
      }
1768
 
1769
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1770
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1771
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1772
        args.setAgentEmailId(agentEmailId);
1773
        args.write(prot);
1774
        prot.writeMessageEnd();
1775
      }
1776
 
1777
      public List<String> getResult() throws org.apache.thrift.TException {
1778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1779
          throw new IllegalStateException("Method call not finished!");
1780
        }
1781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1783
        return (new Client(prot)).recv_getRoleNamesForAgent();
1784
      }
1785
    }
1786
 
1787
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1788
      checkReady();
1789
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1790
      this.___currentMethod = method_call;
1791
      ___manager.call(method_call);
1792
    }
1793
 
1794
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1795
      private String roleName;
1796
      public getPermissionsForRoleName_call(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1797
        super(client, protocolFactory, transport, resultHandler, false);
1798
        this.roleName = roleName;
1799
      }
1800
 
1801
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1802
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1803
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1804
        args.setRoleName(roleName);
1805
        args.write(prot);
1806
        prot.writeMessageEnd();
1807
      }
1808
 
1809
      public List<String> getResult() throws org.apache.thrift.TException {
1810
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1811
          throw new IllegalStateException("Method call not finished!");
1812
        }
1813
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1814
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1815
        return (new Client(prot)).recv_getPermissionsForRoleName();
1816
      }
1817
    }
1818
 
4806 varun.gupt 1819
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1820
      checkReady();
1821
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1822
      this.___currentMethod = method_call;
1823
      ___manager.call(method_call);
1824
    }
1825
 
1826
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1827
      private String url;
1828
      private String text;
1829
      public saveQuickLink_call(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1830
        super(client, protocolFactory, transport, resultHandler, false);
1831
        this.url = url;
1832
        this.text = text;
1833
      }
1834
 
1835
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1836
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1837
        saveQuickLink_args args = new saveQuickLink_args();
1838
        args.setUrl(url);
1839
        args.setText(text);
1840
        args.write(prot);
1841
        prot.writeMessageEnd();
1842
      }
1843
 
1844
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1845
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1846
          throw new IllegalStateException("Method call not finished!");
1847
        }
1848
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1849
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1850
        (new Client(prot)).recv_saveQuickLink();
1851
      }
1852
    }
1853
 
1854
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1855
      checkReady();
1856
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1857
      this.___currentMethod = method_call;
1858
      ___manager.call(method_call);
1859
    }
1860
 
1861
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1862
      public getQuickLinks_call(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1863
        super(client, protocolFactory, transport, resultHandler, false);
1864
      }
1865
 
1866
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1867
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1868
        getQuickLinks_args args = new getQuickLinks_args();
1869
        args.write(prot);
1870
        prot.writeMessageEnd();
1871
      }
1872
 
1873
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1874
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1875
          throw new IllegalStateException("Method call not finished!");
1876
        }
1877
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1878
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1879
        return (new Client(prot)).recv_getQuickLinks();
1880
      }
1881
    }
1882
 
4996 varun.gupt 1883
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1884
      checkReady();
1885
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1886
      this.___currentMethod = method_call;
1887
      ___manager.call(method_call);
1888
    }
1889
 
1890
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1891
      private long id;
1892
      private String url;
1893
      private String text;
1894
      public updateQuickLink_call(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1895
        super(client, protocolFactory, transport, resultHandler, false);
1896
        this.id = id;
1897
        this.url = url;
1898
        this.text = text;
1899
      }
1900
 
1901
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1902
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1903
        updateQuickLink_args args = new updateQuickLink_args();
1904
        args.setId(id);
1905
        args.setUrl(url);
1906
        args.setText(text);
1907
        args.write(prot);
1908
        prot.writeMessageEnd();
1909
      }
1910
 
1911
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1912
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1913
          throw new IllegalStateException("Method call not finished!");
1914
        }
1915
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1916
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1917
        (new Client(prot)).recv_updateQuickLink();
1918
      }
1919
    }
1920
 
5055 varun.gupt 1921
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1922
      checkReady();
1923
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1924
      this.___currentMethod = method_call;
1925
      ___manager.call(method_call);
1926
    }
1927
 
1928
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1929
      private long startDatetime;
1930
      private long endDatetime;
1931
      public getEmailsForNotificationsSent_call(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_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 {
1932
        super(client, protocolFactory, transport, resultHandler, false);
1933
        this.startDatetime = startDatetime;
1934
        this.endDatetime = endDatetime;
1935
      }
1936
 
1937
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1938
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1939
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1940
        args.setStartDatetime(startDatetime);
1941
        args.setEndDatetime(endDatetime);
1942
        args.write(prot);
1943
        prot.writeMessageEnd();
1944
      }
1945
 
1946
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
1947
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1948
          throw new IllegalStateException("Method call not finished!");
1949
        }
1950
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1951
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1952
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1953
      }
1954
    }
1955
 
6322 amar.kumar 1956
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
1957
      checkReady();
1958
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1959
      this.___currentMethod = method_call;
1960
      ___manager.call(method_call);
1961
    }
1962
 
1963
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1964
      private long orderId;
1965
      public getOrderConfirmationMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_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 {
1966
        super(client, protocolFactory, transport, resultHandler, false);
1967
        this.orderId = orderId;
1968
      }
1969
 
1970
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1971
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1972
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
1973
        args.setOrderId(orderId);
1974
        args.write(prot);
1975
        prot.writeMessageEnd();
1976
      }
1977
 
1978
      public String getResult() throws org.apache.thrift.TException {
1979
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1980
          throw new IllegalStateException("Method call not finished!");
1981
        }
1982
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1983
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1984
        return (new Client(prot)).recv_getOrderConfirmationMail();
1985
      }
1986
    }
1987
 
3430 rajveer 1988
  }
1989
 
1990
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1991
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1992
    public Processor(I iface) {
1993
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1994
    }
1995
 
1996
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1997
      super(iface, getProcessMap(processMap));
1998
    }
1999
 
2000
    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) {
2001
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2002
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2003
      processMap.put("markEmailAsSent", new markEmailAsSent());
2004
      processMap.put("sendMail", new sendMail());
2005
      processMap.put("sendText", new sendText());
2006
      processMap.put("addMessage", new addMessage());
2007
      processMap.put("updateMessage", new updateMessage());
2008
      processMap.put("getMessage", new getMessage());
2009
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2010
      processMap.put("addUser", new addUser());
2011
      processMap.put("deleteUser", new deleteUser());
2012
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2013
      processMap.put("updatePassword", new updatePassword());
2014
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2015
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2016
      processMap.put("authenticateReportUser", new authenticateReportUser());
2017
      processMap.put("getReports", new getReports());
2018
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2019
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2020
      processMap.put("getAgents", new getAgents());
2021
      processMap.put("validateLogIn", new validateLogIn());
2022
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2023
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2024
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2025
      processMap.put("saveQuickLink", new saveQuickLink());
2026
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2027
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2028
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2029
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
3430 rajveer 2030
      return processMap;
2031
    }
2032
 
2033
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2034
      public saveUserEmailForSending() {
2035
        super("saveUserEmailForSending");
2036
      }
2037
 
2038
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2039
        return new saveUserEmailForSending_args();
2040
      }
2041
 
2042
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2043
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2044
        try {
5864 rajveer 2045
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
3206 mandeep.dh 2046
          result.setSuccessIsSet(true);
1395 varun.gupt 2047
        } catch (HelperServiceException se) {
2048
          result.se = se;
2049
        }
3430 rajveer 2050
        return result;
1395 varun.gupt 2051
      }
2052
    }
2053
 
3430 rajveer 2054
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2055
      public getEmailsToBeSent() {
2056
        super("getEmailsToBeSent");
2057
      }
2058
 
2059
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2060
        return new getEmailsToBeSent_args();
2061
      }
2062
 
2063
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2064
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2065
        try {
3430 rajveer 2066
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2067
        } catch (HelperServiceException se) {
2068
          result.se = se;
2069
        }
3430 rajveer 2070
        return result;
1422 varun.gupt 2071
      }
2072
    }
2073
 
3430 rajveer 2074
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2075
      public markEmailAsSent() {
2076
        super("markEmailAsSent");
2077
      }
2078
 
2079
      protected markEmailAsSent_args getEmptyArgsInstance() {
2080
        return new markEmailAsSent_args();
2081
      }
2082
 
2083
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2084
        markEmailAsSent_result result = new markEmailAsSent_result();
2085
        try {
3430 rajveer 2086
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2087
        } catch (HelperServiceException se) {
2088
          result.se = se;
2089
        }
3430 rajveer 2090
        return result;
1422 varun.gupt 2091
      }
2092
    }
2093
 
3430 rajveer 2094
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2095
      public sendMail() {
2096
        super("sendMail");
2097
      }
2098
 
2099
      protected sendMail_args getEmptyArgsInstance() {
2100
        return new sendMail_args();
2101
      }
2102
 
2103
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2104
        sendMail_result result = new sendMail_result();
2105
        try {
3430 rajveer 2106
          iface.sendMail(args.mail);
352 ashish 2107
        } catch (HelperServiceException se) {
2108
          result.se = se;
2109
        }
3430 rajveer 2110
        return result;
352 ashish 2111
      }
2112
    }
2113
 
3430 rajveer 2114
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2115
      public sendText() {
2116
        super("sendText");
2117
      }
2118
 
2119
      protected sendText_args getEmptyArgsInstance() {
2120
        return new sendText_args();
2121
      }
2122
 
2123
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2124
        sendText_result result = new sendText_result();
2125
        try {
3430 rajveer 2126
          iface.sendText(args.message);
352 ashish 2127
        } catch (HelperServiceException se) {
2128
          result.se = se;
2129
        }
3430 rajveer 2130
        return result;
352 ashish 2131
      }
2132
    }
2133
 
3430 rajveer 2134
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2135
      public addMessage() {
2136
        super("addMessage");
2137
      }
2138
 
2139
      protected addMessage_args getEmptyArgsInstance() {
2140
        return new addMessage_args();
2141
      }
2142
 
2143
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2144
        addMessage_result result = new addMessage_result();
2145
        try {
3430 rajveer 2146
          iface.addMessage(args.message);
352 ashish 2147
        } catch (HelperServiceException se) {
2148
          result.se = se;
2149
        }
3430 rajveer 2150
        return result;
352 ashish 2151
      }
2152
    }
2153
 
3430 rajveer 2154
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2155
      public updateMessage() {
2156
        super("updateMessage");
2157
      }
2158
 
2159
      protected updateMessage_args getEmptyArgsInstance() {
2160
        return new updateMessage_args();
2161
      }
2162
 
2163
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2164
        updateMessage_result result = new updateMessage_result();
2165
        try {
3430 rajveer 2166
          iface.updateMessage(args.id, args.message);
352 ashish 2167
        } catch (HelperServiceException se) {
2168
          result.se = se;
2169
        }
3430 rajveer 2170
        return result;
352 ashish 2171
      }
2172
    }
2173
 
3430 rajveer 2174
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2175
      public getMessage() {
2176
        super("getMessage");
2177
      }
2178
 
2179
      protected getMessage_args getEmptyArgsInstance() {
2180
        return new getMessage_args();
2181
      }
2182
 
2183
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2184
        getMessage_result result = new getMessage_result();
2185
        try {
3430 rajveer 2186
          result.success = iface.getMessage(args.id);
352 ashish 2187
        } catch (HelperServiceException se) {
2188
          result.se = se;
2189
        }
3430 rajveer 2190
        return result;
352 ashish 2191
      }
2192
    }
2193
 
3430 rajveer 2194
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2195
      public getSubstitutedMessage() {
2196
        super("getSubstitutedMessage");
2197
      }
2198
 
2199
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2200
        return new getSubstitutedMessage_args();
2201
      }
2202
 
2203
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2204
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2205
        try {
3430 rajveer 2206
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2207
        } catch (HelperServiceException se) {
2208
          result.se = se;
2209
        }
3430 rajveer 2210
        return result;
352 ashish 2211
      }
2212
    }
2213
 
3430 rajveer 2214
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2215
      public addUser() {
2216
        super("addUser");
2217
      }
2218
 
2219
      protected addUser_args getEmptyArgsInstance() {
2220
        return new addUser_args();
2221
      }
2222
 
2223
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2224
        addUser_result result = new addUser_result();
2225
        try {
3430 rajveer 2226
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2227
          result.setSuccessIsSet(true);
2228
        } catch (HelperServiceException se) {
2229
          result.se = se;
2230
        }
3430 rajveer 2231
        return result;
495 rajveer 2232
      }
2233
    }
2234
 
3430 rajveer 2235
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2236
      public deleteUser() {
2237
        super("deleteUser");
2238
      }
2239
 
2240
      protected deleteUser_args getEmptyArgsInstance() {
2241
        return new deleteUser_args();
2242
      }
2243
 
2244
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2245
        deleteUser_result result = new deleteUser_result();
2246
        try {
3430 rajveer 2247
          result.success = iface.deleteUser(args.username);
495 rajveer 2248
          result.setSuccessIsSet(true);
2249
        } catch (HelperServiceException se) {
2250
          result.se = se;
2251
        }
3430 rajveer 2252
        return result;
495 rajveer 2253
      }
2254
    }
2255
 
3430 rajveer 2256
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2257
      public authenticateDashboardUser() {
2258
        super("authenticateDashboardUser");
2259
      }
2260
 
2261
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2262
        return new authenticateDashboardUser_args();
2263
      }
2264
 
2265
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2266
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2267
        try {
3430 rajveer 2268
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2269
        } catch (HelperServiceException se) {
2270
          result.se = se;
2271
        }
3430 rajveer 2272
        return result;
495 rajveer 2273
      }
2274
    }
2275
 
3430 rajveer 2276
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2277
      public updatePassword() {
2278
        super("updatePassword");
2279
      }
2280
 
2281
      protected updatePassword_args getEmptyArgsInstance() {
2282
        return new updatePassword_args();
2283
      }
2284
 
2285
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2286
        updatePassword_result result = new updatePassword_result();
2287
        try {
3430 rajveer 2288
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2289
          result.setSuccessIsSet(true);
2290
        } catch (HelperServiceException se) {
2291
          result.se = se;
2292
        }
3430 rajveer 2293
        return result;
495 rajveer 2294
      }
2295
    }
2296
 
3430 rajveer 2297
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2298
      public authenticateLogisticsUser() {
2299
        super("authenticateLogisticsUser");
2300
      }
2301
 
2302
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2303
        return new authenticateLogisticsUser_args();
2304
      }
2305
 
2306
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2307
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2308
        try {
3430 rajveer 2309
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2310
        } catch (HelperServiceException hse) {
2311
          result.hse = hse;
2312
        }
3430 rajveer 2313
        return result;
750 chandransh 2314
      }
2315
    }
2316
 
3430 rajveer 2317
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2318
      public authenticateStatisticsUser() {
2319
        super("authenticateStatisticsUser");
2320
      }
2321
 
2322
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2323
        return new authenticateStatisticsUser_args();
2324
      }
2325
 
2326
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2327
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2328
        try {
3430 rajveer 2329
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2330
        } catch (HelperServiceException hse) {
2331
          result.hse = hse;
2332
        }
3430 rajveer 2333
        return result;
1611 ankur.sing 2334
      }
2335
    }
2336
 
3430 rajveer 2337
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2338
      public authenticateReportUser() {
2339
        super("authenticateReportUser");
2340
      }
2341
 
2342
      protected authenticateReportUser_args getEmptyArgsInstance() {
2343
        return new authenticateReportUser_args();
2344
      }
2345
 
2346
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2347
        authenticateReportUser_result result = new authenticateReportUser_result();
2348
        try {
3430 rajveer 2349
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2350
        } catch (HelperServiceException hse) {
2351
          result.hse = hse;
2352
        }
3430 rajveer 2353
        return result;
1891 ankur.sing 2354
      }
2355
    }
2356
 
3430 rajveer 2357
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2358
      public getReports() {
2359
        super("getReports");
2360
      }
2361
 
2362
      protected getReports_args getEmptyArgsInstance() {
2363
        return new getReports_args();
2364
      }
2365
 
2366
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2367
        getReports_result result = new getReports_result();
3430 rajveer 2368
        result.success = iface.getReports(args.role);
2369
        return result;
1891 ankur.sing 2370
      }
2371
    }
2372
 
3430 rajveer 2373
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2374
      public authenticateCatalogUser() {
2375
        super("authenticateCatalogUser");
2376
      }
2377
 
2378
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2379
        return new authenticateCatalogUser_args();
2380
      }
2381
 
2382
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2383
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2384
        try {
6788 rajveer 2385
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 2386
        } catch (HelperServiceException hse) {
2387
          result.hse = hse;
2388
        }
3430 rajveer 2389
        return result;
2024 ankur.sing 2390
      }
2391
    }
2392
 
4544 varun.gupt 2393
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2394
      public shareEntities() {
2395
        super("shareEntities");
2396
      }
2397
 
2398
      protected shareEntities_args getEmptyArgsInstance() {
2399
        return new shareEntities_args();
2400
      }
2401
 
2402
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2403
        shareEntities_result result = new shareEntities_result();
2404
        try {
2405
          iface.shareEntities(args.entityIds, args.email);
2406
        } catch (HelperServiceException hse) {
2407
          result.hse = hse;
2408
        }
2409
        return result;
2410
      }
2411
    }
2412
 
4693 mandeep.dh 2413
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2414
      public getAgents() {
2415
        super("getAgents");
2416
      }
2417
 
2418
      protected getAgents_args getEmptyArgsInstance() {
2419
        return new getAgents_args();
2420
      }
2421
 
2422
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2423
        getAgents_result result = new getAgents_result();
2424
        result.success = iface.getAgents();
2425
        return result;
2426
      }
2427
    }
2428
 
2429
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2430
      public validateLogIn() {
2431
        super("validateLogIn");
2432
      }
2433
 
2434
      protected validateLogIn_args getEmptyArgsInstance() {
2435
        return new validateLogIn_args();
2436
      }
2437
 
2438
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2439
        validateLogIn_result result = new validateLogIn_result();
2440
        result.success = iface.validateLogIn(args.emailId, args.password);
2441
        result.setSuccessIsSet(true);
2442
        return result;
2443
      }
2444
    }
2445
 
2446
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2447
      public updatePasswordForAgent() {
2448
        super("updatePasswordForAgent");
2449
      }
2450
 
2451
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2452
        return new updatePasswordForAgent_args();
2453
      }
2454
 
2455
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2456
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2457
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2458
        return result;
2459
      }
2460
    }
2461
 
2462
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2463
      public getRoleNamesForAgent() {
2464
        super("getRoleNamesForAgent");
2465
      }
2466
 
2467
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2468
        return new getRoleNamesForAgent_args();
2469
      }
2470
 
2471
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2472
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2473
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2474
        return result;
2475
      }
2476
    }
2477
 
2478
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2479
      public getPermissionsForRoleName() {
2480
        super("getPermissionsForRoleName");
2481
      }
2482
 
2483
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2484
        return new getPermissionsForRoleName_args();
2485
      }
2486
 
2487
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2488
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2489
        result.success = iface.getPermissionsForRoleName(args.roleName);
2490
        return result;
2491
      }
2492
    }
2493
 
4806 varun.gupt 2494
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2495
      public saveQuickLink() {
2496
        super("saveQuickLink");
2497
      }
2498
 
2499
      protected saveQuickLink_args getEmptyArgsInstance() {
2500
        return new saveQuickLink_args();
2501
      }
2502
 
2503
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2504
        saveQuickLink_result result = new saveQuickLink_result();
2505
        try {
2506
          iface.saveQuickLink(args.url, args.text);
2507
        } catch (HelperServiceException hse) {
2508
          result.hse = hse;
2509
        }
2510
        return result;
2511
      }
2512
    }
2513
 
2514
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2515
      public getQuickLinks() {
2516
        super("getQuickLinks");
2517
      }
2518
 
2519
      protected getQuickLinks_args getEmptyArgsInstance() {
2520
        return new getQuickLinks_args();
2521
      }
2522
 
2523
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2524
        getQuickLinks_result result = new getQuickLinks_result();
2525
        try {
2526
          result.success = iface.getQuickLinks();
2527
        } catch (HelperServiceException hse) {
2528
          result.hse = hse;
2529
        }
2530
        return result;
2531
      }
2532
    }
2533
 
4996 varun.gupt 2534
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2535
      public updateQuickLink() {
2536
        super("updateQuickLink");
2537
      }
2538
 
2539
      protected updateQuickLink_args getEmptyArgsInstance() {
2540
        return new updateQuickLink_args();
2541
      }
2542
 
2543
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2544
        updateQuickLink_result result = new updateQuickLink_result();
2545
        try {
2546
          iface.updateQuickLink(args.id, args.url, args.text);
2547
        } catch (HelperServiceException hse) {
2548
          result.hse = hse;
2549
        }
2550
        return result;
2551
      }
2552
    }
2553
 
5055 varun.gupt 2554
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2555
      public getEmailsForNotificationsSent() {
2556
        super("getEmailsForNotificationsSent");
2557
      }
2558
 
2559
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2560
        return new getEmailsForNotificationsSent_args();
2561
      }
2562
 
2563
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2564
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2565
        try {
2566
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2567
        } catch (HelperServiceException hse) {
2568
          result.hse = hse;
2569
        }
2570
        return result;
2571
      }
2572
    }
2573
 
6322 amar.kumar 2574
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
2575
      public getOrderConfirmationMail() {
2576
        super("getOrderConfirmationMail");
2577
      }
2578
 
2579
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
2580
        return new getOrderConfirmationMail_args();
2581
      }
2582
 
2583
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
2584
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
2585
        result.success = iface.getOrderConfirmationMail(args.orderId);
2586
        return result;
2587
      }
2588
    }
2589
 
352 ashish 2590
  }
2591
 
3430 rajveer 2592
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2594
 
5864 rajveer 2595
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.LIST, (short)1);
3430 rajveer 2596
    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);
2597
    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);
2598
    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);
2599
    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);
2600
    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);
5864 rajveer 2601
    private static final org.apache.thrift.protocol.TField CC_FIELD_DESC = new org.apache.thrift.protocol.TField("cc", org.apache.thrift.protocol.TType.LIST, (short)7);
2602
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
1395 varun.gupt 2603
 
5864 rajveer 2604
    private List<String> emailTo; // required
3430 rajveer 2605
    private String emailFrom; // required
2606
    private String subject; // required
2607
    private String body; // required
2608
    private String source; // required
2609
    private String emailType; // required
5864 rajveer 2610
    private List<String> cc; // required
2611
    private List<String> bcc; // required
1395 varun.gupt 2612
 
2613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2615
      EMAIL_TO((short)1, "emailTo"),
2616
      EMAIL_FROM((short)2, "emailFrom"),
2617
      SUBJECT((short)3, "subject"),
2618
      BODY((short)4, "body"),
2619
      SOURCE((short)5, "source"),
5864 rajveer 2620
      EMAIL_TYPE((short)6, "emailType"),
2621
      CC((short)7, "cc"),
2622
      BCC((short)8, "bcc");
1395 varun.gupt 2623
 
2624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2625
 
2626
      static {
2627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2628
          byName.put(field.getFieldName(), field);
2629
        }
2630
      }
2631
 
2632
      /**
2633
       * Find the _Fields constant that matches fieldId, or null if its not found.
2634
       */
2635
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2636
        switch(fieldId) {
2637
          case 1: // EMAIL_TO
2638
            return EMAIL_TO;
2639
          case 2: // EMAIL_FROM
2640
            return EMAIL_FROM;
2641
          case 3: // SUBJECT
2642
            return SUBJECT;
2643
          case 4: // BODY
2644
            return BODY;
2645
          case 5: // SOURCE
2646
            return SOURCE;
2647
          case 6: // EMAIL_TYPE
2648
            return EMAIL_TYPE;
5864 rajveer 2649
          case 7: // CC
2650
            return CC;
2651
          case 8: // BCC
2652
            return BCC;
3430 rajveer 2653
          default:
2654
            return null;
2655
        }
1395 varun.gupt 2656
      }
2657
 
2658
      /**
2659
       * Find the _Fields constant that matches fieldId, throwing an exception
2660
       * if it is not found.
2661
       */
2662
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2663
        _Fields fields = findByThriftId(fieldId);
2664
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2665
        return fields;
2666
      }
2667
 
2668
      /**
2669
       * Find the _Fields constant that matches name, or null if its not found.
2670
       */
2671
      public static _Fields findByName(String name) {
2672
        return byName.get(name);
2673
      }
2674
 
2675
      private final short _thriftId;
2676
      private final String _fieldName;
2677
 
2678
      _Fields(short thriftId, String fieldName) {
2679
        _thriftId = thriftId;
2680
        _fieldName = fieldName;
2681
      }
2682
 
2683
      public short getThriftFieldId() {
2684
        return _thriftId;
2685
      }
2686
 
2687
      public String getFieldName() {
2688
        return _fieldName;
2689
      }
2690
    }
2691
 
2692
    // isset id assignments
2693
 
3430 rajveer 2694
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2695
    static {
3430 rajveer 2696
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2697
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2698
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2699
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2700
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2701
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2702
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2703
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2704
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2705
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2706
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2708
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2710
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2711
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2712
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2713
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2714
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2715
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2718
    }
2719
 
2720
    public saveUserEmailForSending_args() {
2721
    }
2722
 
2723
    public saveUserEmailForSending_args(
5864 rajveer 2724
      List<String> emailTo,
1395 varun.gupt 2725
      String emailFrom,
2726
      String subject,
2727
      String body,
2728
      String source,
5864 rajveer 2729
      String emailType,
2730
      List<String> cc,
2731
      List<String> bcc)
1395 varun.gupt 2732
    {
2733
      this();
2734
      this.emailTo = emailTo;
2735
      this.emailFrom = emailFrom;
2736
      this.subject = subject;
2737
      this.body = body;
2738
      this.source = source;
2739
      this.emailType = emailType;
5864 rajveer 2740
      this.cc = cc;
2741
      this.bcc = bcc;
1395 varun.gupt 2742
    }
2743
 
2744
    /**
2745
     * Performs a deep copy on <i>other</i>.
2746
     */
2747
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2748
      if (other.isSetEmailTo()) {
5864 rajveer 2749
        List<String> __this__emailTo = new ArrayList<String>();
2750
        for (String other_element : other.emailTo) {
2751
          __this__emailTo.add(other_element);
2752
        }
2753
        this.emailTo = __this__emailTo;
1395 varun.gupt 2754
      }
2755
      if (other.isSetEmailFrom()) {
2756
        this.emailFrom = other.emailFrom;
2757
      }
2758
      if (other.isSetSubject()) {
2759
        this.subject = other.subject;
2760
      }
2761
      if (other.isSetBody()) {
2762
        this.body = other.body;
2763
      }
2764
      if (other.isSetSource()) {
2765
        this.source = other.source;
2766
      }
2767
      if (other.isSetEmailType()) {
2768
        this.emailType = other.emailType;
2769
      }
5864 rajveer 2770
      if (other.isSetCc()) {
2771
        List<String> __this__cc = new ArrayList<String>();
2772
        for (String other_element : other.cc) {
2773
          __this__cc.add(other_element);
2774
        }
2775
        this.cc = __this__cc;
2776
      }
2777
      if (other.isSetBcc()) {
2778
        List<String> __this__bcc = new ArrayList<String>();
2779
        for (String other_element : other.bcc) {
2780
          __this__bcc.add(other_element);
2781
        }
2782
        this.bcc = __this__bcc;
2783
      }
1395 varun.gupt 2784
    }
2785
 
2786
    public saveUserEmailForSending_args deepCopy() {
2787
      return new saveUserEmailForSending_args(this);
2788
    }
2789
 
3430 rajveer 2790
    @Override
2791
    public void clear() {
2792
      this.emailTo = null;
2793
      this.emailFrom = null;
2794
      this.subject = null;
2795
      this.body = null;
2796
      this.source = null;
2797
      this.emailType = null;
5864 rajveer 2798
      this.cc = null;
2799
      this.bcc = null;
1395 varun.gupt 2800
    }
2801
 
5864 rajveer 2802
    public int getEmailToSize() {
2803
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2804
    }
2805
 
2806
    public java.util.Iterator<String> getEmailToIterator() {
2807
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2808
    }
2809
 
2810
    public void addToEmailTo(String elem) {
2811
      if (this.emailTo == null) {
2812
        this.emailTo = new ArrayList<String>();
2813
      }
2814
      this.emailTo.add(elem);
2815
    }
2816
 
2817
    public List<String> getEmailTo() {
1395 varun.gupt 2818
      return this.emailTo;
2819
    }
2820
 
5864 rajveer 2821
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2822
      this.emailTo = emailTo;
2823
    }
2824
 
2825
    public void unsetEmailTo() {
2826
      this.emailTo = null;
2827
    }
2828
 
3430 rajveer 2829
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2830
    public boolean isSetEmailTo() {
2831
      return this.emailTo != null;
2832
    }
2833
 
2834
    public void setEmailToIsSet(boolean value) {
2835
      if (!value) {
2836
        this.emailTo = null;
2837
      }
2838
    }
2839
 
2840
    public String getEmailFrom() {
2841
      return this.emailFrom;
2842
    }
2843
 
3430 rajveer 2844
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2845
      this.emailFrom = emailFrom;
2846
    }
2847
 
2848
    public void unsetEmailFrom() {
2849
      this.emailFrom = null;
2850
    }
2851
 
3430 rajveer 2852
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2853
    public boolean isSetEmailFrom() {
2854
      return this.emailFrom != null;
2855
    }
2856
 
2857
    public void setEmailFromIsSet(boolean value) {
2858
      if (!value) {
2859
        this.emailFrom = null;
2860
      }
2861
    }
2862
 
2863
    public String getSubject() {
2864
      return this.subject;
2865
    }
2866
 
3430 rajveer 2867
    public void setSubject(String subject) {
1395 varun.gupt 2868
      this.subject = subject;
2869
    }
2870
 
2871
    public void unsetSubject() {
2872
      this.subject = null;
2873
    }
2874
 
3430 rajveer 2875
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2876
    public boolean isSetSubject() {
2877
      return this.subject != null;
2878
    }
2879
 
2880
    public void setSubjectIsSet(boolean value) {
2881
      if (!value) {
2882
        this.subject = null;
2883
      }
2884
    }
2885
 
2886
    public String getBody() {
2887
      return this.body;
2888
    }
2889
 
3430 rajveer 2890
    public void setBody(String body) {
1395 varun.gupt 2891
      this.body = body;
2892
    }
2893
 
2894
    public void unsetBody() {
2895
      this.body = null;
2896
    }
2897
 
3430 rajveer 2898
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2899
    public boolean isSetBody() {
2900
      return this.body != null;
2901
    }
2902
 
2903
    public void setBodyIsSet(boolean value) {
2904
      if (!value) {
2905
        this.body = null;
2906
      }
2907
    }
2908
 
2909
    public String getSource() {
2910
      return this.source;
2911
    }
2912
 
3430 rajveer 2913
    public void setSource(String source) {
1395 varun.gupt 2914
      this.source = source;
2915
    }
2916
 
2917
    public void unsetSource() {
2918
      this.source = null;
2919
    }
2920
 
3430 rajveer 2921
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2922
    public boolean isSetSource() {
2923
      return this.source != null;
2924
    }
2925
 
2926
    public void setSourceIsSet(boolean value) {
2927
      if (!value) {
2928
        this.source = null;
2929
      }
2930
    }
2931
 
2932
    public String getEmailType() {
2933
      return this.emailType;
2934
    }
2935
 
3430 rajveer 2936
    public void setEmailType(String emailType) {
1395 varun.gupt 2937
      this.emailType = emailType;
2938
    }
2939
 
2940
    public void unsetEmailType() {
2941
      this.emailType = null;
2942
    }
2943
 
3430 rajveer 2944
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2945
    public boolean isSetEmailType() {
2946
      return this.emailType != null;
2947
    }
2948
 
2949
    public void setEmailTypeIsSet(boolean value) {
2950
      if (!value) {
2951
        this.emailType = null;
2952
      }
2953
    }
2954
 
5864 rajveer 2955
    public int getCcSize() {
2956
      return (this.cc == null) ? 0 : this.cc.size();
2957
    }
2958
 
2959
    public java.util.Iterator<String> getCcIterator() {
2960
      return (this.cc == null) ? null : this.cc.iterator();
2961
    }
2962
 
2963
    public void addToCc(String elem) {
2964
      if (this.cc == null) {
2965
        this.cc = new ArrayList<String>();
2966
      }
2967
      this.cc.add(elem);
2968
    }
2969
 
2970
    public List<String> getCc() {
2971
      return this.cc;
2972
    }
2973
 
2974
    public void setCc(List<String> cc) {
2975
      this.cc = cc;
2976
    }
2977
 
2978
    public void unsetCc() {
2979
      this.cc = null;
2980
    }
2981
 
2982
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
2983
    public boolean isSetCc() {
2984
      return this.cc != null;
2985
    }
2986
 
2987
    public void setCcIsSet(boolean value) {
2988
      if (!value) {
2989
        this.cc = null;
2990
      }
2991
    }
2992
 
2993
    public int getBccSize() {
2994
      return (this.bcc == null) ? 0 : this.bcc.size();
2995
    }
2996
 
2997
    public java.util.Iterator<String> getBccIterator() {
2998
      return (this.bcc == null) ? null : this.bcc.iterator();
2999
    }
3000
 
3001
    public void addToBcc(String elem) {
3002
      if (this.bcc == null) {
3003
        this.bcc = new ArrayList<String>();
3004
      }
3005
      this.bcc.add(elem);
3006
    }
3007
 
3008
    public List<String> getBcc() {
3009
      return this.bcc;
3010
    }
3011
 
3012
    public void setBcc(List<String> bcc) {
3013
      this.bcc = bcc;
3014
    }
3015
 
3016
    public void unsetBcc() {
3017
      this.bcc = null;
3018
    }
3019
 
3020
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
3021
    public boolean isSetBcc() {
3022
      return this.bcc != null;
3023
    }
3024
 
3025
    public void setBccIsSet(boolean value) {
3026
      if (!value) {
3027
        this.bcc = null;
3028
      }
3029
    }
3030
 
1395 varun.gupt 3031
    public void setFieldValue(_Fields field, Object value) {
3032
      switch (field) {
3033
      case EMAIL_TO:
3034
        if (value == null) {
3035
          unsetEmailTo();
3036
        } else {
5864 rajveer 3037
          setEmailTo((List<String>)value);
1395 varun.gupt 3038
        }
3039
        break;
3040
 
3041
      case EMAIL_FROM:
3042
        if (value == null) {
3043
          unsetEmailFrom();
3044
        } else {
3045
          setEmailFrom((String)value);
3046
        }
3047
        break;
3048
 
3049
      case SUBJECT:
3050
        if (value == null) {
3051
          unsetSubject();
3052
        } else {
3053
          setSubject((String)value);
3054
        }
3055
        break;
3056
 
3057
      case BODY:
3058
        if (value == null) {
3059
          unsetBody();
3060
        } else {
3061
          setBody((String)value);
3062
        }
3063
        break;
3064
 
3065
      case SOURCE:
3066
        if (value == null) {
3067
          unsetSource();
3068
        } else {
3069
          setSource((String)value);
3070
        }
3071
        break;
3072
 
3073
      case EMAIL_TYPE:
3074
        if (value == null) {
3075
          unsetEmailType();
3076
        } else {
3077
          setEmailType((String)value);
3078
        }
3079
        break;
3080
 
5864 rajveer 3081
      case CC:
3082
        if (value == null) {
3083
          unsetCc();
3084
        } else {
3085
          setCc((List<String>)value);
3086
        }
3087
        break;
3088
 
3089
      case BCC:
3090
        if (value == null) {
3091
          unsetBcc();
3092
        } else {
3093
          setBcc((List<String>)value);
3094
        }
3095
        break;
3096
 
1395 varun.gupt 3097
      }
3098
    }
3099
 
3100
    public Object getFieldValue(_Fields field) {
3101
      switch (field) {
3102
      case EMAIL_TO:
3103
        return getEmailTo();
3104
 
3105
      case EMAIL_FROM:
3106
        return getEmailFrom();
3107
 
3108
      case SUBJECT:
3109
        return getSubject();
3110
 
3111
      case BODY:
3112
        return getBody();
3113
 
3114
      case SOURCE:
3115
        return getSource();
3116
 
3117
      case EMAIL_TYPE:
3118
        return getEmailType();
3119
 
5864 rajveer 3120
      case CC:
3121
        return getCc();
3122
 
3123
      case BCC:
3124
        return getBcc();
3125
 
1395 varun.gupt 3126
      }
3127
      throw new IllegalStateException();
3128
    }
3129
 
3430 rajveer 3130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3131
    public boolean isSet(_Fields field) {
3132
      if (field == null) {
3133
        throw new IllegalArgumentException();
3134
      }
1395 varun.gupt 3135
 
3136
      switch (field) {
3137
      case EMAIL_TO:
3138
        return isSetEmailTo();
3139
      case EMAIL_FROM:
3140
        return isSetEmailFrom();
3141
      case SUBJECT:
3142
        return isSetSubject();
3143
      case BODY:
3144
        return isSetBody();
3145
      case SOURCE:
3146
        return isSetSource();
3147
      case EMAIL_TYPE:
3148
        return isSetEmailType();
5864 rajveer 3149
      case CC:
3150
        return isSetCc();
3151
      case BCC:
3152
        return isSetBcc();
1395 varun.gupt 3153
      }
3154
      throw new IllegalStateException();
3155
    }
3156
 
3157
    @Override
3158
    public boolean equals(Object that) {
3159
      if (that == null)
3160
        return false;
3161
      if (that instanceof saveUserEmailForSending_args)
3162
        return this.equals((saveUserEmailForSending_args)that);
3163
      return false;
3164
    }
3165
 
3166
    public boolean equals(saveUserEmailForSending_args that) {
3167
      if (that == null)
3168
        return false;
3169
 
3170
      boolean this_present_emailTo = true && this.isSetEmailTo();
3171
      boolean that_present_emailTo = true && that.isSetEmailTo();
3172
      if (this_present_emailTo || that_present_emailTo) {
3173
        if (!(this_present_emailTo && that_present_emailTo))
3174
          return false;
3175
        if (!this.emailTo.equals(that.emailTo))
3176
          return false;
3177
      }
3178
 
3179
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3180
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3181
      if (this_present_emailFrom || that_present_emailFrom) {
3182
        if (!(this_present_emailFrom && that_present_emailFrom))
3183
          return false;
3184
        if (!this.emailFrom.equals(that.emailFrom))
3185
          return false;
3186
      }
3187
 
3188
      boolean this_present_subject = true && this.isSetSubject();
3189
      boolean that_present_subject = true && that.isSetSubject();
3190
      if (this_present_subject || that_present_subject) {
3191
        if (!(this_present_subject && that_present_subject))
3192
          return false;
3193
        if (!this.subject.equals(that.subject))
3194
          return false;
3195
      }
3196
 
3197
      boolean this_present_body = true && this.isSetBody();
3198
      boolean that_present_body = true && that.isSetBody();
3199
      if (this_present_body || that_present_body) {
3200
        if (!(this_present_body && that_present_body))
3201
          return false;
3202
        if (!this.body.equals(that.body))
3203
          return false;
3204
      }
3205
 
3206
      boolean this_present_source = true && this.isSetSource();
3207
      boolean that_present_source = true && that.isSetSource();
3208
      if (this_present_source || that_present_source) {
3209
        if (!(this_present_source && that_present_source))
3210
          return false;
3211
        if (!this.source.equals(that.source))
3212
          return false;
3213
      }
3214
 
3215
      boolean this_present_emailType = true && this.isSetEmailType();
3216
      boolean that_present_emailType = true && that.isSetEmailType();
3217
      if (this_present_emailType || that_present_emailType) {
3218
        if (!(this_present_emailType && that_present_emailType))
3219
          return false;
3220
        if (!this.emailType.equals(that.emailType))
3221
          return false;
3222
      }
3223
 
5864 rajveer 3224
      boolean this_present_cc = true && this.isSetCc();
3225
      boolean that_present_cc = true && that.isSetCc();
3226
      if (this_present_cc || that_present_cc) {
3227
        if (!(this_present_cc && that_present_cc))
3228
          return false;
3229
        if (!this.cc.equals(that.cc))
3230
          return false;
3231
      }
3232
 
3233
      boolean this_present_bcc = true && this.isSetBcc();
3234
      boolean that_present_bcc = true && that.isSetBcc();
3235
      if (this_present_bcc || that_present_bcc) {
3236
        if (!(this_present_bcc && that_present_bcc))
3237
          return false;
3238
        if (!this.bcc.equals(that.bcc))
3239
          return false;
3240
      }
3241
 
1395 varun.gupt 3242
      return true;
3243
    }
3244
 
3245
    @Override
3246
    public int hashCode() {
3247
      return 0;
3248
    }
3249
 
3250
    public int compareTo(saveUserEmailForSending_args other) {
3251
      if (!getClass().equals(other.getClass())) {
3252
        return getClass().getName().compareTo(other.getClass().getName());
3253
      }
3254
 
3255
      int lastComparison = 0;
3256
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3257
 
3430 rajveer 3258
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3259
      if (lastComparison != 0) {
3260
        return lastComparison;
3261
      }
3430 rajveer 3262
      if (isSetEmailTo()) {
3263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3264
        if (lastComparison != 0) {
3265
          return lastComparison;
3266
        }
1395 varun.gupt 3267
      }
3430 rajveer 3268
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3269
      if (lastComparison != 0) {
3270
        return lastComparison;
3271
      }
3430 rajveer 3272
      if (isSetEmailFrom()) {
3273
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3274
        if (lastComparison != 0) {
3275
          return lastComparison;
3276
        }
1395 varun.gupt 3277
      }
3430 rajveer 3278
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3279
      if (lastComparison != 0) {
3280
        return lastComparison;
3281
      }
3430 rajveer 3282
      if (isSetSubject()) {
3283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3284
        if (lastComparison != 0) {
3285
          return lastComparison;
3286
        }
1395 varun.gupt 3287
      }
3430 rajveer 3288
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3289
      if (lastComparison != 0) {
3290
        return lastComparison;
3291
      }
3430 rajveer 3292
      if (isSetBody()) {
3293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3294
        if (lastComparison != 0) {
3295
          return lastComparison;
3296
        }
1395 varun.gupt 3297
      }
3430 rajveer 3298
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3299
      if (lastComparison != 0) {
3300
        return lastComparison;
3301
      }
3430 rajveer 3302
      if (isSetSource()) {
3303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3304
        if (lastComparison != 0) {
3305
          return lastComparison;
3306
        }
1395 varun.gupt 3307
      }
3430 rajveer 3308
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3309
      if (lastComparison != 0) {
3310
        return lastComparison;
3311
      }
3430 rajveer 3312
      if (isSetEmailType()) {
3313
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3314
        if (lastComparison != 0) {
3315
          return lastComparison;
3316
        }
1395 varun.gupt 3317
      }
5864 rajveer 3318
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3319
      if (lastComparison != 0) {
3320
        return lastComparison;
3321
      }
3322
      if (isSetCc()) {
3323
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3324
        if (lastComparison != 0) {
3325
          return lastComparison;
3326
        }
3327
      }
3328
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3329
      if (lastComparison != 0) {
3330
        return lastComparison;
3331
      }
3332
      if (isSetBcc()) {
3333
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3334
        if (lastComparison != 0) {
3335
          return lastComparison;
3336
        }
3337
      }
1395 varun.gupt 3338
      return 0;
3339
    }
3340
 
3430 rajveer 3341
    public _Fields fieldForId(int fieldId) {
3342
      return _Fields.findByThriftId(fieldId);
3343
    }
3344
 
3345
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3346
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3347
      iprot.readStructBegin();
3348
      while (true)
3349
      {
3350
        field = iprot.readFieldBegin();
3430 rajveer 3351
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3352
          break;
3353
        }
3430 rajveer 3354
        switch (field.id) {
3355
          case 1: // EMAIL_TO
5864 rajveer 3356
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3357
              {
3358
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3359
                this.emailTo = new ArrayList<String>(_list20.size);
3360
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3361
                {
3362
                  String _elem22; // required
3363
                  _elem22 = iprot.readString();
3364
                  this.emailTo.add(_elem22);
3365
                }
3366
                iprot.readListEnd();
3367
              }
3430 rajveer 3368
            } else { 
3369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3370
            }
3371
            break;
3372
          case 2: // EMAIL_FROM
3373
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3374
              this.emailFrom = iprot.readString();
3375
            } else { 
3376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3377
            }
3378
            break;
3379
          case 3: // SUBJECT
3380
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3381
              this.subject = iprot.readString();
3382
            } else { 
3383
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3384
            }
3385
            break;
3386
          case 4: // BODY
3387
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3388
              this.body = iprot.readString();
3389
            } else { 
3390
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3391
            }
3392
            break;
3393
          case 5: // SOURCE
3394
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3395
              this.source = iprot.readString();
3396
            } else { 
3397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3398
            }
3399
            break;
3400
          case 6: // EMAIL_TYPE
3401
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3402
              this.emailType = iprot.readString();
3403
            } else { 
3404
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3405
            }
3406
            break;
5864 rajveer 3407
          case 7: // CC
3408
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3409
              {
3410
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3411
                this.cc = new ArrayList<String>(_list23.size);
3412
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3413
                {
3414
                  String _elem25; // required
3415
                  _elem25 = iprot.readString();
3416
                  this.cc.add(_elem25);
3417
                }
3418
                iprot.readListEnd();
3419
              }
3420
            } else { 
3421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3422
            }
3423
            break;
3424
          case 8: // BCC
3425
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3426
              {
3427
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3428
                this.bcc = new ArrayList<String>(_list26.size);
3429
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3430
                {
3431
                  String _elem28; // required
3432
                  _elem28 = iprot.readString();
3433
                  this.bcc.add(_elem28);
3434
                }
3435
                iprot.readListEnd();
3436
              }
3437
            } else { 
3438
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3439
            }
3440
            break;
3430 rajveer 3441
          default:
3442
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3443
        }
3430 rajveer 3444
        iprot.readFieldEnd();
1395 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 {
1395 varun.gupt 3451
      validate();
3452
 
3453
      oprot.writeStructBegin(STRUCT_DESC);
3454
      if (this.emailTo != null) {
3455
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3456
        {
3457
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3458
          for (String _iter29 : this.emailTo)
3459
          {
3460
            oprot.writeString(_iter29);
3461
          }
3462
          oprot.writeListEnd();
3463
        }
1395 varun.gupt 3464
        oprot.writeFieldEnd();
3465
      }
3466
      if (this.emailFrom != null) {
3467
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3468
        oprot.writeString(this.emailFrom);
3469
        oprot.writeFieldEnd();
3470
      }
3471
      if (this.subject != null) {
3472
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3473
        oprot.writeString(this.subject);
3474
        oprot.writeFieldEnd();
3475
      }
3476
      if (this.body != null) {
3477
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3478
        oprot.writeString(this.body);
3479
        oprot.writeFieldEnd();
3480
      }
3481
      if (this.source != null) {
3482
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3483
        oprot.writeString(this.source);
3484
        oprot.writeFieldEnd();
3485
      }
3486
      if (this.emailType != null) {
3487
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3488
        oprot.writeString(this.emailType);
3489
        oprot.writeFieldEnd();
3490
      }
5864 rajveer 3491
      if (this.cc != null) {
3492
        oprot.writeFieldBegin(CC_FIELD_DESC);
3493
        {
3494
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3495
          for (String _iter30 : this.cc)
3496
          {
3497
            oprot.writeString(_iter30);
3498
          }
3499
          oprot.writeListEnd();
3500
        }
3501
        oprot.writeFieldEnd();
3502
      }
3503
      if (this.bcc != null) {
3504
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3505
        {
3506
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3507
          for (String _iter31 : this.bcc)
3508
          {
3509
            oprot.writeString(_iter31);
3510
          }
3511
          oprot.writeListEnd();
3512
        }
3513
        oprot.writeFieldEnd();
3514
      }
1395 varun.gupt 3515
      oprot.writeFieldStop();
3516
      oprot.writeStructEnd();
3517
    }
3518
 
3519
    @Override
3520
    public String toString() {
3521
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3522
      boolean first = true;
3523
 
3524
      sb.append("emailTo:");
3525
      if (this.emailTo == null) {
3526
        sb.append("null");
3527
      } else {
3528
        sb.append(this.emailTo);
3529
      }
3530
      first = false;
3531
      if (!first) sb.append(", ");
3532
      sb.append("emailFrom:");
3533
      if (this.emailFrom == null) {
3534
        sb.append("null");
3535
      } else {
3536
        sb.append(this.emailFrom);
3537
      }
3538
      first = false;
3539
      if (!first) sb.append(", ");
3540
      sb.append("subject:");
3541
      if (this.subject == null) {
3542
        sb.append("null");
3543
      } else {
3544
        sb.append(this.subject);
3545
      }
3546
      first = false;
3547
      if (!first) sb.append(", ");
3548
      sb.append("body:");
3549
      if (this.body == null) {
3550
        sb.append("null");
3551
      } else {
3552
        sb.append(this.body);
3553
      }
3554
      first = false;
3555
      if (!first) sb.append(", ");
3556
      sb.append("source:");
3557
      if (this.source == null) {
3558
        sb.append("null");
3559
      } else {
3560
        sb.append(this.source);
3561
      }
3562
      first = false;
3563
      if (!first) sb.append(", ");
3564
      sb.append("emailType:");
3565
      if (this.emailType == null) {
3566
        sb.append("null");
3567
      } else {
3568
        sb.append(this.emailType);
3569
      }
3570
      first = false;
5864 rajveer 3571
      if (!first) sb.append(", ");
3572
      sb.append("cc:");
3573
      if (this.cc == null) {
3574
        sb.append("null");
3575
      } else {
3576
        sb.append(this.cc);
3577
      }
3578
      first = false;
3579
      if (!first) sb.append(", ");
3580
      sb.append("bcc:");
3581
      if (this.bcc == null) {
3582
        sb.append("null");
3583
      } else {
3584
        sb.append(this.bcc);
3585
      }
3586
      first = false;
1395 varun.gupt 3587
      sb.append(")");
3588
      return sb.toString();
3589
    }
3590
 
3430 rajveer 3591
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3592
      // check for required fields
3593
    }
3594
 
3430 rajveer 3595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3596
      try {
3597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3598
      } catch (org.apache.thrift.TException te) {
3599
        throw new java.io.IOException(te);
3600
      }
3601
    }
3602
 
3603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3604
      try {
3605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3606
      } catch (org.apache.thrift.TException te) {
3607
        throw new java.io.IOException(te);
3608
      }
3609
    }
3610
 
1395 varun.gupt 3611
  }
3612
 
3430 rajveer 3613
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3615
 
3430 rajveer 3616
    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);
3617
    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 3618
 
3430 rajveer 3619
    private long success; // required
3620
    private HelperServiceException se; // required
1395 varun.gupt 3621
 
3622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3624
      SUCCESS((short)0, "success"),
1395 varun.gupt 3625
      SE((short)1, "se");
3626
 
3627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3628
 
3629
      static {
3630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3631
          byName.put(field.getFieldName(), field);
3632
        }
3633
      }
3634
 
3635
      /**
3636
       * Find the _Fields constant that matches fieldId, or null if its not found.
3637
       */
3638
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3639
        switch(fieldId) {
3640
          case 0: // SUCCESS
3641
            return SUCCESS;
3642
          case 1: // SE
3643
            return SE;
3644
          default:
3645
            return null;
3646
        }
1395 varun.gupt 3647
      }
3648
 
3649
      /**
3650
       * Find the _Fields constant that matches fieldId, throwing an exception
3651
       * if it is not found.
3652
       */
3653
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3654
        _Fields fields = findByThriftId(fieldId);
3655
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3656
        return fields;
3657
      }
3658
 
3659
      /**
3660
       * Find the _Fields constant that matches name, or null if its not found.
3661
       */
3662
      public static _Fields findByName(String name) {
3663
        return byName.get(name);
3664
      }
3665
 
3666
      private final short _thriftId;
3667
      private final String _fieldName;
3668
 
3669
      _Fields(short thriftId, String fieldName) {
3670
        _thriftId = thriftId;
3671
        _fieldName = fieldName;
3672
      }
3673
 
3674
      public short getThriftFieldId() {
3675
        return _thriftId;
3676
      }
3677
 
3678
      public String getFieldName() {
3679
        return _fieldName;
3680
      }
3681
    }
3682
 
3683
    // isset id assignments
3206 mandeep.dh 3684
    private static final int __SUCCESS_ISSET_ID = 0;
3685
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3686
 
3430 rajveer 3687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3688
    static {
3430 rajveer 3689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3690
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3691
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3692
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3693
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3696
    }
3697
 
3698
    public saveUserEmailForSending_result() {
3699
    }
3700
 
3701
    public saveUserEmailForSending_result(
3206 mandeep.dh 3702
      long success,
1395 varun.gupt 3703
      HelperServiceException se)
3704
    {
3705
      this();
3206 mandeep.dh 3706
      this.success = success;
3707
      setSuccessIsSet(true);
1395 varun.gupt 3708
      this.se = se;
3709
    }
3710
 
3711
    /**
3712
     * Performs a deep copy on <i>other</i>.
3713
     */
3714
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3715
      __isset_bit_vector.clear();
3716
      __isset_bit_vector.or(other.__isset_bit_vector);
3717
      this.success = other.success;
1395 varun.gupt 3718
      if (other.isSetSe()) {
3719
        this.se = new HelperServiceException(other.se);
3720
      }
3721
    }
3722
 
3723
    public saveUserEmailForSending_result deepCopy() {
3724
      return new saveUserEmailForSending_result(this);
3725
    }
3726
 
3430 rajveer 3727
    @Override
3728
    public void clear() {
3729
      setSuccessIsSet(false);
3730
      this.success = 0;
3731
      this.se = null;
1395 varun.gupt 3732
    }
3733
 
3206 mandeep.dh 3734
    public long getSuccess() {
3735
      return this.success;
3736
    }
3737
 
3430 rajveer 3738
    public void setSuccess(long success) {
3206 mandeep.dh 3739
      this.success = success;
3740
      setSuccessIsSet(true);
3741
    }
3742
 
3743
    public void unsetSuccess() {
3744
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3745
    }
3746
 
3430 rajveer 3747
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3748
    public boolean isSetSuccess() {
3749
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3750
    }
3751
 
3752
    public void setSuccessIsSet(boolean value) {
3753
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3754
    }
3755
 
1395 varun.gupt 3756
    public HelperServiceException getSe() {
3757
      return this.se;
3758
    }
3759
 
3430 rajveer 3760
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3761
      this.se = se;
3762
    }
3763
 
3764
    public void unsetSe() {
3765
      this.se = null;
3766
    }
3767
 
3430 rajveer 3768
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3769
    public boolean isSetSe() {
3770
      return this.se != null;
3771
    }
3772
 
3773
    public void setSeIsSet(boolean value) {
3774
      if (!value) {
3775
        this.se = null;
3776
      }
3777
    }
3778
 
3779
    public void setFieldValue(_Fields field, Object value) {
3780
      switch (field) {
3206 mandeep.dh 3781
      case SUCCESS:
3782
        if (value == null) {
3783
          unsetSuccess();
3784
        } else {
3785
          setSuccess((Long)value);
3786
        }
3787
        break;
3788
 
1395 varun.gupt 3789
      case SE:
3790
        if (value == null) {
3791
          unsetSe();
3792
        } else {
3793
          setSe((HelperServiceException)value);
3794
        }
3795
        break;
3796
 
3797
      }
3798
    }
3799
 
3800
    public Object getFieldValue(_Fields field) {
3801
      switch (field) {
3206 mandeep.dh 3802
      case SUCCESS:
3430 rajveer 3803
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3804
 
1395 varun.gupt 3805
      case SE:
3806
        return getSe();
3807
 
3808
      }
3809
      throw new IllegalStateException();
3810
    }
3811
 
3430 rajveer 3812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3813
    public boolean isSet(_Fields field) {
3814
      if (field == null) {
3815
        throw new IllegalArgumentException();
3816
      }
1395 varun.gupt 3817
 
3818
      switch (field) {
3206 mandeep.dh 3819
      case SUCCESS:
3820
        return isSetSuccess();
1395 varun.gupt 3821
      case SE:
3822
        return isSetSe();
3823
      }
3824
      throw new IllegalStateException();
3825
    }
3826
 
3827
    @Override
3828
    public boolean equals(Object that) {
3829
      if (that == null)
3830
        return false;
3831
      if (that instanceof saveUserEmailForSending_result)
3832
        return this.equals((saveUserEmailForSending_result)that);
3833
      return false;
3834
    }
3835
 
3836
    public boolean equals(saveUserEmailForSending_result that) {
3837
      if (that == null)
3838
        return false;
3839
 
3206 mandeep.dh 3840
      boolean this_present_success = true;
3841
      boolean that_present_success = true;
3842
      if (this_present_success || that_present_success) {
3843
        if (!(this_present_success && that_present_success))
3844
          return false;
3845
        if (this.success != that.success)
3846
          return false;
3847
      }
3848
 
1395 varun.gupt 3849
      boolean this_present_se = true && this.isSetSe();
3850
      boolean that_present_se = true && that.isSetSe();
3851
      if (this_present_se || that_present_se) {
3852
        if (!(this_present_se && that_present_se))
3853
          return false;
3854
        if (!this.se.equals(that.se))
3855
          return false;
3856
      }
3857
 
3858
      return true;
3859
    }
3860
 
3861
    @Override
3862
    public int hashCode() {
3863
      return 0;
3864
    }
3865
 
3866
    public int compareTo(saveUserEmailForSending_result other) {
3867
      if (!getClass().equals(other.getClass())) {
3868
        return getClass().getName().compareTo(other.getClass().getName());
3869
      }
3870
 
3871
      int lastComparison = 0;
3872
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3873
 
3430 rajveer 3874
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3875
      if (lastComparison != 0) {
3876
        return lastComparison;
3877
      }
3430 rajveer 3878
      if (isSetSuccess()) {
3879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3880
        if (lastComparison != 0) {
3881
          return lastComparison;
3882
        }
3206 mandeep.dh 3883
      }
3430 rajveer 3884
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3885
      if (lastComparison != 0) {
3886
        return lastComparison;
3887
      }
3430 rajveer 3888
      if (isSetSe()) {
3889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3890
        if (lastComparison != 0) {
3891
          return lastComparison;
3892
        }
1395 varun.gupt 3893
      }
3894
      return 0;
3895
    }
3896
 
3430 rajveer 3897
    public _Fields fieldForId(int fieldId) {
3898
      return _Fields.findByThriftId(fieldId);
3899
    }
3900
 
3901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3902
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3903
      iprot.readStructBegin();
3904
      while (true)
3905
      {
3906
        field = iprot.readFieldBegin();
3430 rajveer 3907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3908
          break;
3909
        }
3430 rajveer 3910
        switch (field.id) {
3911
          case 0: // SUCCESS
3912
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3913
              this.success = iprot.readI64();
3914
              setSuccessIsSet(true);
3915
            } else { 
3916
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3917
            }
3918
            break;
3919
          case 1: // SE
3920
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3921
              this.se = new HelperServiceException();
3922
              this.se.read(iprot);
3923
            } else { 
3924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3925
            }
3926
            break;
3927
          default:
3928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3929
        }
3430 rajveer 3930
        iprot.readFieldEnd();
1395 varun.gupt 3931
      }
3932
      iprot.readStructEnd();
3933
      validate();
3934
    }
3935
 
3430 rajveer 3936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3937
      oprot.writeStructBegin(STRUCT_DESC);
3938
 
3206 mandeep.dh 3939
      if (this.isSetSuccess()) {
3940
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3941
        oprot.writeI64(this.success);
3942
        oprot.writeFieldEnd();
3943
      } else if (this.isSetSe()) {
1395 varun.gupt 3944
        oprot.writeFieldBegin(SE_FIELD_DESC);
3945
        this.se.write(oprot);
3946
        oprot.writeFieldEnd();
3947
      }
3948
      oprot.writeFieldStop();
3949
      oprot.writeStructEnd();
3950
    }
3951
 
3952
    @Override
3953
    public String toString() {
3954
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
3955
      boolean first = true;
3956
 
3206 mandeep.dh 3957
      sb.append("success:");
3958
      sb.append(this.success);
3959
      first = false;
3960
      if (!first) sb.append(", ");
1395 varun.gupt 3961
      sb.append("se:");
3962
      if (this.se == null) {
3963
        sb.append("null");
3964
      } else {
3965
        sb.append(this.se);
3966
      }
3967
      first = false;
3968
      sb.append(")");
3969
      return sb.toString();
3970
    }
3971
 
3430 rajveer 3972
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3973
      // check for required fields
3974
    }
3975
 
3430 rajveer 3976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3977
      try {
3978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3979
      } catch (org.apache.thrift.TException te) {
3980
        throw new java.io.IOException(te);
3981
      }
3982
    }
3983
 
3984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3985
      try {
3986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3987
      } catch (org.apache.thrift.TException te) {
3988
        throw new java.io.IOException(te);
3989
      }
3990
    }
3991
 
1395 varun.gupt 3992
  }
3993
 
3430 rajveer 3994
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
3995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 3996
 
3997
 
3998
 
3999
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4000
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 4001
;
1422 varun.gupt 4002
 
4003
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4004
 
4005
      static {
4006
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4007
          byName.put(field.getFieldName(), field);
4008
        }
4009
      }
4010
 
4011
      /**
4012
       * Find the _Fields constant that matches fieldId, or null if its not found.
4013
       */
4014
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4015
        switch(fieldId) {
4016
          default:
4017
            return null;
4018
        }
1422 varun.gupt 4019
      }
4020
 
4021
      /**
4022
       * Find the _Fields constant that matches fieldId, throwing an exception
4023
       * if it is not found.
4024
       */
4025
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4026
        _Fields fields = findByThriftId(fieldId);
4027
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4028
        return fields;
4029
      }
4030
 
4031
      /**
4032
       * Find the _Fields constant that matches name, or null if its not found.
4033
       */
4034
      public static _Fields findByName(String name) {
4035
        return byName.get(name);
4036
      }
4037
 
4038
      private final short _thriftId;
4039
      private final String _fieldName;
4040
 
4041
      _Fields(short thriftId, String fieldName) {
4042
        _thriftId = thriftId;
4043
        _fieldName = fieldName;
4044
      }
4045
 
4046
      public short getThriftFieldId() {
4047
        return _thriftId;
4048
      }
4049
 
4050
      public String getFieldName() {
4051
        return _fieldName;
4052
      }
4053
    }
3430 rajveer 4054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4055
    static {
3430 rajveer 4056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 4059
    }
4060
 
4061
    public getEmailsToBeSent_args() {
4062
    }
4063
 
4064
    /**
4065
     * Performs a deep copy on <i>other</i>.
4066
     */
4067
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
4068
    }
4069
 
4070
    public getEmailsToBeSent_args deepCopy() {
4071
      return new getEmailsToBeSent_args(this);
4072
    }
4073
 
3430 rajveer 4074
    @Override
4075
    public void clear() {
1422 varun.gupt 4076
    }
4077
 
4078
    public void setFieldValue(_Fields field, Object value) {
4079
      switch (field) {
4080
      }
4081
    }
4082
 
4083
    public Object getFieldValue(_Fields field) {
4084
      switch (field) {
4085
      }
4086
      throw new IllegalStateException();
4087
    }
4088
 
3430 rajveer 4089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4090
    public boolean isSet(_Fields field) {
4091
      if (field == null) {
4092
        throw new IllegalArgumentException();
4093
      }
1422 varun.gupt 4094
 
4095
      switch (field) {
4096
      }
4097
      throw new IllegalStateException();
4098
    }
4099
 
4100
    @Override
4101
    public boolean equals(Object that) {
4102
      if (that == null)
4103
        return false;
4104
      if (that instanceof getEmailsToBeSent_args)
4105
        return this.equals((getEmailsToBeSent_args)that);
4106
      return false;
4107
    }
4108
 
4109
    public boolean equals(getEmailsToBeSent_args that) {
4110
      if (that == null)
4111
        return false;
4112
 
4113
      return true;
4114
    }
4115
 
4116
    @Override
4117
    public int hashCode() {
4118
      return 0;
4119
    }
4120
 
4121
    public int compareTo(getEmailsToBeSent_args other) {
4122
      if (!getClass().equals(other.getClass())) {
4123
        return getClass().getName().compareTo(other.getClass().getName());
4124
      }
4125
 
4126
      int lastComparison = 0;
4127
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4128
 
4129
      return 0;
4130
    }
4131
 
3430 rajveer 4132
    public _Fields fieldForId(int fieldId) {
4133
      return _Fields.findByThriftId(fieldId);
4134
    }
4135
 
4136
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4137
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4138
      iprot.readStructBegin();
4139
      while (true)
4140
      {
4141
        field = iprot.readFieldBegin();
3430 rajveer 4142
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4143
          break;
4144
        }
3430 rajveer 4145
        switch (field.id) {
4146
          default:
4147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4148
        }
3430 rajveer 4149
        iprot.readFieldEnd();
1422 varun.gupt 4150
      }
4151
      iprot.readStructEnd();
4152
      validate();
4153
    }
4154
 
3430 rajveer 4155
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4156
      validate();
4157
 
4158
      oprot.writeStructBegin(STRUCT_DESC);
4159
      oprot.writeFieldStop();
4160
      oprot.writeStructEnd();
4161
    }
4162
 
4163
    @Override
4164
    public String toString() {
4165
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4166
      boolean first = true;
4167
 
4168
      sb.append(")");
4169
      return sb.toString();
4170
    }
4171
 
3430 rajveer 4172
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4173
      // check for required fields
4174
    }
4175
 
3430 rajveer 4176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4177
      try {
4178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4179
      } catch (org.apache.thrift.TException te) {
4180
        throw new java.io.IOException(te);
4181
      }
4182
    }
4183
 
4184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4185
      try {
4186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4187
      } catch (org.apache.thrift.TException te) {
4188
        throw new java.io.IOException(te);
4189
      }
4190
    }
4191
 
1422 varun.gupt 4192
  }
4193
 
3430 rajveer 4194
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4196
 
3430 rajveer 4197
    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);
4198
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1422 varun.gupt 4199
 
3430 rajveer 4200
    private List<UserEmail> success; // required
4201
    private HelperServiceException se; // required
1422 varun.gupt 4202
 
4203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4205
      SUCCESS((short)0, "success"),
4206
      SE((short)1, "se");
4207
 
4208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4209
 
4210
      static {
4211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4212
          byName.put(field.getFieldName(), field);
4213
        }
4214
      }
4215
 
4216
      /**
4217
       * Find the _Fields constant that matches fieldId, or null if its not found.
4218
       */
4219
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4220
        switch(fieldId) {
4221
          case 0: // SUCCESS
4222
            return SUCCESS;
4223
          case 1: // SE
4224
            return SE;
4225
          default:
4226
            return null;
4227
        }
1422 varun.gupt 4228
      }
4229
 
4230
      /**
4231
       * Find the _Fields constant that matches fieldId, throwing an exception
4232
       * if it is not found.
4233
       */
4234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4235
        _Fields fields = findByThriftId(fieldId);
4236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4237
        return fields;
4238
      }
4239
 
4240
      /**
4241
       * Find the _Fields constant that matches name, or null if its not found.
4242
       */
4243
      public static _Fields findByName(String name) {
4244
        return byName.get(name);
4245
      }
4246
 
4247
      private final short _thriftId;
4248
      private final String _fieldName;
4249
 
4250
      _Fields(short thriftId, String fieldName) {
4251
        _thriftId = thriftId;
4252
        _fieldName = fieldName;
4253
      }
4254
 
4255
      public short getThriftFieldId() {
4256
        return _thriftId;
4257
      }
4258
 
4259
      public String getFieldName() {
4260
        return _fieldName;
4261
      }
4262
    }
4263
 
4264
    // isset id assignments
4265
 
3430 rajveer 4266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4267
    static {
3430 rajveer 4268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4269
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4270
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4271
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4272
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4276
    }
4277
 
4278
    public getEmailsToBeSent_result() {
4279
    }
4280
 
4281
    public getEmailsToBeSent_result(
4282
      List<UserEmail> success,
4283
      HelperServiceException se)
4284
    {
4285
      this();
4286
      this.success = success;
4287
      this.se = se;
4288
    }
4289
 
4290
    /**
4291
     * Performs a deep copy on <i>other</i>.
4292
     */
4293
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4294
      if (other.isSetSuccess()) {
4295
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4296
        for (UserEmail other_element : other.success) {
4297
          __this__success.add(new UserEmail(other_element));
4298
        }
4299
        this.success = __this__success;
4300
      }
4301
      if (other.isSetSe()) {
4302
        this.se = new HelperServiceException(other.se);
4303
      }
4304
    }
4305
 
4306
    public getEmailsToBeSent_result deepCopy() {
4307
      return new getEmailsToBeSent_result(this);
4308
    }
4309
 
3430 rajveer 4310
    @Override
4311
    public void clear() {
4312
      this.success = null;
4313
      this.se = null;
1422 varun.gupt 4314
    }
4315
 
4316
    public int getSuccessSize() {
4317
      return (this.success == null) ? 0 : this.success.size();
4318
    }
4319
 
4320
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4321
      return (this.success == null) ? null : this.success.iterator();
4322
    }
4323
 
4324
    public void addToSuccess(UserEmail elem) {
4325
      if (this.success == null) {
4326
        this.success = new ArrayList<UserEmail>();
4327
      }
4328
      this.success.add(elem);
4329
    }
4330
 
4331
    public List<UserEmail> getSuccess() {
4332
      return this.success;
4333
    }
4334
 
3430 rajveer 4335
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4336
      this.success = success;
4337
    }
4338
 
4339
    public void unsetSuccess() {
4340
      this.success = null;
4341
    }
4342
 
3430 rajveer 4343
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4344
    public boolean isSetSuccess() {
4345
      return this.success != null;
4346
    }
4347
 
4348
    public void setSuccessIsSet(boolean value) {
4349
      if (!value) {
4350
        this.success = null;
4351
      }
4352
    }
4353
 
4354
    public HelperServiceException getSe() {
4355
      return this.se;
4356
    }
4357
 
3430 rajveer 4358
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4359
      this.se = se;
4360
    }
4361
 
4362
    public void unsetSe() {
4363
      this.se = null;
4364
    }
4365
 
3430 rajveer 4366
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4367
    public boolean isSetSe() {
4368
      return this.se != null;
4369
    }
4370
 
4371
    public void setSeIsSet(boolean value) {
4372
      if (!value) {
4373
        this.se = null;
4374
      }
4375
    }
4376
 
4377
    public void setFieldValue(_Fields field, Object value) {
4378
      switch (field) {
4379
      case SUCCESS:
4380
        if (value == null) {
4381
          unsetSuccess();
4382
        } else {
4383
          setSuccess((List<UserEmail>)value);
4384
        }
4385
        break;
4386
 
4387
      case SE:
4388
        if (value == null) {
4389
          unsetSe();
4390
        } else {
4391
          setSe((HelperServiceException)value);
4392
        }
4393
        break;
4394
 
4395
      }
4396
    }
4397
 
4398
    public Object getFieldValue(_Fields field) {
4399
      switch (field) {
4400
      case SUCCESS:
4401
        return getSuccess();
4402
 
4403
      case SE:
4404
        return getSe();
4405
 
4406
      }
4407
      throw new IllegalStateException();
4408
    }
4409
 
3430 rajveer 4410
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4411
    public boolean isSet(_Fields field) {
4412
      if (field == null) {
4413
        throw new IllegalArgumentException();
4414
      }
1422 varun.gupt 4415
 
4416
      switch (field) {
4417
      case SUCCESS:
4418
        return isSetSuccess();
4419
      case SE:
4420
        return isSetSe();
4421
      }
4422
      throw new IllegalStateException();
4423
    }
4424
 
4425
    @Override
4426
    public boolean equals(Object that) {
4427
      if (that == null)
4428
        return false;
4429
      if (that instanceof getEmailsToBeSent_result)
4430
        return this.equals((getEmailsToBeSent_result)that);
4431
      return false;
4432
    }
4433
 
4434
    public boolean equals(getEmailsToBeSent_result that) {
4435
      if (that == null)
4436
        return false;
4437
 
4438
      boolean this_present_success = true && this.isSetSuccess();
4439
      boolean that_present_success = true && that.isSetSuccess();
4440
      if (this_present_success || that_present_success) {
4441
        if (!(this_present_success && that_present_success))
4442
          return false;
4443
        if (!this.success.equals(that.success))
4444
          return false;
4445
      }
4446
 
4447
      boolean this_present_se = true && this.isSetSe();
4448
      boolean that_present_se = true && that.isSetSe();
4449
      if (this_present_se || that_present_se) {
4450
        if (!(this_present_se && that_present_se))
4451
          return false;
4452
        if (!this.se.equals(that.se))
4453
          return false;
4454
      }
4455
 
4456
      return true;
4457
    }
4458
 
4459
    @Override
4460
    public int hashCode() {
4461
      return 0;
4462
    }
4463
 
4464
    public int compareTo(getEmailsToBeSent_result other) {
4465
      if (!getClass().equals(other.getClass())) {
4466
        return getClass().getName().compareTo(other.getClass().getName());
4467
      }
4468
 
4469
      int lastComparison = 0;
4470
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4471
 
3430 rajveer 4472
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4473
      if (lastComparison != 0) {
4474
        return lastComparison;
4475
      }
3430 rajveer 4476
      if (isSetSuccess()) {
4477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4478
        if (lastComparison != 0) {
4479
          return lastComparison;
4480
        }
1422 varun.gupt 4481
      }
3430 rajveer 4482
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4483
      if (lastComparison != 0) {
4484
        return lastComparison;
4485
      }
3430 rajveer 4486
      if (isSetSe()) {
4487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4488
        if (lastComparison != 0) {
4489
          return lastComparison;
4490
        }
1422 varun.gupt 4491
      }
4492
      return 0;
4493
    }
4494
 
3430 rajveer 4495
    public _Fields fieldForId(int fieldId) {
4496
      return _Fields.findByThriftId(fieldId);
4497
    }
4498
 
4499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4500
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4501
      iprot.readStructBegin();
4502
      while (true)
4503
      {
4504
        field = iprot.readFieldBegin();
3430 rajveer 4505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4506
          break;
4507
        }
3430 rajveer 4508
        switch (field.id) {
4509
          case 0: // SUCCESS
4510
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4511
              {
5864 rajveer 4512
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4513
                this.success = new ArrayList<UserEmail>(_list32.size);
4514
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4515
                {
5864 rajveer 4516
                  UserEmail _elem34; // required
4517
                  _elem34 = new UserEmail();
4518
                  _elem34.read(iprot);
4519
                  this.success.add(_elem34);
1422 varun.gupt 4520
                }
3430 rajveer 4521
                iprot.readListEnd();
1422 varun.gupt 4522
              }
3430 rajveer 4523
            } else { 
4524
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4525
            }
4526
            break;
4527
          case 1: // SE
4528
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4529
              this.se = new HelperServiceException();
4530
              this.se.read(iprot);
4531
            } else { 
4532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4533
            }
4534
            break;
4535
          default:
4536
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4537
        }
3430 rajveer 4538
        iprot.readFieldEnd();
1422 varun.gupt 4539
      }
4540
      iprot.readStructEnd();
4541
      validate();
4542
    }
4543
 
3430 rajveer 4544
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4545
      oprot.writeStructBegin(STRUCT_DESC);
4546
 
4547
      if (this.isSetSuccess()) {
4548
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4549
        {
3430 rajveer 4550
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4551
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4552
          {
5864 rajveer 4553
            _iter35.write(oprot);
1422 varun.gupt 4554
          }
4555
          oprot.writeListEnd();
4556
        }
4557
        oprot.writeFieldEnd();
4558
      } else if (this.isSetSe()) {
4559
        oprot.writeFieldBegin(SE_FIELD_DESC);
4560
        this.se.write(oprot);
4561
        oprot.writeFieldEnd();
4562
      }
4563
      oprot.writeFieldStop();
4564
      oprot.writeStructEnd();
4565
    }
4566
 
4567
    @Override
4568
    public String toString() {
4569
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4570
      boolean first = true;
4571
 
4572
      sb.append("success:");
4573
      if (this.success == null) {
4574
        sb.append("null");
4575
      } else {
4576
        sb.append(this.success);
4577
      }
4578
      first = false;
4579
      if (!first) sb.append(", ");
4580
      sb.append("se:");
4581
      if (this.se == null) {
4582
        sb.append("null");
4583
      } else {
4584
        sb.append(this.se);
4585
      }
4586
      first = false;
4587
      sb.append(")");
4588
      return sb.toString();
4589
    }
4590
 
3430 rajveer 4591
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4592
      // check for required fields
4593
    }
4594
 
3430 rajveer 4595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4596
      try {
4597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4598
      } catch (org.apache.thrift.TException te) {
4599
        throw new java.io.IOException(te);
4600
      }
4601
    }
4602
 
4603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4604
      try {
4605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4606
      } catch (org.apache.thrift.TException te) {
4607
        throw new java.io.IOException(te);
4608
      }
4609
    }
4610
 
1422 varun.gupt 4611
  }
4612
 
3430 rajveer 4613
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4615
 
3430 rajveer 4616
    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 4617
 
3430 rajveer 4618
    private long emailId; // required
1422 varun.gupt 4619
 
4620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4622
      EMAIL_ID((short)1, "emailId");
4623
 
4624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4625
 
4626
      static {
4627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4628
          byName.put(field.getFieldName(), field);
4629
        }
4630
      }
4631
 
4632
      /**
4633
       * Find the _Fields constant that matches fieldId, or null if its not found.
4634
       */
4635
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4636
        switch(fieldId) {
4637
          case 1: // EMAIL_ID
4638
            return EMAIL_ID;
4639
          default:
4640
            return null;
4641
        }
1422 varun.gupt 4642
      }
4643
 
4644
      /**
4645
       * Find the _Fields constant that matches fieldId, throwing an exception
4646
       * if it is not found.
4647
       */
4648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4649
        _Fields fields = findByThriftId(fieldId);
4650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4651
        return fields;
4652
      }
4653
 
4654
      /**
4655
       * Find the _Fields constant that matches name, or null if its not found.
4656
       */
4657
      public static _Fields findByName(String name) {
4658
        return byName.get(name);
4659
      }
4660
 
4661
      private final short _thriftId;
4662
      private final String _fieldName;
4663
 
4664
      _Fields(short thriftId, String fieldName) {
4665
        _thriftId = thriftId;
4666
        _fieldName = fieldName;
4667
      }
4668
 
4669
      public short getThriftFieldId() {
4670
        return _thriftId;
4671
      }
4672
 
4673
      public String getFieldName() {
4674
        return _fieldName;
4675
      }
4676
    }
4677
 
4678
    // isset id assignments
4679
    private static final int __EMAILID_ISSET_ID = 0;
4680
    private BitSet __isset_bit_vector = new BitSet(1);
4681
 
3430 rajveer 4682
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4683
    static {
3430 rajveer 4684
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4685
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4686
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4687
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4688
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4689
    }
4690
 
4691
    public markEmailAsSent_args() {
4692
    }
4693
 
4694
    public markEmailAsSent_args(
4695
      long emailId)
4696
    {
4697
      this();
4698
      this.emailId = emailId;
4699
      setEmailIdIsSet(true);
4700
    }
4701
 
4702
    /**
4703
     * Performs a deep copy on <i>other</i>.
4704
     */
4705
    public markEmailAsSent_args(markEmailAsSent_args other) {
4706
      __isset_bit_vector.clear();
4707
      __isset_bit_vector.or(other.__isset_bit_vector);
4708
      this.emailId = other.emailId;
4709
    }
4710
 
4711
    public markEmailAsSent_args deepCopy() {
4712
      return new markEmailAsSent_args(this);
4713
    }
4714
 
3430 rajveer 4715
    @Override
4716
    public void clear() {
4717
      setEmailIdIsSet(false);
4718
      this.emailId = 0;
1422 varun.gupt 4719
    }
4720
 
4721
    public long getEmailId() {
4722
      return this.emailId;
4723
    }
4724
 
3430 rajveer 4725
    public void setEmailId(long emailId) {
1422 varun.gupt 4726
      this.emailId = emailId;
4727
      setEmailIdIsSet(true);
4728
    }
4729
 
4730
    public void unsetEmailId() {
4731
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4732
    }
4733
 
3430 rajveer 4734
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4735
    public boolean isSetEmailId() {
4736
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4737
    }
4738
 
4739
    public void setEmailIdIsSet(boolean value) {
4740
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4741
    }
4742
 
4743
    public void setFieldValue(_Fields field, Object value) {
4744
      switch (field) {
4745
      case EMAIL_ID:
4746
        if (value == null) {
4747
          unsetEmailId();
4748
        } else {
4749
          setEmailId((Long)value);
4750
        }
4751
        break;
4752
 
4753
      }
4754
    }
4755
 
4756
    public Object getFieldValue(_Fields field) {
4757
      switch (field) {
4758
      case EMAIL_ID:
3430 rajveer 4759
        return Long.valueOf(getEmailId());
1422 varun.gupt 4760
 
4761
      }
4762
      throw new IllegalStateException();
4763
    }
4764
 
3430 rajveer 4765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4766
    public boolean isSet(_Fields field) {
4767
      if (field == null) {
4768
        throw new IllegalArgumentException();
4769
      }
1422 varun.gupt 4770
 
4771
      switch (field) {
4772
      case EMAIL_ID:
4773
        return isSetEmailId();
4774
      }
4775
      throw new IllegalStateException();
4776
    }
4777
 
4778
    @Override
4779
    public boolean equals(Object that) {
4780
      if (that == null)
4781
        return false;
4782
      if (that instanceof markEmailAsSent_args)
4783
        return this.equals((markEmailAsSent_args)that);
4784
      return false;
4785
    }
4786
 
4787
    public boolean equals(markEmailAsSent_args that) {
4788
      if (that == null)
4789
        return false;
4790
 
4791
      boolean this_present_emailId = true;
4792
      boolean that_present_emailId = true;
4793
      if (this_present_emailId || that_present_emailId) {
4794
        if (!(this_present_emailId && that_present_emailId))
4795
          return false;
4796
        if (this.emailId != that.emailId)
4797
          return false;
4798
      }
4799
 
4800
      return true;
4801
    }
4802
 
4803
    @Override
4804
    public int hashCode() {
4805
      return 0;
4806
    }
4807
 
4808
    public int compareTo(markEmailAsSent_args other) {
4809
      if (!getClass().equals(other.getClass())) {
4810
        return getClass().getName().compareTo(other.getClass().getName());
4811
      }
4812
 
4813
      int lastComparison = 0;
4814
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4815
 
3430 rajveer 4816
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4817
      if (lastComparison != 0) {
4818
        return lastComparison;
4819
      }
3430 rajveer 4820
      if (isSetEmailId()) {
4821
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4822
        if (lastComparison != 0) {
4823
          return lastComparison;
4824
        }
1422 varun.gupt 4825
      }
4826
      return 0;
4827
    }
4828
 
3430 rajveer 4829
    public _Fields fieldForId(int fieldId) {
4830
      return _Fields.findByThriftId(fieldId);
4831
    }
4832
 
4833
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4834
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4835
      iprot.readStructBegin();
4836
      while (true)
4837
      {
4838
        field = iprot.readFieldBegin();
3430 rajveer 4839
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4840
          break;
4841
        }
3430 rajveer 4842
        switch (field.id) {
4843
          case 1: // EMAIL_ID
4844
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4845
              this.emailId = iprot.readI64();
4846
              setEmailIdIsSet(true);
4847
            } else { 
4848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4849
            }
4850
            break;
4851
          default:
4852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4853
        }
3430 rajveer 4854
        iprot.readFieldEnd();
1422 varun.gupt 4855
      }
4856
      iprot.readStructEnd();
4857
      validate();
4858
    }
4859
 
3430 rajveer 4860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4861
      validate();
4862
 
4863
      oprot.writeStructBegin(STRUCT_DESC);
4864
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4865
      oprot.writeI64(this.emailId);
4866
      oprot.writeFieldEnd();
4867
      oprot.writeFieldStop();
4868
      oprot.writeStructEnd();
4869
    }
4870
 
4871
    @Override
4872
    public String toString() {
4873
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4874
      boolean first = true;
4875
 
4876
      sb.append("emailId:");
4877
      sb.append(this.emailId);
4878
      first = false;
4879
      sb.append(")");
4880
      return sb.toString();
4881
    }
4882
 
3430 rajveer 4883
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4884
      // check for required fields
4885
    }
4886
 
3430 rajveer 4887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4888
      try {
4889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4890
      } catch (org.apache.thrift.TException te) {
4891
        throw new java.io.IOException(te);
4892
      }
4893
    }
4894
 
4895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4896
      try {
4897
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4898
        __isset_bit_vector = new BitSet(1);
4899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4900
      } catch (org.apache.thrift.TException te) {
4901
        throw new java.io.IOException(te);
4902
      }
4903
    }
4904
 
1422 varun.gupt 4905
  }
4906
 
3430 rajveer 4907
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4909
 
3430 rajveer 4910
    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 4911
 
3430 rajveer 4912
    private HelperServiceException se; // required
1422 varun.gupt 4913
 
4914
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4915
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4916
      SE((short)1, "se");
4917
 
4918
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4919
 
4920
      static {
4921
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4922
          byName.put(field.getFieldName(), field);
4923
        }
4924
      }
4925
 
4926
      /**
4927
       * Find the _Fields constant that matches fieldId, or null if its not found.
4928
       */
4929
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4930
        switch(fieldId) {
4931
          case 1: // SE
4932
            return SE;
4933
          default:
4934
            return null;
4935
        }
1422 varun.gupt 4936
      }
4937
 
4938
      /**
4939
       * Find the _Fields constant that matches fieldId, throwing an exception
4940
       * if it is not found.
4941
       */
4942
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4943
        _Fields fields = findByThriftId(fieldId);
4944
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4945
        return fields;
4946
      }
4947
 
4948
      /**
4949
       * Find the _Fields constant that matches name, or null if its not found.
4950
       */
4951
      public static _Fields findByName(String name) {
4952
        return byName.get(name);
4953
      }
4954
 
4955
      private final short _thriftId;
4956
      private final String _fieldName;
4957
 
4958
      _Fields(short thriftId, String fieldName) {
4959
        _thriftId = thriftId;
4960
        _fieldName = fieldName;
4961
      }
4962
 
4963
      public short getThriftFieldId() {
4964
        return _thriftId;
4965
      }
4966
 
4967
      public String getFieldName() {
4968
        return _fieldName;
4969
      }
4970
    }
4971
 
4972
    // isset id assignments
4973
 
3430 rajveer 4974
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4975
    static {
3430 rajveer 4976
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4977
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 4981
    }
4982
 
4983
    public markEmailAsSent_result() {
4984
    }
4985
 
4986
    public markEmailAsSent_result(
4987
      HelperServiceException se)
4988
    {
4989
      this();
4990
      this.se = se;
4991
    }
4992
 
4993
    /**
4994
     * Performs a deep copy on <i>other</i>.
4995
     */
4996
    public markEmailAsSent_result(markEmailAsSent_result other) {
4997
      if (other.isSetSe()) {
4998
        this.se = new HelperServiceException(other.se);
4999
      }
5000
    }
5001
 
5002
    public markEmailAsSent_result deepCopy() {
5003
      return new markEmailAsSent_result(this);
5004
    }
5005
 
3430 rajveer 5006
    @Override
5007
    public void clear() {
5008
      this.se = null;
1422 varun.gupt 5009
    }
5010
 
5011
    public HelperServiceException getSe() {
5012
      return this.se;
5013
    }
5014
 
3430 rajveer 5015
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5016
      this.se = se;
5017
    }
5018
 
5019
    public void unsetSe() {
5020
      this.se = null;
5021
    }
5022
 
3430 rajveer 5023
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5024
    public boolean isSetSe() {
5025
      return this.se != null;
5026
    }
5027
 
5028
    public void setSeIsSet(boolean value) {
5029
      if (!value) {
5030
        this.se = null;
5031
      }
5032
    }
5033
 
5034
    public void setFieldValue(_Fields field, Object value) {
5035
      switch (field) {
5036
      case SE:
5037
        if (value == null) {
5038
          unsetSe();
5039
        } else {
5040
          setSe((HelperServiceException)value);
5041
        }
5042
        break;
5043
 
5044
      }
5045
    }
5046
 
5047
    public Object getFieldValue(_Fields field) {
5048
      switch (field) {
5049
      case SE:
5050
        return getSe();
5051
 
5052
      }
5053
      throw new IllegalStateException();
5054
    }
5055
 
3430 rajveer 5056
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5057
    public boolean isSet(_Fields field) {
5058
      if (field == null) {
5059
        throw new IllegalArgumentException();
5060
      }
1422 varun.gupt 5061
 
5062
      switch (field) {
5063
      case SE:
5064
        return isSetSe();
5065
      }
5066
      throw new IllegalStateException();
5067
    }
5068
 
5069
    @Override
5070
    public boolean equals(Object that) {
5071
      if (that == null)
5072
        return false;
5073
      if (that instanceof markEmailAsSent_result)
5074
        return this.equals((markEmailAsSent_result)that);
5075
      return false;
5076
    }
5077
 
5078
    public boolean equals(markEmailAsSent_result that) {
5079
      if (that == null)
5080
        return false;
5081
 
5082
      boolean this_present_se = true && this.isSetSe();
5083
      boolean that_present_se = true && that.isSetSe();
5084
      if (this_present_se || that_present_se) {
5085
        if (!(this_present_se && that_present_se))
5086
          return false;
5087
        if (!this.se.equals(that.se))
5088
          return false;
5089
      }
5090
 
5091
      return true;
5092
    }
5093
 
5094
    @Override
5095
    public int hashCode() {
5096
      return 0;
5097
    }
5098
 
5099
    public int compareTo(markEmailAsSent_result other) {
5100
      if (!getClass().equals(other.getClass())) {
5101
        return getClass().getName().compareTo(other.getClass().getName());
5102
      }
5103
 
5104
      int lastComparison = 0;
5105
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5106
 
3430 rajveer 5107
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5108
      if (lastComparison != 0) {
5109
        return lastComparison;
5110
      }
3430 rajveer 5111
      if (isSetSe()) {
5112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5113
        if (lastComparison != 0) {
5114
          return lastComparison;
5115
        }
1422 varun.gupt 5116
      }
5117
      return 0;
5118
    }
5119
 
3430 rajveer 5120
    public _Fields fieldForId(int fieldId) {
5121
      return _Fields.findByThriftId(fieldId);
5122
    }
5123
 
5124
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5125
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5126
      iprot.readStructBegin();
5127
      while (true)
5128
      {
5129
        field = iprot.readFieldBegin();
3430 rajveer 5130
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5131
          break;
5132
        }
3430 rajveer 5133
        switch (field.id) {
5134
          case 1: // SE
5135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5136
              this.se = new HelperServiceException();
5137
              this.se.read(iprot);
5138
            } else { 
5139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5140
            }
5141
            break;
5142
          default:
5143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5144
        }
3430 rajveer 5145
        iprot.readFieldEnd();
1422 varun.gupt 5146
      }
5147
      iprot.readStructEnd();
5148
      validate();
5149
    }
5150
 
3430 rajveer 5151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5152
      oprot.writeStructBegin(STRUCT_DESC);
5153
 
5154
      if (this.isSetSe()) {
5155
        oprot.writeFieldBegin(SE_FIELD_DESC);
5156
        this.se.write(oprot);
5157
        oprot.writeFieldEnd();
5158
      }
5159
      oprot.writeFieldStop();
5160
      oprot.writeStructEnd();
5161
    }
5162
 
5163
    @Override
5164
    public String toString() {
5165
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5166
      boolean first = true;
5167
 
5168
      sb.append("se:");
5169
      if (this.se == null) {
5170
        sb.append("null");
5171
      } else {
5172
        sb.append(this.se);
5173
      }
5174
      first = false;
5175
      sb.append(")");
5176
      return sb.toString();
5177
    }
5178
 
3430 rajveer 5179
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5180
      // check for required fields
5181
    }
5182
 
3430 rajveer 5183
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5184
      try {
5185
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5186
      } catch (org.apache.thrift.TException te) {
5187
        throw new java.io.IOException(te);
5188
      }
5189
    }
5190
 
5191
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5192
      try {
5193
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5194
      } catch (org.apache.thrift.TException te) {
5195
        throw new java.io.IOException(te);
5196
      }
5197
    }
5198
 
1422 varun.gupt 5199
  }
5200
 
3430 rajveer 5201
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5202
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5203
 
3430 rajveer 5204
    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 5205
 
3430 rajveer 5206
    private Mail mail; // required
352 ashish 5207
 
5208
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5209
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5210
      MAIL((short)1, "mail");
5211
 
5212
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5213
 
5214
      static {
5215
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5216
          byName.put(field.getFieldName(), field);
5217
        }
5218
      }
5219
 
5220
      /**
5221
       * Find the _Fields constant that matches fieldId, or null if its not found.
5222
       */
5223
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5224
        switch(fieldId) {
5225
          case 1: // MAIL
5226
            return MAIL;
5227
          default:
5228
            return null;
5229
        }
352 ashish 5230
      }
5231
 
5232
      /**
5233
       * Find the _Fields constant that matches fieldId, throwing an exception
5234
       * if it is not found.
5235
       */
5236
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5237
        _Fields fields = findByThriftId(fieldId);
5238
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5239
        return fields;
5240
      }
5241
 
5242
      /**
5243
       * Find the _Fields constant that matches name, or null if its not found.
5244
       */
5245
      public static _Fields findByName(String name) {
5246
        return byName.get(name);
5247
      }
5248
 
5249
      private final short _thriftId;
5250
      private final String _fieldName;
5251
 
5252
      _Fields(short thriftId, String fieldName) {
5253
        _thriftId = thriftId;
5254
        _fieldName = fieldName;
5255
      }
5256
 
5257
      public short getThriftFieldId() {
5258
        return _thriftId;
5259
      }
5260
 
5261
      public String getFieldName() {
5262
        return _fieldName;
5263
      }
5264
    }
5265
 
5266
    // isset id assignments
5267
 
3430 rajveer 5268
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5269
    static {
3430 rajveer 5270
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5271
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5272
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5273
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5274
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5275
    }
5276
 
5277
    public sendMail_args() {
5278
    }
5279
 
5280
    public sendMail_args(
5281
      Mail mail)
5282
    {
5283
      this();
5284
      this.mail = mail;
5285
    }
5286
 
5287
    /**
5288
     * Performs a deep copy on <i>other</i>.
5289
     */
5290
    public sendMail_args(sendMail_args other) {
5291
      if (other.isSetMail()) {
5292
        this.mail = new Mail(other.mail);
5293
      }
5294
    }
5295
 
5296
    public sendMail_args deepCopy() {
5297
      return new sendMail_args(this);
5298
    }
5299
 
3430 rajveer 5300
    @Override
5301
    public void clear() {
5302
      this.mail = null;
352 ashish 5303
    }
5304
 
5305
    public Mail getMail() {
5306
      return this.mail;
5307
    }
5308
 
3430 rajveer 5309
    public void setMail(Mail mail) {
352 ashish 5310
      this.mail = mail;
5311
    }
5312
 
5313
    public void unsetMail() {
5314
      this.mail = null;
5315
    }
5316
 
3430 rajveer 5317
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5318
    public boolean isSetMail() {
5319
      return this.mail != null;
5320
    }
5321
 
5322
    public void setMailIsSet(boolean value) {
5323
      if (!value) {
5324
        this.mail = null;
5325
      }
5326
    }
5327
 
5328
    public void setFieldValue(_Fields field, Object value) {
5329
      switch (field) {
5330
      case MAIL:
5331
        if (value == null) {
5332
          unsetMail();
5333
        } else {
5334
          setMail((Mail)value);
5335
        }
5336
        break;
5337
 
5338
      }
5339
    }
5340
 
5341
    public Object getFieldValue(_Fields field) {
5342
      switch (field) {
5343
      case MAIL:
5344
        return getMail();
5345
 
5346
      }
5347
      throw new IllegalStateException();
5348
    }
5349
 
3430 rajveer 5350
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5351
    public boolean isSet(_Fields field) {
5352
      if (field == null) {
5353
        throw new IllegalArgumentException();
5354
      }
352 ashish 5355
 
5356
      switch (field) {
5357
      case MAIL:
5358
        return isSetMail();
5359
      }
5360
      throw new IllegalStateException();
5361
    }
5362
 
5363
    @Override
5364
    public boolean equals(Object that) {
5365
      if (that == null)
5366
        return false;
5367
      if (that instanceof sendMail_args)
5368
        return this.equals((sendMail_args)that);
5369
      return false;
5370
    }
5371
 
5372
    public boolean equals(sendMail_args that) {
5373
      if (that == null)
5374
        return false;
5375
 
5376
      boolean this_present_mail = true && this.isSetMail();
5377
      boolean that_present_mail = true && that.isSetMail();
5378
      if (this_present_mail || that_present_mail) {
5379
        if (!(this_present_mail && that_present_mail))
5380
          return false;
5381
        if (!this.mail.equals(that.mail))
5382
          return false;
5383
      }
5384
 
5385
      return true;
5386
    }
5387
 
5388
    @Override
5389
    public int hashCode() {
5390
      return 0;
5391
    }
5392
 
5393
    public int compareTo(sendMail_args other) {
5394
      if (!getClass().equals(other.getClass())) {
5395
        return getClass().getName().compareTo(other.getClass().getName());
5396
      }
5397
 
5398
      int lastComparison = 0;
5399
      sendMail_args typedOther = (sendMail_args)other;
5400
 
3430 rajveer 5401
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5402
      if (lastComparison != 0) {
5403
        return lastComparison;
5404
      }
3430 rajveer 5405
      if (isSetMail()) {
5406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5407
        if (lastComparison != 0) {
5408
          return lastComparison;
5409
        }
352 ashish 5410
      }
5411
      return 0;
5412
    }
5413
 
3430 rajveer 5414
    public _Fields fieldForId(int fieldId) {
5415
      return _Fields.findByThriftId(fieldId);
5416
    }
5417
 
5418
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5419
      org.apache.thrift.protocol.TField field;
352 ashish 5420
      iprot.readStructBegin();
5421
      while (true)
5422
      {
5423
        field = iprot.readFieldBegin();
3430 rajveer 5424
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5425
          break;
5426
        }
3430 rajveer 5427
        switch (field.id) {
5428
          case 1: // MAIL
5429
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5430
              this.mail = new Mail();
5431
              this.mail.read(iprot);
5432
            } else { 
5433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5434
            }
5435
            break;
5436
          default:
5437
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5438
        }
3430 rajveer 5439
        iprot.readFieldEnd();
352 ashish 5440
      }
5441
      iprot.readStructEnd();
5442
      validate();
5443
    }
5444
 
3430 rajveer 5445
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5446
      validate();
5447
 
5448
      oprot.writeStructBegin(STRUCT_DESC);
5449
      if (this.mail != null) {
5450
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5451
        this.mail.write(oprot);
5452
        oprot.writeFieldEnd();
5453
      }
5454
      oprot.writeFieldStop();
5455
      oprot.writeStructEnd();
5456
    }
5457
 
5458
    @Override
5459
    public String toString() {
5460
      StringBuilder sb = new StringBuilder("sendMail_args(");
5461
      boolean first = true;
5462
 
5463
      sb.append("mail:");
5464
      if (this.mail == null) {
5465
        sb.append("null");
5466
      } else {
5467
        sb.append(this.mail);
5468
      }
5469
      first = false;
5470
      sb.append(")");
5471
      return sb.toString();
5472
    }
5473
 
3430 rajveer 5474
    public void validate() throws org.apache.thrift.TException {
352 ashish 5475
      // check for required fields
5476
    }
5477
 
3430 rajveer 5478
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5479
      try {
5480
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5481
      } catch (org.apache.thrift.TException te) {
5482
        throw new java.io.IOException(te);
5483
      }
5484
    }
5485
 
5486
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5487
      try {
5488
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5489
      } catch (org.apache.thrift.TException te) {
5490
        throw new java.io.IOException(te);
5491
      }
5492
    }
5493
 
352 ashish 5494
  }
5495
 
3430 rajveer 5496
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5497
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5498
 
3430 rajveer 5499
    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 5500
 
3430 rajveer 5501
    private HelperServiceException se; // required
352 ashish 5502
 
5503
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5504
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5505
      SE((short)1, "se");
5506
 
5507
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5508
 
5509
      static {
5510
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5511
          byName.put(field.getFieldName(), field);
5512
        }
5513
      }
5514
 
5515
      /**
5516
       * Find the _Fields constant that matches fieldId, or null if its not found.
5517
       */
5518
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5519
        switch(fieldId) {
5520
          case 1: // SE
5521
            return SE;
5522
          default:
5523
            return null;
5524
        }
352 ashish 5525
      }
5526
 
5527
      /**
5528
       * Find the _Fields constant that matches fieldId, throwing an exception
5529
       * if it is not found.
5530
       */
5531
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5532
        _Fields fields = findByThriftId(fieldId);
5533
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5534
        return fields;
5535
      }
5536
 
5537
      /**
5538
       * Find the _Fields constant that matches name, or null if its not found.
5539
       */
5540
      public static _Fields findByName(String name) {
5541
        return byName.get(name);
5542
      }
5543
 
5544
      private final short _thriftId;
5545
      private final String _fieldName;
5546
 
5547
      _Fields(short thriftId, String fieldName) {
5548
        _thriftId = thriftId;
5549
        _fieldName = fieldName;
5550
      }
5551
 
5552
      public short getThriftFieldId() {
5553
        return _thriftId;
5554
      }
5555
 
5556
      public String getFieldName() {
5557
        return _fieldName;
5558
      }
5559
    }
5560
 
5561
    // isset id assignments
5562
 
3430 rajveer 5563
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5564
    static {
3430 rajveer 5565
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5566
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5570
    }
5571
 
5572
    public sendMail_result() {
5573
    }
5574
 
5575
    public sendMail_result(
5576
      HelperServiceException se)
5577
    {
5578
      this();
5579
      this.se = se;
5580
    }
5581
 
5582
    /**
5583
     * Performs a deep copy on <i>other</i>.
5584
     */
5585
    public sendMail_result(sendMail_result other) {
5586
      if (other.isSetSe()) {
5587
        this.se = new HelperServiceException(other.se);
5588
      }
5589
    }
5590
 
5591
    public sendMail_result deepCopy() {
5592
      return new sendMail_result(this);
5593
    }
5594
 
3430 rajveer 5595
    @Override
5596
    public void clear() {
5597
      this.se = null;
352 ashish 5598
    }
5599
 
5600
    public HelperServiceException getSe() {
5601
      return this.se;
5602
    }
5603
 
3430 rajveer 5604
    public void setSe(HelperServiceException se) {
352 ashish 5605
      this.se = se;
5606
    }
5607
 
5608
    public void unsetSe() {
5609
      this.se = null;
5610
    }
5611
 
3430 rajveer 5612
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5613
    public boolean isSetSe() {
5614
      return this.se != null;
5615
    }
5616
 
5617
    public void setSeIsSet(boolean value) {
5618
      if (!value) {
5619
        this.se = null;
5620
      }
5621
    }
5622
 
5623
    public void setFieldValue(_Fields field, Object value) {
5624
      switch (field) {
5625
      case SE:
5626
        if (value == null) {
5627
          unsetSe();
5628
        } else {
5629
          setSe((HelperServiceException)value);
5630
        }
5631
        break;
5632
 
5633
      }
5634
    }
5635
 
5636
    public Object getFieldValue(_Fields field) {
5637
      switch (field) {
5638
      case SE:
5639
        return getSe();
5640
 
5641
      }
5642
      throw new IllegalStateException();
5643
    }
5644
 
3430 rajveer 5645
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5646
    public boolean isSet(_Fields field) {
5647
      if (field == null) {
5648
        throw new IllegalArgumentException();
5649
      }
352 ashish 5650
 
5651
      switch (field) {
5652
      case SE:
5653
        return isSetSe();
5654
      }
5655
      throw new IllegalStateException();
5656
    }
5657
 
5658
    @Override
5659
    public boolean equals(Object that) {
5660
      if (that == null)
5661
        return false;
5662
      if (that instanceof sendMail_result)
5663
        return this.equals((sendMail_result)that);
5664
      return false;
5665
    }
5666
 
5667
    public boolean equals(sendMail_result that) {
5668
      if (that == null)
5669
        return false;
5670
 
5671
      boolean this_present_se = true && this.isSetSe();
5672
      boolean that_present_se = true && that.isSetSe();
5673
      if (this_present_se || that_present_se) {
5674
        if (!(this_present_se && that_present_se))
5675
          return false;
5676
        if (!this.se.equals(that.se))
5677
          return false;
5678
      }
5679
 
5680
      return true;
5681
    }
5682
 
5683
    @Override
5684
    public int hashCode() {
5685
      return 0;
5686
    }
5687
 
5688
    public int compareTo(sendMail_result other) {
5689
      if (!getClass().equals(other.getClass())) {
5690
        return getClass().getName().compareTo(other.getClass().getName());
5691
      }
5692
 
5693
      int lastComparison = 0;
5694
      sendMail_result typedOther = (sendMail_result)other;
5695
 
3430 rajveer 5696
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5697
      if (lastComparison != 0) {
5698
        return lastComparison;
5699
      }
3430 rajveer 5700
      if (isSetSe()) {
5701
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5702
        if (lastComparison != 0) {
5703
          return lastComparison;
5704
        }
352 ashish 5705
      }
5706
      return 0;
5707
    }
5708
 
3430 rajveer 5709
    public _Fields fieldForId(int fieldId) {
5710
      return _Fields.findByThriftId(fieldId);
5711
    }
5712
 
5713
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5714
      org.apache.thrift.protocol.TField field;
352 ashish 5715
      iprot.readStructBegin();
5716
      while (true)
5717
      {
5718
        field = iprot.readFieldBegin();
3430 rajveer 5719
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5720
          break;
5721
        }
3430 rajveer 5722
        switch (field.id) {
5723
          case 1: // SE
5724
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5725
              this.se = new HelperServiceException();
5726
              this.se.read(iprot);
5727
            } else { 
5728
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5729
            }
5730
            break;
5731
          default:
5732
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5733
        }
3430 rajveer 5734
        iprot.readFieldEnd();
352 ashish 5735
      }
5736
      iprot.readStructEnd();
5737
      validate();
5738
    }
5739
 
3430 rajveer 5740
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5741
      oprot.writeStructBegin(STRUCT_DESC);
5742
 
5743
      if (this.isSetSe()) {
5744
        oprot.writeFieldBegin(SE_FIELD_DESC);
5745
        this.se.write(oprot);
5746
        oprot.writeFieldEnd();
5747
      }
5748
      oprot.writeFieldStop();
5749
      oprot.writeStructEnd();
5750
    }
5751
 
5752
    @Override
5753
    public String toString() {
5754
      StringBuilder sb = new StringBuilder("sendMail_result(");
5755
      boolean first = true;
5756
 
5757
      sb.append("se:");
5758
      if (this.se == null) {
5759
        sb.append("null");
5760
      } else {
5761
        sb.append(this.se);
5762
      }
5763
      first = false;
5764
      sb.append(")");
5765
      return sb.toString();
5766
    }
5767
 
3430 rajveer 5768
    public void validate() throws org.apache.thrift.TException {
352 ashish 5769
      // check for required fields
5770
    }
5771
 
3430 rajveer 5772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5773
      try {
5774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5775
      } catch (org.apache.thrift.TException te) {
5776
        throw new java.io.IOException(te);
5777
      }
5778
    }
5779
 
5780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5781
      try {
5782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5783
      } catch (org.apache.thrift.TException te) {
5784
        throw new java.io.IOException(te);
5785
      }
5786
    }
5787
 
352 ashish 5788
  }
5789
 
3430 rajveer 5790
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5792
 
3430 rajveer 5793
    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 5794
 
3430 rajveer 5795
    private TextMessage message; // required
352 ashish 5796
 
5797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5799
      MESSAGE((short)1, "message");
5800
 
5801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5802
 
5803
      static {
5804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5805
          byName.put(field.getFieldName(), field);
5806
        }
5807
      }
5808
 
5809
      /**
5810
       * Find the _Fields constant that matches fieldId, or null if its not found.
5811
       */
5812
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5813
        switch(fieldId) {
5814
          case 1: // MESSAGE
5815
            return MESSAGE;
5816
          default:
5817
            return null;
5818
        }
352 ashish 5819
      }
5820
 
5821
      /**
5822
       * Find the _Fields constant that matches fieldId, throwing an exception
5823
       * if it is not found.
5824
       */
5825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5826
        _Fields fields = findByThriftId(fieldId);
5827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5828
        return fields;
5829
      }
5830
 
5831
      /**
5832
       * Find the _Fields constant that matches name, or null if its not found.
5833
       */
5834
      public static _Fields findByName(String name) {
5835
        return byName.get(name);
5836
      }
5837
 
5838
      private final short _thriftId;
5839
      private final String _fieldName;
5840
 
5841
      _Fields(short thriftId, String fieldName) {
5842
        _thriftId = thriftId;
5843
        _fieldName = fieldName;
5844
      }
5845
 
5846
      public short getThriftFieldId() {
5847
        return _thriftId;
5848
      }
5849
 
5850
      public String getFieldName() {
5851
        return _fieldName;
5852
      }
5853
    }
5854
 
5855
    // isset id assignments
5856
 
3430 rajveer 5857
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5858
    static {
3430 rajveer 5859
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5860
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5861
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5862
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5863
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5864
    }
5865
 
5866
    public sendText_args() {
5867
    }
5868
 
5869
    public sendText_args(
5870
      TextMessage message)
5871
    {
5872
      this();
5873
      this.message = message;
5874
    }
5875
 
5876
    /**
5877
     * Performs a deep copy on <i>other</i>.
5878
     */
5879
    public sendText_args(sendText_args other) {
5880
      if (other.isSetMessage()) {
5881
        this.message = new TextMessage(other.message);
5882
      }
5883
    }
5884
 
5885
    public sendText_args deepCopy() {
5886
      return new sendText_args(this);
5887
    }
5888
 
3430 rajveer 5889
    @Override
5890
    public void clear() {
5891
      this.message = null;
352 ashish 5892
    }
5893
 
5894
    public TextMessage getMessage() {
5895
      return this.message;
5896
    }
5897
 
3430 rajveer 5898
    public void setMessage(TextMessage message) {
352 ashish 5899
      this.message = message;
5900
    }
5901
 
5902
    public void unsetMessage() {
5903
      this.message = null;
5904
    }
5905
 
3430 rajveer 5906
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5907
    public boolean isSetMessage() {
5908
      return this.message != null;
5909
    }
5910
 
5911
    public void setMessageIsSet(boolean value) {
5912
      if (!value) {
5913
        this.message = null;
5914
      }
5915
    }
5916
 
5917
    public void setFieldValue(_Fields field, Object value) {
5918
      switch (field) {
5919
      case MESSAGE:
5920
        if (value == null) {
5921
          unsetMessage();
5922
        } else {
5923
          setMessage((TextMessage)value);
5924
        }
5925
        break;
5926
 
5927
      }
5928
    }
5929
 
5930
    public Object getFieldValue(_Fields field) {
5931
      switch (field) {
5932
      case MESSAGE:
5933
        return getMessage();
5934
 
5935
      }
5936
      throw new IllegalStateException();
5937
    }
5938
 
3430 rajveer 5939
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5940
    public boolean isSet(_Fields field) {
5941
      if (field == null) {
5942
        throw new IllegalArgumentException();
5943
      }
352 ashish 5944
 
5945
      switch (field) {
5946
      case MESSAGE:
5947
        return isSetMessage();
5948
      }
5949
      throw new IllegalStateException();
5950
    }
5951
 
5952
    @Override
5953
    public boolean equals(Object that) {
5954
      if (that == null)
5955
        return false;
5956
      if (that instanceof sendText_args)
5957
        return this.equals((sendText_args)that);
5958
      return false;
5959
    }
5960
 
5961
    public boolean equals(sendText_args that) {
5962
      if (that == null)
5963
        return false;
5964
 
5965
      boolean this_present_message = true && this.isSetMessage();
5966
      boolean that_present_message = true && that.isSetMessage();
5967
      if (this_present_message || that_present_message) {
5968
        if (!(this_present_message && that_present_message))
5969
          return false;
5970
        if (!this.message.equals(that.message))
5971
          return false;
5972
      }
5973
 
5974
      return true;
5975
    }
5976
 
5977
    @Override
5978
    public int hashCode() {
5979
      return 0;
5980
    }
5981
 
5982
    public int compareTo(sendText_args other) {
5983
      if (!getClass().equals(other.getClass())) {
5984
        return getClass().getName().compareTo(other.getClass().getName());
5985
      }
5986
 
5987
      int lastComparison = 0;
5988
      sendText_args typedOther = (sendText_args)other;
5989
 
3430 rajveer 5990
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 5991
      if (lastComparison != 0) {
5992
        return lastComparison;
5993
      }
3430 rajveer 5994
      if (isSetMessage()) {
5995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5996
        if (lastComparison != 0) {
5997
          return lastComparison;
5998
        }
352 ashish 5999
      }
6000
      return 0;
6001
    }
6002
 
3430 rajveer 6003
    public _Fields fieldForId(int fieldId) {
6004
      return _Fields.findByThriftId(fieldId);
6005
    }
6006
 
6007
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6008
      org.apache.thrift.protocol.TField field;
352 ashish 6009
      iprot.readStructBegin();
6010
      while (true)
6011
      {
6012
        field = iprot.readFieldBegin();
3430 rajveer 6013
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6014
          break;
6015
        }
3430 rajveer 6016
        switch (field.id) {
6017
          case 1: // MESSAGE
6018
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6019
              this.message = new TextMessage();
6020
              this.message.read(iprot);
6021
            } else { 
6022
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6023
            }
6024
            break;
6025
          default:
6026
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6027
        }
3430 rajveer 6028
        iprot.readFieldEnd();
352 ashish 6029
      }
6030
      iprot.readStructEnd();
6031
      validate();
6032
    }
6033
 
3430 rajveer 6034
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6035
      validate();
6036
 
6037
      oprot.writeStructBegin(STRUCT_DESC);
6038
      if (this.message != null) {
6039
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6040
        this.message.write(oprot);
6041
        oprot.writeFieldEnd();
6042
      }
6043
      oprot.writeFieldStop();
6044
      oprot.writeStructEnd();
6045
    }
6046
 
6047
    @Override
6048
    public String toString() {
6049
      StringBuilder sb = new StringBuilder("sendText_args(");
6050
      boolean first = true;
6051
 
6052
      sb.append("message:");
6053
      if (this.message == null) {
6054
        sb.append("null");
6055
      } else {
6056
        sb.append(this.message);
6057
      }
6058
      first = false;
6059
      sb.append(")");
6060
      return sb.toString();
6061
    }
6062
 
3430 rajveer 6063
    public void validate() throws org.apache.thrift.TException {
352 ashish 6064
      // check for required fields
6065
    }
6066
 
3430 rajveer 6067
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6068
      try {
6069
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6070
      } catch (org.apache.thrift.TException te) {
6071
        throw new java.io.IOException(te);
6072
      }
6073
    }
6074
 
6075
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6076
      try {
6077
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6078
      } catch (org.apache.thrift.TException te) {
6079
        throw new java.io.IOException(te);
6080
      }
6081
    }
6082
 
352 ashish 6083
  }
6084
 
3430 rajveer 6085
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6087
 
3430 rajveer 6088
    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 6089
 
3430 rajveer 6090
    private HelperServiceException se; // required
352 ashish 6091
 
6092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6094
      SE((short)1, "se");
6095
 
6096
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6097
 
6098
      static {
6099
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6100
          byName.put(field.getFieldName(), field);
6101
        }
6102
      }
6103
 
6104
      /**
6105
       * Find the _Fields constant that matches fieldId, or null if its not found.
6106
       */
6107
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6108
        switch(fieldId) {
6109
          case 1: // SE
6110
            return SE;
6111
          default:
6112
            return null;
6113
        }
352 ashish 6114
      }
6115
 
6116
      /**
6117
       * Find the _Fields constant that matches fieldId, throwing an exception
6118
       * if it is not found.
6119
       */
6120
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6121
        _Fields fields = findByThriftId(fieldId);
6122
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6123
        return fields;
6124
      }
6125
 
6126
      /**
6127
       * Find the _Fields constant that matches name, or null if its not found.
6128
       */
6129
      public static _Fields findByName(String name) {
6130
        return byName.get(name);
6131
      }
6132
 
6133
      private final short _thriftId;
6134
      private final String _fieldName;
6135
 
6136
      _Fields(short thriftId, String fieldName) {
6137
        _thriftId = thriftId;
6138
        _fieldName = fieldName;
6139
      }
6140
 
6141
      public short getThriftFieldId() {
6142
        return _thriftId;
6143
      }
6144
 
6145
      public String getFieldName() {
6146
        return _fieldName;
6147
      }
6148
    }
6149
 
6150
    // isset id assignments
6151
 
3430 rajveer 6152
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6153
    static {
3430 rajveer 6154
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6155
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6156
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6157
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6158
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6159
    }
6160
 
6161
    public sendText_result() {
6162
    }
6163
 
6164
    public sendText_result(
6165
      HelperServiceException se)
6166
    {
6167
      this();
6168
      this.se = se;
6169
    }
6170
 
6171
    /**
6172
     * Performs a deep copy on <i>other</i>.
6173
     */
6174
    public sendText_result(sendText_result other) {
6175
      if (other.isSetSe()) {
6176
        this.se = new HelperServiceException(other.se);
6177
      }
6178
    }
6179
 
6180
    public sendText_result deepCopy() {
6181
      return new sendText_result(this);
6182
    }
6183
 
3430 rajveer 6184
    @Override
6185
    public void clear() {
6186
      this.se = null;
352 ashish 6187
    }
6188
 
6189
    public HelperServiceException getSe() {
6190
      return this.se;
6191
    }
6192
 
3430 rajveer 6193
    public void setSe(HelperServiceException se) {
352 ashish 6194
      this.se = se;
6195
    }
6196
 
6197
    public void unsetSe() {
6198
      this.se = null;
6199
    }
6200
 
3430 rajveer 6201
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6202
    public boolean isSetSe() {
6203
      return this.se != null;
6204
    }
6205
 
6206
    public void setSeIsSet(boolean value) {
6207
      if (!value) {
6208
        this.se = null;
6209
      }
6210
    }
6211
 
6212
    public void setFieldValue(_Fields field, Object value) {
6213
      switch (field) {
6214
      case SE:
6215
        if (value == null) {
6216
          unsetSe();
6217
        } else {
6218
          setSe((HelperServiceException)value);
6219
        }
6220
        break;
6221
 
6222
      }
6223
    }
6224
 
6225
    public Object getFieldValue(_Fields field) {
6226
      switch (field) {
6227
      case SE:
6228
        return getSe();
6229
 
6230
      }
6231
      throw new IllegalStateException();
6232
    }
6233
 
3430 rajveer 6234
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6235
    public boolean isSet(_Fields field) {
6236
      if (field == null) {
6237
        throw new IllegalArgumentException();
6238
      }
352 ashish 6239
 
6240
      switch (field) {
6241
      case SE:
6242
        return isSetSe();
6243
      }
6244
      throw new IllegalStateException();
6245
    }
6246
 
6247
    @Override
6248
    public boolean equals(Object that) {
6249
      if (that == null)
6250
        return false;
6251
      if (that instanceof sendText_result)
6252
        return this.equals((sendText_result)that);
6253
      return false;
6254
    }
6255
 
6256
    public boolean equals(sendText_result that) {
6257
      if (that == null)
6258
        return false;
6259
 
6260
      boolean this_present_se = true && this.isSetSe();
6261
      boolean that_present_se = true && that.isSetSe();
6262
      if (this_present_se || that_present_se) {
6263
        if (!(this_present_se && that_present_se))
6264
          return false;
6265
        if (!this.se.equals(that.se))
6266
          return false;
6267
      }
6268
 
6269
      return true;
6270
    }
6271
 
6272
    @Override
6273
    public int hashCode() {
6274
      return 0;
6275
    }
6276
 
6277
    public int compareTo(sendText_result other) {
6278
      if (!getClass().equals(other.getClass())) {
6279
        return getClass().getName().compareTo(other.getClass().getName());
6280
      }
6281
 
6282
      int lastComparison = 0;
6283
      sendText_result typedOther = (sendText_result)other;
6284
 
3430 rajveer 6285
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6286
      if (lastComparison != 0) {
6287
        return lastComparison;
6288
      }
3430 rajveer 6289
      if (isSetSe()) {
6290
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6291
        if (lastComparison != 0) {
6292
          return lastComparison;
6293
        }
352 ashish 6294
      }
6295
      return 0;
6296
    }
6297
 
3430 rajveer 6298
    public _Fields fieldForId(int fieldId) {
6299
      return _Fields.findByThriftId(fieldId);
6300
    }
6301
 
6302
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6303
      org.apache.thrift.protocol.TField field;
352 ashish 6304
      iprot.readStructBegin();
6305
      while (true)
6306
      {
6307
        field = iprot.readFieldBegin();
3430 rajveer 6308
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6309
          break;
6310
        }
3430 rajveer 6311
        switch (field.id) {
6312
          case 1: // SE
6313
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6314
              this.se = new HelperServiceException();
6315
              this.se.read(iprot);
6316
            } else { 
6317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6318
            }
6319
            break;
6320
          default:
6321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6322
        }
3430 rajveer 6323
        iprot.readFieldEnd();
352 ashish 6324
      }
6325
      iprot.readStructEnd();
6326
      validate();
6327
    }
6328
 
3430 rajveer 6329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6330
      oprot.writeStructBegin(STRUCT_DESC);
6331
 
6332
      if (this.isSetSe()) {
6333
        oprot.writeFieldBegin(SE_FIELD_DESC);
6334
        this.se.write(oprot);
6335
        oprot.writeFieldEnd();
6336
      }
6337
      oprot.writeFieldStop();
6338
      oprot.writeStructEnd();
6339
    }
6340
 
6341
    @Override
6342
    public String toString() {
6343
      StringBuilder sb = new StringBuilder("sendText_result(");
6344
      boolean first = true;
6345
 
6346
      sb.append("se:");
6347
      if (this.se == null) {
6348
        sb.append("null");
6349
      } else {
6350
        sb.append(this.se);
6351
      }
6352
      first = false;
6353
      sb.append(")");
6354
      return sb.toString();
6355
    }
6356
 
3430 rajveer 6357
    public void validate() throws org.apache.thrift.TException {
352 ashish 6358
      // check for required fields
6359
    }
6360
 
3430 rajveer 6361
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6362
      try {
6363
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6364
      } catch (org.apache.thrift.TException te) {
6365
        throw new java.io.IOException(te);
6366
      }
6367
    }
6368
 
6369
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6370
      try {
6371
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6372
      } catch (org.apache.thrift.TException te) {
6373
        throw new java.io.IOException(te);
6374
      }
6375
    }
6376
 
352 ashish 6377
  }
6378
 
3430 rajveer 6379
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6381
 
3430 rajveer 6382
    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 6383
 
3430 rajveer 6384
    private Message message; // required
352 ashish 6385
 
6386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6388
      MESSAGE((short)1, "message");
6389
 
6390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6391
 
6392
      static {
6393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6394
          byName.put(field.getFieldName(), field);
6395
        }
6396
      }
6397
 
6398
      /**
6399
       * Find the _Fields constant that matches fieldId, or null if its not found.
6400
       */
6401
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6402
        switch(fieldId) {
6403
          case 1: // MESSAGE
6404
            return MESSAGE;
6405
          default:
6406
            return null;
6407
        }
352 ashish 6408
      }
6409
 
6410
      /**
6411
       * Find the _Fields constant that matches fieldId, throwing an exception
6412
       * if it is not found.
6413
       */
6414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6415
        _Fields fields = findByThriftId(fieldId);
6416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6417
        return fields;
6418
      }
6419
 
6420
      /**
6421
       * Find the _Fields constant that matches name, or null if its not found.
6422
       */
6423
      public static _Fields findByName(String name) {
6424
        return byName.get(name);
6425
      }
6426
 
6427
      private final short _thriftId;
6428
      private final String _fieldName;
6429
 
6430
      _Fields(short thriftId, String fieldName) {
6431
        _thriftId = thriftId;
6432
        _fieldName = fieldName;
6433
      }
6434
 
6435
      public short getThriftFieldId() {
6436
        return _thriftId;
6437
      }
6438
 
6439
      public String getFieldName() {
6440
        return _fieldName;
6441
      }
6442
    }
6443
 
6444
    // isset id assignments
6445
 
3430 rajveer 6446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6447
    static {
3430 rajveer 6448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6449
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6450
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6453
    }
6454
 
6455
    public addMessage_args() {
6456
    }
6457
 
6458
    public addMessage_args(
6459
      Message message)
6460
    {
6461
      this();
6462
      this.message = message;
6463
    }
6464
 
6465
    /**
6466
     * Performs a deep copy on <i>other</i>.
6467
     */
6468
    public addMessage_args(addMessage_args other) {
6469
      if (other.isSetMessage()) {
6470
        this.message = new Message(other.message);
6471
      }
6472
    }
6473
 
6474
    public addMessage_args deepCopy() {
6475
      return new addMessage_args(this);
6476
    }
6477
 
3430 rajveer 6478
    @Override
6479
    public void clear() {
6480
      this.message = null;
352 ashish 6481
    }
6482
 
6483
    public Message getMessage() {
6484
      return this.message;
6485
    }
6486
 
3430 rajveer 6487
    public void setMessage(Message message) {
352 ashish 6488
      this.message = message;
6489
    }
6490
 
6491
    public void unsetMessage() {
6492
      this.message = null;
6493
    }
6494
 
3430 rajveer 6495
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6496
    public boolean isSetMessage() {
6497
      return this.message != null;
6498
    }
6499
 
6500
    public void setMessageIsSet(boolean value) {
6501
      if (!value) {
6502
        this.message = null;
6503
      }
6504
    }
6505
 
6506
    public void setFieldValue(_Fields field, Object value) {
6507
      switch (field) {
6508
      case MESSAGE:
6509
        if (value == null) {
6510
          unsetMessage();
6511
        } else {
6512
          setMessage((Message)value);
6513
        }
6514
        break;
6515
 
6516
      }
6517
    }
6518
 
6519
    public Object getFieldValue(_Fields field) {
6520
      switch (field) {
6521
      case MESSAGE:
6522
        return getMessage();
6523
 
6524
      }
6525
      throw new IllegalStateException();
6526
    }
6527
 
3430 rajveer 6528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6529
    public boolean isSet(_Fields field) {
6530
      if (field == null) {
6531
        throw new IllegalArgumentException();
6532
      }
352 ashish 6533
 
6534
      switch (field) {
6535
      case MESSAGE:
6536
        return isSetMessage();
6537
      }
6538
      throw new IllegalStateException();
6539
    }
6540
 
6541
    @Override
6542
    public boolean equals(Object that) {
6543
      if (that == null)
6544
        return false;
6545
      if (that instanceof addMessage_args)
6546
        return this.equals((addMessage_args)that);
6547
      return false;
6548
    }
6549
 
6550
    public boolean equals(addMessage_args that) {
6551
      if (that == null)
6552
        return false;
6553
 
6554
      boolean this_present_message = true && this.isSetMessage();
6555
      boolean that_present_message = true && that.isSetMessage();
6556
      if (this_present_message || that_present_message) {
6557
        if (!(this_present_message && that_present_message))
6558
          return false;
6559
        if (!this.message.equals(that.message))
6560
          return false;
6561
      }
6562
 
6563
      return true;
6564
    }
6565
 
6566
    @Override
6567
    public int hashCode() {
6568
      return 0;
6569
    }
6570
 
6571
    public int compareTo(addMessage_args other) {
6572
      if (!getClass().equals(other.getClass())) {
6573
        return getClass().getName().compareTo(other.getClass().getName());
6574
      }
6575
 
6576
      int lastComparison = 0;
6577
      addMessage_args typedOther = (addMessage_args)other;
6578
 
3430 rajveer 6579
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6580
      if (lastComparison != 0) {
6581
        return lastComparison;
6582
      }
3430 rajveer 6583
      if (isSetMessage()) {
6584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6585
        if (lastComparison != 0) {
6586
          return lastComparison;
6587
        }
352 ashish 6588
      }
6589
      return 0;
6590
    }
6591
 
3430 rajveer 6592
    public _Fields fieldForId(int fieldId) {
6593
      return _Fields.findByThriftId(fieldId);
6594
    }
6595
 
6596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6597
      org.apache.thrift.protocol.TField field;
352 ashish 6598
      iprot.readStructBegin();
6599
      while (true)
6600
      {
6601
        field = iprot.readFieldBegin();
3430 rajveer 6602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6603
          break;
6604
        }
3430 rajveer 6605
        switch (field.id) {
6606
          case 1: // MESSAGE
6607
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6608
              this.message = new Message();
6609
              this.message.read(iprot);
6610
            } else { 
6611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6612
            }
6613
            break;
6614
          default:
6615
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6616
        }
3430 rajveer 6617
        iprot.readFieldEnd();
352 ashish 6618
      }
6619
      iprot.readStructEnd();
6620
      validate();
6621
    }
6622
 
3430 rajveer 6623
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6624
      validate();
6625
 
6626
      oprot.writeStructBegin(STRUCT_DESC);
6627
      if (this.message != null) {
6628
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6629
        this.message.write(oprot);
6630
        oprot.writeFieldEnd();
6631
      }
6632
      oprot.writeFieldStop();
6633
      oprot.writeStructEnd();
6634
    }
6635
 
6636
    @Override
6637
    public String toString() {
6638
      StringBuilder sb = new StringBuilder("addMessage_args(");
6639
      boolean first = true;
6640
 
6641
      sb.append("message:");
6642
      if (this.message == null) {
6643
        sb.append("null");
6644
      } else {
6645
        sb.append(this.message);
6646
      }
6647
      first = false;
6648
      sb.append(")");
6649
      return sb.toString();
6650
    }
6651
 
3430 rajveer 6652
    public void validate() throws org.apache.thrift.TException {
352 ashish 6653
      // check for required fields
6654
    }
6655
 
3430 rajveer 6656
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6657
      try {
6658
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6659
      } catch (org.apache.thrift.TException te) {
6660
        throw new java.io.IOException(te);
6661
      }
6662
    }
6663
 
6664
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6665
      try {
6666
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6667
      } catch (org.apache.thrift.TException te) {
6668
        throw new java.io.IOException(te);
6669
      }
6670
    }
6671
 
352 ashish 6672
  }
6673
 
3430 rajveer 6674
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6675
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6676
 
3430 rajveer 6677
    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 6678
 
3430 rajveer 6679
    private HelperServiceException se; // required
352 ashish 6680
 
6681
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6682
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6683
      SE((short)1, "se");
6684
 
6685
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6686
 
6687
      static {
6688
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6689
          byName.put(field.getFieldName(), field);
6690
        }
6691
      }
6692
 
6693
      /**
6694
       * Find the _Fields constant that matches fieldId, or null if its not found.
6695
       */
6696
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6697
        switch(fieldId) {
6698
          case 1: // SE
6699
            return SE;
6700
          default:
6701
            return null;
6702
        }
352 ashish 6703
      }
6704
 
6705
      /**
6706
       * Find the _Fields constant that matches fieldId, throwing an exception
6707
       * if it is not found.
6708
       */
6709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6710
        _Fields fields = findByThriftId(fieldId);
6711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6712
        return fields;
6713
      }
6714
 
6715
      /**
6716
       * Find the _Fields constant that matches name, or null if its not found.
6717
       */
6718
      public static _Fields findByName(String name) {
6719
        return byName.get(name);
6720
      }
6721
 
6722
      private final short _thriftId;
6723
      private final String _fieldName;
6724
 
6725
      _Fields(short thriftId, String fieldName) {
6726
        _thriftId = thriftId;
6727
        _fieldName = fieldName;
6728
      }
6729
 
6730
      public short getThriftFieldId() {
6731
        return _thriftId;
6732
      }
6733
 
6734
      public String getFieldName() {
6735
        return _fieldName;
6736
      }
6737
    }
6738
 
6739
    // isset id assignments
6740
 
3430 rajveer 6741
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6742
    static {
3430 rajveer 6743
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6744
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6748
    }
6749
 
6750
    public addMessage_result() {
6751
    }
6752
 
6753
    public addMessage_result(
6754
      HelperServiceException se)
6755
    {
6756
      this();
6757
      this.se = se;
6758
    }
6759
 
6760
    /**
6761
     * Performs a deep copy on <i>other</i>.
6762
     */
6763
    public addMessage_result(addMessage_result other) {
6764
      if (other.isSetSe()) {
6765
        this.se = new HelperServiceException(other.se);
6766
      }
6767
    }
6768
 
6769
    public addMessage_result deepCopy() {
6770
      return new addMessage_result(this);
6771
    }
6772
 
3430 rajveer 6773
    @Override
6774
    public void clear() {
6775
      this.se = null;
352 ashish 6776
    }
6777
 
6778
    public HelperServiceException getSe() {
6779
      return this.se;
6780
    }
6781
 
3430 rajveer 6782
    public void setSe(HelperServiceException se) {
352 ashish 6783
      this.se = se;
6784
    }
6785
 
6786
    public void unsetSe() {
6787
      this.se = null;
6788
    }
6789
 
3430 rajveer 6790
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6791
    public boolean isSetSe() {
6792
      return this.se != null;
6793
    }
6794
 
6795
    public void setSeIsSet(boolean value) {
6796
      if (!value) {
6797
        this.se = null;
6798
      }
6799
    }
6800
 
6801
    public void setFieldValue(_Fields field, Object value) {
6802
      switch (field) {
6803
      case SE:
6804
        if (value == null) {
6805
          unsetSe();
6806
        } else {
6807
          setSe((HelperServiceException)value);
6808
        }
6809
        break;
6810
 
6811
      }
6812
    }
6813
 
6814
    public Object getFieldValue(_Fields field) {
6815
      switch (field) {
6816
      case SE:
6817
        return getSe();
6818
 
6819
      }
6820
      throw new IllegalStateException();
6821
    }
6822
 
3430 rajveer 6823
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6824
    public boolean isSet(_Fields field) {
6825
      if (field == null) {
6826
        throw new IllegalArgumentException();
6827
      }
352 ashish 6828
 
6829
      switch (field) {
6830
      case SE:
6831
        return isSetSe();
6832
      }
6833
      throw new IllegalStateException();
6834
    }
6835
 
6836
    @Override
6837
    public boolean equals(Object that) {
6838
      if (that == null)
6839
        return false;
6840
      if (that instanceof addMessage_result)
6841
        return this.equals((addMessage_result)that);
6842
      return false;
6843
    }
6844
 
6845
    public boolean equals(addMessage_result that) {
6846
      if (that == null)
6847
        return false;
6848
 
6849
      boolean this_present_se = true && this.isSetSe();
6850
      boolean that_present_se = true && that.isSetSe();
6851
      if (this_present_se || that_present_se) {
6852
        if (!(this_present_se && that_present_se))
6853
          return false;
6854
        if (!this.se.equals(that.se))
6855
          return false;
6856
      }
6857
 
6858
      return true;
6859
    }
6860
 
6861
    @Override
6862
    public int hashCode() {
6863
      return 0;
6864
    }
6865
 
6866
    public int compareTo(addMessage_result other) {
6867
      if (!getClass().equals(other.getClass())) {
6868
        return getClass().getName().compareTo(other.getClass().getName());
6869
      }
6870
 
6871
      int lastComparison = 0;
6872
      addMessage_result typedOther = (addMessage_result)other;
6873
 
3430 rajveer 6874
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6875
      if (lastComparison != 0) {
6876
        return lastComparison;
6877
      }
3430 rajveer 6878
      if (isSetSe()) {
6879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6880
        if (lastComparison != 0) {
6881
          return lastComparison;
6882
        }
352 ashish 6883
      }
6884
      return 0;
6885
    }
6886
 
3430 rajveer 6887
    public _Fields fieldForId(int fieldId) {
6888
      return _Fields.findByThriftId(fieldId);
6889
    }
6890
 
6891
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6892
      org.apache.thrift.protocol.TField field;
352 ashish 6893
      iprot.readStructBegin();
6894
      while (true)
6895
      {
6896
        field = iprot.readFieldBegin();
3430 rajveer 6897
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6898
          break;
6899
        }
3430 rajveer 6900
        switch (field.id) {
6901
          case 1: // SE
6902
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6903
              this.se = new HelperServiceException();
6904
              this.se.read(iprot);
6905
            } else { 
6906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6907
            }
6908
            break;
6909
          default:
6910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6911
        }
3430 rajveer 6912
        iprot.readFieldEnd();
352 ashish 6913
      }
6914
      iprot.readStructEnd();
6915
      validate();
6916
    }
6917
 
3430 rajveer 6918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6919
      oprot.writeStructBegin(STRUCT_DESC);
6920
 
6921
      if (this.isSetSe()) {
6922
        oprot.writeFieldBegin(SE_FIELD_DESC);
6923
        this.se.write(oprot);
6924
        oprot.writeFieldEnd();
6925
      }
6926
      oprot.writeFieldStop();
6927
      oprot.writeStructEnd();
6928
    }
6929
 
6930
    @Override
6931
    public String toString() {
6932
      StringBuilder sb = new StringBuilder("addMessage_result(");
6933
      boolean first = true;
6934
 
6935
      sb.append("se:");
6936
      if (this.se == null) {
6937
        sb.append("null");
6938
      } else {
6939
        sb.append(this.se);
6940
      }
6941
      first = false;
6942
      sb.append(")");
6943
      return sb.toString();
6944
    }
6945
 
3430 rajveer 6946
    public void validate() throws org.apache.thrift.TException {
352 ashish 6947
      // check for required fields
6948
    }
6949
 
3430 rajveer 6950
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6951
      try {
6952
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6953
      } catch (org.apache.thrift.TException te) {
6954
        throw new java.io.IOException(te);
6955
      }
6956
    }
6957
 
6958
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6959
      try {
6960
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6961
      } catch (org.apache.thrift.TException te) {
6962
        throw new java.io.IOException(te);
6963
      }
6964
    }
6965
 
352 ashish 6966
  }
6967
 
3430 rajveer 6968
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
6969
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 6970
 
3430 rajveer 6971
    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);
6972
    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 6973
 
3430 rajveer 6974
    private long id; // required
6975
    private String message; // required
352 ashish 6976
 
6977
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6978
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6979
      ID((short)1, "id"),
6980
      MESSAGE((short)2, "message");
6981
 
6982
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6983
 
6984
      static {
6985
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6986
          byName.put(field.getFieldName(), field);
6987
        }
6988
      }
6989
 
6990
      /**
6991
       * Find the _Fields constant that matches fieldId, or null if its not found.
6992
       */
6993
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6994
        switch(fieldId) {
6995
          case 1: // ID
6996
            return ID;
6997
          case 2: // MESSAGE
6998
            return MESSAGE;
6999
          default:
7000
            return null;
7001
        }
352 ashish 7002
      }
7003
 
7004
      /**
7005
       * Find the _Fields constant that matches fieldId, throwing an exception
7006
       * if it is not found.
7007
       */
7008
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7009
        _Fields fields = findByThriftId(fieldId);
7010
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7011
        return fields;
7012
      }
7013
 
7014
      /**
7015
       * Find the _Fields constant that matches name, or null if its not found.
7016
       */
7017
      public static _Fields findByName(String name) {
7018
        return byName.get(name);
7019
      }
7020
 
7021
      private final short _thriftId;
7022
      private final String _fieldName;
7023
 
7024
      _Fields(short thriftId, String fieldName) {
7025
        _thriftId = thriftId;
7026
        _fieldName = fieldName;
7027
      }
7028
 
7029
      public short getThriftFieldId() {
7030
        return _thriftId;
7031
      }
7032
 
7033
      public String getFieldName() {
7034
        return _fieldName;
7035
      }
7036
    }
7037
 
7038
    // isset id assignments
7039
    private static final int __ID_ISSET_ID = 0;
7040
    private BitSet __isset_bit_vector = new BitSet(1);
7041
 
3430 rajveer 7042
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7043
    static {
3430 rajveer 7044
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7045
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7046
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7047
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7048
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7049
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7050
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7051
    }
7052
 
7053
    public updateMessage_args() {
7054
    }
7055
 
7056
    public updateMessage_args(
7057
      long id,
7058
      String message)
7059
    {
7060
      this();
7061
      this.id = id;
7062
      setIdIsSet(true);
7063
      this.message = message;
7064
    }
7065
 
7066
    /**
7067
     * Performs a deep copy on <i>other</i>.
7068
     */
7069
    public updateMessage_args(updateMessage_args other) {
7070
      __isset_bit_vector.clear();
7071
      __isset_bit_vector.or(other.__isset_bit_vector);
7072
      this.id = other.id;
7073
      if (other.isSetMessage()) {
7074
        this.message = other.message;
7075
      }
7076
    }
7077
 
7078
    public updateMessage_args deepCopy() {
7079
      return new updateMessage_args(this);
7080
    }
7081
 
3430 rajveer 7082
    @Override
7083
    public void clear() {
7084
      setIdIsSet(false);
7085
      this.id = 0;
7086
      this.message = null;
352 ashish 7087
    }
7088
 
7089
    public long getId() {
7090
      return this.id;
7091
    }
7092
 
3430 rajveer 7093
    public void setId(long id) {
352 ashish 7094
      this.id = id;
7095
      setIdIsSet(true);
7096
    }
7097
 
7098
    public void unsetId() {
7099
      __isset_bit_vector.clear(__ID_ISSET_ID);
7100
    }
7101
 
3430 rajveer 7102
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7103
    public boolean isSetId() {
7104
      return __isset_bit_vector.get(__ID_ISSET_ID);
7105
    }
7106
 
7107
    public void setIdIsSet(boolean value) {
7108
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7109
    }
7110
 
7111
    public String getMessage() {
7112
      return this.message;
7113
    }
7114
 
3430 rajveer 7115
    public void setMessage(String message) {
352 ashish 7116
      this.message = message;
7117
    }
7118
 
7119
    public void unsetMessage() {
7120
      this.message = null;
7121
    }
7122
 
3430 rajveer 7123
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7124
    public boolean isSetMessage() {
7125
      return this.message != null;
7126
    }
7127
 
7128
    public void setMessageIsSet(boolean value) {
7129
      if (!value) {
7130
        this.message = null;
7131
      }
7132
    }
7133
 
7134
    public void setFieldValue(_Fields field, Object value) {
7135
      switch (field) {
7136
      case ID:
7137
        if (value == null) {
7138
          unsetId();
7139
        } else {
7140
          setId((Long)value);
7141
        }
7142
        break;
7143
 
7144
      case MESSAGE:
7145
        if (value == null) {
7146
          unsetMessage();
7147
        } else {
7148
          setMessage((String)value);
7149
        }
7150
        break;
7151
 
7152
      }
7153
    }
7154
 
7155
    public Object getFieldValue(_Fields field) {
7156
      switch (field) {
7157
      case ID:
3430 rajveer 7158
        return Long.valueOf(getId());
352 ashish 7159
 
7160
      case MESSAGE:
7161
        return getMessage();
7162
 
7163
      }
7164
      throw new IllegalStateException();
7165
    }
7166
 
3430 rajveer 7167
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7168
    public boolean isSet(_Fields field) {
7169
      if (field == null) {
7170
        throw new IllegalArgumentException();
7171
      }
352 ashish 7172
 
7173
      switch (field) {
7174
      case ID:
7175
        return isSetId();
7176
      case MESSAGE:
7177
        return isSetMessage();
7178
      }
7179
      throw new IllegalStateException();
7180
    }
7181
 
7182
    @Override
7183
    public boolean equals(Object that) {
7184
      if (that == null)
7185
        return false;
7186
      if (that instanceof updateMessage_args)
7187
        return this.equals((updateMessage_args)that);
7188
      return false;
7189
    }
7190
 
7191
    public boolean equals(updateMessage_args that) {
7192
      if (that == null)
7193
        return false;
7194
 
7195
      boolean this_present_id = true;
7196
      boolean that_present_id = true;
7197
      if (this_present_id || that_present_id) {
7198
        if (!(this_present_id && that_present_id))
7199
          return false;
7200
        if (this.id != that.id)
7201
          return false;
7202
      }
7203
 
7204
      boolean this_present_message = true && this.isSetMessage();
7205
      boolean that_present_message = true && that.isSetMessage();
7206
      if (this_present_message || that_present_message) {
7207
        if (!(this_present_message && that_present_message))
7208
          return false;
7209
        if (!this.message.equals(that.message))
7210
          return false;
7211
      }
7212
 
7213
      return true;
7214
    }
7215
 
7216
    @Override
7217
    public int hashCode() {
7218
      return 0;
7219
    }
7220
 
7221
    public int compareTo(updateMessage_args other) {
7222
      if (!getClass().equals(other.getClass())) {
7223
        return getClass().getName().compareTo(other.getClass().getName());
7224
      }
7225
 
7226
      int lastComparison = 0;
7227
      updateMessage_args typedOther = (updateMessage_args)other;
7228
 
3430 rajveer 7229
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7230
      if (lastComparison != 0) {
7231
        return lastComparison;
7232
      }
3430 rajveer 7233
      if (isSetId()) {
7234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7235
        if (lastComparison != 0) {
7236
          return lastComparison;
7237
        }
352 ashish 7238
      }
3430 rajveer 7239
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7240
      if (lastComparison != 0) {
7241
        return lastComparison;
7242
      }
3430 rajveer 7243
      if (isSetMessage()) {
7244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7245
        if (lastComparison != 0) {
7246
          return lastComparison;
7247
        }
352 ashish 7248
      }
7249
      return 0;
7250
    }
7251
 
3430 rajveer 7252
    public _Fields fieldForId(int fieldId) {
7253
      return _Fields.findByThriftId(fieldId);
7254
    }
7255
 
7256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7257
      org.apache.thrift.protocol.TField field;
352 ashish 7258
      iprot.readStructBegin();
7259
      while (true)
7260
      {
7261
        field = iprot.readFieldBegin();
3430 rajveer 7262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7263
          break;
7264
        }
3430 rajveer 7265
        switch (field.id) {
7266
          case 1: // ID
7267
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7268
              this.id = iprot.readI64();
7269
              setIdIsSet(true);
7270
            } else { 
7271
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7272
            }
7273
            break;
7274
          case 2: // MESSAGE
7275
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7276
              this.message = iprot.readString();
7277
            } else { 
7278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7279
            }
7280
            break;
7281
          default:
7282
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7283
        }
3430 rajveer 7284
        iprot.readFieldEnd();
352 ashish 7285
      }
7286
      iprot.readStructEnd();
7287
      validate();
7288
    }
7289
 
3430 rajveer 7290
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7291
      validate();
7292
 
7293
      oprot.writeStructBegin(STRUCT_DESC);
7294
      oprot.writeFieldBegin(ID_FIELD_DESC);
7295
      oprot.writeI64(this.id);
7296
      oprot.writeFieldEnd();
7297
      if (this.message != null) {
7298
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7299
        oprot.writeString(this.message);
7300
        oprot.writeFieldEnd();
7301
      }
7302
      oprot.writeFieldStop();
7303
      oprot.writeStructEnd();
7304
    }
7305
 
7306
    @Override
7307
    public String toString() {
7308
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7309
      boolean first = true;
7310
 
7311
      sb.append("id:");
7312
      sb.append(this.id);
7313
      first = false;
7314
      if (!first) sb.append(", ");
7315
      sb.append("message:");
7316
      if (this.message == null) {
7317
        sb.append("null");
7318
      } else {
7319
        sb.append(this.message);
7320
      }
7321
      first = false;
7322
      sb.append(")");
7323
      return sb.toString();
7324
    }
7325
 
3430 rajveer 7326
    public void validate() throws org.apache.thrift.TException {
352 ashish 7327
      // check for required fields
7328
    }
7329
 
3430 rajveer 7330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7331
      try {
7332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7333
      } catch (org.apache.thrift.TException te) {
7334
        throw new java.io.IOException(te);
7335
      }
7336
    }
7337
 
7338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7339
      try {
7340
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7341
        __isset_bit_vector = new BitSet(1);
7342
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7343
      } catch (org.apache.thrift.TException te) {
7344
        throw new java.io.IOException(te);
7345
      }
7346
    }
7347
 
352 ashish 7348
  }
7349
 
3430 rajveer 7350
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7351
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7352
 
3430 rajveer 7353
    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 7354
 
3430 rajveer 7355
    private HelperServiceException se; // required
352 ashish 7356
 
7357
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7358
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7359
      SE((short)1, "se");
7360
 
7361
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7362
 
7363
      static {
7364
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7365
          byName.put(field.getFieldName(), field);
7366
        }
7367
      }
7368
 
7369
      /**
7370
       * Find the _Fields constant that matches fieldId, or null if its not found.
7371
       */
7372
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7373
        switch(fieldId) {
7374
          case 1: // SE
7375
            return SE;
7376
          default:
7377
            return null;
7378
        }
352 ashish 7379
      }
7380
 
7381
      /**
7382
       * Find the _Fields constant that matches fieldId, throwing an exception
7383
       * if it is not found.
7384
       */
7385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7386
        _Fields fields = findByThriftId(fieldId);
7387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7388
        return fields;
7389
      }
7390
 
7391
      /**
7392
       * Find the _Fields constant that matches name, or null if its not found.
7393
       */
7394
      public static _Fields findByName(String name) {
7395
        return byName.get(name);
7396
      }
7397
 
7398
      private final short _thriftId;
7399
      private final String _fieldName;
7400
 
7401
      _Fields(short thriftId, String fieldName) {
7402
        _thriftId = thriftId;
7403
        _fieldName = fieldName;
7404
      }
7405
 
7406
      public short getThriftFieldId() {
7407
        return _thriftId;
7408
      }
7409
 
7410
      public String getFieldName() {
7411
        return _fieldName;
7412
      }
7413
    }
7414
 
7415
    // isset id assignments
7416
 
3430 rajveer 7417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7418
    static {
3430 rajveer 7419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7420
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7422
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7423
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7424
    }
7425
 
7426
    public updateMessage_result() {
7427
    }
7428
 
7429
    public updateMessage_result(
7430
      HelperServiceException se)
7431
    {
7432
      this();
7433
      this.se = se;
7434
    }
7435
 
7436
    /**
7437
     * Performs a deep copy on <i>other</i>.
7438
     */
7439
    public updateMessage_result(updateMessage_result other) {
7440
      if (other.isSetSe()) {
7441
        this.se = new HelperServiceException(other.se);
7442
      }
7443
    }
7444
 
7445
    public updateMessage_result deepCopy() {
7446
      return new updateMessage_result(this);
7447
    }
7448
 
3430 rajveer 7449
    @Override
7450
    public void clear() {
7451
      this.se = null;
352 ashish 7452
    }
7453
 
7454
    public HelperServiceException getSe() {
7455
      return this.se;
7456
    }
7457
 
3430 rajveer 7458
    public void setSe(HelperServiceException se) {
352 ashish 7459
      this.se = se;
7460
    }
7461
 
7462
    public void unsetSe() {
7463
      this.se = null;
7464
    }
7465
 
3430 rajveer 7466
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7467
    public boolean isSetSe() {
7468
      return this.se != null;
7469
    }
7470
 
7471
    public void setSeIsSet(boolean value) {
7472
      if (!value) {
7473
        this.se = null;
7474
      }
7475
    }
7476
 
7477
    public void setFieldValue(_Fields field, Object value) {
7478
      switch (field) {
7479
      case SE:
7480
        if (value == null) {
7481
          unsetSe();
7482
        } else {
7483
          setSe((HelperServiceException)value);
7484
        }
7485
        break;
7486
 
7487
      }
7488
    }
7489
 
7490
    public Object getFieldValue(_Fields field) {
7491
      switch (field) {
7492
      case SE:
7493
        return getSe();
7494
 
7495
      }
7496
      throw new IllegalStateException();
7497
    }
7498
 
3430 rajveer 7499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7500
    public boolean isSet(_Fields field) {
7501
      if (field == null) {
7502
        throw new IllegalArgumentException();
7503
      }
352 ashish 7504
 
7505
      switch (field) {
7506
      case SE:
7507
        return isSetSe();
7508
      }
7509
      throw new IllegalStateException();
7510
    }
7511
 
7512
    @Override
7513
    public boolean equals(Object that) {
7514
      if (that == null)
7515
        return false;
7516
      if (that instanceof updateMessage_result)
7517
        return this.equals((updateMessage_result)that);
7518
      return false;
7519
    }
7520
 
7521
    public boolean equals(updateMessage_result that) {
7522
      if (that == null)
7523
        return false;
7524
 
7525
      boolean this_present_se = true && this.isSetSe();
7526
      boolean that_present_se = true && that.isSetSe();
7527
      if (this_present_se || that_present_se) {
7528
        if (!(this_present_se && that_present_se))
7529
          return false;
7530
        if (!this.se.equals(that.se))
7531
          return false;
7532
      }
7533
 
7534
      return true;
7535
    }
7536
 
7537
    @Override
7538
    public int hashCode() {
7539
      return 0;
7540
    }
7541
 
7542
    public int compareTo(updateMessage_result other) {
7543
      if (!getClass().equals(other.getClass())) {
7544
        return getClass().getName().compareTo(other.getClass().getName());
7545
      }
7546
 
7547
      int lastComparison = 0;
7548
      updateMessage_result typedOther = (updateMessage_result)other;
7549
 
3430 rajveer 7550
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7551
      if (lastComparison != 0) {
7552
        return lastComparison;
7553
      }
3430 rajveer 7554
      if (isSetSe()) {
7555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7556
        if (lastComparison != 0) {
7557
          return lastComparison;
7558
        }
352 ashish 7559
      }
7560
      return 0;
7561
    }
7562
 
3430 rajveer 7563
    public _Fields fieldForId(int fieldId) {
7564
      return _Fields.findByThriftId(fieldId);
7565
    }
7566
 
7567
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7568
      org.apache.thrift.protocol.TField field;
352 ashish 7569
      iprot.readStructBegin();
7570
      while (true)
7571
      {
7572
        field = iprot.readFieldBegin();
3430 rajveer 7573
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7574
          break;
7575
        }
3430 rajveer 7576
        switch (field.id) {
7577
          case 1: // SE
7578
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7579
              this.se = new HelperServiceException();
7580
              this.se.read(iprot);
7581
            } else { 
7582
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7583
            }
7584
            break;
7585
          default:
7586
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7587
        }
3430 rajveer 7588
        iprot.readFieldEnd();
352 ashish 7589
      }
7590
      iprot.readStructEnd();
7591
      validate();
7592
    }
7593
 
3430 rajveer 7594
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7595
      oprot.writeStructBegin(STRUCT_DESC);
7596
 
7597
      if (this.isSetSe()) {
7598
        oprot.writeFieldBegin(SE_FIELD_DESC);
7599
        this.se.write(oprot);
7600
        oprot.writeFieldEnd();
7601
      }
7602
      oprot.writeFieldStop();
7603
      oprot.writeStructEnd();
7604
    }
7605
 
7606
    @Override
7607
    public String toString() {
7608
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7609
      boolean first = true;
7610
 
7611
      sb.append("se:");
7612
      if (this.se == null) {
7613
        sb.append("null");
7614
      } else {
7615
        sb.append(this.se);
7616
      }
7617
      first = false;
7618
      sb.append(")");
7619
      return sb.toString();
7620
    }
7621
 
3430 rajveer 7622
    public void validate() throws org.apache.thrift.TException {
352 ashish 7623
      // check for required fields
7624
    }
7625
 
3430 rajveer 7626
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7627
      try {
7628
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7629
      } catch (org.apache.thrift.TException te) {
7630
        throw new java.io.IOException(te);
7631
      }
7632
    }
7633
 
7634
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7635
      try {
7636
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7637
      } catch (org.apache.thrift.TException te) {
7638
        throw new java.io.IOException(te);
7639
      }
7640
    }
7641
 
352 ashish 7642
  }
7643
 
3430 rajveer 7644
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7645
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7646
 
3430 rajveer 7647
    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 7648
 
3430 rajveer 7649
    private long id; // required
352 ashish 7650
 
7651
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7652
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7653
      ID((short)1, "id");
7654
 
7655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7656
 
7657
      static {
7658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7659
          byName.put(field.getFieldName(), field);
7660
        }
7661
      }
7662
 
7663
      /**
7664
       * Find the _Fields constant that matches fieldId, or null if its not found.
7665
       */
7666
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7667
        switch(fieldId) {
7668
          case 1: // ID
7669
            return ID;
7670
          default:
7671
            return null;
7672
        }
352 ashish 7673
      }
7674
 
7675
      /**
7676
       * Find the _Fields constant that matches fieldId, throwing an exception
7677
       * if it is not found.
7678
       */
7679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7680
        _Fields fields = findByThriftId(fieldId);
7681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7682
        return fields;
7683
      }
7684
 
7685
      /**
7686
       * Find the _Fields constant that matches name, or null if its not found.
7687
       */
7688
      public static _Fields findByName(String name) {
7689
        return byName.get(name);
7690
      }
7691
 
7692
      private final short _thriftId;
7693
      private final String _fieldName;
7694
 
7695
      _Fields(short thriftId, String fieldName) {
7696
        _thriftId = thriftId;
7697
        _fieldName = fieldName;
7698
      }
7699
 
7700
      public short getThriftFieldId() {
7701
        return _thriftId;
7702
      }
7703
 
7704
      public String getFieldName() {
7705
        return _fieldName;
7706
      }
7707
    }
7708
 
7709
    // isset id assignments
7710
    private static final int __ID_ISSET_ID = 0;
7711
    private BitSet __isset_bit_vector = new BitSet(1);
7712
 
3430 rajveer 7713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7714
    static {
3430 rajveer 7715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7716
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7720
    }
7721
 
7722
    public getMessage_args() {
7723
    }
7724
 
7725
    public getMessage_args(
7726
      long id)
7727
    {
7728
      this();
7729
      this.id = id;
7730
      setIdIsSet(true);
7731
    }
7732
 
7733
    /**
7734
     * Performs a deep copy on <i>other</i>.
7735
     */
7736
    public getMessage_args(getMessage_args other) {
7737
      __isset_bit_vector.clear();
7738
      __isset_bit_vector.or(other.__isset_bit_vector);
7739
      this.id = other.id;
7740
    }
7741
 
7742
    public getMessage_args deepCopy() {
7743
      return new getMessage_args(this);
7744
    }
7745
 
3430 rajveer 7746
    @Override
7747
    public void clear() {
7748
      setIdIsSet(false);
7749
      this.id = 0;
352 ashish 7750
    }
7751
 
7752
    public long getId() {
7753
      return this.id;
7754
    }
7755
 
3430 rajveer 7756
    public void setId(long id) {
352 ashish 7757
      this.id = id;
7758
      setIdIsSet(true);
7759
    }
7760
 
7761
    public void unsetId() {
7762
      __isset_bit_vector.clear(__ID_ISSET_ID);
7763
    }
7764
 
3430 rajveer 7765
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7766
    public boolean isSetId() {
7767
      return __isset_bit_vector.get(__ID_ISSET_ID);
7768
    }
7769
 
7770
    public void setIdIsSet(boolean value) {
7771
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7772
    }
7773
 
7774
    public void setFieldValue(_Fields field, Object value) {
7775
      switch (field) {
7776
      case ID:
7777
        if (value == null) {
7778
          unsetId();
7779
        } else {
7780
          setId((Long)value);
7781
        }
7782
        break;
7783
 
7784
      }
7785
    }
7786
 
7787
    public Object getFieldValue(_Fields field) {
7788
      switch (field) {
7789
      case ID:
3430 rajveer 7790
        return Long.valueOf(getId());
352 ashish 7791
 
7792
      }
7793
      throw new IllegalStateException();
7794
    }
7795
 
3430 rajveer 7796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7797
    public boolean isSet(_Fields field) {
7798
      if (field == null) {
7799
        throw new IllegalArgumentException();
7800
      }
352 ashish 7801
 
7802
      switch (field) {
7803
      case ID:
7804
        return isSetId();
7805
      }
7806
      throw new IllegalStateException();
7807
    }
7808
 
7809
    @Override
7810
    public boolean equals(Object that) {
7811
      if (that == null)
7812
        return false;
7813
      if (that instanceof getMessage_args)
7814
        return this.equals((getMessage_args)that);
7815
      return false;
7816
    }
7817
 
7818
    public boolean equals(getMessage_args that) {
7819
      if (that == null)
7820
        return false;
7821
 
7822
      boolean this_present_id = true;
7823
      boolean that_present_id = true;
7824
      if (this_present_id || that_present_id) {
7825
        if (!(this_present_id && that_present_id))
7826
          return false;
7827
        if (this.id != that.id)
7828
          return false;
7829
      }
7830
 
7831
      return true;
7832
    }
7833
 
7834
    @Override
7835
    public int hashCode() {
7836
      return 0;
7837
    }
7838
 
7839
    public int compareTo(getMessage_args other) {
7840
      if (!getClass().equals(other.getClass())) {
7841
        return getClass().getName().compareTo(other.getClass().getName());
7842
      }
7843
 
7844
      int lastComparison = 0;
7845
      getMessage_args typedOther = (getMessage_args)other;
7846
 
3430 rajveer 7847
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7848
      if (lastComparison != 0) {
7849
        return lastComparison;
7850
      }
3430 rajveer 7851
      if (isSetId()) {
7852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7853
        if (lastComparison != 0) {
7854
          return lastComparison;
7855
        }
352 ashish 7856
      }
7857
      return 0;
7858
    }
7859
 
3430 rajveer 7860
    public _Fields fieldForId(int fieldId) {
7861
      return _Fields.findByThriftId(fieldId);
7862
    }
7863
 
7864
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7865
      org.apache.thrift.protocol.TField field;
352 ashish 7866
      iprot.readStructBegin();
7867
      while (true)
7868
      {
7869
        field = iprot.readFieldBegin();
3430 rajveer 7870
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7871
          break;
7872
        }
3430 rajveer 7873
        switch (field.id) {
7874
          case 1: // ID
7875
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7876
              this.id = iprot.readI64();
7877
              setIdIsSet(true);
7878
            } else { 
7879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7880
            }
7881
            break;
7882
          default:
7883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7884
        }
3430 rajveer 7885
        iprot.readFieldEnd();
352 ashish 7886
      }
7887
      iprot.readStructEnd();
7888
      validate();
7889
    }
7890
 
3430 rajveer 7891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7892
      validate();
7893
 
7894
      oprot.writeStructBegin(STRUCT_DESC);
7895
      oprot.writeFieldBegin(ID_FIELD_DESC);
7896
      oprot.writeI64(this.id);
7897
      oprot.writeFieldEnd();
7898
      oprot.writeFieldStop();
7899
      oprot.writeStructEnd();
7900
    }
7901
 
7902
    @Override
7903
    public String toString() {
7904
      StringBuilder sb = new StringBuilder("getMessage_args(");
7905
      boolean first = true;
7906
 
7907
      sb.append("id:");
7908
      sb.append(this.id);
7909
      first = false;
7910
      sb.append(")");
7911
      return sb.toString();
7912
    }
7913
 
3430 rajveer 7914
    public void validate() throws org.apache.thrift.TException {
352 ashish 7915
      // check for required fields
7916
    }
7917
 
3430 rajveer 7918
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7919
      try {
7920
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7921
      } catch (org.apache.thrift.TException te) {
7922
        throw new java.io.IOException(te);
7923
      }
7924
    }
7925
 
7926
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7927
      try {
7928
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7929
        __isset_bit_vector = new BitSet(1);
7930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7931
      } catch (org.apache.thrift.TException te) {
7932
        throw new java.io.IOException(te);
7933
      }
7934
    }
7935
 
352 ashish 7936
  }
7937
 
3430 rajveer 7938
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
7939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 7940
 
3430 rajveer 7941
    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);
7942
    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 7943
 
3430 rajveer 7944
    private Message success; // required
7945
    private HelperServiceException se; // required
352 ashish 7946
 
7947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7949
      SUCCESS((short)0, "success"),
7950
      SE((short)1, "se");
7951
 
7952
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7953
 
7954
      static {
7955
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7956
          byName.put(field.getFieldName(), field);
7957
        }
7958
      }
7959
 
7960
      /**
7961
       * Find the _Fields constant that matches fieldId, or null if its not found.
7962
       */
7963
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7964
        switch(fieldId) {
7965
          case 0: // SUCCESS
7966
            return SUCCESS;
7967
          case 1: // SE
7968
            return SE;
7969
          default:
7970
            return null;
7971
        }
352 ashish 7972
      }
7973
 
7974
      /**
7975
       * Find the _Fields constant that matches fieldId, throwing an exception
7976
       * if it is not found.
7977
       */
7978
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7979
        _Fields fields = findByThriftId(fieldId);
7980
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7981
        return fields;
7982
      }
7983
 
7984
      /**
7985
       * Find the _Fields constant that matches name, or null if its not found.
7986
       */
7987
      public static _Fields findByName(String name) {
7988
        return byName.get(name);
7989
      }
7990
 
7991
      private final short _thriftId;
7992
      private final String _fieldName;
7993
 
7994
      _Fields(short thriftId, String fieldName) {
7995
        _thriftId = thriftId;
7996
        _fieldName = fieldName;
7997
      }
7998
 
7999
      public short getThriftFieldId() {
8000
        return _thriftId;
8001
      }
8002
 
8003
      public String getFieldName() {
8004
        return _fieldName;
8005
      }
8006
    }
8007
 
8008
    // isset id assignments
8009
 
3430 rajveer 8010
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8011
    static {
3430 rajveer 8012
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8013
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8014
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8015
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8016
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8017
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8018
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8019
    }
8020
 
8021
    public getMessage_result() {
8022
    }
8023
 
8024
    public getMessage_result(
8025
      Message success,
8026
      HelperServiceException se)
8027
    {
8028
      this();
8029
      this.success = success;
8030
      this.se = se;
8031
    }
8032
 
8033
    /**
8034
     * Performs a deep copy on <i>other</i>.
8035
     */
8036
    public getMessage_result(getMessage_result other) {
8037
      if (other.isSetSuccess()) {
8038
        this.success = new Message(other.success);
8039
      }
8040
      if (other.isSetSe()) {
8041
        this.se = new HelperServiceException(other.se);
8042
      }
8043
    }
8044
 
8045
    public getMessage_result deepCopy() {
8046
      return new getMessage_result(this);
8047
    }
8048
 
3430 rajveer 8049
    @Override
8050
    public void clear() {
8051
      this.success = null;
8052
      this.se = null;
352 ashish 8053
    }
8054
 
8055
    public Message getSuccess() {
8056
      return this.success;
8057
    }
8058
 
3430 rajveer 8059
    public void setSuccess(Message success) {
352 ashish 8060
      this.success = success;
8061
    }
8062
 
8063
    public void unsetSuccess() {
8064
      this.success = null;
8065
    }
8066
 
3430 rajveer 8067
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8068
    public boolean isSetSuccess() {
8069
      return this.success != null;
8070
    }
8071
 
8072
    public void setSuccessIsSet(boolean value) {
8073
      if (!value) {
8074
        this.success = null;
8075
      }
8076
    }
8077
 
8078
    public HelperServiceException getSe() {
8079
      return this.se;
8080
    }
8081
 
3430 rajveer 8082
    public void setSe(HelperServiceException se) {
352 ashish 8083
      this.se = se;
8084
    }
8085
 
8086
    public void unsetSe() {
8087
      this.se = null;
8088
    }
8089
 
3430 rajveer 8090
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8091
    public boolean isSetSe() {
8092
      return this.se != null;
8093
    }
8094
 
8095
    public void setSeIsSet(boolean value) {
8096
      if (!value) {
8097
        this.se = null;
8098
      }
8099
    }
8100
 
8101
    public void setFieldValue(_Fields field, Object value) {
8102
      switch (field) {
8103
      case SUCCESS:
8104
        if (value == null) {
8105
          unsetSuccess();
8106
        } else {
8107
          setSuccess((Message)value);
8108
        }
8109
        break;
8110
 
8111
      case SE:
8112
        if (value == null) {
8113
          unsetSe();
8114
        } else {
8115
          setSe((HelperServiceException)value);
8116
        }
8117
        break;
8118
 
8119
      }
8120
    }
8121
 
8122
    public Object getFieldValue(_Fields field) {
8123
      switch (field) {
8124
      case SUCCESS:
8125
        return getSuccess();
8126
 
8127
      case SE:
8128
        return getSe();
8129
 
8130
      }
8131
      throw new IllegalStateException();
8132
    }
8133
 
3430 rajveer 8134
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8135
    public boolean isSet(_Fields field) {
8136
      if (field == null) {
8137
        throw new IllegalArgumentException();
8138
      }
352 ashish 8139
 
8140
      switch (field) {
8141
      case SUCCESS:
8142
        return isSetSuccess();
8143
      case SE:
8144
        return isSetSe();
8145
      }
8146
      throw new IllegalStateException();
8147
    }
8148
 
8149
    @Override
8150
    public boolean equals(Object that) {
8151
      if (that == null)
8152
        return false;
8153
      if (that instanceof getMessage_result)
8154
        return this.equals((getMessage_result)that);
8155
      return false;
8156
    }
8157
 
8158
    public boolean equals(getMessage_result that) {
8159
      if (that == null)
8160
        return false;
8161
 
8162
      boolean this_present_success = true && this.isSetSuccess();
8163
      boolean that_present_success = true && that.isSetSuccess();
8164
      if (this_present_success || that_present_success) {
8165
        if (!(this_present_success && that_present_success))
8166
          return false;
8167
        if (!this.success.equals(that.success))
8168
          return false;
8169
      }
8170
 
8171
      boolean this_present_se = true && this.isSetSe();
8172
      boolean that_present_se = true && that.isSetSe();
8173
      if (this_present_se || that_present_se) {
8174
        if (!(this_present_se && that_present_se))
8175
          return false;
8176
        if (!this.se.equals(that.se))
8177
          return false;
8178
      }
8179
 
8180
      return true;
8181
    }
8182
 
8183
    @Override
8184
    public int hashCode() {
8185
      return 0;
8186
    }
8187
 
8188
    public int compareTo(getMessage_result other) {
8189
      if (!getClass().equals(other.getClass())) {
8190
        return getClass().getName().compareTo(other.getClass().getName());
8191
      }
8192
 
8193
      int lastComparison = 0;
8194
      getMessage_result typedOther = (getMessage_result)other;
8195
 
3430 rajveer 8196
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8197
      if (lastComparison != 0) {
8198
        return lastComparison;
8199
      }
3430 rajveer 8200
      if (isSetSuccess()) {
8201
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8202
        if (lastComparison != 0) {
8203
          return lastComparison;
8204
        }
352 ashish 8205
      }
3430 rajveer 8206
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8207
      if (lastComparison != 0) {
8208
        return lastComparison;
8209
      }
3430 rajveer 8210
      if (isSetSe()) {
8211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8212
        if (lastComparison != 0) {
8213
          return lastComparison;
8214
        }
352 ashish 8215
      }
8216
      return 0;
8217
    }
8218
 
3430 rajveer 8219
    public _Fields fieldForId(int fieldId) {
8220
      return _Fields.findByThriftId(fieldId);
8221
    }
8222
 
8223
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8224
      org.apache.thrift.protocol.TField field;
352 ashish 8225
      iprot.readStructBegin();
8226
      while (true)
8227
      {
8228
        field = iprot.readFieldBegin();
3430 rajveer 8229
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8230
          break;
8231
        }
3430 rajveer 8232
        switch (field.id) {
8233
          case 0: // SUCCESS
8234
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8235
              this.success = new Message();
8236
              this.success.read(iprot);
8237
            } else { 
8238
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8239
            }
8240
            break;
8241
          case 1: // SE
8242
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8243
              this.se = new HelperServiceException();
8244
              this.se.read(iprot);
8245
            } else { 
8246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8247
            }
8248
            break;
8249
          default:
8250
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8251
        }
3430 rajveer 8252
        iprot.readFieldEnd();
352 ashish 8253
      }
8254
      iprot.readStructEnd();
8255
      validate();
8256
    }
8257
 
3430 rajveer 8258
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8259
      oprot.writeStructBegin(STRUCT_DESC);
8260
 
8261
      if (this.isSetSuccess()) {
8262
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8263
        this.success.write(oprot);
8264
        oprot.writeFieldEnd();
8265
      } else if (this.isSetSe()) {
8266
        oprot.writeFieldBegin(SE_FIELD_DESC);
8267
        this.se.write(oprot);
8268
        oprot.writeFieldEnd();
8269
      }
8270
      oprot.writeFieldStop();
8271
      oprot.writeStructEnd();
8272
    }
8273
 
8274
    @Override
8275
    public String toString() {
8276
      StringBuilder sb = new StringBuilder("getMessage_result(");
8277
      boolean first = true;
8278
 
8279
      sb.append("success:");
8280
      if (this.success == null) {
8281
        sb.append("null");
8282
      } else {
8283
        sb.append(this.success);
8284
      }
8285
      first = false;
8286
      if (!first) sb.append(", ");
8287
      sb.append("se:");
8288
      if (this.se == null) {
8289
        sb.append("null");
8290
      } else {
8291
        sb.append(this.se);
8292
      }
8293
      first = false;
8294
      sb.append(")");
8295
      return sb.toString();
8296
    }
8297
 
3430 rajveer 8298
    public void validate() throws org.apache.thrift.TException {
352 ashish 8299
      // check for required fields
8300
    }
8301
 
3430 rajveer 8302
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8303
      try {
8304
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8305
      } catch (org.apache.thrift.TException te) {
8306
        throw new java.io.IOException(te);
8307
      }
8308
    }
8309
 
8310
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8311
      try {
8312
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8313
      } catch (org.apache.thrift.TException te) {
8314
        throw new java.io.IOException(te);
8315
      }
8316
    }
8317
 
352 ashish 8318
  }
8319
 
3430 rajveer 8320
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8321
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8322
 
3430 rajveer 8323
    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);
8324
    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 8325
 
3430 rajveer 8326
    private long id; // required
8327
    private Map<String,String> params; // required
352 ashish 8328
 
8329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8331
      ID((short)1, "id"),
8332
      PARAMS((short)2, "params");
8333
 
8334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8335
 
8336
      static {
8337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8338
          byName.put(field.getFieldName(), field);
8339
        }
8340
      }
8341
 
8342
      /**
8343
       * Find the _Fields constant that matches fieldId, or null if its not found.
8344
       */
8345
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8346
        switch(fieldId) {
8347
          case 1: // ID
8348
            return ID;
8349
          case 2: // PARAMS
8350
            return PARAMS;
8351
          default:
8352
            return null;
8353
        }
352 ashish 8354
      }
8355
 
8356
      /**
8357
       * Find the _Fields constant that matches fieldId, throwing an exception
8358
       * if it is not found.
8359
       */
8360
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8361
        _Fields fields = findByThriftId(fieldId);
8362
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8363
        return fields;
8364
      }
8365
 
8366
      /**
8367
       * Find the _Fields constant that matches name, or null if its not found.
8368
       */
8369
      public static _Fields findByName(String name) {
8370
        return byName.get(name);
8371
      }
8372
 
8373
      private final short _thriftId;
8374
      private final String _fieldName;
8375
 
8376
      _Fields(short thriftId, String fieldName) {
8377
        _thriftId = thriftId;
8378
        _fieldName = fieldName;
8379
      }
8380
 
8381
      public short getThriftFieldId() {
8382
        return _thriftId;
8383
      }
8384
 
8385
      public String getFieldName() {
8386
        return _fieldName;
8387
      }
8388
    }
8389
 
8390
    // isset id assignments
8391
    private static final int __ID_ISSET_ID = 0;
8392
    private BitSet __isset_bit_vector = new BitSet(1);
8393
 
3430 rajveer 8394
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8395
    static {
3430 rajveer 8396
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8397
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8398
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8399
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8400
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8401
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8402
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8403
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8404
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8405
    }
8406
 
8407
    public getSubstitutedMessage_args() {
8408
    }
8409
 
8410
    public getSubstitutedMessage_args(
8411
      long id,
8412
      Map<String,String> params)
8413
    {
8414
      this();
8415
      this.id = id;
8416
      setIdIsSet(true);
8417
      this.params = params;
8418
    }
8419
 
8420
    /**
8421
     * Performs a deep copy on <i>other</i>.
8422
     */
8423
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8424
      __isset_bit_vector.clear();
8425
      __isset_bit_vector.or(other.__isset_bit_vector);
8426
      this.id = other.id;
8427
      if (other.isSetParams()) {
8428
        Map<String,String> __this__params = new HashMap<String,String>();
8429
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8430
 
8431
          String other_element_key = other_element.getKey();
8432
          String other_element_value = other_element.getValue();
8433
 
8434
          String __this__params_copy_key = other_element_key;
8435
 
8436
          String __this__params_copy_value = other_element_value;
8437
 
8438
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8439
        }
8440
        this.params = __this__params;
8441
      }
8442
    }
8443
 
8444
    public getSubstitutedMessage_args deepCopy() {
8445
      return new getSubstitutedMessage_args(this);
8446
    }
8447
 
3430 rajveer 8448
    @Override
8449
    public void clear() {
8450
      setIdIsSet(false);
8451
      this.id = 0;
8452
      this.params = null;
352 ashish 8453
    }
8454
 
8455
    public long getId() {
8456
      return this.id;
8457
    }
8458
 
3430 rajveer 8459
    public void setId(long id) {
352 ashish 8460
      this.id = id;
8461
      setIdIsSet(true);
8462
    }
8463
 
8464
    public void unsetId() {
8465
      __isset_bit_vector.clear(__ID_ISSET_ID);
8466
    }
8467
 
3430 rajveer 8468
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8469
    public boolean isSetId() {
8470
      return __isset_bit_vector.get(__ID_ISSET_ID);
8471
    }
8472
 
8473
    public void setIdIsSet(boolean value) {
8474
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8475
    }
8476
 
8477
    public int getParamsSize() {
8478
      return (this.params == null) ? 0 : this.params.size();
8479
    }
8480
 
8481
    public void putToParams(String key, String val) {
8482
      if (this.params == null) {
8483
        this.params = new HashMap<String,String>();
8484
      }
8485
      this.params.put(key, val);
8486
    }
8487
 
8488
    public Map<String,String> getParams() {
8489
      return this.params;
8490
    }
8491
 
3430 rajveer 8492
    public void setParams(Map<String,String> params) {
352 ashish 8493
      this.params = params;
8494
    }
8495
 
8496
    public void unsetParams() {
8497
      this.params = null;
8498
    }
8499
 
3430 rajveer 8500
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8501
    public boolean isSetParams() {
8502
      return this.params != null;
8503
    }
8504
 
8505
    public void setParamsIsSet(boolean value) {
8506
      if (!value) {
8507
        this.params = null;
8508
      }
8509
    }
8510
 
8511
    public void setFieldValue(_Fields field, Object value) {
8512
      switch (field) {
8513
      case ID:
8514
        if (value == null) {
8515
          unsetId();
8516
        } else {
8517
          setId((Long)value);
8518
        }
8519
        break;
8520
 
8521
      case PARAMS:
8522
        if (value == null) {
8523
          unsetParams();
8524
        } else {
8525
          setParams((Map<String,String>)value);
8526
        }
8527
        break;
8528
 
8529
      }
8530
    }
8531
 
8532
    public Object getFieldValue(_Fields field) {
8533
      switch (field) {
8534
      case ID:
3430 rajveer 8535
        return Long.valueOf(getId());
352 ashish 8536
 
8537
      case PARAMS:
8538
        return getParams();
8539
 
8540
      }
8541
      throw new IllegalStateException();
8542
    }
8543
 
3430 rajveer 8544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8545
    public boolean isSet(_Fields field) {
8546
      if (field == null) {
8547
        throw new IllegalArgumentException();
8548
      }
352 ashish 8549
 
8550
      switch (field) {
8551
      case ID:
8552
        return isSetId();
8553
      case PARAMS:
8554
        return isSetParams();
8555
      }
8556
      throw new IllegalStateException();
8557
    }
8558
 
8559
    @Override
8560
    public boolean equals(Object that) {
8561
      if (that == null)
8562
        return false;
8563
      if (that instanceof getSubstitutedMessage_args)
8564
        return this.equals((getSubstitutedMessage_args)that);
8565
      return false;
8566
    }
8567
 
8568
    public boolean equals(getSubstitutedMessage_args that) {
8569
      if (that == null)
8570
        return false;
8571
 
8572
      boolean this_present_id = true;
8573
      boolean that_present_id = true;
8574
      if (this_present_id || that_present_id) {
8575
        if (!(this_present_id && that_present_id))
8576
          return false;
8577
        if (this.id != that.id)
8578
          return false;
8579
      }
8580
 
8581
      boolean this_present_params = true && this.isSetParams();
8582
      boolean that_present_params = true && that.isSetParams();
8583
      if (this_present_params || that_present_params) {
8584
        if (!(this_present_params && that_present_params))
8585
          return false;
8586
        if (!this.params.equals(that.params))
8587
          return false;
8588
      }
8589
 
8590
      return true;
8591
    }
8592
 
8593
    @Override
8594
    public int hashCode() {
8595
      return 0;
8596
    }
8597
 
3430 rajveer 8598
    public int compareTo(getSubstitutedMessage_args other) {
8599
      if (!getClass().equals(other.getClass())) {
8600
        return getClass().getName().compareTo(other.getClass().getName());
8601
      }
8602
 
8603
      int lastComparison = 0;
8604
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8605
 
8606
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8607
      if (lastComparison != 0) {
8608
        return lastComparison;
8609
      }
8610
      if (isSetId()) {
8611
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8612
        if (lastComparison != 0) {
8613
          return lastComparison;
8614
        }
8615
      }
8616
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8617
      if (lastComparison != 0) {
8618
        return lastComparison;
8619
      }
8620
      if (isSetParams()) {
8621
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8622
        if (lastComparison != 0) {
8623
          return lastComparison;
8624
        }
8625
      }
8626
      return 0;
8627
    }
8628
 
8629
    public _Fields fieldForId(int fieldId) {
8630
      return _Fields.findByThriftId(fieldId);
8631
    }
8632
 
8633
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8634
      org.apache.thrift.protocol.TField field;
352 ashish 8635
      iprot.readStructBegin();
8636
      while (true)
8637
      {
8638
        field = iprot.readFieldBegin();
3430 rajveer 8639
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8640
          break;
8641
        }
3430 rajveer 8642
        switch (field.id) {
8643
          case 1: // ID
8644
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8645
              this.id = iprot.readI64();
8646
              setIdIsSet(true);
8647
            } else { 
8648
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8649
            }
8650
            break;
8651
          case 2: // PARAMS
8652
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8653
              {
5864 rajveer 8654
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8655
                this.params = new HashMap<String,String>(2*_map36.size);
8656
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8657
                {
5864 rajveer 8658
                  String _key38; // required
8659
                  String _val39; // required
8660
                  _key38 = iprot.readString();
8661
                  _val39 = iprot.readString();
8662
                  this.params.put(_key38, _val39);
352 ashish 8663
                }
3430 rajveer 8664
                iprot.readMapEnd();
352 ashish 8665
              }
3430 rajveer 8666
            } else { 
8667
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8668
            }
8669
            break;
8670
          default:
8671
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8672
        }
3430 rajveer 8673
        iprot.readFieldEnd();
352 ashish 8674
      }
8675
      iprot.readStructEnd();
8676
      validate();
8677
    }
8678
 
3430 rajveer 8679
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8680
      validate();
8681
 
8682
      oprot.writeStructBegin(STRUCT_DESC);
8683
      oprot.writeFieldBegin(ID_FIELD_DESC);
8684
      oprot.writeI64(this.id);
8685
      oprot.writeFieldEnd();
8686
      if (this.params != null) {
8687
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8688
        {
3430 rajveer 8689
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
5864 rajveer 8690
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8691
          {
5864 rajveer 8692
            oprot.writeString(_iter40.getKey());
8693
            oprot.writeString(_iter40.getValue());
352 ashish 8694
          }
8695
          oprot.writeMapEnd();
8696
        }
8697
        oprot.writeFieldEnd();
8698
      }
8699
      oprot.writeFieldStop();
8700
      oprot.writeStructEnd();
8701
    }
8702
 
8703
    @Override
8704
    public String toString() {
8705
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8706
      boolean first = true;
8707
 
8708
      sb.append("id:");
8709
      sb.append(this.id);
8710
      first = false;
8711
      if (!first) sb.append(", ");
8712
      sb.append("params:");
8713
      if (this.params == null) {
8714
        sb.append("null");
8715
      } else {
8716
        sb.append(this.params);
8717
      }
8718
      first = false;
8719
      sb.append(")");
8720
      return sb.toString();
8721
    }
8722
 
3430 rajveer 8723
    public void validate() throws org.apache.thrift.TException {
352 ashish 8724
      // check for required fields
8725
    }
8726
 
3430 rajveer 8727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8728
      try {
8729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8730
      } catch (org.apache.thrift.TException te) {
8731
        throw new java.io.IOException(te);
8732
      }
8733
    }
8734
 
8735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8736
      try {
8737
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8738
        __isset_bit_vector = new BitSet(1);
8739
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8740
      } catch (org.apache.thrift.TException te) {
8741
        throw new java.io.IOException(te);
8742
      }
8743
    }
8744
 
352 ashish 8745
  }
8746
 
3430 rajveer 8747
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8748
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8749
 
3430 rajveer 8750
    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);
8751
    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 8752
 
3430 rajveer 8753
    private Message success; // required
8754
    private HelperServiceException se; // required
352 ashish 8755
 
8756
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8757
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8758
      SUCCESS((short)0, "success"),
8759
      SE((short)1, "se");
8760
 
8761
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8762
 
8763
      static {
8764
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8765
          byName.put(field.getFieldName(), field);
8766
        }
8767
      }
8768
 
8769
      /**
8770
       * Find the _Fields constant that matches fieldId, or null if its not found.
8771
       */
8772
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8773
        switch(fieldId) {
8774
          case 0: // SUCCESS
8775
            return SUCCESS;
8776
          case 1: // SE
8777
            return SE;
8778
          default:
8779
            return null;
8780
        }
352 ashish 8781
      }
8782
 
8783
      /**
8784
       * Find the _Fields constant that matches fieldId, throwing an exception
8785
       * if it is not found.
8786
       */
8787
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8788
        _Fields fields = findByThriftId(fieldId);
8789
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8790
        return fields;
8791
      }
8792
 
8793
      /**
8794
       * Find the _Fields constant that matches name, or null if its not found.
8795
       */
8796
      public static _Fields findByName(String name) {
8797
        return byName.get(name);
8798
      }
8799
 
8800
      private final short _thriftId;
8801
      private final String _fieldName;
8802
 
8803
      _Fields(short thriftId, String fieldName) {
8804
        _thriftId = thriftId;
8805
        _fieldName = fieldName;
8806
      }
8807
 
8808
      public short getThriftFieldId() {
8809
        return _thriftId;
8810
      }
8811
 
8812
      public String getFieldName() {
8813
        return _fieldName;
8814
      }
8815
    }
8816
 
8817
    // isset id assignments
8818
 
3430 rajveer 8819
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8820
    static {
3430 rajveer 8821
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8822
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8823
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8824
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8825
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8826
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8827
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8828
    }
8829
 
8830
    public getSubstitutedMessage_result() {
8831
    }
8832
 
8833
    public getSubstitutedMessage_result(
8834
      Message success,
8835
      HelperServiceException se)
8836
    {
8837
      this();
8838
      this.success = success;
8839
      this.se = se;
8840
    }
8841
 
8842
    /**
8843
     * Performs a deep copy on <i>other</i>.
8844
     */
8845
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8846
      if (other.isSetSuccess()) {
8847
        this.success = new Message(other.success);
8848
      }
8849
      if (other.isSetSe()) {
8850
        this.se = new HelperServiceException(other.se);
8851
      }
8852
    }
8853
 
8854
    public getSubstitutedMessage_result deepCopy() {
8855
      return new getSubstitutedMessage_result(this);
8856
    }
8857
 
3430 rajveer 8858
    @Override
8859
    public void clear() {
8860
      this.success = null;
8861
      this.se = null;
352 ashish 8862
    }
8863
 
8864
    public Message getSuccess() {
8865
      return this.success;
8866
    }
8867
 
3430 rajveer 8868
    public void setSuccess(Message success) {
352 ashish 8869
      this.success = success;
8870
    }
8871
 
8872
    public void unsetSuccess() {
8873
      this.success = null;
8874
    }
8875
 
3430 rajveer 8876
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8877
    public boolean isSetSuccess() {
8878
      return this.success != null;
8879
    }
8880
 
8881
    public void setSuccessIsSet(boolean value) {
8882
      if (!value) {
8883
        this.success = null;
8884
      }
8885
    }
8886
 
8887
    public HelperServiceException getSe() {
8888
      return this.se;
8889
    }
8890
 
3430 rajveer 8891
    public void setSe(HelperServiceException se) {
352 ashish 8892
      this.se = se;
8893
    }
8894
 
8895
    public void unsetSe() {
8896
      this.se = null;
8897
    }
8898
 
3430 rajveer 8899
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8900
    public boolean isSetSe() {
8901
      return this.se != null;
8902
    }
8903
 
8904
    public void setSeIsSet(boolean value) {
8905
      if (!value) {
8906
        this.se = null;
8907
      }
8908
    }
8909
 
8910
    public void setFieldValue(_Fields field, Object value) {
8911
      switch (field) {
8912
      case SUCCESS:
8913
        if (value == null) {
8914
          unsetSuccess();
8915
        } else {
8916
          setSuccess((Message)value);
8917
        }
8918
        break;
8919
 
8920
      case SE:
8921
        if (value == null) {
8922
          unsetSe();
8923
        } else {
8924
          setSe((HelperServiceException)value);
8925
        }
8926
        break;
8927
 
8928
      }
8929
    }
8930
 
8931
    public Object getFieldValue(_Fields field) {
8932
      switch (field) {
8933
      case SUCCESS:
8934
        return getSuccess();
8935
 
8936
      case SE:
8937
        return getSe();
8938
 
8939
      }
8940
      throw new IllegalStateException();
8941
    }
8942
 
3430 rajveer 8943
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8944
    public boolean isSet(_Fields field) {
8945
      if (field == null) {
8946
        throw new IllegalArgumentException();
8947
      }
352 ashish 8948
 
8949
      switch (field) {
8950
      case SUCCESS:
8951
        return isSetSuccess();
8952
      case SE:
8953
        return isSetSe();
8954
      }
8955
      throw new IllegalStateException();
8956
    }
8957
 
8958
    @Override
8959
    public boolean equals(Object that) {
8960
      if (that == null)
8961
        return false;
8962
      if (that instanceof getSubstitutedMessage_result)
8963
        return this.equals((getSubstitutedMessage_result)that);
8964
      return false;
8965
    }
8966
 
8967
    public boolean equals(getSubstitutedMessage_result that) {
8968
      if (that == null)
8969
        return false;
8970
 
8971
      boolean this_present_success = true && this.isSetSuccess();
8972
      boolean that_present_success = true && that.isSetSuccess();
8973
      if (this_present_success || that_present_success) {
8974
        if (!(this_present_success && that_present_success))
8975
          return false;
8976
        if (!this.success.equals(that.success))
8977
          return false;
8978
      }
8979
 
8980
      boolean this_present_se = true && this.isSetSe();
8981
      boolean that_present_se = true && that.isSetSe();
8982
      if (this_present_se || that_present_se) {
8983
        if (!(this_present_se && that_present_se))
8984
          return false;
8985
        if (!this.se.equals(that.se))
8986
          return false;
8987
      }
8988
 
8989
      return true;
8990
    }
8991
 
8992
    @Override
8993
    public int hashCode() {
8994
      return 0;
8995
    }
8996
 
8997
    public int compareTo(getSubstitutedMessage_result other) {
8998
      if (!getClass().equals(other.getClass())) {
8999
        return getClass().getName().compareTo(other.getClass().getName());
9000
      }
9001
 
9002
      int lastComparison = 0;
9003
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9004
 
3430 rajveer 9005
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9006
      if (lastComparison != 0) {
9007
        return lastComparison;
9008
      }
3430 rajveer 9009
      if (isSetSuccess()) {
9010
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9011
        if (lastComparison != 0) {
9012
          return lastComparison;
9013
        }
352 ashish 9014
      }
3430 rajveer 9015
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9016
      if (lastComparison != 0) {
9017
        return lastComparison;
9018
      }
3430 rajveer 9019
      if (isSetSe()) {
9020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9021
        if (lastComparison != 0) {
9022
          return lastComparison;
9023
        }
352 ashish 9024
      }
9025
      return 0;
9026
    }
9027
 
3430 rajveer 9028
    public _Fields fieldForId(int fieldId) {
9029
      return _Fields.findByThriftId(fieldId);
9030
    }
9031
 
9032
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9033
      org.apache.thrift.protocol.TField field;
352 ashish 9034
      iprot.readStructBegin();
9035
      while (true)
9036
      {
9037
        field = iprot.readFieldBegin();
3430 rajveer 9038
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9039
          break;
9040
        }
3430 rajveer 9041
        switch (field.id) {
9042
          case 0: // SUCCESS
9043
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9044
              this.success = new Message();
9045
              this.success.read(iprot);
9046
            } else { 
9047
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9048
            }
9049
            break;
9050
          case 1: // SE
9051
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9052
              this.se = new HelperServiceException();
9053
              this.se.read(iprot);
9054
            } else { 
9055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9056
            }
9057
            break;
9058
          default:
9059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9060
        }
3430 rajveer 9061
        iprot.readFieldEnd();
352 ashish 9062
      }
9063
      iprot.readStructEnd();
9064
      validate();
9065
    }
9066
 
3430 rajveer 9067
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9068
      oprot.writeStructBegin(STRUCT_DESC);
9069
 
9070
      if (this.isSetSuccess()) {
9071
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9072
        this.success.write(oprot);
9073
        oprot.writeFieldEnd();
9074
      } else if (this.isSetSe()) {
9075
        oprot.writeFieldBegin(SE_FIELD_DESC);
9076
        this.se.write(oprot);
9077
        oprot.writeFieldEnd();
9078
      }
9079
      oprot.writeFieldStop();
9080
      oprot.writeStructEnd();
9081
    }
9082
 
9083
    @Override
9084
    public String toString() {
9085
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9086
      boolean first = true;
9087
 
9088
      sb.append("success:");
9089
      if (this.success == null) {
9090
        sb.append("null");
9091
      } else {
9092
        sb.append(this.success);
9093
      }
9094
      first = false;
9095
      if (!first) sb.append(", ");
9096
      sb.append("se:");
9097
      if (this.se == null) {
9098
        sb.append("null");
9099
      } else {
9100
        sb.append(this.se);
9101
      }
9102
      first = false;
9103
      sb.append(")");
9104
      return sb.toString();
9105
    }
9106
 
3430 rajveer 9107
    public void validate() throws org.apache.thrift.TException {
352 ashish 9108
      // check for required fields
9109
    }
9110
 
3430 rajveer 9111
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9112
      try {
9113
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9114
      } catch (org.apache.thrift.TException te) {
9115
        throw new java.io.IOException(te);
9116
      }
9117
    }
9118
 
9119
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9120
      try {
9121
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9122
      } catch (org.apache.thrift.TException te) {
9123
        throw new java.io.IOException(te);
9124
      }
9125
    }
9126
 
352 ashish 9127
  }
9128
 
3430 rajveer 9129
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9130
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9131
 
3430 rajveer 9132
    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);
9133
    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);
9134
    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 9135
 
3430 rajveer 9136
    private String username; // required
9137
    private String password; // required
9138
    private long warehouseId; // required
495 rajveer 9139
 
9140
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9141
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9142
      USERNAME((short)1, "username"),
9143
      PASSWORD((short)2, "password"),
9144
      WAREHOUSE_ID((short)3, "warehouseId");
9145
 
9146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9147
 
9148
      static {
9149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9150
          byName.put(field.getFieldName(), field);
9151
        }
9152
      }
9153
 
9154
      /**
9155
       * Find the _Fields constant that matches fieldId, or null if its not found.
9156
       */
9157
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9158
        switch(fieldId) {
9159
          case 1: // USERNAME
9160
            return USERNAME;
9161
          case 2: // PASSWORD
9162
            return PASSWORD;
9163
          case 3: // WAREHOUSE_ID
9164
            return WAREHOUSE_ID;
9165
          default:
9166
            return null;
9167
        }
495 rajveer 9168
      }
9169
 
9170
      /**
9171
       * Find the _Fields constant that matches fieldId, throwing an exception
9172
       * if it is not found.
9173
       */
9174
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9175
        _Fields fields = findByThriftId(fieldId);
9176
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9177
        return fields;
9178
      }
9179
 
9180
      /**
9181
       * Find the _Fields constant that matches name, or null if its not found.
9182
       */
9183
      public static _Fields findByName(String name) {
9184
        return byName.get(name);
9185
      }
9186
 
9187
      private final short _thriftId;
9188
      private final String _fieldName;
9189
 
9190
      _Fields(short thriftId, String fieldName) {
9191
        _thriftId = thriftId;
9192
        _fieldName = fieldName;
9193
      }
9194
 
9195
      public short getThriftFieldId() {
9196
        return _thriftId;
9197
      }
9198
 
9199
      public String getFieldName() {
9200
        return _fieldName;
9201
      }
9202
    }
9203
 
9204
    // isset id assignments
9205
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9206
    private BitSet __isset_bit_vector = new BitSet(1);
9207
 
3430 rajveer 9208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9209
    static {
3430 rajveer 9210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9211
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9213
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9215
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9217
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9218
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9219
    }
9220
 
9221
    public addUser_args() {
9222
    }
9223
 
9224
    public addUser_args(
9225
      String username,
9226
      String password,
9227
      long warehouseId)
9228
    {
9229
      this();
9230
      this.username = username;
9231
      this.password = password;
9232
      this.warehouseId = warehouseId;
9233
      setWarehouseIdIsSet(true);
9234
    }
9235
 
9236
    /**
9237
     * Performs a deep copy on <i>other</i>.
9238
     */
9239
    public addUser_args(addUser_args other) {
9240
      __isset_bit_vector.clear();
9241
      __isset_bit_vector.or(other.__isset_bit_vector);
9242
      if (other.isSetUsername()) {
9243
        this.username = other.username;
9244
      }
9245
      if (other.isSetPassword()) {
9246
        this.password = other.password;
9247
      }
9248
      this.warehouseId = other.warehouseId;
9249
    }
9250
 
9251
    public addUser_args deepCopy() {
9252
      return new addUser_args(this);
9253
    }
9254
 
3430 rajveer 9255
    @Override
9256
    public void clear() {
9257
      this.username = null;
9258
      this.password = null;
9259
      setWarehouseIdIsSet(false);
9260
      this.warehouseId = 0;
495 rajveer 9261
    }
9262
 
9263
    public String getUsername() {
9264
      return this.username;
9265
    }
9266
 
3430 rajveer 9267
    public void setUsername(String username) {
495 rajveer 9268
      this.username = username;
9269
    }
9270
 
9271
    public void unsetUsername() {
9272
      this.username = null;
9273
    }
9274
 
3430 rajveer 9275
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9276
    public boolean isSetUsername() {
9277
      return this.username != null;
9278
    }
9279
 
9280
    public void setUsernameIsSet(boolean value) {
9281
      if (!value) {
9282
        this.username = null;
9283
      }
9284
    }
9285
 
9286
    public String getPassword() {
9287
      return this.password;
9288
    }
9289
 
3430 rajveer 9290
    public void setPassword(String password) {
495 rajveer 9291
      this.password = password;
9292
    }
9293
 
9294
    public void unsetPassword() {
9295
      this.password = null;
9296
    }
9297
 
3430 rajveer 9298
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9299
    public boolean isSetPassword() {
9300
      return this.password != null;
9301
    }
9302
 
9303
    public void setPasswordIsSet(boolean value) {
9304
      if (!value) {
9305
        this.password = null;
9306
      }
9307
    }
9308
 
9309
    public long getWarehouseId() {
9310
      return this.warehouseId;
9311
    }
9312
 
3430 rajveer 9313
    public void setWarehouseId(long warehouseId) {
495 rajveer 9314
      this.warehouseId = warehouseId;
9315
      setWarehouseIdIsSet(true);
9316
    }
9317
 
9318
    public void unsetWarehouseId() {
9319
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9320
    }
9321
 
3430 rajveer 9322
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9323
    public boolean isSetWarehouseId() {
9324
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9325
    }
9326
 
9327
    public void setWarehouseIdIsSet(boolean value) {
9328
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9329
    }
9330
 
9331
    public void setFieldValue(_Fields field, Object value) {
9332
      switch (field) {
9333
      case USERNAME:
9334
        if (value == null) {
9335
          unsetUsername();
9336
        } else {
9337
          setUsername((String)value);
9338
        }
9339
        break;
9340
 
9341
      case PASSWORD:
9342
        if (value == null) {
9343
          unsetPassword();
9344
        } else {
9345
          setPassword((String)value);
9346
        }
9347
        break;
9348
 
9349
      case WAREHOUSE_ID:
9350
        if (value == null) {
9351
          unsetWarehouseId();
9352
        } else {
9353
          setWarehouseId((Long)value);
9354
        }
9355
        break;
9356
 
9357
      }
9358
    }
9359
 
9360
    public Object getFieldValue(_Fields field) {
9361
      switch (field) {
9362
      case USERNAME:
9363
        return getUsername();
9364
 
9365
      case PASSWORD:
9366
        return getPassword();
9367
 
9368
      case WAREHOUSE_ID:
3430 rajveer 9369
        return Long.valueOf(getWarehouseId());
495 rajveer 9370
 
9371
      }
9372
      throw new IllegalStateException();
9373
    }
9374
 
3430 rajveer 9375
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9376
    public boolean isSet(_Fields field) {
9377
      if (field == null) {
9378
        throw new IllegalArgumentException();
9379
      }
495 rajveer 9380
 
9381
      switch (field) {
9382
      case USERNAME:
9383
        return isSetUsername();
9384
      case PASSWORD:
9385
        return isSetPassword();
9386
      case WAREHOUSE_ID:
9387
        return isSetWarehouseId();
9388
      }
9389
      throw new IllegalStateException();
9390
    }
9391
 
9392
    @Override
9393
    public boolean equals(Object that) {
9394
      if (that == null)
9395
        return false;
9396
      if (that instanceof addUser_args)
9397
        return this.equals((addUser_args)that);
9398
      return false;
9399
    }
9400
 
9401
    public boolean equals(addUser_args that) {
9402
      if (that == null)
9403
        return false;
9404
 
9405
      boolean this_present_username = true && this.isSetUsername();
9406
      boolean that_present_username = true && that.isSetUsername();
9407
      if (this_present_username || that_present_username) {
9408
        if (!(this_present_username && that_present_username))
9409
          return false;
9410
        if (!this.username.equals(that.username))
9411
          return false;
9412
      }
9413
 
9414
      boolean this_present_password = true && this.isSetPassword();
9415
      boolean that_present_password = true && that.isSetPassword();
9416
      if (this_present_password || that_present_password) {
9417
        if (!(this_present_password && that_present_password))
9418
          return false;
9419
        if (!this.password.equals(that.password))
9420
          return false;
9421
      }
9422
 
9423
      boolean this_present_warehouseId = true;
9424
      boolean that_present_warehouseId = true;
9425
      if (this_present_warehouseId || that_present_warehouseId) {
9426
        if (!(this_present_warehouseId && that_present_warehouseId))
9427
          return false;
9428
        if (this.warehouseId != that.warehouseId)
9429
          return false;
9430
      }
9431
 
9432
      return true;
9433
    }
9434
 
9435
    @Override
9436
    public int hashCode() {
9437
      return 0;
9438
    }
9439
 
9440
    public int compareTo(addUser_args other) {
9441
      if (!getClass().equals(other.getClass())) {
9442
        return getClass().getName().compareTo(other.getClass().getName());
9443
      }
9444
 
9445
      int lastComparison = 0;
9446
      addUser_args typedOther = (addUser_args)other;
9447
 
3430 rajveer 9448
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9449
      if (lastComparison != 0) {
9450
        return lastComparison;
9451
      }
3430 rajveer 9452
      if (isSetUsername()) {
9453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9454
        if (lastComparison != 0) {
9455
          return lastComparison;
9456
        }
495 rajveer 9457
      }
3430 rajveer 9458
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9459
      if (lastComparison != 0) {
9460
        return lastComparison;
9461
      }
3430 rajveer 9462
      if (isSetPassword()) {
9463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9464
        if (lastComparison != 0) {
9465
          return lastComparison;
9466
        }
495 rajveer 9467
      }
3430 rajveer 9468
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9469
      if (lastComparison != 0) {
9470
        return lastComparison;
9471
      }
3430 rajveer 9472
      if (isSetWarehouseId()) {
9473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9474
        if (lastComparison != 0) {
9475
          return lastComparison;
9476
        }
495 rajveer 9477
      }
9478
      return 0;
9479
    }
9480
 
3430 rajveer 9481
    public _Fields fieldForId(int fieldId) {
9482
      return _Fields.findByThriftId(fieldId);
9483
    }
9484
 
9485
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9486
      org.apache.thrift.protocol.TField field;
495 rajveer 9487
      iprot.readStructBegin();
9488
      while (true)
9489
      {
9490
        field = iprot.readFieldBegin();
3430 rajveer 9491
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9492
          break;
9493
        }
3430 rajveer 9494
        switch (field.id) {
9495
          case 1: // USERNAME
9496
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9497
              this.username = iprot.readString();
9498
            } else { 
9499
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9500
            }
9501
            break;
9502
          case 2: // PASSWORD
9503
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9504
              this.password = iprot.readString();
9505
            } else { 
9506
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9507
            }
9508
            break;
9509
          case 3: // WAREHOUSE_ID
9510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9511
              this.warehouseId = iprot.readI64();
9512
              setWarehouseIdIsSet(true);
9513
            } else { 
9514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9515
            }
9516
            break;
9517
          default:
9518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9519
        }
3430 rajveer 9520
        iprot.readFieldEnd();
495 rajveer 9521
      }
9522
      iprot.readStructEnd();
9523
      validate();
9524
    }
9525
 
3430 rajveer 9526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9527
      validate();
9528
 
9529
      oprot.writeStructBegin(STRUCT_DESC);
9530
      if (this.username != null) {
9531
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9532
        oprot.writeString(this.username);
9533
        oprot.writeFieldEnd();
9534
      }
9535
      if (this.password != null) {
9536
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9537
        oprot.writeString(this.password);
9538
        oprot.writeFieldEnd();
9539
      }
9540
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9541
      oprot.writeI64(this.warehouseId);
9542
      oprot.writeFieldEnd();
9543
      oprot.writeFieldStop();
9544
      oprot.writeStructEnd();
9545
    }
9546
 
9547
    @Override
9548
    public String toString() {
9549
      StringBuilder sb = new StringBuilder("addUser_args(");
9550
      boolean first = true;
9551
 
9552
      sb.append("username:");
9553
      if (this.username == null) {
9554
        sb.append("null");
9555
      } else {
9556
        sb.append(this.username);
9557
      }
9558
      first = false;
9559
      if (!first) sb.append(", ");
9560
      sb.append("password:");
9561
      if (this.password == null) {
9562
        sb.append("null");
9563
      } else {
9564
        sb.append(this.password);
9565
      }
9566
      first = false;
9567
      if (!first) sb.append(", ");
9568
      sb.append("warehouseId:");
9569
      sb.append(this.warehouseId);
9570
      first = false;
9571
      sb.append(")");
9572
      return sb.toString();
9573
    }
9574
 
3430 rajveer 9575
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9576
      // check for required fields
9577
    }
9578
 
3430 rajveer 9579
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9580
      try {
9581
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9582
      } catch (org.apache.thrift.TException te) {
9583
        throw new java.io.IOException(te);
9584
      }
9585
    }
9586
 
9587
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9588
      try {
9589
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9590
        __isset_bit_vector = new BitSet(1);
9591
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9592
      } catch (org.apache.thrift.TException te) {
9593
        throw new java.io.IOException(te);
9594
      }
9595
    }
9596
 
495 rajveer 9597
  }
9598
 
3430 rajveer 9599
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9600
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9601
 
3430 rajveer 9602
    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);
9603
    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 9604
 
3430 rajveer 9605
    private boolean success; // required
9606
    private HelperServiceException se; // required
495 rajveer 9607
 
9608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9610
      SUCCESS((short)0, "success"),
9611
      SE((short)1, "se");
9612
 
9613
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9614
 
9615
      static {
9616
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9617
          byName.put(field.getFieldName(), field);
9618
        }
9619
      }
9620
 
9621
      /**
9622
       * Find the _Fields constant that matches fieldId, or null if its not found.
9623
       */
9624
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9625
        switch(fieldId) {
9626
          case 0: // SUCCESS
9627
            return SUCCESS;
9628
          case 1: // SE
9629
            return SE;
9630
          default:
9631
            return null;
9632
        }
495 rajveer 9633
      }
9634
 
9635
      /**
9636
       * Find the _Fields constant that matches fieldId, throwing an exception
9637
       * if it is not found.
9638
       */
9639
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9640
        _Fields fields = findByThriftId(fieldId);
9641
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9642
        return fields;
9643
      }
9644
 
9645
      /**
9646
       * Find the _Fields constant that matches name, or null if its not found.
9647
       */
9648
      public static _Fields findByName(String name) {
9649
        return byName.get(name);
9650
      }
9651
 
9652
      private final short _thriftId;
9653
      private final String _fieldName;
9654
 
9655
      _Fields(short thriftId, String fieldName) {
9656
        _thriftId = thriftId;
9657
        _fieldName = fieldName;
9658
      }
9659
 
9660
      public short getThriftFieldId() {
9661
        return _thriftId;
9662
      }
9663
 
9664
      public String getFieldName() {
9665
        return _fieldName;
9666
      }
9667
    }
9668
 
9669
    // isset id assignments
9670
    private static final int __SUCCESS_ISSET_ID = 0;
9671
    private BitSet __isset_bit_vector = new BitSet(1);
9672
 
3430 rajveer 9673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9674
    static {
3430 rajveer 9675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9676
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9677
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9678
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9679
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9680
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9681
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9682
    }
9683
 
9684
    public addUser_result() {
9685
    }
9686
 
9687
    public addUser_result(
9688
      boolean success,
9689
      HelperServiceException se)
9690
    {
9691
      this();
9692
      this.success = success;
9693
      setSuccessIsSet(true);
9694
      this.se = se;
9695
    }
9696
 
9697
    /**
9698
     * Performs a deep copy on <i>other</i>.
9699
     */
9700
    public addUser_result(addUser_result other) {
9701
      __isset_bit_vector.clear();
9702
      __isset_bit_vector.or(other.__isset_bit_vector);
9703
      this.success = other.success;
9704
      if (other.isSetSe()) {
9705
        this.se = new HelperServiceException(other.se);
9706
      }
9707
    }
9708
 
9709
    public addUser_result deepCopy() {
9710
      return new addUser_result(this);
9711
    }
9712
 
3430 rajveer 9713
    @Override
9714
    public void clear() {
9715
      setSuccessIsSet(false);
9716
      this.success = false;
9717
      this.se = null;
495 rajveer 9718
    }
9719
 
9720
    public boolean isSuccess() {
9721
      return this.success;
9722
    }
9723
 
3430 rajveer 9724
    public void setSuccess(boolean success) {
495 rajveer 9725
      this.success = success;
9726
      setSuccessIsSet(true);
9727
    }
9728
 
9729
    public void unsetSuccess() {
9730
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9731
    }
9732
 
3430 rajveer 9733
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9734
    public boolean isSetSuccess() {
9735
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9736
    }
9737
 
9738
    public void setSuccessIsSet(boolean value) {
9739
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9740
    }
9741
 
9742
    public HelperServiceException getSe() {
9743
      return this.se;
9744
    }
9745
 
3430 rajveer 9746
    public void setSe(HelperServiceException se) {
495 rajveer 9747
      this.se = se;
9748
    }
9749
 
9750
    public void unsetSe() {
9751
      this.se = null;
9752
    }
9753
 
3430 rajveer 9754
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9755
    public boolean isSetSe() {
9756
      return this.se != null;
9757
    }
9758
 
9759
    public void setSeIsSet(boolean value) {
9760
      if (!value) {
9761
        this.se = null;
9762
      }
9763
    }
9764
 
9765
    public void setFieldValue(_Fields field, Object value) {
9766
      switch (field) {
9767
      case SUCCESS:
9768
        if (value == null) {
9769
          unsetSuccess();
9770
        } else {
9771
          setSuccess((Boolean)value);
9772
        }
9773
        break;
9774
 
9775
      case SE:
9776
        if (value == null) {
9777
          unsetSe();
9778
        } else {
9779
          setSe((HelperServiceException)value);
9780
        }
9781
        break;
9782
 
9783
      }
9784
    }
9785
 
9786
    public Object getFieldValue(_Fields field) {
9787
      switch (field) {
9788
      case SUCCESS:
3430 rajveer 9789
        return Boolean.valueOf(isSuccess());
495 rajveer 9790
 
9791
      case SE:
9792
        return getSe();
9793
 
9794
      }
9795
      throw new IllegalStateException();
9796
    }
9797
 
3430 rajveer 9798
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9799
    public boolean isSet(_Fields field) {
9800
      if (field == null) {
9801
        throw new IllegalArgumentException();
9802
      }
495 rajveer 9803
 
9804
      switch (field) {
9805
      case SUCCESS:
9806
        return isSetSuccess();
9807
      case SE:
9808
        return isSetSe();
9809
      }
9810
      throw new IllegalStateException();
9811
    }
9812
 
9813
    @Override
9814
    public boolean equals(Object that) {
9815
      if (that == null)
9816
        return false;
9817
      if (that instanceof addUser_result)
9818
        return this.equals((addUser_result)that);
9819
      return false;
9820
    }
9821
 
9822
    public boolean equals(addUser_result that) {
9823
      if (that == null)
9824
        return false;
9825
 
9826
      boolean this_present_success = true;
9827
      boolean that_present_success = true;
9828
      if (this_present_success || that_present_success) {
9829
        if (!(this_present_success && that_present_success))
9830
          return false;
9831
        if (this.success != that.success)
9832
          return false;
9833
      }
9834
 
9835
      boolean this_present_se = true && this.isSetSe();
9836
      boolean that_present_se = true && that.isSetSe();
9837
      if (this_present_se || that_present_se) {
9838
        if (!(this_present_se && that_present_se))
9839
          return false;
9840
        if (!this.se.equals(that.se))
9841
          return false;
9842
      }
9843
 
9844
      return true;
9845
    }
9846
 
9847
    @Override
9848
    public int hashCode() {
9849
      return 0;
9850
    }
9851
 
9852
    public int compareTo(addUser_result other) {
9853
      if (!getClass().equals(other.getClass())) {
9854
        return getClass().getName().compareTo(other.getClass().getName());
9855
      }
9856
 
9857
      int lastComparison = 0;
9858
      addUser_result typedOther = (addUser_result)other;
9859
 
3430 rajveer 9860
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9861
      if (lastComparison != 0) {
9862
        return lastComparison;
9863
      }
3430 rajveer 9864
      if (isSetSuccess()) {
9865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9866
        if (lastComparison != 0) {
9867
          return lastComparison;
9868
        }
495 rajveer 9869
      }
3430 rajveer 9870
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9871
      if (lastComparison != 0) {
9872
        return lastComparison;
9873
      }
3430 rajveer 9874
      if (isSetSe()) {
9875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9876
        if (lastComparison != 0) {
9877
          return lastComparison;
9878
        }
495 rajveer 9879
      }
9880
      return 0;
9881
    }
9882
 
3430 rajveer 9883
    public _Fields fieldForId(int fieldId) {
9884
      return _Fields.findByThriftId(fieldId);
9885
    }
9886
 
9887
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9888
      org.apache.thrift.protocol.TField field;
495 rajveer 9889
      iprot.readStructBegin();
9890
      while (true)
9891
      {
9892
        field = iprot.readFieldBegin();
3430 rajveer 9893
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9894
          break;
9895
        }
3430 rajveer 9896
        switch (field.id) {
9897
          case 0: // SUCCESS
9898
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9899
              this.success = iprot.readBool();
9900
              setSuccessIsSet(true);
9901
            } else { 
9902
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9903
            }
9904
            break;
9905
          case 1: // SE
9906
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9907
              this.se = new HelperServiceException();
9908
              this.se.read(iprot);
9909
            } else { 
9910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9911
            }
9912
            break;
9913
          default:
9914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9915
        }
3430 rajveer 9916
        iprot.readFieldEnd();
495 rajveer 9917
      }
9918
      iprot.readStructEnd();
9919
      validate();
9920
    }
9921
 
3430 rajveer 9922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9923
      oprot.writeStructBegin(STRUCT_DESC);
9924
 
9925
      if (this.isSetSuccess()) {
9926
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9927
        oprot.writeBool(this.success);
9928
        oprot.writeFieldEnd();
9929
      } else if (this.isSetSe()) {
9930
        oprot.writeFieldBegin(SE_FIELD_DESC);
9931
        this.se.write(oprot);
9932
        oprot.writeFieldEnd();
9933
      }
9934
      oprot.writeFieldStop();
9935
      oprot.writeStructEnd();
9936
    }
9937
 
9938
    @Override
9939
    public String toString() {
9940
      StringBuilder sb = new StringBuilder("addUser_result(");
9941
      boolean first = true;
9942
 
9943
      sb.append("success:");
9944
      sb.append(this.success);
9945
      first = false;
9946
      if (!first) sb.append(", ");
9947
      sb.append("se:");
9948
      if (this.se == null) {
9949
        sb.append("null");
9950
      } else {
9951
        sb.append(this.se);
9952
      }
9953
      first = false;
9954
      sb.append(")");
9955
      return sb.toString();
9956
    }
9957
 
3430 rajveer 9958
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9959
      // check for required fields
9960
    }
9961
 
3430 rajveer 9962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9963
      try {
9964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9965
      } catch (org.apache.thrift.TException te) {
9966
        throw new java.io.IOException(te);
9967
      }
9968
    }
9969
 
9970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9971
      try {
9972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9973
      } catch (org.apache.thrift.TException te) {
9974
        throw new java.io.IOException(te);
9975
      }
9976
    }
9977
 
495 rajveer 9978
  }
9979
 
3430 rajveer 9980
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
9981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 9982
 
3430 rajveer 9983
    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 9984
 
3430 rajveer 9985
    private String username; // required
495 rajveer 9986
 
9987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9989
      USERNAME((short)1, "username");
9990
 
9991
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9992
 
9993
      static {
9994
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9995
          byName.put(field.getFieldName(), field);
9996
        }
9997
      }
9998
 
9999
      /**
10000
       * Find the _Fields constant that matches fieldId, or null if its not found.
10001
       */
10002
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10003
        switch(fieldId) {
10004
          case 1: // USERNAME
10005
            return USERNAME;
10006
          default:
10007
            return null;
10008
        }
495 rajveer 10009
      }
10010
 
10011
      /**
10012
       * Find the _Fields constant that matches fieldId, throwing an exception
10013
       * if it is not found.
10014
       */
10015
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10016
        _Fields fields = findByThriftId(fieldId);
10017
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10018
        return fields;
10019
      }
10020
 
10021
      /**
10022
       * Find the _Fields constant that matches name, or null if its not found.
10023
       */
10024
      public static _Fields findByName(String name) {
10025
        return byName.get(name);
10026
      }
10027
 
10028
      private final short _thriftId;
10029
      private final String _fieldName;
10030
 
10031
      _Fields(short thriftId, String fieldName) {
10032
        _thriftId = thriftId;
10033
        _fieldName = fieldName;
10034
      }
10035
 
10036
      public short getThriftFieldId() {
10037
        return _thriftId;
10038
      }
10039
 
10040
      public String getFieldName() {
10041
        return _fieldName;
10042
      }
10043
    }
10044
 
10045
    // isset id assignments
10046
 
3430 rajveer 10047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10048
    static {
3430 rajveer 10049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10050
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10051
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10052
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10053
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10054
    }
10055
 
10056
    public deleteUser_args() {
10057
    }
10058
 
10059
    public deleteUser_args(
10060
      String username)
10061
    {
10062
      this();
10063
      this.username = username;
10064
    }
10065
 
10066
    /**
10067
     * Performs a deep copy on <i>other</i>.
10068
     */
10069
    public deleteUser_args(deleteUser_args other) {
10070
      if (other.isSetUsername()) {
10071
        this.username = other.username;
10072
      }
10073
    }
10074
 
10075
    public deleteUser_args deepCopy() {
10076
      return new deleteUser_args(this);
10077
    }
10078
 
3430 rajveer 10079
    @Override
10080
    public void clear() {
10081
      this.username = null;
495 rajveer 10082
    }
10083
 
10084
    public String getUsername() {
10085
      return this.username;
10086
    }
10087
 
3430 rajveer 10088
    public void setUsername(String username) {
495 rajveer 10089
      this.username = username;
10090
    }
10091
 
10092
    public void unsetUsername() {
10093
      this.username = null;
10094
    }
10095
 
3430 rajveer 10096
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10097
    public boolean isSetUsername() {
10098
      return this.username != null;
10099
    }
10100
 
10101
    public void setUsernameIsSet(boolean value) {
10102
      if (!value) {
10103
        this.username = null;
10104
      }
10105
    }
10106
 
10107
    public void setFieldValue(_Fields field, Object value) {
10108
      switch (field) {
10109
      case USERNAME:
10110
        if (value == null) {
10111
          unsetUsername();
10112
        } else {
10113
          setUsername((String)value);
10114
        }
10115
        break;
10116
 
10117
      }
10118
    }
10119
 
10120
    public Object getFieldValue(_Fields field) {
10121
      switch (field) {
10122
      case USERNAME:
10123
        return getUsername();
10124
 
10125
      }
10126
      throw new IllegalStateException();
10127
    }
10128
 
3430 rajveer 10129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10130
    public boolean isSet(_Fields field) {
10131
      if (field == null) {
10132
        throw new IllegalArgumentException();
10133
      }
495 rajveer 10134
 
10135
      switch (field) {
10136
      case USERNAME:
10137
        return isSetUsername();
10138
      }
10139
      throw new IllegalStateException();
10140
    }
10141
 
10142
    @Override
10143
    public boolean equals(Object that) {
10144
      if (that == null)
10145
        return false;
10146
      if (that instanceof deleteUser_args)
10147
        return this.equals((deleteUser_args)that);
10148
      return false;
10149
    }
10150
 
10151
    public boolean equals(deleteUser_args that) {
10152
      if (that == null)
10153
        return false;
10154
 
10155
      boolean this_present_username = true && this.isSetUsername();
10156
      boolean that_present_username = true && that.isSetUsername();
10157
      if (this_present_username || that_present_username) {
10158
        if (!(this_present_username && that_present_username))
10159
          return false;
10160
        if (!this.username.equals(that.username))
10161
          return false;
10162
      }
10163
 
10164
      return true;
10165
    }
10166
 
10167
    @Override
10168
    public int hashCode() {
10169
      return 0;
10170
    }
10171
 
10172
    public int compareTo(deleteUser_args other) {
10173
      if (!getClass().equals(other.getClass())) {
10174
        return getClass().getName().compareTo(other.getClass().getName());
10175
      }
10176
 
10177
      int lastComparison = 0;
10178
      deleteUser_args typedOther = (deleteUser_args)other;
10179
 
3430 rajveer 10180
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10181
      if (lastComparison != 0) {
10182
        return lastComparison;
10183
      }
3430 rajveer 10184
      if (isSetUsername()) {
10185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10186
        if (lastComparison != 0) {
10187
          return lastComparison;
10188
        }
495 rajveer 10189
      }
10190
      return 0;
10191
    }
10192
 
3430 rajveer 10193
    public _Fields fieldForId(int fieldId) {
10194
      return _Fields.findByThriftId(fieldId);
10195
    }
10196
 
10197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10198
      org.apache.thrift.protocol.TField field;
495 rajveer 10199
      iprot.readStructBegin();
10200
      while (true)
10201
      {
10202
        field = iprot.readFieldBegin();
3430 rajveer 10203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10204
          break;
10205
        }
3430 rajveer 10206
        switch (field.id) {
10207
          case 1: // USERNAME
10208
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10209
              this.username = iprot.readString();
10210
            } else { 
10211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10212
            }
10213
            break;
10214
          default:
10215
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10216
        }
3430 rajveer 10217
        iprot.readFieldEnd();
495 rajveer 10218
      }
10219
      iprot.readStructEnd();
10220
      validate();
10221
    }
10222
 
3430 rajveer 10223
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10224
      validate();
10225
 
10226
      oprot.writeStructBegin(STRUCT_DESC);
10227
      if (this.username != null) {
10228
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10229
        oprot.writeString(this.username);
10230
        oprot.writeFieldEnd();
10231
      }
10232
      oprot.writeFieldStop();
10233
      oprot.writeStructEnd();
10234
    }
10235
 
10236
    @Override
10237
    public String toString() {
10238
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10239
      boolean first = true;
10240
 
10241
      sb.append("username:");
10242
      if (this.username == null) {
10243
        sb.append("null");
10244
      } else {
10245
        sb.append(this.username);
10246
      }
10247
      first = false;
10248
      sb.append(")");
10249
      return sb.toString();
10250
    }
10251
 
3430 rajveer 10252
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10253
      // check for required fields
10254
    }
10255
 
3430 rajveer 10256
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10257
      try {
10258
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10259
      } catch (org.apache.thrift.TException te) {
10260
        throw new java.io.IOException(te);
10261
      }
10262
    }
10263
 
10264
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10265
      try {
10266
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10267
      } catch (org.apache.thrift.TException te) {
10268
        throw new java.io.IOException(te);
10269
      }
10270
    }
10271
 
495 rajveer 10272
  }
10273
 
3430 rajveer 10274
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10275
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10276
 
3430 rajveer 10277
    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);
10278
    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 10279
 
3430 rajveer 10280
    private boolean success; // required
10281
    private HelperServiceException se; // required
495 rajveer 10282
 
10283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10284
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10285
      SUCCESS((short)0, "success"),
10286
      SE((short)1, "se");
10287
 
10288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10289
 
10290
      static {
10291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10292
          byName.put(field.getFieldName(), field);
10293
        }
10294
      }
10295
 
10296
      /**
10297
       * Find the _Fields constant that matches fieldId, or null if its not found.
10298
       */
10299
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10300
        switch(fieldId) {
10301
          case 0: // SUCCESS
10302
            return SUCCESS;
10303
          case 1: // SE
10304
            return SE;
10305
          default:
10306
            return null;
10307
        }
495 rajveer 10308
      }
10309
 
10310
      /**
10311
       * Find the _Fields constant that matches fieldId, throwing an exception
10312
       * if it is not found.
10313
       */
10314
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10315
        _Fields fields = findByThriftId(fieldId);
10316
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10317
        return fields;
10318
      }
10319
 
10320
      /**
10321
       * Find the _Fields constant that matches name, or null if its not found.
10322
       */
10323
      public static _Fields findByName(String name) {
10324
        return byName.get(name);
10325
      }
10326
 
10327
      private final short _thriftId;
10328
      private final String _fieldName;
10329
 
10330
      _Fields(short thriftId, String fieldName) {
10331
        _thriftId = thriftId;
10332
        _fieldName = fieldName;
10333
      }
10334
 
10335
      public short getThriftFieldId() {
10336
        return _thriftId;
10337
      }
10338
 
10339
      public String getFieldName() {
10340
        return _fieldName;
10341
      }
10342
    }
10343
 
10344
    // isset id assignments
10345
    private static final int __SUCCESS_ISSET_ID = 0;
10346
    private BitSet __isset_bit_vector = new BitSet(1);
10347
 
3430 rajveer 10348
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10349
    static {
3430 rajveer 10350
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10351
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10352
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10353
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10354
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10357
    }
10358
 
10359
    public deleteUser_result() {
10360
    }
10361
 
10362
    public deleteUser_result(
10363
      boolean success,
10364
      HelperServiceException se)
10365
    {
10366
      this();
10367
      this.success = success;
10368
      setSuccessIsSet(true);
10369
      this.se = se;
10370
    }
10371
 
10372
    /**
10373
     * Performs a deep copy on <i>other</i>.
10374
     */
10375
    public deleteUser_result(deleteUser_result other) {
10376
      __isset_bit_vector.clear();
10377
      __isset_bit_vector.or(other.__isset_bit_vector);
10378
      this.success = other.success;
10379
      if (other.isSetSe()) {
10380
        this.se = new HelperServiceException(other.se);
10381
      }
10382
    }
10383
 
10384
    public deleteUser_result deepCopy() {
10385
      return new deleteUser_result(this);
10386
    }
10387
 
3430 rajveer 10388
    @Override
10389
    public void clear() {
10390
      setSuccessIsSet(false);
10391
      this.success = false;
10392
      this.se = null;
495 rajveer 10393
    }
10394
 
10395
    public boolean isSuccess() {
10396
      return this.success;
10397
    }
10398
 
3430 rajveer 10399
    public void setSuccess(boolean success) {
495 rajveer 10400
      this.success = success;
10401
      setSuccessIsSet(true);
10402
    }
10403
 
10404
    public void unsetSuccess() {
10405
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10406
    }
10407
 
3430 rajveer 10408
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10409
    public boolean isSetSuccess() {
10410
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10411
    }
10412
 
10413
    public void setSuccessIsSet(boolean value) {
10414
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10415
    }
10416
 
10417
    public HelperServiceException getSe() {
10418
      return this.se;
10419
    }
10420
 
3430 rajveer 10421
    public void setSe(HelperServiceException se) {
495 rajveer 10422
      this.se = se;
10423
    }
10424
 
10425
    public void unsetSe() {
10426
      this.se = null;
10427
    }
10428
 
3430 rajveer 10429
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10430
    public boolean isSetSe() {
10431
      return this.se != null;
10432
    }
10433
 
10434
    public void setSeIsSet(boolean value) {
10435
      if (!value) {
10436
        this.se = null;
10437
      }
10438
    }
10439
 
10440
    public void setFieldValue(_Fields field, Object value) {
10441
      switch (field) {
10442
      case SUCCESS:
10443
        if (value == null) {
10444
          unsetSuccess();
10445
        } else {
10446
          setSuccess((Boolean)value);
10447
        }
10448
        break;
10449
 
10450
      case SE:
10451
        if (value == null) {
10452
          unsetSe();
10453
        } else {
10454
          setSe((HelperServiceException)value);
10455
        }
10456
        break;
10457
 
10458
      }
10459
    }
10460
 
10461
    public Object getFieldValue(_Fields field) {
10462
      switch (field) {
10463
      case SUCCESS:
3430 rajveer 10464
        return Boolean.valueOf(isSuccess());
495 rajveer 10465
 
10466
      case SE:
10467
        return getSe();
10468
 
10469
      }
10470
      throw new IllegalStateException();
10471
    }
10472
 
3430 rajveer 10473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10474
    public boolean isSet(_Fields field) {
10475
      if (field == null) {
10476
        throw new IllegalArgumentException();
10477
      }
495 rajveer 10478
 
10479
      switch (field) {
10480
      case SUCCESS:
10481
        return isSetSuccess();
10482
      case SE:
10483
        return isSetSe();
10484
      }
10485
      throw new IllegalStateException();
10486
    }
10487
 
10488
    @Override
10489
    public boolean equals(Object that) {
10490
      if (that == null)
10491
        return false;
10492
      if (that instanceof deleteUser_result)
10493
        return this.equals((deleteUser_result)that);
10494
      return false;
10495
    }
10496
 
10497
    public boolean equals(deleteUser_result that) {
10498
      if (that == null)
10499
        return false;
10500
 
10501
      boolean this_present_success = true;
10502
      boolean that_present_success = true;
10503
      if (this_present_success || that_present_success) {
10504
        if (!(this_present_success && that_present_success))
10505
          return false;
10506
        if (this.success != that.success)
10507
          return false;
10508
      }
10509
 
10510
      boolean this_present_se = true && this.isSetSe();
10511
      boolean that_present_se = true && that.isSetSe();
10512
      if (this_present_se || that_present_se) {
10513
        if (!(this_present_se && that_present_se))
10514
          return false;
10515
        if (!this.se.equals(that.se))
10516
          return false;
10517
      }
10518
 
10519
      return true;
10520
    }
10521
 
10522
    @Override
10523
    public int hashCode() {
10524
      return 0;
10525
    }
10526
 
10527
    public int compareTo(deleteUser_result other) {
10528
      if (!getClass().equals(other.getClass())) {
10529
        return getClass().getName().compareTo(other.getClass().getName());
10530
      }
10531
 
10532
      int lastComparison = 0;
10533
      deleteUser_result typedOther = (deleteUser_result)other;
10534
 
3430 rajveer 10535
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10536
      if (lastComparison != 0) {
10537
        return lastComparison;
10538
      }
3430 rajveer 10539
      if (isSetSuccess()) {
10540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10541
        if (lastComparison != 0) {
10542
          return lastComparison;
10543
        }
495 rajveer 10544
      }
3430 rajveer 10545
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10546
      if (lastComparison != 0) {
10547
        return lastComparison;
10548
      }
3430 rajveer 10549
      if (isSetSe()) {
10550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10551
        if (lastComparison != 0) {
10552
          return lastComparison;
10553
        }
495 rajveer 10554
      }
10555
      return 0;
10556
    }
10557
 
3430 rajveer 10558
    public _Fields fieldForId(int fieldId) {
10559
      return _Fields.findByThriftId(fieldId);
10560
    }
10561
 
10562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10563
      org.apache.thrift.protocol.TField field;
495 rajveer 10564
      iprot.readStructBegin();
10565
      while (true)
10566
      {
10567
        field = iprot.readFieldBegin();
3430 rajveer 10568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10569
          break;
10570
        }
3430 rajveer 10571
        switch (field.id) {
10572
          case 0: // SUCCESS
10573
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10574
              this.success = iprot.readBool();
10575
              setSuccessIsSet(true);
10576
            } else { 
10577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10578
            }
10579
            break;
10580
          case 1: // SE
10581
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10582
              this.se = new HelperServiceException();
10583
              this.se.read(iprot);
10584
            } else { 
10585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10586
            }
10587
            break;
10588
          default:
10589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10590
        }
3430 rajveer 10591
        iprot.readFieldEnd();
495 rajveer 10592
      }
10593
      iprot.readStructEnd();
10594
      validate();
10595
    }
10596
 
3430 rajveer 10597
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10598
      oprot.writeStructBegin(STRUCT_DESC);
10599
 
10600
      if (this.isSetSuccess()) {
10601
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10602
        oprot.writeBool(this.success);
10603
        oprot.writeFieldEnd();
10604
      } else if (this.isSetSe()) {
10605
        oprot.writeFieldBegin(SE_FIELD_DESC);
10606
        this.se.write(oprot);
10607
        oprot.writeFieldEnd();
10608
      }
10609
      oprot.writeFieldStop();
10610
      oprot.writeStructEnd();
10611
    }
10612
 
10613
    @Override
10614
    public String toString() {
10615
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10616
      boolean first = true;
10617
 
10618
      sb.append("success:");
10619
      sb.append(this.success);
10620
      first = false;
10621
      if (!first) sb.append(", ");
10622
      sb.append("se:");
10623
      if (this.se == null) {
10624
        sb.append("null");
10625
      } else {
10626
        sb.append(this.se);
10627
      }
10628
      first = false;
10629
      sb.append(")");
10630
      return sb.toString();
10631
    }
10632
 
3430 rajveer 10633
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10634
      // check for required fields
10635
    }
10636
 
3430 rajveer 10637
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10638
      try {
10639
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10640
      } catch (org.apache.thrift.TException te) {
10641
        throw new java.io.IOException(te);
10642
      }
10643
    }
10644
 
10645
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10646
      try {
10647
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10648
      } catch (org.apache.thrift.TException te) {
10649
        throw new java.io.IOException(te);
10650
      }
10651
    }
10652
 
495 rajveer 10653
  }
10654
 
3430 rajveer 10655
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10656
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10657
 
3430 rajveer 10658
    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);
10659
    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 10660
 
3430 rajveer 10661
    private String username; // required
10662
    private String password; // required
495 rajveer 10663
 
10664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10666
      USERNAME((short)1, "username"),
10667
      PASSWORD((short)2, "password");
10668
 
10669
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10670
 
10671
      static {
10672
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10673
          byName.put(field.getFieldName(), field);
10674
        }
10675
      }
10676
 
10677
      /**
10678
       * Find the _Fields constant that matches fieldId, or null if its not found.
10679
       */
10680
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10681
        switch(fieldId) {
10682
          case 1: // USERNAME
10683
            return USERNAME;
10684
          case 2: // PASSWORD
10685
            return PASSWORD;
10686
          default:
10687
            return null;
10688
        }
495 rajveer 10689
      }
10690
 
10691
      /**
10692
       * Find the _Fields constant that matches fieldId, throwing an exception
10693
       * if it is not found.
10694
       */
10695
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10696
        _Fields fields = findByThriftId(fieldId);
10697
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10698
        return fields;
10699
      }
10700
 
10701
      /**
10702
       * Find the _Fields constant that matches name, or null if its not found.
10703
       */
10704
      public static _Fields findByName(String name) {
10705
        return byName.get(name);
10706
      }
10707
 
10708
      private final short _thriftId;
10709
      private final String _fieldName;
10710
 
10711
      _Fields(short thriftId, String fieldName) {
10712
        _thriftId = thriftId;
10713
        _fieldName = fieldName;
10714
      }
10715
 
10716
      public short getThriftFieldId() {
10717
        return _thriftId;
10718
      }
10719
 
10720
      public String getFieldName() {
10721
        return _fieldName;
10722
      }
10723
    }
10724
 
10725
    // isset id assignments
10726
 
3430 rajveer 10727
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10728
    static {
3430 rajveer 10729
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10730
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10731
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10732
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10733
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10734
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10735
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10736
    }
10737
 
2443 chandransh 10738
    public authenticateDashboardUser_args() {
495 rajveer 10739
    }
10740
 
2443 chandransh 10741
    public authenticateDashboardUser_args(
495 rajveer 10742
      String username,
10743
      String password)
10744
    {
10745
      this();
10746
      this.username = username;
10747
      this.password = password;
10748
    }
10749
 
10750
    /**
10751
     * Performs a deep copy on <i>other</i>.
10752
     */
2443 chandransh 10753
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10754
      if (other.isSetUsername()) {
10755
        this.username = other.username;
10756
      }
10757
      if (other.isSetPassword()) {
10758
        this.password = other.password;
10759
      }
10760
    }
10761
 
2443 chandransh 10762
    public authenticateDashboardUser_args deepCopy() {
10763
      return new authenticateDashboardUser_args(this);
495 rajveer 10764
    }
10765
 
3430 rajveer 10766
    @Override
10767
    public void clear() {
10768
      this.username = null;
10769
      this.password = null;
495 rajveer 10770
    }
10771
 
10772
    public String getUsername() {
10773
      return this.username;
10774
    }
10775
 
3430 rajveer 10776
    public void setUsername(String username) {
495 rajveer 10777
      this.username = username;
10778
    }
10779
 
10780
    public void unsetUsername() {
10781
      this.username = null;
10782
    }
10783
 
3430 rajveer 10784
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10785
    public boolean isSetUsername() {
10786
      return this.username != null;
10787
    }
10788
 
10789
    public void setUsernameIsSet(boolean value) {
10790
      if (!value) {
10791
        this.username = null;
10792
      }
10793
    }
10794
 
10795
    public String getPassword() {
10796
      return this.password;
10797
    }
10798
 
3430 rajveer 10799
    public void setPassword(String password) {
495 rajveer 10800
      this.password = password;
10801
    }
10802
 
10803
    public void unsetPassword() {
10804
      this.password = null;
10805
    }
10806
 
3430 rajveer 10807
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10808
    public boolean isSetPassword() {
10809
      return this.password != null;
10810
    }
10811
 
10812
    public void setPasswordIsSet(boolean value) {
10813
      if (!value) {
10814
        this.password = null;
10815
      }
10816
    }
10817
 
10818
    public void setFieldValue(_Fields field, Object value) {
10819
      switch (field) {
10820
      case USERNAME:
10821
        if (value == null) {
10822
          unsetUsername();
10823
        } else {
10824
          setUsername((String)value);
10825
        }
10826
        break;
10827
 
10828
      case PASSWORD:
10829
        if (value == null) {
10830
          unsetPassword();
10831
        } else {
10832
          setPassword((String)value);
10833
        }
10834
        break;
10835
 
10836
      }
10837
    }
10838
 
10839
    public Object getFieldValue(_Fields field) {
10840
      switch (field) {
10841
      case USERNAME:
10842
        return getUsername();
10843
 
10844
      case PASSWORD:
10845
        return getPassword();
10846
 
10847
      }
10848
      throw new IllegalStateException();
10849
    }
10850
 
3430 rajveer 10851
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10852
    public boolean isSet(_Fields field) {
10853
      if (field == null) {
10854
        throw new IllegalArgumentException();
10855
      }
495 rajveer 10856
 
10857
      switch (field) {
10858
      case USERNAME:
10859
        return isSetUsername();
10860
      case PASSWORD:
10861
        return isSetPassword();
10862
      }
10863
      throw new IllegalStateException();
10864
    }
10865
 
10866
    @Override
10867
    public boolean equals(Object that) {
10868
      if (that == null)
10869
        return false;
2443 chandransh 10870
      if (that instanceof authenticateDashboardUser_args)
10871
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10872
      return false;
10873
    }
10874
 
2443 chandransh 10875
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10876
      if (that == null)
10877
        return false;
10878
 
10879
      boolean this_present_username = true && this.isSetUsername();
10880
      boolean that_present_username = true && that.isSetUsername();
10881
      if (this_present_username || that_present_username) {
10882
        if (!(this_present_username && that_present_username))
10883
          return false;
10884
        if (!this.username.equals(that.username))
10885
          return false;
10886
      }
10887
 
10888
      boolean this_present_password = true && this.isSetPassword();
10889
      boolean that_present_password = true && that.isSetPassword();
10890
      if (this_present_password || that_present_password) {
10891
        if (!(this_present_password && that_present_password))
10892
          return false;
10893
        if (!this.password.equals(that.password))
10894
          return false;
10895
      }
10896
 
10897
      return true;
10898
    }
10899
 
10900
    @Override
10901
    public int hashCode() {
10902
      return 0;
10903
    }
10904
 
2443 chandransh 10905
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10906
      if (!getClass().equals(other.getClass())) {
10907
        return getClass().getName().compareTo(other.getClass().getName());
10908
      }
10909
 
10910
      int lastComparison = 0;
2443 chandransh 10911
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10912
 
3430 rajveer 10913
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10914
      if (lastComparison != 0) {
10915
        return lastComparison;
10916
      }
3430 rajveer 10917
      if (isSetUsername()) {
10918
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10919
        if (lastComparison != 0) {
10920
          return lastComparison;
10921
        }
495 rajveer 10922
      }
3430 rajveer 10923
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10924
      if (lastComparison != 0) {
10925
        return lastComparison;
10926
      }
3430 rajveer 10927
      if (isSetPassword()) {
10928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10929
        if (lastComparison != 0) {
10930
          return lastComparison;
10931
        }
495 rajveer 10932
      }
10933
      return 0;
10934
    }
10935
 
3430 rajveer 10936
    public _Fields fieldForId(int fieldId) {
10937
      return _Fields.findByThriftId(fieldId);
10938
    }
10939
 
10940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10941
      org.apache.thrift.protocol.TField field;
495 rajveer 10942
      iprot.readStructBegin();
10943
      while (true)
10944
      {
10945
        field = iprot.readFieldBegin();
3430 rajveer 10946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10947
          break;
10948
        }
3430 rajveer 10949
        switch (field.id) {
10950
          case 1: // USERNAME
10951
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10952
              this.username = iprot.readString();
10953
            } else { 
10954
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10955
            }
10956
            break;
10957
          case 2: // PASSWORD
10958
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10959
              this.password = iprot.readString();
10960
            } else { 
10961
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10962
            }
10963
            break;
10964
          default:
10965
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10966
        }
3430 rajveer 10967
        iprot.readFieldEnd();
495 rajveer 10968
      }
10969
      iprot.readStructEnd();
10970
      validate();
10971
    }
10972
 
3430 rajveer 10973
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10974
      validate();
10975
 
10976
      oprot.writeStructBegin(STRUCT_DESC);
10977
      if (this.username != null) {
10978
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10979
        oprot.writeString(this.username);
10980
        oprot.writeFieldEnd();
10981
      }
10982
      if (this.password != null) {
10983
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10984
        oprot.writeString(this.password);
10985
        oprot.writeFieldEnd();
10986
      }
10987
      oprot.writeFieldStop();
10988
      oprot.writeStructEnd();
10989
    }
10990
 
10991
    @Override
10992
    public String toString() {
2443 chandransh 10993
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 10994
      boolean first = true;
10995
 
10996
      sb.append("username:");
10997
      if (this.username == null) {
10998
        sb.append("null");
10999
      } else {
11000
        sb.append(this.username);
11001
      }
11002
      first = false;
11003
      if (!first) sb.append(", ");
11004
      sb.append("password:");
11005
      if (this.password == null) {
11006
        sb.append("null");
11007
      } else {
11008
        sb.append(this.password);
11009
      }
11010
      first = false;
11011
      sb.append(")");
11012
      return sb.toString();
11013
    }
11014
 
3430 rajveer 11015
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11016
      // check for required fields
11017
    }
11018
 
3430 rajveer 11019
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11020
      try {
11021
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11022
      } catch (org.apache.thrift.TException te) {
11023
        throw new java.io.IOException(te);
11024
      }
11025
    }
11026
 
11027
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11028
      try {
11029
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11030
      } catch (org.apache.thrift.TException te) {
11031
        throw new java.io.IOException(te);
11032
      }
11033
    }
11034
 
495 rajveer 11035
  }
11036
 
3430 rajveer 11037
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11038
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11039
 
3430 rajveer 11040
    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);
11041
    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 11042
 
3430 rajveer 11043
    private DashboardUser success; // required
11044
    private HelperServiceException se; // required
495 rajveer 11045
 
11046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11047
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11048
      SUCCESS((short)0, "success"),
11049
      SE((short)1, "se");
11050
 
11051
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11052
 
11053
      static {
11054
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11055
          byName.put(field.getFieldName(), field);
11056
        }
11057
      }
11058
 
11059
      /**
11060
       * Find the _Fields constant that matches fieldId, or null if its not found.
11061
       */
11062
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11063
        switch(fieldId) {
11064
          case 0: // SUCCESS
11065
            return SUCCESS;
11066
          case 1: // SE
11067
            return SE;
11068
          default:
11069
            return null;
11070
        }
495 rajveer 11071
      }
11072
 
11073
      /**
11074
       * Find the _Fields constant that matches fieldId, throwing an exception
11075
       * if it is not found.
11076
       */
11077
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11078
        _Fields fields = findByThriftId(fieldId);
11079
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11080
        return fields;
11081
      }
11082
 
11083
      /**
11084
       * Find the _Fields constant that matches name, or null if its not found.
11085
       */
11086
      public static _Fields findByName(String name) {
11087
        return byName.get(name);
11088
      }
11089
 
11090
      private final short _thriftId;
11091
      private final String _fieldName;
11092
 
11093
      _Fields(short thriftId, String fieldName) {
11094
        _thriftId = thriftId;
11095
        _fieldName = fieldName;
11096
      }
11097
 
11098
      public short getThriftFieldId() {
11099
        return _thriftId;
11100
      }
11101
 
11102
      public String getFieldName() {
11103
        return _fieldName;
11104
      }
11105
    }
11106
 
11107
    // isset id assignments
11108
 
3430 rajveer 11109
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11110
    static {
3430 rajveer 11111
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11112
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11113
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11114
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11116
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11117
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11118
    }
11119
 
2443 chandransh 11120
    public authenticateDashboardUser_result() {
495 rajveer 11121
    }
11122
 
2443 chandransh 11123
    public authenticateDashboardUser_result(
11124
      DashboardUser success,
495 rajveer 11125
      HelperServiceException se)
11126
    {
11127
      this();
11128
      this.success = success;
11129
      this.se = se;
11130
    }
11131
 
11132
    /**
11133
     * Performs a deep copy on <i>other</i>.
11134
     */
2443 chandransh 11135
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11136
      if (other.isSetSuccess()) {
11137
        this.success = new DashboardUser(other.success);
11138
      }
495 rajveer 11139
      if (other.isSetSe()) {
11140
        this.se = new HelperServiceException(other.se);
11141
      }
11142
    }
11143
 
2443 chandransh 11144
    public authenticateDashboardUser_result deepCopy() {
11145
      return new authenticateDashboardUser_result(this);
495 rajveer 11146
    }
11147
 
3430 rajveer 11148
    @Override
11149
    public void clear() {
11150
      this.success = null;
11151
      this.se = null;
495 rajveer 11152
    }
11153
 
2443 chandransh 11154
    public DashboardUser getSuccess() {
495 rajveer 11155
      return this.success;
11156
    }
11157
 
3430 rajveer 11158
    public void setSuccess(DashboardUser success) {
495 rajveer 11159
      this.success = success;
11160
    }
11161
 
11162
    public void unsetSuccess() {
2443 chandransh 11163
      this.success = null;
495 rajveer 11164
    }
11165
 
3430 rajveer 11166
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11167
    public boolean isSetSuccess() {
2443 chandransh 11168
      return this.success != null;
495 rajveer 11169
    }
11170
 
11171
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11172
      if (!value) {
11173
        this.success = null;
11174
      }
495 rajveer 11175
    }
11176
 
11177
    public HelperServiceException getSe() {
11178
      return this.se;
11179
    }
11180
 
3430 rajveer 11181
    public void setSe(HelperServiceException se) {
495 rajveer 11182
      this.se = se;
11183
    }
11184
 
11185
    public void unsetSe() {
11186
      this.se = null;
11187
    }
11188
 
3430 rajveer 11189
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11190
    public boolean isSetSe() {
11191
      return this.se != null;
11192
    }
11193
 
11194
    public void setSeIsSet(boolean value) {
11195
      if (!value) {
11196
        this.se = null;
11197
      }
11198
    }
11199
 
11200
    public void setFieldValue(_Fields field, Object value) {
11201
      switch (field) {
11202
      case SUCCESS:
11203
        if (value == null) {
11204
          unsetSuccess();
11205
        } else {
2443 chandransh 11206
          setSuccess((DashboardUser)value);
495 rajveer 11207
        }
11208
        break;
11209
 
11210
      case SE:
11211
        if (value == null) {
11212
          unsetSe();
11213
        } else {
11214
          setSe((HelperServiceException)value);
11215
        }
11216
        break;
11217
 
11218
      }
11219
    }
11220
 
11221
    public Object getFieldValue(_Fields field) {
11222
      switch (field) {
11223
      case SUCCESS:
2443 chandransh 11224
        return getSuccess();
495 rajveer 11225
 
11226
      case SE:
11227
        return getSe();
11228
 
11229
      }
11230
      throw new IllegalStateException();
11231
    }
11232
 
3430 rajveer 11233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11234
    public boolean isSet(_Fields field) {
11235
      if (field == null) {
11236
        throw new IllegalArgumentException();
11237
      }
495 rajveer 11238
 
11239
      switch (field) {
11240
      case SUCCESS:
11241
        return isSetSuccess();
11242
      case SE:
11243
        return isSetSe();
11244
      }
11245
      throw new IllegalStateException();
11246
    }
11247
 
11248
    @Override
11249
    public boolean equals(Object that) {
11250
      if (that == null)
11251
        return false;
2443 chandransh 11252
      if (that instanceof authenticateDashboardUser_result)
11253
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11254
      return false;
11255
    }
11256
 
2443 chandransh 11257
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11258
      if (that == null)
11259
        return false;
11260
 
2443 chandransh 11261
      boolean this_present_success = true && this.isSetSuccess();
11262
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11263
      if (this_present_success || that_present_success) {
11264
        if (!(this_present_success && that_present_success))
11265
          return false;
2443 chandransh 11266
        if (!this.success.equals(that.success))
495 rajveer 11267
          return false;
11268
      }
11269
 
11270
      boolean this_present_se = true && this.isSetSe();
11271
      boolean that_present_se = true && that.isSetSe();
11272
      if (this_present_se || that_present_se) {
11273
        if (!(this_present_se && that_present_se))
11274
          return false;
11275
        if (!this.se.equals(that.se))
11276
          return false;
11277
      }
11278
 
11279
      return true;
11280
    }
11281
 
11282
    @Override
11283
    public int hashCode() {
11284
      return 0;
11285
    }
11286
 
2443 chandransh 11287
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11288
      if (!getClass().equals(other.getClass())) {
11289
        return getClass().getName().compareTo(other.getClass().getName());
11290
      }
11291
 
11292
      int lastComparison = 0;
2443 chandransh 11293
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11294
 
3430 rajveer 11295
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11296
      if (lastComparison != 0) {
11297
        return lastComparison;
11298
      }
3430 rajveer 11299
      if (isSetSuccess()) {
11300
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11301
        if (lastComparison != 0) {
11302
          return lastComparison;
11303
        }
495 rajveer 11304
      }
3430 rajveer 11305
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11306
      if (lastComparison != 0) {
11307
        return lastComparison;
11308
      }
3430 rajveer 11309
      if (isSetSe()) {
11310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11311
        if (lastComparison != 0) {
11312
          return lastComparison;
11313
        }
495 rajveer 11314
      }
11315
      return 0;
11316
    }
11317
 
3430 rajveer 11318
    public _Fields fieldForId(int fieldId) {
11319
      return _Fields.findByThriftId(fieldId);
11320
    }
11321
 
11322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11323
      org.apache.thrift.protocol.TField field;
495 rajveer 11324
      iprot.readStructBegin();
11325
      while (true)
11326
      {
11327
        field = iprot.readFieldBegin();
3430 rajveer 11328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11329
          break;
11330
        }
3430 rajveer 11331
        switch (field.id) {
11332
          case 0: // SUCCESS
11333
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11334
              this.success = new DashboardUser();
11335
              this.success.read(iprot);
11336
            } else { 
11337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11338
            }
11339
            break;
11340
          case 1: // SE
11341
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11342
              this.se = new HelperServiceException();
11343
              this.se.read(iprot);
11344
            } else { 
11345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11346
            }
11347
            break;
11348
          default:
11349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11350
        }
3430 rajveer 11351
        iprot.readFieldEnd();
495 rajveer 11352
      }
11353
      iprot.readStructEnd();
11354
      validate();
11355
    }
11356
 
3430 rajveer 11357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11358
      oprot.writeStructBegin(STRUCT_DESC);
11359
 
11360
      if (this.isSetSuccess()) {
11361
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11362
        this.success.write(oprot);
495 rajveer 11363
        oprot.writeFieldEnd();
11364
      } else if (this.isSetSe()) {
11365
        oprot.writeFieldBegin(SE_FIELD_DESC);
11366
        this.se.write(oprot);
11367
        oprot.writeFieldEnd();
11368
      }
11369
      oprot.writeFieldStop();
11370
      oprot.writeStructEnd();
11371
    }
11372
 
11373
    @Override
11374
    public String toString() {
2443 chandransh 11375
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11376
      boolean first = true;
11377
 
11378
      sb.append("success:");
2443 chandransh 11379
      if (this.success == null) {
11380
        sb.append("null");
11381
      } else {
11382
        sb.append(this.success);
11383
      }
495 rajveer 11384
      first = false;
11385
      if (!first) sb.append(", ");
11386
      sb.append("se:");
11387
      if (this.se == null) {
11388
        sb.append("null");
11389
      } else {
11390
        sb.append(this.se);
11391
      }
11392
      first = false;
11393
      sb.append(")");
11394
      return sb.toString();
11395
    }
11396
 
3430 rajveer 11397
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11398
      // check for required fields
11399
    }
11400
 
3430 rajveer 11401
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11402
      try {
11403
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11404
      } catch (org.apache.thrift.TException te) {
11405
        throw new java.io.IOException(te);
11406
      }
11407
    }
11408
 
11409
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11410
      try {
11411
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11412
      } catch (org.apache.thrift.TException te) {
11413
        throw new java.io.IOException(te);
11414
      }
11415
    }
11416
 
495 rajveer 11417
  }
11418
 
3430 rajveer 11419
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11420
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11421
 
3430 rajveer 11422
    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);
11423
    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);
11424
    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 11425
 
3430 rajveer 11426
    private String username; // required
11427
    private String oldPassword; // required
11428
    private String newPassword; // required
495 rajveer 11429
 
11430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11432
      USERNAME((short)1, "username"),
11433
      OLD_PASSWORD((short)2, "oldPassword"),
11434
      NEW_PASSWORD((short)3, "newPassword");
11435
 
11436
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11437
 
11438
      static {
11439
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11440
          byName.put(field.getFieldName(), field);
11441
        }
11442
      }
11443
 
11444
      /**
11445
       * Find the _Fields constant that matches fieldId, or null if its not found.
11446
       */
11447
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11448
        switch(fieldId) {
11449
          case 1: // USERNAME
11450
            return USERNAME;
11451
          case 2: // OLD_PASSWORD
11452
            return OLD_PASSWORD;
11453
          case 3: // NEW_PASSWORD
11454
            return NEW_PASSWORD;
11455
          default:
11456
            return null;
11457
        }
495 rajveer 11458
      }
11459
 
11460
      /**
11461
       * Find the _Fields constant that matches fieldId, throwing an exception
11462
       * if it is not found.
11463
       */
11464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11465
        _Fields fields = findByThriftId(fieldId);
11466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11467
        return fields;
11468
      }
11469
 
11470
      /**
11471
       * Find the _Fields constant that matches name, or null if its not found.
11472
       */
11473
      public static _Fields findByName(String name) {
11474
        return byName.get(name);
11475
      }
11476
 
11477
      private final short _thriftId;
11478
      private final String _fieldName;
11479
 
11480
      _Fields(short thriftId, String fieldName) {
11481
        _thriftId = thriftId;
11482
        _fieldName = fieldName;
11483
      }
11484
 
11485
      public short getThriftFieldId() {
11486
        return _thriftId;
11487
      }
11488
 
11489
      public String getFieldName() {
11490
        return _fieldName;
11491
      }
11492
    }
11493
 
11494
    // isset id assignments
11495
 
3430 rajveer 11496
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11497
    static {
3430 rajveer 11498
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11499
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11500
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11501
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11503
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11507
    }
11508
 
11509
    public updatePassword_args() {
11510
    }
11511
 
11512
    public updatePassword_args(
11513
      String username,
11514
      String oldPassword,
11515
      String newPassword)
11516
    {
11517
      this();
11518
      this.username = username;
11519
      this.oldPassword = oldPassword;
11520
      this.newPassword = newPassword;
11521
    }
11522
 
11523
    /**
11524
     * Performs a deep copy on <i>other</i>.
11525
     */
11526
    public updatePassword_args(updatePassword_args other) {
11527
      if (other.isSetUsername()) {
11528
        this.username = other.username;
11529
      }
11530
      if (other.isSetOldPassword()) {
11531
        this.oldPassword = other.oldPassword;
11532
      }
11533
      if (other.isSetNewPassword()) {
11534
        this.newPassword = other.newPassword;
11535
      }
11536
    }
11537
 
11538
    public updatePassword_args deepCopy() {
11539
      return new updatePassword_args(this);
11540
    }
11541
 
3430 rajveer 11542
    @Override
11543
    public void clear() {
11544
      this.username = null;
11545
      this.oldPassword = null;
11546
      this.newPassword = null;
495 rajveer 11547
    }
11548
 
11549
    public String getUsername() {
11550
      return this.username;
11551
    }
11552
 
3430 rajveer 11553
    public void setUsername(String username) {
495 rajveer 11554
      this.username = username;
11555
    }
11556
 
11557
    public void unsetUsername() {
11558
      this.username = null;
11559
    }
11560
 
3430 rajveer 11561
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11562
    public boolean isSetUsername() {
11563
      return this.username != null;
11564
    }
11565
 
11566
    public void setUsernameIsSet(boolean value) {
11567
      if (!value) {
11568
        this.username = null;
11569
      }
11570
    }
11571
 
11572
    public String getOldPassword() {
11573
      return this.oldPassword;
11574
    }
11575
 
3430 rajveer 11576
    public void setOldPassword(String oldPassword) {
495 rajveer 11577
      this.oldPassword = oldPassword;
11578
    }
11579
 
11580
    public void unsetOldPassword() {
11581
      this.oldPassword = null;
11582
    }
11583
 
3430 rajveer 11584
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11585
    public boolean isSetOldPassword() {
11586
      return this.oldPassword != null;
11587
    }
11588
 
11589
    public void setOldPasswordIsSet(boolean value) {
11590
      if (!value) {
11591
        this.oldPassword = null;
11592
      }
11593
    }
11594
 
11595
    public String getNewPassword() {
11596
      return this.newPassword;
11597
    }
11598
 
3430 rajveer 11599
    public void setNewPassword(String newPassword) {
495 rajveer 11600
      this.newPassword = newPassword;
11601
    }
11602
 
11603
    public void unsetNewPassword() {
11604
      this.newPassword = null;
11605
    }
11606
 
3430 rajveer 11607
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11608
    public boolean isSetNewPassword() {
11609
      return this.newPassword != null;
11610
    }
11611
 
11612
    public void setNewPasswordIsSet(boolean value) {
11613
      if (!value) {
11614
        this.newPassword = null;
11615
      }
11616
    }
11617
 
11618
    public void setFieldValue(_Fields field, Object value) {
11619
      switch (field) {
11620
      case USERNAME:
11621
        if (value == null) {
11622
          unsetUsername();
11623
        } else {
11624
          setUsername((String)value);
11625
        }
11626
        break;
11627
 
11628
      case OLD_PASSWORD:
11629
        if (value == null) {
11630
          unsetOldPassword();
11631
        } else {
11632
          setOldPassword((String)value);
11633
        }
11634
        break;
11635
 
11636
      case NEW_PASSWORD:
11637
        if (value == null) {
11638
          unsetNewPassword();
11639
        } else {
11640
          setNewPassword((String)value);
11641
        }
11642
        break;
11643
 
11644
      }
11645
    }
11646
 
11647
    public Object getFieldValue(_Fields field) {
11648
      switch (field) {
11649
      case USERNAME:
11650
        return getUsername();
11651
 
11652
      case OLD_PASSWORD:
11653
        return getOldPassword();
11654
 
11655
      case NEW_PASSWORD:
11656
        return getNewPassword();
11657
 
11658
      }
11659
      throw new IllegalStateException();
11660
    }
11661
 
3430 rajveer 11662
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11663
    public boolean isSet(_Fields field) {
11664
      if (field == null) {
11665
        throw new IllegalArgumentException();
11666
      }
495 rajveer 11667
 
11668
      switch (field) {
11669
      case USERNAME:
11670
        return isSetUsername();
11671
      case OLD_PASSWORD:
11672
        return isSetOldPassword();
11673
      case NEW_PASSWORD:
11674
        return isSetNewPassword();
11675
      }
11676
      throw new IllegalStateException();
11677
    }
11678
 
11679
    @Override
11680
    public boolean equals(Object that) {
11681
      if (that == null)
11682
        return false;
11683
      if (that instanceof updatePassword_args)
11684
        return this.equals((updatePassword_args)that);
11685
      return false;
11686
    }
11687
 
11688
    public boolean equals(updatePassword_args that) {
11689
      if (that == null)
11690
        return false;
11691
 
11692
      boolean this_present_username = true && this.isSetUsername();
11693
      boolean that_present_username = true && that.isSetUsername();
11694
      if (this_present_username || that_present_username) {
11695
        if (!(this_present_username && that_present_username))
11696
          return false;
11697
        if (!this.username.equals(that.username))
11698
          return false;
11699
      }
11700
 
11701
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11702
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11703
      if (this_present_oldPassword || that_present_oldPassword) {
11704
        if (!(this_present_oldPassword && that_present_oldPassword))
11705
          return false;
11706
        if (!this.oldPassword.equals(that.oldPassword))
11707
          return false;
11708
      }
11709
 
11710
      boolean this_present_newPassword = true && this.isSetNewPassword();
11711
      boolean that_present_newPassword = true && that.isSetNewPassword();
11712
      if (this_present_newPassword || that_present_newPassword) {
11713
        if (!(this_present_newPassword && that_present_newPassword))
11714
          return false;
11715
        if (!this.newPassword.equals(that.newPassword))
11716
          return false;
11717
      }
11718
 
11719
      return true;
11720
    }
11721
 
11722
    @Override
11723
    public int hashCode() {
11724
      return 0;
11725
    }
11726
 
11727
    public int compareTo(updatePassword_args other) {
11728
      if (!getClass().equals(other.getClass())) {
11729
        return getClass().getName().compareTo(other.getClass().getName());
11730
      }
11731
 
11732
      int lastComparison = 0;
11733
      updatePassword_args typedOther = (updatePassword_args)other;
11734
 
3430 rajveer 11735
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11736
      if (lastComparison != 0) {
11737
        return lastComparison;
11738
      }
3430 rajveer 11739
      if (isSetUsername()) {
11740
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11741
        if (lastComparison != 0) {
11742
          return lastComparison;
11743
        }
495 rajveer 11744
      }
3430 rajveer 11745
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11746
      if (lastComparison != 0) {
11747
        return lastComparison;
11748
      }
3430 rajveer 11749
      if (isSetOldPassword()) {
11750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11751
        if (lastComparison != 0) {
11752
          return lastComparison;
11753
        }
495 rajveer 11754
      }
3430 rajveer 11755
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11756
      if (lastComparison != 0) {
11757
        return lastComparison;
11758
      }
3430 rajveer 11759
      if (isSetNewPassword()) {
11760
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11761
        if (lastComparison != 0) {
11762
          return lastComparison;
11763
        }
495 rajveer 11764
      }
11765
      return 0;
11766
    }
11767
 
3430 rajveer 11768
    public _Fields fieldForId(int fieldId) {
11769
      return _Fields.findByThriftId(fieldId);
11770
    }
11771
 
11772
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11773
      org.apache.thrift.protocol.TField field;
495 rajveer 11774
      iprot.readStructBegin();
11775
      while (true)
11776
      {
11777
        field = iprot.readFieldBegin();
3430 rajveer 11778
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11779
          break;
11780
        }
3430 rajveer 11781
        switch (field.id) {
11782
          case 1: // USERNAME
11783
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11784
              this.username = iprot.readString();
11785
            } else { 
11786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11787
            }
11788
            break;
11789
          case 2: // OLD_PASSWORD
11790
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11791
              this.oldPassword = iprot.readString();
11792
            } else { 
11793
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11794
            }
11795
            break;
11796
          case 3: // NEW_PASSWORD
11797
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11798
              this.newPassword = iprot.readString();
11799
            } else { 
11800
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11801
            }
11802
            break;
11803
          default:
11804
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11805
        }
3430 rajveer 11806
        iprot.readFieldEnd();
495 rajveer 11807
      }
11808
      iprot.readStructEnd();
11809
      validate();
11810
    }
11811
 
3430 rajveer 11812
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11813
      validate();
11814
 
11815
      oprot.writeStructBegin(STRUCT_DESC);
11816
      if (this.username != null) {
11817
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11818
        oprot.writeString(this.username);
11819
        oprot.writeFieldEnd();
11820
      }
11821
      if (this.oldPassword != null) {
11822
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11823
        oprot.writeString(this.oldPassword);
11824
        oprot.writeFieldEnd();
11825
      }
11826
      if (this.newPassword != null) {
11827
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11828
        oprot.writeString(this.newPassword);
11829
        oprot.writeFieldEnd();
11830
      }
11831
      oprot.writeFieldStop();
11832
      oprot.writeStructEnd();
11833
    }
11834
 
11835
    @Override
11836
    public String toString() {
11837
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11838
      boolean first = true;
11839
 
11840
      sb.append("username:");
11841
      if (this.username == null) {
11842
        sb.append("null");
11843
      } else {
11844
        sb.append(this.username);
11845
      }
11846
      first = false;
11847
      if (!first) sb.append(", ");
11848
      sb.append("oldPassword:");
11849
      if (this.oldPassword == null) {
11850
        sb.append("null");
11851
      } else {
11852
        sb.append(this.oldPassword);
11853
      }
11854
      first = false;
11855
      if (!first) sb.append(", ");
11856
      sb.append("newPassword:");
11857
      if (this.newPassword == null) {
11858
        sb.append("null");
11859
      } else {
11860
        sb.append(this.newPassword);
11861
      }
11862
      first = false;
11863
      sb.append(")");
11864
      return sb.toString();
11865
    }
11866
 
3430 rajveer 11867
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11868
      // check for required fields
11869
    }
11870
 
3430 rajveer 11871
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11872
      try {
11873
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11874
      } catch (org.apache.thrift.TException te) {
11875
        throw new java.io.IOException(te);
11876
      }
11877
    }
11878
 
11879
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11880
      try {
11881
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11882
      } catch (org.apache.thrift.TException te) {
11883
        throw new java.io.IOException(te);
11884
      }
11885
    }
11886
 
495 rajveer 11887
  }
11888
 
3430 rajveer 11889
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11890
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11891
 
3430 rajveer 11892
    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);
11893
    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 11894
 
3430 rajveer 11895
    private boolean success; // required
11896
    private HelperServiceException se; // required
495 rajveer 11897
 
11898
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11899
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11900
      SUCCESS((short)0, "success"),
11901
      SE((short)1, "se");
11902
 
11903
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11904
 
11905
      static {
11906
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11907
          byName.put(field.getFieldName(), field);
11908
        }
11909
      }
11910
 
11911
      /**
11912
       * Find the _Fields constant that matches fieldId, or null if its not found.
11913
       */
11914
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11915
        switch(fieldId) {
11916
          case 0: // SUCCESS
11917
            return SUCCESS;
11918
          case 1: // SE
11919
            return SE;
11920
          default:
11921
            return null;
11922
        }
495 rajveer 11923
      }
11924
 
11925
      /**
11926
       * Find the _Fields constant that matches fieldId, throwing an exception
11927
       * if it is not found.
11928
       */
11929
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11930
        _Fields fields = findByThriftId(fieldId);
11931
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11932
        return fields;
11933
      }
11934
 
11935
      /**
11936
       * Find the _Fields constant that matches name, or null if its not found.
11937
       */
11938
      public static _Fields findByName(String name) {
11939
        return byName.get(name);
11940
      }
11941
 
11942
      private final short _thriftId;
11943
      private final String _fieldName;
11944
 
11945
      _Fields(short thriftId, String fieldName) {
11946
        _thriftId = thriftId;
11947
        _fieldName = fieldName;
11948
      }
11949
 
11950
      public short getThriftFieldId() {
11951
        return _thriftId;
11952
      }
11953
 
11954
      public String getFieldName() {
11955
        return _fieldName;
11956
      }
11957
    }
11958
 
11959
    // isset id assignments
11960
    private static final int __SUCCESS_ISSET_ID = 0;
11961
    private BitSet __isset_bit_vector = new BitSet(1);
11962
 
3430 rajveer 11963
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11964
    static {
3430 rajveer 11965
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11966
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11967
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11968
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11969
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 11972
    }
11973
 
11974
    public updatePassword_result() {
11975
    }
11976
 
11977
    public updatePassword_result(
11978
      boolean success,
11979
      HelperServiceException se)
11980
    {
11981
      this();
11982
      this.success = success;
11983
      setSuccessIsSet(true);
11984
      this.se = se;
11985
    }
11986
 
11987
    /**
11988
     * Performs a deep copy on <i>other</i>.
11989
     */
11990
    public updatePassword_result(updatePassword_result other) {
11991
      __isset_bit_vector.clear();
11992
      __isset_bit_vector.or(other.__isset_bit_vector);
11993
      this.success = other.success;
11994
      if (other.isSetSe()) {
11995
        this.se = new HelperServiceException(other.se);
11996
      }
11997
    }
11998
 
11999
    public updatePassword_result deepCopy() {
12000
      return new updatePassword_result(this);
12001
    }
12002
 
3430 rajveer 12003
    @Override
12004
    public void clear() {
12005
      setSuccessIsSet(false);
12006
      this.success = false;
12007
      this.se = null;
495 rajveer 12008
    }
12009
 
12010
    public boolean isSuccess() {
12011
      return this.success;
12012
    }
12013
 
3430 rajveer 12014
    public void setSuccess(boolean success) {
495 rajveer 12015
      this.success = success;
12016
      setSuccessIsSet(true);
12017
    }
12018
 
12019
    public void unsetSuccess() {
12020
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12021
    }
12022
 
3430 rajveer 12023
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12024
    public boolean isSetSuccess() {
12025
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12026
    }
12027
 
12028
    public void setSuccessIsSet(boolean value) {
12029
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12030
    }
12031
 
12032
    public HelperServiceException getSe() {
12033
      return this.se;
12034
    }
12035
 
3430 rajveer 12036
    public void setSe(HelperServiceException se) {
495 rajveer 12037
      this.se = se;
12038
    }
12039
 
12040
    public void unsetSe() {
12041
      this.se = null;
12042
    }
12043
 
3430 rajveer 12044
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12045
    public boolean isSetSe() {
12046
      return this.se != null;
12047
    }
12048
 
12049
    public void setSeIsSet(boolean value) {
12050
      if (!value) {
12051
        this.se = null;
12052
      }
12053
    }
12054
 
12055
    public void setFieldValue(_Fields field, Object value) {
12056
      switch (field) {
12057
      case SUCCESS:
12058
        if (value == null) {
12059
          unsetSuccess();
12060
        } else {
12061
          setSuccess((Boolean)value);
12062
        }
12063
        break;
12064
 
12065
      case SE:
12066
        if (value == null) {
12067
          unsetSe();
12068
        } else {
12069
          setSe((HelperServiceException)value);
12070
        }
12071
        break;
12072
 
12073
      }
12074
    }
12075
 
12076
    public Object getFieldValue(_Fields field) {
12077
      switch (field) {
12078
      case SUCCESS:
3430 rajveer 12079
        return Boolean.valueOf(isSuccess());
495 rajveer 12080
 
12081
      case SE:
12082
        return getSe();
12083
 
12084
      }
12085
      throw new IllegalStateException();
12086
    }
12087
 
3430 rajveer 12088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12089
    public boolean isSet(_Fields field) {
12090
      if (field == null) {
12091
        throw new IllegalArgumentException();
12092
      }
495 rajveer 12093
 
12094
      switch (field) {
12095
      case SUCCESS:
12096
        return isSetSuccess();
12097
      case SE:
12098
        return isSetSe();
12099
      }
12100
      throw new IllegalStateException();
12101
    }
12102
 
12103
    @Override
12104
    public boolean equals(Object that) {
12105
      if (that == null)
12106
        return false;
12107
      if (that instanceof updatePassword_result)
12108
        return this.equals((updatePassword_result)that);
12109
      return false;
12110
    }
12111
 
12112
    public boolean equals(updatePassword_result that) {
12113
      if (that == null)
12114
        return false;
12115
 
12116
      boolean this_present_success = true;
12117
      boolean that_present_success = true;
12118
      if (this_present_success || that_present_success) {
12119
        if (!(this_present_success && that_present_success))
12120
          return false;
12121
        if (this.success != that.success)
12122
          return false;
12123
      }
12124
 
12125
      boolean this_present_se = true && this.isSetSe();
12126
      boolean that_present_se = true && that.isSetSe();
12127
      if (this_present_se || that_present_se) {
12128
        if (!(this_present_se && that_present_se))
12129
          return false;
12130
        if (!this.se.equals(that.se))
12131
          return false;
12132
      }
12133
 
12134
      return true;
12135
    }
12136
 
12137
    @Override
12138
    public int hashCode() {
12139
      return 0;
12140
    }
12141
 
12142
    public int compareTo(updatePassword_result other) {
12143
      if (!getClass().equals(other.getClass())) {
12144
        return getClass().getName().compareTo(other.getClass().getName());
12145
      }
12146
 
12147
      int lastComparison = 0;
12148
      updatePassword_result typedOther = (updatePassword_result)other;
12149
 
3430 rajveer 12150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12151
      if (lastComparison != 0) {
12152
        return lastComparison;
12153
      }
3430 rajveer 12154
      if (isSetSuccess()) {
12155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12156
        if (lastComparison != 0) {
12157
          return lastComparison;
12158
        }
495 rajveer 12159
      }
3430 rajveer 12160
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12161
      if (lastComparison != 0) {
12162
        return lastComparison;
12163
      }
3430 rajveer 12164
      if (isSetSe()) {
12165
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12166
        if (lastComparison != 0) {
12167
          return lastComparison;
12168
        }
495 rajveer 12169
      }
12170
      return 0;
12171
    }
12172
 
3430 rajveer 12173
    public _Fields fieldForId(int fieldId) {
12174
      return _Fields.findByThriftId(fieldId);
12175
    }
12176
 
12177
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12178
      org.apache.thrift.protocol.TField field;
495 rajveer 12179
      iprot.readStructBegin();
12180
      while (true)
12181
      {
12182
        field = iprot.readFieldBegin();
3430 rajveer 12183
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12184
          break;
12185
        }
3430 rajveer 12186
        switch (field.id) {
12187
          case 0: // SUCCESS
12188
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12189
              this.success = iprot.readBool();
12190
              setSuccessIsSet(true);
12191
            } else { 
12192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12193
            }
12194
            break;
12195
          case 1: // SE
12196
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12197
              this.se = new HelperServiceException();
12198
              this.se.read(iprot);
12199
            } else { 
12200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12201
            }
12202
            break;
12203
          default:
12204
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12205
        }
3430 rajveer 12206
        iprot.readFieldEnd();
495 rajveer 12207
      }
12208
      iprot.readStructEnd();
12209
      validate();
12210
    }
12211
 
3430 rajveer 12212
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12213
      oprot.writeStructBegin(STRUCT_DESC);
12214
 
12215
      if (this.isSetSuccess()) {
12216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12217
        oprot.writeBool(this.success);
12218
        oprot.writeFieldEnd();
12219
      } else if (this.isSetSe()) {
12220
        oprot.writeFieldBegin(SE_FIELD_DESC);
12221
        this.se.write(oprot);
12222
        oprot.writeFieldEnd();
12223
      }
12224
      oprot.writeFieldStop();
12225
      oprot.writeStructEnd();
12226
    }
12227
 
12228
    @Override
12229
    public String toString() {
12230
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12231
      boolean first = true;
12232
 
12233
      sb.append("success:");
12234
      sb.append(this.success);
12235
      first = false;
12236
      if (!first) sb.append(", ");
12237
      sb.append("se:");
12238
      if (this.se == null) {
12239
        sb.append("null");
12240
      } else {
12241
        sb.append(this.se);
12242
      }
12243
      first = false;
12244
      sb.append(")");
12245
      return sb.toString();
12246
    }
12247
 
3430 rajveer 12248
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12249
      // check for required fields
12250
    }
12251
 
3430 rajveer 12252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12253
      try {
12254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12255
      } catch (org.apache.thrift.TException te) {
12256
        throw new java.io.IOException(te);
12257
      }
12258
    }
12259
 
12260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12261
      try {
12262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12263
      } catch (org.apache.thrift.TException te) {
12264
        throw new java.io.IOException(te);
12265
      }
12266
    }
12267
 
495 rajveer 12268
  }
12269
 
3430 rajveer 12270
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12272
 
3430 rajveer 12273
    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);
12274
    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 12275
 
3430 rajveer 12276
    private String username; // required
12277
    private String password; // required
750 chandransh 12278
 
12279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12281
      USERNAME((short)1, "username"),
12282
      PASSWORD((short)2, "password");
12283
 
12284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12285
 
12286
      static {
12287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12288
          byName.put(field.getFieldName(), field);
12289
        }
12290
      }
12291
 
12292
      /**
12293
       * Find the _Fields constant that matches fieldId, or null if its not found.
12294
       */
12295
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12296
        switch(fieldId) {
12297
          case 1: // USERNAME
12298
            return USERNAME;
12299
          case 2: // PASSWORD
12300
            return PASSWORD;
12301
          default:
12302
            return null;
12303
        }
750 chandransh 12304
      }
12305
 
12306
      /**
12307
       * Find the _Fields constant that matches fieldId, throwing an exception
12308
       * if it is not found.
12309
       */
12310
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12311
        _Fields fields = findByThriftId(fieldId);
12312
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12313
        return fields;
12314
      }
12315
 
12316
      /**
12317
       * Find the _Fields constant that matches name, or null if its not found.
12318
       */
12319
      public static _Fields findByName(String name) {
12320
        return byName.get(name);
12321
      }
12322
 
12323
      private final short _thriftId;
12324
      private final String _fieldName;
12325
 
12326
      _Fields(short thriftId, String fieldName) {
12327
        _thriftId = thriftId;
12328
        _fieldName = fieldName;
12329
      }
12330
 
12331
      public short getThriftFieldId() {
12332
        return _thriftId;
12333
      }
12334
 
12335
      public String getFieldName() {
12336
        return _fieldName;
12337
      }
12338
    }
12339
 
12340
    // isset id assignments
12341
 
3430 rajveer 12342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12343
    static {
3430 rajveer 12344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12345
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12346
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12347
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12348
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12349
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12350
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12351
    }
12352
 
12353
    public authenticateLogisticsUser_args() {
12354
    }
12355
 
12356
    public authenticateLogisticsUser_args(
12357
      String username,
12358
      String password)
12359
    {
12360
      this();
12361
      this.username = username;
12362
      this.password = password;
12363
    }
12364
 
12365
    /**
12366
     * Performs a deep copy on <i>other</i>.
12367
     */
12368
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12369
      if (other.isSetUsername()) {
12370
        this.username = other.username;
12371
      }
12372
      if (other.isSetPassword()) {
12373
        this.password = other.password;
12374
      }
12375
    }
12376
 
12377
    public authenticateLogisticsUser_args deepCopy() {
12378
      return new authenticateLogisticsUser_args(this);
12379
    }
12380
 
3430 rajveer 12381
    @Override
12382
    public void clear() {
12383
      this.username = null;
12384
      this.password = null;
750 chandransh 12385
    }
12386
 
12387
    public String getUsername() {
12388
      return this.username;
12389
    }
12390
 
3430 rajveer 12391
    public void setUsername(String username) {
750 chandransh 12392
      this.username = username;
12393
    }
12394
 
12395
    public void unsetUsername() {
12396
      this.username = null;
12397
    }
12398
 
3430 rajveer 12399
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12400
    public boolean isSetUsername() {
12401
      return this.username != null;
12402
    }
12403
 
12404
    public void setUsernameIsSet(boolean value) {
12405
      if (!value) {
12406
        this.username = null;
12407
      }
12408
    }
12409
 
12410
    public String getPassword() {
12411
      return this.password;
12412
    }
12413
 
3430 rajveer 12414
    public void setPassword(String password) {
750 chandransh 12415
      this.password = password;
12416
    }
12417
 
12418
    public void unsetPassword() {
12419
      this.password = null;
12420
    }
12421
 
3430 rajveer 12422
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12423
    public boolean isSetPassword() {
12424
      return this.password != null;
12425
    }
12426
 
12427
    public void setPasswordIsSet(boolean value) {
12428
      if (!value) {
12429
        this.password = null;
12430
      }
12431
    }
12432
 
12433
    public void setFieldValue(_Fields field, Object value) {
12434
      switch (field) {
12435
      case USERNAME:
12436
        if (value == null) {
12437
          unsetUsername();
12438
        } else {
12439
          setUsername((String)value);
12440
        }
12441
        break;
12442
 
12443
      case PASSWORD:
12444
        if (value == null) {
12445
          unsetPassword();
12446
        } else {
12447
          setPassword((String)value);
12448
        }
12449
        break;
12450
 
12451
      }
12452
    }
12453
 
12454
    public Object getFieldValue(_Fields field) {
12455
      switch (field) {
12456
      case USERNAME:
12457
        return getUsername();
12458
 
12459
      case PASSWORD:
12460
        return getPassword();
12461
 
12462
      }
12463
      throw new IllegalStateException();
12464
    }
12465
 
3430 rajveer 12466
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12467
    public boolean isSet(_Fields field) {
12468
      if (field == null) {
12469
        throw new IllegalArgumentException();
12470
      }
750 chandransh 12471
 
12472
      switch (field) {
12473
      case USERNAME:
12474
        return isSetUsername();
12475
      case PASSWORD:
12476
        return isSetPassword();
12477
      }
12478
      throw new IllegalStateException();
12479
    }
12480
 
12481
    @Override
12482
    public boolean equals(Object that) {
12483
      if (that == null)
12484
        return false;
12485
      if (that instanceof authenticateLogisticsUser_args)
12486
        return this.equals((authenticateLogisticsUser_args)that);
12487
      return false;
12488
    }
12489
 
12490
    public boolean equals(authenticateLogisticsUser_args that) {
12491
      if (that == null)
12492
        return false;
12493
 
12494
      boolean this_present_username = true && this.isSetUsername();
12495
      boolean that_present_username = true && that.isSetUsername();
12496
      if (this_present_username || that_present_username) {
12497
        if (!(this_present_username && that_present_username))
12498
          return false;
12499
        if (!this.username.equals(that.username))
12500
          return false;
12501
      }
12502
 
12503
      boolean this_present_password = true && this.isSetPassword();
12504
      boolean that_present_password = true && that.isSetPassword();
12505
      if (this_present_password || that_present_password) {
12506
        if (!(this_present_password && that_present_password))
12507
          return false;
12508
        if (!this.password.equals(that.password))
12509
          return false;
12510
      }
12511
 
12512
      return true;
12513
    }
12514
 
12515
    @Override
12516
    public int hashCode() {
12517
      return 0;
12518
    }
12519
 
12520
    public int compareTo(authenticateLogisticsUser_args other) {
12521
      if (!getClass().equals(other.getClass())) {
12522
        return getClass().getName().compareTo(other.getClass().getName());
12523
      }
12524
 
12525
      int lastComparison = 0;
12526
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12527
 
3430 rajveer 12528
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12529
      if (lastComparison != 0) {
12530
        return lastComparison;
12531
      }
3430 rajveer 12532
      if (isSetUsername()) {
12533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12534
        if (lastComparison != 0) {
12535
          return lastComparison;
12536
        }
750 chandransh 12537
      }
3430 rajveer 12538
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12539
      if (lastComparison != 0) {
12540
        return lastComparison;
12541
      }
3430 rajveer 12542
      if (isSetPassword()) {
12543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12544
        if (lastComparison != 0) {
12545
          return lastComparison;
12546
        }
750 chandransh 12547
      }
12548
      return 0;
12549
    }
12550
 
3430 rajveer 12551
    public _Fields fieldForId(int fieldId) {
12552
      return _Fields.findByThriftId(fieldId);
12553
    }
12554
 
12555
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12556
      org.apache.thrift.protocol.TField field;
750 chandransh 12557
      iprot.readStructBegin();
12558
      while (true)
12559
      {
12560
        field = iprot.readFieldBegin();
3430 rajveer 12561
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12562
          break;
12563
        }
3430 rajveer 12564
        switch (field.id) {
12565
          case 1: // USERNAME
12566
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12567
              this.username = iprot.readString();
12568
            } else { 
12569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12570
            }
12571
            break;
12572
          case 2: // PASSWORD
12573
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12574
              this.password = iprot.readString();
12575
            } else { 
12576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12577
            }
12578
            break;
12579
          default:
12580
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12581
        }
3430 rajveer 12582
        iprot.readFieldEnd();
750 chandransh 12583
      }
12584
      iprot.readStructEnd();
12585
      validate();
12586
    }
12587
 
3430 rajveer 12588
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12589
      validate();
12590
 
12591
      oprot.writeStructBegin(STRUCT_DESC);
12592
      if (this.username != null) {
12593
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12594
        oprot.writeString(this.username);
12595
        oprot.writeFieldEnd();
12596
      }
12597
      if (this.password != null) {
12598
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12599
        oprot.writeString(this.password);
12600
        oprot.writeFieldEnd();
12601
      }
12602
      oprot.writeFieldStop();
12603
      oprot.writeStructEnd();
12604
    }
12605
 
12606
    @Override
12607
    public String toString() {
12608
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12609
      boolean first = true;
12610
 
12611
      sb.append("username:");
12612
      if (this.username == null) {
12613
        sb.append("null");
12614
      } else {
12615
        sb.append(this.username);
12616
      }
12617
      first = false;
12618
      if (!first) sb.append(", ");
12619
      sb.append("password:");
12620
      if (this.password == null) {
12621
        sb.append("null");
12622
      } else {
12623
        sb.append(this.password);
12624
      }
12625
      first = false;
12626
      sb.append(")");
12627
      return sb.toString();
12628
    }
12629
 
3430 rajveer 12630
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12631
      // check for required fields
12632
    }
12633
 
3430 rajveer 12634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12635
      try {
12636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12637
      } catch (org.apache.thrift.TException te) {
12638
        throw new java.io.IOException(te);
12639
      }
12640
    }
12641
 
12642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12643
      try {
12644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12645
      } catch (org.apache.thrift.TException te) {
12646
        throw new java.io.IOException(te);
12647
      }
12648
    }
12649
 
750 chandransh 12650
  }
12651
 
3430 rajveer 12652
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12654
 
3430 rajveer 12655
    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);
12656
    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 12657
 
3430 rajveer 12658
    private LogisticsUser success; // required
12659
    private HelperServiceException hse; // required
750 chandransh 12660
 
12661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12663
      SUCCESS((short)0, "success"),
12664
      HSE((short)1, "hse");
12665
 
12666
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12667
 
12668
      static {
12669
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12670
          byName.put(field.getFieldName(), field);
12671
        }
12672
      }
12673
 
12674
      /**
12675
       * Find the _Fields constant that matches fieldId, or null if its not found.
12676
       */
12677
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12678
        switch(fieldId) {
12679
          case 0: // SUCCESS
12680
            return SUCCESS;
12681
          case 1: // HSE
12682
            return HSE;
12683
          default:
12684
            return null;
12685
        }
750 chandransh 12686
      }
12687
 
12688
      /**
12689
       * Find the _Fields constant that matches fieldId, throwing an exception
12690
       * if it is not found.
12691
       */
12692
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12693
        _Fields fields = findByThriftId(fieldId);
12694
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12695
        return fields;
12696
      }
12697
 
12698
      /**
12699
       * Find the _Fields constant that matches name, or null if its not found.
12700
       */
12701
      public static _Fields findByName(String name) {
12702
        return byName.get(name);
12703
      }
12704
 
12705
      private final short _thriftId;
12706
      private final String _fieldName;
12707
 
12708
      _Fields(short thriftId, String fieldName) {
12709
        _thriftId = thriftId;
12710
        _fieldName = fieldName;
12711
      }
12712
 
12713
      public short getThriftFieldId() {
12714
        return _thriftId;
12715
      }
12716
 
12717
      public String getFieldName() {
12718
        return _fieldName;
12719
      }
12720
    }
12721
 
12722
    // isset id assignments
12723
 
3430 rajveer 12724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12725
    static {
3430 rajveer 12726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12727
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12728
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12729
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12733
    }
12734
 
12735
    public authenticateLogisticsUser_result() {
12736
    }
12737
 
12738
    public authenticateLogisticsUser_result(
12739
      LogisticsUser success,
12740
      HelperServiceException hse)
12741
    {
12742
      this();
12743
      this.success = success;
12744
      this.hse = hse;
12745
    }
12746
 
12747
    /**
12748
     * Performs a deep copy on <i>other</i>.
12749
     */
12750
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12751
      if (other.isSetSuccess()) {
12752
        this.success = new LogisticsUser(other.success);
12753
      }
12754
      if (other.isSetHse()) {
12755
        this.hse = new HelperServiceException(other.hse);
12756
      }
12757
    }
12758
 
12759
    public authenticateLogisticsUser_result deepCopy() {
12760
      return new authenticateLogisticsUser_result(this);
12761
    }
12762
 
3430 rajveer 12763
    @Override
12764
    public void clear() {
12765
      this.success = null;
12766
      this.hse = null;
750 chandransh 12767
    }
12768
 
12769
    public LogisticsUser getSuccess() {
12770
      return this.success;
12771
    }
12772
 
3430 rajveer 12773
    public void setSuccess(LogisticsUser success) {
750 chandransh 12774
      this.success = success;
12775
    }
12776
 
12777
    public void unsetSuccess() {
12778
      this.success = null;
12779
    }
12780
 
3430 rajveer 12781
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12782
    public boolean isSetSuccess() {
12783
      return this.success != null;
12784
    }
12785
 
12786
    public void setSuccessIsSet(boolean value) {
12787
      if (!value) {
12788
        this.success = null;
12789
      }
12790
    }
12791
 
12792
    public HelperServiceException getHse() {
12793
      return this.hse;
12794
    }
12795
 
3430 rajveer 12796
    public void setHse(HelperServiceException hse) {
750 chandransh 12797
      this.hse = hse;
12798
    }
12799
 
12800
    public void unsetHse() {
12801
      this.hse = null;
12802
    }
12803
 
3430 rajveer 12804
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12805
    public boolean isSetHse() {
12806
      return this.hse != null;
12807
    }
12808
 
12809
    public void setHseIsSet(boolean value) {
12810
      if (!value) {
12811
        this.hse = null;
12812
      }
12813
    }
12814
 
12815
    public void setFieldValue(_Fields field, Object value) {
12816
      switch (field) {
12817
      case SUCCESS:
12818
        if (value == null) {
12819
          unsetSuccess();
12820
        } else {
12821
          setSuccess((LogisticsUser)value);
12822
        }
12823
        break;
12824
 
12825
      case HSE:
12826
        if (value == null) {
12827
          unsetHse();
12828
        } else {
12829
          setHse((HelperServiceException)value);
12830
        }
12831
        break;
12832
 
12833
      }
12834
    }
12835
 
12836
    public Object getFieldValue(_Fields field) {
12837
      switch (field) {
12838
      case SUCCESS:
12839
        return getSuccess();
12840
 
12841
      case HSE:
12842
        return getHse();
12843
 
12844
      }
12845
      throw new IllegalStateException();
12846
    }
12847
 
3430 rajveer 12848
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12849
    public boolean isSet(_Fields field) {
12850
      if (field == null) {
12851
        throw new IllegalArgumentException();
12852
      }
750 chandransh 12853
 
12854
      switch (field) {
12855
      case SUCCESS:
12856
        return isSetSuccess();
12857
      case HSE:
12858
        return isSetHse();
12859
      }
12860
      throw new IllegalStateException();
12861
    }
12862
 
12863
    @Override
12864
    public boolean equals(Object that) {
12865
      if (that == null)
12866
        return false;
12867
      if (that instanceof authenticateLogisticsUser_result)
12868
        return this.equals((authenticateLogisticsUser_result)that);
12869
      return false;
12870
    }
12871
 
12872
    public boolean equals(authenticateLogisticsUser_result that) {
12873
      if (that == null)
12874
        return false;
12875
 
12876
      boolean this_present_success = true && this.isSetSuccess();
12877
      boolean that_present_success = true && that.isSetSuccess();
12878
      if (this_present_success || that_present_success) {
12879
        if (!(this_present_success && that_present_success))
12880
          return false;
12881
        if (!this.success.equals(that.success))
12882
          return false;
12883
      }
12884
 
12885
      boolean this_present_hse = true && this.isSetHse();
12886
      boolean that_present_hse = true && that.isSetHse();
12887
      if (this_present_hse || that_present_hse) {
12888
        if (!(this_present_hse && that_present_hse))
12889
          return false;
12890
        if (!this.hse.equals(that.hse))
12891
          return false;
12892
      }
12893
 
12894
      return true;
12895
    }
12896
 
12897
    @Override
12898
    public int hashCode() {
12899
      return 0;
12900
    }
12901
 
12902
    public int compareTo(authenticateLogisticsUser_result other) {
12903
      if (!getClass().equals(other.getClass())) {
12904
        return getClass().getName().compareTo(other.getClass().getName());
12905
      }
12906
 
12907
      int lastComparison = 0;
12908
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12909
 
3430 rajveer 12910
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12911
      if (lastComparison != 0) {
12912
        return lastComparison;
12913
      }
3430 rajveer 12914
      if (isSetSuccess()) {
12915
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12916
        if (lastComparison != 0) {
12917
          return lastComparison;
12918
        }
750 chandransh 12919
      }
3430 rajveer 12920
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12921
      if (lastComparison != 0) {
12922
        return lastComparison;
12923
      }
3430 rajveer 12924
      if (isSetHse()) {
12925
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12926
        if (lastComparison != 0) {
12927
          return lastComparison;
12928
        }
750 chandransh 12929
      }
12930
      return 0;
12931
    }
12932
 
3430 rajveer 12933
    public _Fields fieldForId(int fieldId) {
12934
      return _Fields.findByThriftId(fieldId);
12935
    }
12936
 
12937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12938
      org.apache.thrift.protocol.TField field;
750 chandransh 12939
      iprot.readStructBegin();
12940
      while (true)
12941
      {
12942
        field = iprot.readFieldBegin();
3430 rajveer 12943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12944
          break;
12945
        }
3430 rajveer 12946
        switch (field.id) {
12947
          case 0: // SUCCESS
12948
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12949
              this.success = new LogisticsUser();
12950
              this.success.read(iprot);
12951
            } else { 
12952
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12953
            }
12954
            break;
12955
          case 1: // HSE
12956
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12957
              this.hse = new HelperServiceException();
12958
              this.hse.read(iprot);
12959
            } else { 
12960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12961
            }
12962
            break;
12963
          default:
12964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12965
        }
3430 rajveer 12966
        iprot.readFieldEnd();
750 chandransh 12967
      }
12968
      iprot.readStructEnd();
12969
      validate();
12970
    }
12971
 
3430 rajveer 12972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12973
      oprot.writeStructBegin(STRUCT_DESC);
12974
 
12975
      if (this.isSetSuccess()) {
12976
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12977
        this.success.write(oprot);
12978
        oprot.writeFieldEnd();
12979
      } else if (this.isSetHse()) {
12980
        oprot.writeFieldBegin(HSE_FIELD_DESC);
12981
        this.hse.write(oprot);
12982
        oprot.writeFieldEnd();
12983
      }
12984
      oprot.writeFieldStop();
12985
      oprot.writeStructEnd();
12986
    }
12987
 
12988
    @Override
12989
    public String toString() {
12990
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
12991
      boolean first = true;
12992
 
12993
      sb.append("success:");
12994
      if (this.success == null) {
12995
        sb.append("null");
12996
      } else {
12997
        sb.append(this.success);
12998
      }
12999
      first = false;
13000
      if (!first) sb.append(", ");
13001
      sb.append("hse:");
13002
      if (this.hse == null) {
13003
        sb.append("null");
13004
      } else {
13005
        sb.append(this.hse);
13006
      }
13007
      first = false;
13008
      sb.append(")");
13009
      return sb.toString();
13010
    }
13011
 
3430 rajveer 13012
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13013
      // check for required fields
13014
    }
13015
 
3430 rajveer 13016
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13017
      try {
13018
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13019
      } catch (org.apache.thrift.TException te) {
13020
        throw new java.io.IOException(te);
13021
      }
13022
    }
13023
 
13024
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13025
      try {
13026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13027
      } catch (org.apache.thrift.TException te) {
13028
        throw new java.io.IOException(te);
13029
      }
13030
    }
13031
 
750 chandransh 13032
  }
13033
 
3430 rajveer 13034
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13036
 
3430 rajveer 13037
    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);
13038
    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 13039
 
3430 rajveer 13040
    private String username; // required
13041
    private String password; // required
1611 ankur.sing 13042
 
13043
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13044
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13045
      USERNAME((short)1, "username"),
13046
      PASSWORD((short)2, "password");
13047
 
13048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13049
 
13050
      static {
13051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13052
          byName.put(field.getFieldName(), field);
13053
        }
13054
      }
13055
 
13056
      /**
13057
       * Find the _Fields constant that matches fieldId, or null if its not found.
13058
       */
13059
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13060
        switch(fieldId) {
13061
          case 1: // USERNAME
13062
            return USERNAME;
13063
          case 2: // PASSWORD
13064
            return PASSWORD;
13065
          default:
13066
            return null;
13067
        }
1611 ankur.sing 13068
      }
13069
 
13070
      /**
13071
       * Find the _Fields constant that matches fieldId, throwing an exception
13072
       * if it is not found.
13073
       */
13074
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13075
        _Fields fields = findByThriftId(fieldId);
13076
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13077
        return fields;
13078
      }
13079
 
13080
      /**
13081
       * Find the _Fields constant that matches name, or null if its not found.
13082
       */
13083
      public static _Fields findByName(String name) {
13084
        return byName.get(name);
13085
      }
13086
 
13087
      private final short _thriftId;
13088
      private final String _fieldName;
13089
 
13090
      _Fields(short thriftId, String fieldName) {
13091
        _thriftId = thriftId;
13092
        _fieldName = fieldName;
13093
      }
13094
 
13095
      public short getThriftFieldId() {
13096
        return _thriftId;
13097
      }
13098
 
13099
      public String getFieldName() {
13100
        return _fieldName;
13101
      }
13102
    }
13103
 
13104
    // isset id assignments
13105
 
3430 rajveer 13106
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13107
    static {
3430 rajveer 13108
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13109
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13110
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13111
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13115
    }
13116
 
13117
    public authenticateStatisticsUser_args() {
13118
    }
13119
 
13120
    public authenticateStatisticsUser_args(
13121
      String username,
13122
      String password)
13123
    {
13124
      this();
13125
      this.username = username;
13126
      this.password = password;
13127
    }
13128
 
13129
    /**
13130
     * Performs a deep copy on <i>other</i>.
13131
     */
13132
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13133
      if (other.isSetUsername()) {
13134
        this.username = other.username;
13135
      }
13136
      if (other.isSetPassword()) {
13137
        this.password = other.password;
13138
      }
13139
    }
13140
 
13141
    public authenticateStatisticsUser_args deepCopy() {
13142
      return new authenticateStatisticsUser_args(this);
13143
    }
13144
 
3430 rajveer 13145
    @Override
13146
    public void clear() {
13147
      this.username = null;
13148
      this.password = null;
1611 ankur.sing 13149
    }
13150
 
13151
    public String getUsername() {
13152
      return this.username;
13153
    }
13154
 
3430 rajveer 13155
    public void setUsername(String username) {
1611 ankur.sing 13156
      this.username = username;
13157
    }
13158
 
13159
    public void unsetUsername() {
13160
      this.username = null;
13161
    }
13162
 
3430 rajveer 13163
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13164
    public boolean isSetUsername() {
13165
      return this.username != null;
13166
    }
13167
 
13168
    public void setUsernameIsSet(boolean value) {
13169
      if (!value) {
13170
        this.username = null;
13171
      }
13172
    }
13173
 
13174
    public String getPassword() {
13175
      return this.password;
13176
    }
13177
 
3430 rajveer 13178
    public void setPassword(String password) {
1611 ankur.sing 13179
      this.password = password;
13180
    }
13181
 
13182
    public void unsetPassword() {
13183
      this.password = null;
13184
    }
13185
 
3430 rajveer 13186
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13187
    public boolean isSetPassword() {
13188
      return this.password != null;
13189
    }
13190
 
13191
    public void setPasswordIsSet(boolean value) {
13192
      if (!value) {
13193
        this.password = null;
13194
      }
13195
    }
13196
 
13197
    public void setFieldValue(_Fields field, Object value) {
13198
      switch (field) {
13199
      case USERNAME:
13200
        if (value == null) {
13201
          unsetUsername();
13202
        } else {
13203
          setUsername((String)value);
13204
        }
13205
        break;
13206
 
13207
      case PASSWORD:
13208
        if (value == null) {
13209
          unsetPassword();
13210
        } else {
13211
          setPassword((String)value);
13212
        }
13213
        break;
13214
 
13215
      }
13216
    }
13217
 
13218
    public Object getFieldValue(_Fields field) {
13219
      switch (field) {
13220
      case USERNAME:
13221
        return getUsername();
13222
 
13223
      case PASSWORD:
13224
        return getPassword();
13225
 
13226
      }
13227
      throw new IllegalStateException();
13228
    }
13229
 
3430 rajveer 13230
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13231
    public boolean isSet(_Fields field) {
13232
      if (field == null) {
13233
        throw new IllegalArgumentException();
13234
      }
1611 ankur.sing 13235
 
13236
      switch (field) {
13237
      case USERNAME:
13238
        return isSetUsername();
13239
      case PASSWORD:
13240
        return isSetPassword();
13241
      }
13242
      throw new IllegalStateException();
13243
    }
13244
 
13245
    @Override
13246
    public boolean equals(Object that) {
13247
      if (that == null)
13248
        return false;
13249
      if (that instanceof authenticateStatisticsUser_args)
13250
        return this.equals((authenticateStatisticsUser_args)that);
13251
      return false;
13252
    }
13253
 
13254
    public boolean equals(authenticateStatisticsUser_args that) {
13255
      if (that == null)
13256
        return false;
13257
 
13258
      boolean this_present_username = true && this.isSetUsername();
13259
      boolean that_present_username = true && that.isSetUsername();
13260
      if (this_present_username || that_present_username) {
13261
        if (!(this_present_username && that_present_username))
13262
          return false;
13263
        if (!this.username.equals(that.username))
13264
          return false;
13265
      }
13266
 
13267
      boolean this_present_password = true && this.isSetPassword();
13268
      boolean that_present_password = true && that.isSetPassword();
13269
      if (this_present_password || that_present_password) {
13270
        if (!(this_present_password && that_present_password))
13271
          return false;
13272
        if (!this.password.equals(that.password))
13273
          return false;
13274
      }
13275
 
13276
      return true;
13277
    }
13278
 
13279
    @Override
13280
    public int hashCode() {
13281
      return 0;
13282
    }
13283
 
13284
    public int compareTo(authenticateStatisticsUser_args other) {
13285
      if (!getClass().equals(other.getClass())) {
13286
        return getClass().getName().compareTo(other.getClass().getName());
13287
      }
13288
 
13289
      int lastComparison = 0;
13290
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13291
 
3430 rajveer 13292
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13293
      if (lastComparison != 0) {
13294
        return lastComparison;
13295
      }
3430 rajveer 13296
      if (isSetUsername()) {
13297
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13298
        if (lastComparison != 0) {
13299
          return lastComparison;
13300
        }
1611 ankur.sing 13301
      }
3430 rajveer 13302
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13303
      if (lastComparison != 0) {
13304
        return lastComparison;
13305
      }
3430 rajveer 13306
      if (isSetPassword()) {
13307
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13308
        if (lastComparison != 0) {
13309
          return lastComparison;
13310
        }
1611 ankur.sing 13311
      }
13312
      return 0;
13313
    }
13314
 
3430 rajveer 13315
    public _Fields fieldForId(int fieldId) {
13316
      return _Fields.findByThriftId(fieldId);
13317
    }
13318
 
13319
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13320
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13321
      iprot.readStructBegin();
13322
      while (true)
13323
      {
13324
        field = iprot.readFieldBegin();
3430 rajveer 13325
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13326
          break;
13327
        }
3430 rajveer 13328
        switch (field.id) {
13329
          case 1: // USERNAME
13330
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13331
              this.username = iprot.readString();
13332
            } else { 
13333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13334
            }
13335
            break;
13336
          case 2: // PASSWORD
13337
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13338
              this.password = iprot.readString();
13339
            } else { 
13340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13341
            }
13342
            break;
13343
          default:
13344
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13345
        }
3430 rajveer 13346
        iprot.readFieldEnd();
1611 ankur.sing 13347
      }
13348
      iprot.readStructEnd();
13349
      validate();
13350
    }
13351
 
3430 rajveer 13352
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13353
      validate();
13354
 
13355
      oprot.writeStructBegin(STRUCT_DESC);
13356
      if (this.username != null) {
13357
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13358
        oprot.writeString(this.username);
13359
        oprot.writeFieldEnd();
13360
      }
13361
      if (this.password != null) {
13362
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13363
        oprot.writeString(this.password);
13364
        oprot.writeFieldEnd();
13365
      }
13366
      oprot.writeFieldStop();
13367
      oprot.writeStructEnd();
13368
    }
13369
 
13370
    @Override
13371
    public String toString() {
13372
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13373
      boolean first = true;
13374
 
13375
      sb.append("username:");
13376
      if (this.username == null) {
13377
        sb.append("null");
13378
      } else {
13379
        sb.append(this.username);
13380
      }
13381
      first = false;
13382
      if (!first) sb.append(", ");
13383
      sb.append("password:");
13384
      if (this.password == null) {
13385
        sb.append("null");
13386
      } else {
13387
        sb.append(this.password);
13388
      }
13389
      first = false;
13390
      sb.append(")");
13391
      return sb.toString();
13392
    }
13393
 
3430 rajveer 13394
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13395
      // check for required fields
13396
    }
13397
 
3430 rajveer 13398
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13399
      try {
13400
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13401
      } catch (org.apache.thrift.TException te) {
13402
        throw new java.io.IOException(te);
13403
      }
13404
    }
13405
 
13406
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13407
      try {
13408
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13409
      } catch (org.apache.thrift.TException te) {
13410
        throw new java.io.IOException(te);
13411
      }
13412
    }
13413
 
1611 ankur.sing 13414
  }
13415
 
3430 rajveer 13416
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13417
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13418
 
3430 rajveer 13419
    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);
13420
    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 13421
 
3430 rajveer 13422
    private StatisticsUser success; // required
13423
    private HelperServiceException hse; // required
1611 ankur.sing 13424
 
13425
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13426
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13427
      SUCCESS((short)0, "success"),
13428
      HSE((short)1, "hse");
13429
 
13430
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13431
 
13432
      static {
13433
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13434
          byName.put(field.getFieldName(), field);
13435
        }
13436
      }
13437
 
13438
      /**
13439
       * Find the _Fields constant that matches fieldId, or null if its not found.
13440
       */
13441
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13442
        switch(fieldId) {
13443
          case 0: // SUCCESS
13444
            return SUCCESS;
13445
          case 1: // HSE
13446
            return HSE;
13447
          default:
13448
            return null;
13449
        }
1611 ankur.sing 13450
      }
13451
 
13452
      /**
13453
       * Find the _Fields constant that matches fieldId, throwing an exception
13454
       * if it is not found.
13455
       */
13456
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13457
        _Fields fields = findByThriftId(fieldId);
13458
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13459
        return fields;
13460
      }
13461
 
13462
      /**
13463
       * Find the _Fields constant that matches name, or null if its not found.
13464
       */
13465
      public static _Fields findByName(String name) {
13466
        return byName.get(name);
13467
      }
13468
 
13469
      private final short _thriftId;
13470
      private final String _fieldName;
13471
 
13472
      _Fields(short thriftId, String fieldName) {
13473
        _thriftId = thriftId;
13474
        _fieldName = fieldName;
13475
      }
13476
 
13477
      public short getThriftFieldId() {
13478
        return _thriftId;
13479
      }
13480
 
13481
      public String getFieldName() {
13482
        return _fieldName;
13483
      }
13484
    }
13485
 
13486
    // isset id assignments
13487
 
3430 rajveer 13488
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13489
    static {
3430 rajveer 13490
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13491
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13492
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13493
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13494
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13495
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13496
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13497
    }
13498
 
13499
    public authenticateStatisticsUser_result() {
13500
    }
13501
 
13502
    public authenticateStatisticsUser_result(
13503
      StatisticsUser success,
13504
      HelperServiceException hse)
13505
    {
13506
      this();
13507
      this.success = success;
13508
      this.hse = hse;
13509
    }
13510
 
13511
    /**
13512
     * Performs a deep copy on <i>other</i>.
13513
     */
13514
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13515
      if (other.isSetSuccess()) {
13516
        this.success = new StatisticsUser(other.success);
13517
      }
13518
      if (other.isSetHse()) {
13519
        this.hse = new HelperServiceException(other.hse);
13520
      }
13521
    }
13522
 
13523
    public authenticateStatisticsUser_result deepCopy() {
13524
      return new authenticateStatisticsUser_result(this);
13525
    }
13526
 
3430 rajveer 13527
    @Override
13528
    public void clear() {
13529
      this.success = null;
13530
      this.hse = null;
1611 ankur.sing 13531
    }
13532
 
13533
    public StatisticsUser getSuccess() {
13534
      return this.success;
13535
    }
13536
 
3430 rajveer 13537
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13538
      this.success = success;
13539
    }
13540
 
13541
    public void unsetSuccess() {
13542
      this.success = null;
13543
    }
13544
 
3430 rajveer 13545
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13546
    public boolean isSetSuccess() {
13547
      return this.success != null;
13548
    }
13549
 
13550
    public void setSuccessIsSet(boolean value) {
13551
      if (!value) {
13552
        this.success = null;
13553
      }
13554
    }
13555
 
13556
    public HelperServiceException getHse() {
13557
      return this.hse;
13558
    }
13559
 
3430 rajveer 13560
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13561
      this.hse = hse;
13562
    }
13563
 
13564
    public void unsetHse() {
13565
      this.hse = null;
13566
    }
13567
 
3430 rajveer 13568
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13569
    public boolean isSetHse() {
13570
      return this.hse != null;
13571
    }
13572
 
13573
    public void setHseIsSet(boolean value) {
13574
      if (!value) {
13575
        this.hse = null;
13576
      }
13577
    }
13578
 
13579
    public void setFieldValue(_Fields field, Object value) {
13580
      switch (field) {
13581
      case SUCCESS:
13582
        if (value == null) {
13583
          unsetSuccess();
13584
        } else {
13585
          setSuccess((StatisticsUser)value);
13586
        }
13587
        break;
13588
 
13589
      case HSE:
13590
        if (value == null) {
13591
          unsetHse();
13592
        } else {
13593
          setHse((HelperServiceException)value);
13594
        }
13595
        break;
13596
 
13597
      }
13598
    }
13599
 
13600
    public Object getFieldValue(_Fields field) {
13601
      switch (field) {
13602
      case SUCCESS:
13603
        return getSuccess();
13604
 
13605
      case HSE:
13606
        return getHse();
13607
 
13608
      }
13609
      throw new IllegalStateException();
13610
    }
13611
 
3430 rajveer 13612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13613
    public boolean isSet(_Fields field) {
13614
      if (field == null) {
13615
        throw new IllegalArgumentException();
13616
      }
1611 ankur.sing 13617
 
13618
      switch (field) {
13619
      case SUCCESS:
13620
        return isSetSuccess();
13621
      case HSE:
13622
        return isSetHse();
13623
      }
13624
      throw new IllegalStateException();
13625
    }
13626
 
13627
    @Override
13628
    public boolean equals(Object that) {
13629
      if (that == null)
13630
        return false;
13631
      if (that instanceof authenticateStatisticsUser_result)
13632
        return this.equals((authenticateStatisticsUser_result)that);
13633
      return false;
13634
    }
13635
 
13636
    public boolean equals(authenticateStatisticsUser_result that) {
13637
      if (that == null)
13638
        return false;
13639
 
13640
      boolean this_present_success = true && this.isSetSuccess();
13641
      boolean that_present_success = true && that.isSetSuccess();
13642
      if (this_present_success || that_present_success) {
13643
        if (!(this_present_success && that_present_success))
13644
          return false;
13645
        if (!this.success.equals(that.success))
13646
          return false;
13647
      }
13648
 
13649
      boolean this_present_hse = true && this.isSetHse();
13650
      boolean that_present_hse = true && that.isSetHse();
13651
      if (this_present_hse || that_present_hse) {
13652
        if (!(this_present_hse && that_present_hse))
13653
          return false;
13654
        if (!this.hse.equals(that.hse))
13655
          return false;
13656
      }
13657
 
13658
      return true;
13659
    }
13660
 
13661
    @Override
13662
    public int hashCode() {
13663
      return 0;
13664
    }
13665
 
13666
    public int compareTo(authenticateStatisticsUser_result other) {
13667
      if (!getClass().equals(other.getClass())) {
13668
        return getClass().getName().compareTo(other.getClass().getName());
13669
      }
13670
 
13671
      int lastComparison = 0;
13672
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13673
 
3430 rajveer 13674
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13675
      if (lastComparison != 0) {
13676
        return lastComparison;
13677
      }
3430 rajveer 13678
      if (isSetSuccess()) {
13679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13680
        if (lastComparison != 0) {
13681
          return lastComparison;
13682
        }
1611 ankur.sing 13683
      }
3430 rajveer 13684
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13685
      if (lastComparison != 0) {
13686
        return lastComparison;
13687
      }
3430 rajveer 13688
      if (isSetHse()) {
13689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13690
        if (lastComparison != 0) {
13691
          return lastComparison;
13692
        }
1611 ankur.sing 13693
      }
13694
      return 0;
13695
    }
13696
 
3430 rajveer 13697
    public _Fields fieldForId(int fieldId) {
13698
      return _Fields.findByThriftId(fieldId);
13699
    }
13700
 
13701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13702
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13703
      iprot.readStructBegin();
13704
      while (true)
13705
      {
13706
        field = iprot.readFieldBegin();
3430 rajveer 13707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13708
          break;
13709
        }
3430 rajveer 13710
        switch (field.id) {
13711
          case 0: // SUCCESS
13712
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13713
              this.success = new StatisticsUser();
13714
              this.success.read(iprot);
13715
            } else { 
13716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13717
            }
13718
            break;
13719
          case 1: // HSE
13720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13721
              this.hse = new HelperServiceException();
13722
              this.hse.read(iprot);
13723
            } else { 
13724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13725
            }
13726
            break;
13727
          default:
13728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13729
        }
3430 rajveer 13730
        iprot.readFieldEnd();
1611 ankur.sing 13731
      }
13732
      iprot.readStructEnd();
13733
      validate();
13734
    }
13735
 
3430 rajveer 13736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13737
      oprot.writeStructBegin(STRUCT_DESC);
13738
 
13739
      if (this.isSetSuccess()) {
13740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13741
        this.success.write(oprot);
13742
        oprot.writeFieldEnd();
13743
      } else if (this.isSetHse()) {
13744
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13745
        this.hse.write(oprot);
13746
        oprot.writeFieldEnd();
13747
      }
13748
      oprot.writeFieldStop();
13749
      oprot.writeStructEnd();
13750
    }
13751
 
13752
    @Override
13753
    public String toString() {
13754
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13755
      boolean first = true;
13756
 
13757
      sb.append("success:");
13758
      if (this.success == null) {
13759
        sb.append("null");
13760
      } else {
13761
        sb.append(this.success);
13762
      }
13763
      first = false;
13764
      if (!first) sb.append(", ");
13765
      sb.append("hse:");
13766
      if (this.hse == null) {
13767
        sb.append("null");
13768
      } else {
13769
        sb.append(this.hse);
13770
      }
13771
      first = false;
13772
      sb.append(")");
13773
      return sb.toString();
13774
    }
13775
 
3430 rajveer 13776
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13777
      // check for required fields
13778
    }
13779
 
3430 rajveer 13780
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13781
      try {
13782
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13783
      } catch (org.apache.thrift.TException te) {
13784
        throw new java.io.IOException(te);
13785
      }
13786
    }
13787
 
13788
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13789
      try {
13790
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13791
      } catch (org.apache.thrift.TException te) {
13792
        throw new java.io.IOException(te);
13793
      }
13794
    }
13795
 
1611 ankur.sing 13796
  }
13797
 
3430 rajveer 13798
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13799
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13800
 
3430 rajveer 13801
    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);
13802
    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 13803
 
3430 rajveer 13804
    private String username; // required
13805
    private String password; // required
1891 ankur.sing 13806
 
13807
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13808
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13809
      USERNAME((short)1, "username"),
13810
      PASSWORD((short)2, "password");
13811
 
13812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13813
 
13814
      static {
13815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13816
          byName.put(field.getFieldName(), field);
13817
        }
13818
      }
13819
 
13820
      /**
13821
       * Find the _Fields constant that matches fieldId, or null if its not found.
13822
       */
13823
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13824
        switch(fieldId) {
13825
          case 1: // USERNAME
13826
            return USERNAME;
13827
          case 2: // PASSWORD
13828
            return PASSWORD;
13829
          default:
13830
            return null;
13831
        }
1891 ankur.sing 13832
      }
13833
 
13834
      /**
13835
       * Find the _Fields constant that matches fieldId, throwing an exception
13836
       * if it is not found.
13837
       */
13838
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13839
        _Fields fields = findByThriftId(fieldId);
13840
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13841
        return fields;
13842
      }
13843
 
13844
      /**
13845
       * Find the _Fields constant that matches name, or null if its not found.
13846
       */
13847
      public static _Fields findByName(String name) {
13848
        return byName.get(name);
13849
      }
13850
 
13851
      private final short _thriftId;
13852
      private final String _fieldName;
13853
 
13854
      _Fields(short thriftId, String fieldName) {
13855
        _thriftId = thriftId;
13856
        _fieldName = fieldName;
13857
      }
13858
 
13859
      public short getThriftFieldId() {
13860
        return _thriftId;
13861
      }
13862
 
13863
      public String getFieldName() {
13864
        return _fieldName;
13865
      }
13866
    }
13867
 
13868
    // isset id assignments
13869
 
3430 rajveer 13870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13871
    static {
3430 rajveer 13872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13873
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13874
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13875
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13879
    }
13880
 
13881
    public authenticateReportUser_args() {
13882
    }
13883
 
13884
    public authenticateReportUser_args(
13885
      String username,
13886
      String password)
13887
    {
13888
      this();
13889
      this.username = username;
13890
      this.password = password;
13891
    }
13892
 
13893
    /**
13894
     * Performs a deep copy on <i>other</i>.
13895
     */
13896
    public authenticateReportUser_args(authenticateReportUser_args other) {
13897
      if (other.isSetUsername()) {
13898
        this.username = other.username;
13899
      }
13900
      if (other.isSetPassword()) {
13901
        this.password = other.password;
13902
      }
13903
    }
13904
 
13905
    public authenticateReportUser_args deepCopy() {
13906
      return new authenticateReportUser_args(this);
13907
    }
13908
 
3430 rajveer 13909
    @Override
13910
    public void clear() {
13911
      this.username = null;
13912
      this.password = null;
1891 ankur.sing 13913
    }
13914
 
13915
    public String getUsername() {
13916
      return this.username;
13917
    }
13918
 
3430 rajveer 13919
    public void setUsername(String username) {
1891 ankur.sing 13920
      this.username = username;
13921
    }
13922
 
13923
    public void unsetUsername() {
13924
      this.username = null;
13925
    }
13926
 
3430 rajveer 13927
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13928
    public boolean isSetUsername() {
13929
      return this.username != null;
13930
    }
13931
 
13932
    public void setUsernameIsSet(boolean value) {
13933
      if (!value) {
13934
        this.username = null;
13935
      }
13936
    }
13937
 
13938
    public String getPassword() {
13939
      return this.password;
13940
    }
13941
 
3430 rajveer 13942
    public void setPassword(String password) {
1891 ankur.sing 13943
      this.password = password;
13944
    }
13945
 
13946
    public void unsetPassword() {
13947
      this.password = null;
13948
    }
13949
 
3430 rajveer 13950
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 13951
    public boolean isSetPassword() {
13952
      return this.password != null;
13953
    }
13954
 
13955
    public void setPasswordIsSet(boolean value) {
13956
      if (!value) {
13957
        this.password = null;
13958
      }
13959
    }
13960
 
13961
    public void setFieldValue(_Fields field, Object value) {
13962
      switch (field) {
13963
      case USERNAME:
13964
        if (value == null) {
13965
          unsetUsername();
13966
        } else {
13967
          setUsername((String)value);
13968
        }
13969
        break;
13970
 
13971
      case PASSWORD:
13972
        if (value == null) {
13973
          unsetPassword();
13974
        } else {
13975
          setPassword((String)value);
13976
        }
13977
        break;
13978
 
13979
      }
13980
    }
13981
 
13982
    public Object getFieldValue(_Fields field) {
13983
      switch (field) {
13984
      case USERNAME:
13985
        return getUsername();
13986
 
13987
      case PASSWORD:
13988
        return getPassword();
13989
 
13990
      }
13991
      throw new IllegalStateException();
13992
    }
13993
 
3430 rajveer 13994
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13995
    public boolean isSet(_Fields field) {
13996
      if (field == null) {
13997
        throw new IllegalArgumentException();
13998
      }
1891 ankur.sing 13999
 
14000
      switch (field) {
14001
      case USERNAME:
14002
        return isSetUsername();
14003
      case PASSWORD:
14004
        return isSetPassword();
14005
      }
14006
      throw new IllegalStateException();
14007
    }
14008
 
14009
    @Override
14010
    public boolean equals(Object that) {
14011
      if (that == null)
14012
        return false;
14013
      if (that instanceof authenticateReportUser_args)
14014
        return this.equals((authenticateReportUser_args)that);
14015
      return false;
14016
    }
14017
 
14018
    public boolean equals(authenticateReportUser_args that) {
14019
      if (that == null)
14020
        return false;
14021
 
14022
      boolean this_present_username = true && this.isSetUsername();
14023
      boolean that_present_username = true && that.isSetUsername();
14024
      if (this_present_username || that_present_username) {
14025
        if (!(this_present_username && that_present_username))
14026
          return false;
14027
        if (!this.username.equals(that.username))
14028
          return false;
14029
      }
14030
 
14031
      boolean this_present_password = true && this.isSetPassword();
14032
      boolean that_present_password = true && that.isSetPassword();
14033
      if (this_present_password || that_present_password) {
14034
        if (!(this_present_password && that_present_password))
14035
          return false;
14036
        if (!this.password.equals(that.password))
14037
          return false;
14038
      }
14039
 
14040
      return true;
14041
    }
14042
 
14043
    @Override
14044
    public int hashCode() {
14045
      return 0;
14046
    }
14047
 
14048
    public int compareTo(authenticateReportUser_args other) {
14049
      if (!getClass().equals(other.getClass())) {
14050
        return getClass().getName().compareTo(other.getClass().getName());
14051
      }
14052
 
14053
      int lastComparison = 0;
14054
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14055
 
3430 rajveer 14056
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14057
      if (lastComparison != 0) {
14058
        return lastComparison;
14059
      }
3430 rajveer 14060
      if (isSetUsername()) {
14061
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14062
        if (lastComparison != 0) {
14063
          return lastComparison;
14064
        }
1891 ankur.sing 14065
      }
3430 rajveer 14066
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14067
      if (lastComparison != 0) {
14068
        return lastComparison;
14069
      }
3430 rajveer 14070
      if (isSetPassword()) {
14071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14072
        if (lastComparison != 0) {
14073
          return lastComparison;
14074
        }
1891 ankur.sing 14075
      }
14076
      return 0;
14077
    }
14078
 
3430 rajveer 14079
    public _Fields fieldForId(int fieldId) {
14080
      return _Fields.findByThriftId(fieldId);
14081
    }
14082
 
14083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14084
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14085
      iprot.readStructBegin();
14086
      while (true)
14087
      {
14088
        field = iprot.readFieldBegin();
3430 rajveer 14089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14090
          break;
14091
        }
3430 rajveer 14092
        switch (field.id) {
14093
          case 1: // USERNAME
14094
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14095
              this.username = iprot.readString();
14096
            } else { 
14097
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14098
            }
14099
            break;
14100
          case 2: // PASSWORD
14101
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14102
              this.password = iprot.readString();
14103
            } else { 
14104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14105
            }
14106
            break;
14107
          default:
14108
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14109
        }
3430 rajveer 14110
        iprot.readFieldEnd();
1891 ankur.sing 14111
      }
14112
      iprot.readStructEnd();
14113
      validate();
14114
    }
14115
 
3430 rajveer 14116
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14117
      validate();
14118
 
14119
      oprot.writeStructBegin(STRUCT_DESC);
14120
      if (this.username != null) {
14121
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14122
        oprot.writeString(this.username);
14123
        oprot.writeFieldEnd();
14124
      }
14125
      if (this.password != null) {
14126
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14127
        oprot.writeString(this.password);
14128
        oprot.writeFieldEnd();
14129
      }
14130
      oprot.writeFieldStop();
14131
      oprot.writeStructEnd();
14132
    }
14133
 
14134
    @Override
14135
    public String toString() {
14136
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14137
      boolean first = true;
14138
 
14139
      sb.append("username:");
14140
      if (this.username == null) {
14141
        sb.append("null");
14142
      } else {
14143
        sb.append(this.username);
14144
      }
14145
      first = false;
14146
      if (!first) sb.append(", ");
14147
      sb.append("password:");
14148
      if (this.password == null) {
14149
        sb.append("null");
14150
      } else {
14151
        sb.append(this.password);
14152
      }
14153
      first = false;
14154
      sb.append(")");
14155
      return sb.toString();
14156
    }
14157
 
3430 rajveer 14158
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14159
      // check for required fields
14160
    }
14161
 
3430 rajveer 14162
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14163
      try {
14164
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14165
      } catch (org.apache.thrift.TException te) {
14166
        throw new java.io.IOException(te);
14167
      }
14168
    }
14169
 
14170
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14171
      try {
14172
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14173
      } catch (org.apache.thrift.TException te) {
14174
        throw new java.io.IOException(te);
14175
      }
14176
    }
14177
 
1891 ankur.sing 14178
  }
14179
 
3430 rajveer 14180
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14181
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14182
 
3430 rajveer 14183
    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);
14184
    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 14185
 
3430 rajveer 14186
    private ReportUser success; // required
14187
    private HelperServiceException hse; // required
1891 ankur.sing 14188
 
14189
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14190
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14191
      SUCCESS((short)0, "success"),
14192
      HSE((short)1, "hse");
14193
 
14194
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14195
 
14196
      static {
14197
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14198
          byName.put(field.getFieldName(), field);
14199
        }
14200
      }
14201
 
14202
      /**
14203
       * Find the _Fields constant that matches fieldId, or null if its not found.
14204
       */
14205
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14206
        switch(fieldId) {
14207
          case 0: // SUCCESS
14208
            return SUCCESS;
14209
          case 1: // HSE
14210
            return HSE;
14211
          default:
14212
            return null;
14213
        }
1891 ankur.sing 14214
      }
14215
 
14216
      /**
14217
       * Find the _Fields constant that matches fieldId, throwing an exception
14218
       * if it is not found.
14219
       */
14220
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14221
        _Fields fields = findByThriftId(fieldId);
14222
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14223
        return fields;
14224
      }
14225
 
14226
      /**
14227
       * Find the _Fields constant that matches name, or null if its not found.
14228
       */
14229
      public static _Fields findByName(String name) {
14230
        return byName.get(name);
14231
      }
14232
 
14233
      private final short _thriftId;
14234
      private final String _fieldName;
14235
 
14236
      _Fields(short thriftId, String fieldName) {
14237
        _thriftId = thriftId;
14238
        _fieldName = fieldName;
14239
      }
14240
 
14241
      public short getThriftFieldId() {
14242
        return _thriftId;
14243
      }
14244
 
14245
      public String getFieldName() {
14246
        return _fieldName;
14247
      }
14248
    }
14249
 
14250
    // isset id assignments
14251
 
3430 rajveer 14252
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14253
    static {
3430 rajveer 14254
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14255
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14256
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14257
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14258
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14259
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14260
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14261
    }
14262
 
14263
    public authenticateReportUser_result() {
14264
    }
14265
 
14266
    public authenticateReportUser_result(
14267
      ReportUser success,
14268
      HelperServiceException hse)
14269
    {
14270
      this();
14271
      this.success = success;
14272
      this.hse = hse;
14273
    }
14274
 
14275
    /**
14276
     * Performs a deep copy on <i>other</i>.
14277
     */
14278
    public authenticateReportUser_result(authenticateReportUser_result other) {
14279
      if (other.isSetSuccess()) {
14280
        this.success = new ReportUser(other.success);
14281
      }
14282
      if (other.isSetHse()) {
14283
        this.hse = new HelperServiceException(other.hse);
14284
      }
14285
    }
14286
 
14287
    public authenticateReportUser_result deepCopy() {
14288
      return new authenticateReportUser_result(this);
14289
    }
14290
 
3430 rajveer 14291
    @Override
14292
    public void clear() {
14293
      this.success = null;
14294
      this.hse = null;
1891 ankur.sing 14295
    }
14296
 
14297
    public ReportUser getSuccess() {
14298
      return this.success;
14299
    }
14300
 
3430 rajveer 14301
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14302
      this.success = success;
14303
    }
14304
 
14305
    public void unsetSuccess() {
14306
      this.success = null;
14307
    }
14308
 
3430 rajveer 14309
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14310
    public boolean isSetSuccess() {
14311
      return this.success != null;
14312
    }
14313
 
14314
    public void setSuccessIsSet(boolean value) {
14315
      if (!value) {
14316
        this.success = null;
14317
      }
14318
    }
14319
 
14320
    public HelperServiceException getHse() {
14321
      return this.hse;
14322
    }
14323
 
3430 rajveer 14324
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14325
      this.hse = hse;
14326
    }
14327
 
14328
    public void unsetHse() {
14329
      this.hse = null;
14330
    }
14331
 
3430 rajveer 14332
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14333
    public boolean isSetHse() {
14334
      return this.hse != null;
14335
    }
14336
 
14337
    public void setHseIsSet(boolean value) {
14338
      if (!value) {
14339
        this.hse = null;
14340
      }
14341
    }
14342
 
14343
    public void setFieldValue(_Fields field, Object value) {
14344
      switch (field) {
14345
      case SUCCESS:
14346
        if (value == null) {
14347
          unsetSuccess();
14348
        } else {
14349
          setSuccess((ReportUser)value);
14350
        }
14351
        break;
14352
 
14353
      case HSE:
14354
        if (value == null) {
14355
          unsetHse();
14356
        } else {
14357
          setHse((HelperServiceException)value);
14358
        }
14359
        break;
14360
 
14361
      }
14362
    }
14363
 
14364
    public Object getFieldValue(_Fields field) {
14365
      switch (field) {
14366
      case SUCCESS:
14367
        return getSuccess();
14368
 
14369
      case HSE:
14370
        return getHse();
14371
 
14372
      }
14373
      throw new IllegalStateException();
14374
    }
14375
 
3430 rajveer 14376
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14377
    public boolean isSet(_Fields field) {
14378
      if (field == null) {
14379
        throw new IllegalArgumentException();
14380
      }
1891 ankur.sing 14381
 
14382
      switch (field) {
14383
      case SUCCESS:
14384
        return isSetSuccess();
14385
      case HSE:
14386
        return isSetHse();
14387
      }
14388
      throw new IllegalStateException();
14389
    }
14390
 
14391
    @Override
14392
    public boolean equals(Object that) {
14393
      if (that == null)
14394
        return false;
14395
      if (that instanceof authenticateReportUser_result)
14396
        return this.equals((authenticateReportUser_result)that);
14397
      return false;
14398
    }
14399
 
14400
    public boolean equals(authenticateReportUser_result that) {
14401
      if (that == null)
14402
        return false;
14403
 
14404
      boolean this_present_success = true && this.isSetSuccess();
14405
      boolean that_present_success = true && that.isSetSuccess();
14406
      if (this_present_success || that_present_success) {
14407
        if (!(this_present_success && that_present_success))
14408
          return false;
14409
        if (!this.success.equals(that.success))
14410
          return false;
14411
      }
14412
 
14413
      boolean this_present_hse = true && this.isSetHse();
14414
      boolean that_present_hse = true && that.isSetHse();
14415
      if (this_present_hse || that_present_hse) {
14416
        if (!(this_present_hse && that_present_hse))
14417
          return false;
14418
        if (!this.hse.equals(that.hse))
14419
          return false;
14420
      }
14421
 
14422
      return true;
14423
    }
14424
 
14425
    @Override
14426
    public int hashCode() {
14427
      return 0;
14428
    }
14429
 
14430
    public int compareTo(authenticateReportUser_result other) {
14431
      if (!getClass().equals(other.getClass())) {
14432
        return getClass().getName().compareTo(other.getClass().getName());
14433
      }
14434
 
14435
      int lastComparison = 0;
14436
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14437
 
3430 rajveer 14438
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14439
      if (lastComparison != 0) {
14440
        return lastComparison;
14441
      }
3430 rajveer 14442
      if (isSetSuccess()) {
14443
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14444
        if (lastComparison != 0) {
14445
          return lastComparison;
14446
        }
1891 ankur.sing 14447
      }
3430 rajveer 14448
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14449
      if (lastComparison != 0) {
14450
        return lastComparison;
14451
      }
3430 rajveer 14452
      if (isSetHse()) {
14453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14454
        if (lastComparison != 0) {
14455
          return lastComparison;
14456
        }
1891 ankur.sing 14457
      }
14458
      return 0;
14459
    }
14460
 
3430 rajveer 14461
    public _Fields fieldForId(int fieldId) {
14462
      return _Fields.findByThriftId(fieldId);
14463
    }
14464
 
14465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14466
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14467
      iprot.readStructBegin();
14468
      while (true)
14469
      {
14470
        field = iprot.readFieldBegin();
3430 rajveer 14471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14472
          break;
14473
        }
3430 rajveer 14474
        switch (field.id) {
14475
          case 0: // SUCCESS
14476
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14477
              this.success = new ReportUser();
14478
              this.success.read(iprot);
14479
            } else { 
14480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14481
            }
14482
            break;
14483
          case 1: // HSE
14484
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14485
              this.hse = new HelperServiceException();
14486
              this.hse.read(iprot);
14487
            } else { 
14488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14489
            }
14490
            break;
14491
          default:
14492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14493
        }
3430 rajveer 14494
        iprot.readFieldEnd();
1891 ankur.sing 14495
      }
14496
      iprot.readStructEnd();
14497
      validate();
14498
    }
14499
 
3430 rajveer 14500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14501
      oprot.writeStructBegin(STRUCT_DESC);
14502
 
14503
      if (this.isSetSuccess()) {
14504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14505
        this.success.write(oprot);
14506
        oprot.writeFieldEnd();
14507
      } else if (this.isSetHse()) {
14508
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14509
        this.hse.write(oprot);
14510
        oprot.writeFieldEnd();
14511
      }
14512
      oprot.writeFieldStop();
14513
      oprot.writeStructEnd();
14514
    }
14515
 
14516
    @Override
14517
    public String toString() {
14518
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14519
      boolean first = true;
14520
 
14521
      sb.append("success:");
14522
      if (this.success == null) {
14523
        sb.append("null");
14524
      } else {
14525
        sb.append(this.success);
14526
      }
14527
      first = false;
14528
      if (!first) sb.append(", ");
14529
      sb.append("hse:");
14530
      if (this.hse == null) {
14531
        sb.append("null");
14532
      } else {
14533
        sb.append(this.hse);
14534
      }
14535
      first = false;
14536
      sb.append(")");
14537
      return sb.toString();
14538
    }
14539
 
3430 rajveer 14540
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14541
      // check for required fields
14542
    }
14543
 
3430 rajveer 14544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14545
      try {
14546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14547
      } catch (org.apache.thrift.TException te) {
14548
        throw new java.io.IOException(te);
14549
      }
14550
    }
14551
 
14552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14553
      try {
14554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14555
      } catch (org.apache.thrift.TException te) {
14556
        throw new java.io.IOException(te);
14557
      }
14558
    }
14559
 
1891 ankur.sing 14560
  }
14561
 
3430 rajveer 14562
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14564
 
3430 rajveer 14565
    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 14566
 
3430 rajveer 14567
    private long role; // required
1891 ankur.sing 14568
 
14569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14571
      ROLE((short)1, "role");
14572
 
14573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14574
 
14575
      static {
14576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14577
          byName.put(field.getFieldName(), field);
14578
        }
14579
      }
14580
 
14581
      /**
14582
       * Find the _Fields constant that matches fieldId, or null if its not found.
14583
       */
14584
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14585
        switch(fieldId) {
14586
          case 1: // ROLE
14587
            return ROLE;
14588
          default:
14589
            return null;
14590
        }
1891 ankur.sing 14591
      }
14592
 
14593
      /**
14594
       * Find the _Fields constant that matches fieldId, throwing an exception
14595
       * if it is not found.
14596
       */
14597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14598
        _Fields fields = findByThriftId(fieldId);
14599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14600
        return fields;
14601
      }
14602
 
14603
      /**
14604
       * Find the _Fields constant that matches name, or null if its not found.
14605
       */
14606
      public static _Fields findByName(String name) {
14607
        return byName.get(name);
14608
      }
14609
 
14610
      private final short _thriftId;
14611
      private final String _fieldName;
14612
 
14613
      _Fields(short thriftId, String fieldName) {
14614
        _thriftId = thriftId;
14615
        _fieldName = fieldName;
14616
      }
14617
 
14618
      public short getThriftFieldId() {
14619
        return _thriftId;
14620
      }
14621
 
14622
      public String getFieldName() {
14623
        return _fieldName;
14624
      }
14625
    }
14626
 
14627
    // isset id assignments
14628
    private static final int __ROLE_ISSET_ID = 0;
14629
    private BitSet __isset_bit_vector = new BitSet(1);
14630
 
3430 rajveer 14631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14632
    static {
3430 rajveer 14633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14634
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14638
    }
14639
 
14640
    public getReports_args() {
14641
    }
14642
 
14643
    public getReports_args(
14644
      long role)
14645
    {
14646
      this();
14647
      this.role = role;
14648
      setRoleIsSet(true);
14649
    }
14650
 
14651
    /**
14652
     * Performs a deep copy on <i>other</i>.
14653
     */
14654
    public getReports_args(getReports_args other) {
14655
      __isset_bit_vector.clear();
14656
      __isset_bit_vector.or(other.__isset_bit_vector);
14657
      this.role = other.role;
14658
    }
14659
 
14660
    public getReports_args deepCopy() {
14661
      return new getReports_args(this);
14662
    }
14663
 
3430 rajveer 14664
    @Override
14665
    public void clear() {
14666
      setRoleIsSet(false);
14667
      this.role = 0;
1891 ankur.sing 14668
    }
14669
 
14670
    public long getRole() {
14671
      return this.role;
14672
    }
14673
 
3430 rajveer 14674
    public void setRole(long role) {
1891 ankur.sing 14675
      this.role = role;
14676
      setRoleIsSet(true);
14677
    }
14678
 
14679
    public void unsetRole() {
14680
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14681
    }
14682
 
3430 rajveer 14683
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14684
    public boolean isSetRole() {
14685
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14686
    }
14687
 
14688
    public void setRoleIsSet(boolean value) {
14689
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14690
    }
14691
 
14692
    public void setFieldValue(_Fields field, Object value) {
14693
      switch (field) {
14694
      case ROLE:
14695
        if (value == null) {
14696
          unsetRole();
14697
        } else {
14698
          setRole((Long)value);
14699
        }
14700
        break;
14701
 
14702
      }
14703
    }
14704
 
14705
    public Object getFieldValue(_Fields field) {
14706
      switch (field) {
14707
      case ROLE:
3430 rajveer 14708
        return Long.valueOf(getRole());
1891 ankur.sing 14709
 
14710
      }
14711
      throw new IllegalStateException();
14712
    }
14713
 
3430 rajveer 14714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14715
    public boolean isSet(_Fields field) {
14716
      if (field == null) {
14717
        throw new IllegalArgumentException();
14718
      }
1891 ankur.sing 14719
 
14720
      switch (field) {
14721
      case ROLE:
14722
        return isSetRole();
14723
      }
14724
      throw new IllegalStateException();
14725
    }
14726
 
14727
    @Override
14728
    public boolean equals(Object that) {
14729
      if (that == null)
14730
        return false;
14731
      if (that instanceof getReports_args)
14732
        return this.equals((getReports_args)that);
14733
      return false;
14734
    }
14735
 
14736
    public boolean equals(getReports_args that) {
14737
      if (that == null)
14738
        return false;
14739
 
14740
      boolean this_present_role = true;
14741
      boolean that_present_role = true;
14742
      if (this_present_role || that_present_role) {
14743
        if (!(this_present_role && that_present_role))
14744
          return false;
14745
        if (this.role != that.role)
14746
          return false;
14747
      }
14748
 
14749
      return true;
14750
    }
14751
 
14752
    @Override
14753
    public int hashCode() {
14754
      return 0;
14755
    }
14756
 
14757
    public int compareTo(getReports_args other) {
14758
      if (!getClass().equals(other.getClass())) {
14759
        return getClass().getName().compareTo(other.getClass().getName());
14760
      }
14761
 
14762
      int lastComparison = 0;
14763
      getReports_args typedOther = (getReports_args)other;
14764
 
3430 rajveer 14765
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14766
      if (lastComparison != 0) {
14767
        return lastComparison;
14768
      }
3430 rajveer 14769
      if (isSetRole()) {
14770
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14771
        if (lastComparison != 0) {
14772
          return lastComparison;
14773
        }
1891 ankur.sing 14774
      }
14775
      return 0;
14776
    }
14777
 
3430 rajveer 14778
    public _Fields fieldForId(int fieldId) {
14779
      return _Fields.findByThriftId(fieldId);
14780
    }
14781
 
14782
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14783
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14784
      iprot.readStructBegin();
14785
      while (true)
14786
      {
14787
        field = iprot.readFieldBegin();
3430 rajveer 14788
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14789
          break;
14790
        }
3430 rajveer 14791
        switch (field.id) {
14792
          case 1: // ROLE
14793
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14794
              this.role = iprot.readI64();
14795
              setRoleIsSet(true);
14796
            } else { 
14797
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14798
            }
14799
            break;
14800
          default:
14801
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14802
        }
3430 rajveer 14803
        iprot.readFieldEnd();
1891 ankur.sing 14804
      }
14805
      iprot.readStructEnd();
14806
      validate();
14807
    }
14808
 
3430 rajveer 14809
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14810
      validate();
14811
 
14812
      oprot.writeStructBegin(STRUCT_DESC);
14813
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14814
      oprot.writeI64(this.role);
14815
      oprot.writeFieldEnd();
14816
      oprot.writeFieldStop();
14817
      oprot.writeStructEnd();
14818
    }
14819
 
14820
    @Override
14821
    public String toString() {
14822
      StringBuilder sb = new StringBuilder("getReports_args(");
14823
      boolean first = true;
14824
 
14825
      sb.append("role:");
14826
      sb.append(this.role);
14827
      first = false;
14828
      sb.append(")");
14829
      return sb.toString();
14830
    }
14831
 
3430 rajveer 14832
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14833
      // check for required fields
14834
    }
14835
 
3430 rajveer 14836
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14837
      try {
14838
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14839
      } catch (org.apache.thrift.TException te) {
14840
        throw new java.io.IOException(te);
14841
      }
14842
    }
14843
 
14844
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14845
      try {
14846
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14847
        __isset_bit_vector = new BitSet(1);
14848
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14849
      } catch (org.apache.thrift.TException te) {
14850
        throw new java.io.IOException(te);
14851
      }
14852
    }
14853
 
1891 ankur.sing 14854
  }
14855
 
3430 rajveer 14856
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14857
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14858
 
3430 rajveer 14859
    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 14860
 
3430 rajveer 14861
    private List<Report> success; // required
1891 ankur.sing 14862
 
14863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14864
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14865
      SUCCESS((short)0, "success");
14866
 
14867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14868
 
14869
      static {
14870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14871
          byName.put(field.getFieldName(), field);
14872
        }
14873
      }
14874
 
14875
      /**
14876
       * Find the _Fields constant that matches fieldId, or null if its not found.
14877
       */
14878
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14879
        switch(fieldId) {
14880
          case 0: // SUCCESS
14881
            return SUCCESS;
14882
          default:
14883
            return null;
14884
        }
1891 ankur.sing 14885
      }
14886
 
14887
      /**
14888
       * Find the _Fields constant that matches fieldId, throwing an exception
14889
       * if it is not found.
14890
       */
14891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14892
        _Fields fields = findByThriftId(fieldId);
14893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14894
        return fields;
14895
      }
14896
 
14897
      /**
14898
       * Find the _Fields constant that matches name, or null if its not found.
14899
       */
14900
      public static _Fields findByName(String name) {
14901
        return byName.get(name);
14902
      }
14903
 
14904
      private final short _thriftId;
14905
      private final String _fieldName;
14906
 
14907
      _Fields(short thriftId, String fieldName) {
14908
        _thriftId = thriftId;
14909
        _fieldName = fieldName;
14910
      }
14911
 
14912
      public short getThriftFieldId() {
14913
        return _thriftId;
14914
      }
14915
 
14916
      public String getFieldName() {
14917
        return _fieldName;
14918
      }
14919
    }
14920
 
14921
    // isset id assignments
14922
 
3430 rajveer 14923
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14924
    static {
3430 rajveer 14925
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14926
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14927
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
14928
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
14929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 14931
    }
14932
 
14933
    public getReports_result() {
14934
    }
14935
 
14936
    public getReports_result(
14937
      List<Report> success)
14938
    {
14939
      this();
14940
      this.success = success;
14941
    }
14942
 
14943
    /**
14944
     * Performs a deep copy on <i>other</i>.
14945
     */
14946
    public getReports_result(getReports_result other) {
14947
      if (other.isSetSuccess()) {
14948
        List<Report> __this__success = new ArrayList<Report>();
14949
        for (Report other_element : other.success) {
14950
          __this__success.add(new Report(other_element));
14951
        }
14952
        this.success = __this__success;
14953
      }
14954
    }
14955
 
14956
    public getReports_result deepCopy() {
14957
      return new getReports_result(this);
14958
    }
14959
 
3430 rajveer 14960
    @Override
14961
    public void clear() {
14962
      this.success = null;
1891 ankur.sing 14963
    }
14964
 
14965
    public int getSuccessSize() {
14966
      return (this.success == null) ? 0 : this.success.size();
14967
    }
14968
 
14969
    public java.util.Iterator<Report> getSuccessIterator() {
14970
      return (this.success == null) ? null : this.success.iterator();
14971
    }
14972
 
14973
    public void addToSuccess(Report elem) {
14974
      if (this.success == null) {
14975
        this.success = new ArrayList<Report>();
14976
      }
14977
      this.success.add(elem);
14978
    }
14979
 
14980
    public List<Report> getSuccess() {
14981
      return this.success;
14982
    }
14983
 
3430 rajveer 14984
    public void setSuccess(List<Report> success) {
1891 ankur.sing 14985
      this.success = success;
14986
    }
14987
 
14988
    public void unsetSuccess() {
14989
      this.success = null;
14990
    }
14991
 
3430 rajveer 14992
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14993
    public boolean isSetSuccess() {
14994
      return this.success != null;
14995
    }
14996
 
14997
    public void setSuccessIsSet(boolean value) {
14998
      if (!value) {
14999
        this.success = null;
15000
      }
15001
    }
15002
 
15003
    public void setFieldValue(_Fields field, Object value) {
15004
      switch (field) {
15005
      case SUCCESS:
15006
        if (value == null) {
15007
          unsetSuccess();
15008
        } else {
15009
          setSuccess((List<Report>)value);
15010
        }
15011
        break;
15012
 
15013
      }
15014
    }
15015
 
15016
    public Object getFieldValue(_Fields field) {
15017
      switch (field) {
15018
      case SUCCESS:
15019
        return getSuccess();
15020
 
15021
      }
15022
      throw new IllegalStateException();
15023
    }
15024
 
3430 rajveer 15025
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15026
    public boolean isSet(_Fields field) {
15027
      if (field == null) {
15028
        throw new IllegalArgumentException();
15029
      }
1891 ankur.sing 15030
 
15031
      switch (field) {
15032
      case SUCCESS:
15033
        return isSetSuccess();
15034
      }
15035
      throw new IllegalStateException();
15036
    }
15037
 
15038
    @Override
15039
    public boolean equals(Object that) {
15040
      if (that == null)
15041
        return false;
15042
      if (that instanceof getReports_result)
15043
        return this.equals((getReports_result)that);
15044
      return false;
15045
    }
15046
 
15047
    public boolean equals(getReports_result that) {
15048
      if (that == null)
15049
        return false;
15050
 
15051
      boolean this_present_success = true && this.isSetSuccess();
15052
      boolean that_present_success = true && that.isSetSuccess();
15053
      if (this_present_success || that_present_success) {
15054
        if (!(this_present_success && that_present_success))
15055
          return false;
15056
        if (!this.success.equals(that.success))
15057
          return false;
15058
      }
15059
 
15060
      return true;
15061
    }
15062
 
15063
    @Override
15064
    public int hashCode() {
15065
      return 0;
15066
    }
15067
 
15068
    public int compareTo(getReports_result other) {
15069
      if (!getClass().equals(other.getClass())) {
15070
        return getClass().getName().compareTo(other.getClass().getName());
15071
      }
15072
 
15073
      int lastComparison = 0;
15074
      getReports_result typedOther = (getReports_result)other;
15075
 
3430 rajveer 15076
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15077
      if (lastComparison != 0) {
15078
        return lastComparison;
15079
      }
3430 rajveer 15080
      if (isSetSuccess()) {
15081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15082
        if (lastComparison != 0) {
15083
          return lastComparison;
15084
        }
1891 ankur.sing 15085
      }
15086
      return 0;
15087
    }
15088
 
3430 rajveer 15089
    public _Fields fieldForId(int fieldId) {
15090
      return _Fields.findByThriftId(fieldId);
15091
    }
15092
 
15093
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15094
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15095
      iprot.readStructBegin();
15096
      while (true)
15097
      {
15098
        field = iprot.readFieldBegin();
3430 rajveer 15099
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15100
          break;
15101
        }
3430 rajveer 15102
        switch (field.id) {
15103
          case 0: // SUCCESS
15104
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15105
              {
5864 rajveer 15106
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15107
                this.success = new ArrayList<Report>(_list41.size);
15108
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15109
                {
5864 rajveer 15110
                  Report _elem43; // required
15111
                  _elem43 = new Report();
15112
                  _elem43.read(iprot);
15113
                  this.success.add(_elem43);
1891 ankur.sing 15114
                }
3430 rajveer 15115
                iprot.readListEnd();
1891 ankur.sing 15116
              }
3430 rajveer 15117
            } else { 
15118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15119
            }
15120
            break;
15121
          default:
15122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15123
        }
3430 rajveer 15124
        iprot.readFieldEnd();
1891 ankur.sing 15125
      }
15126
      iprot.readStructEnd();
15127
      validate();
15128
    }
15129
 
3430 rajveer 15130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15131
      oprot.writeStructBegin(STRUCT_DESC);
15132
 
15133
      if (this.isSetSuccess()) {
15134
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15135
        {
3430 rajveer 15136
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15137
          for (Report _iter44 : this.success)
1891 ankur.sing 15138
          {
5864 rajveer 15139
            _iter44.write(oprot);
1891 ankur.sing 15140
          }
15141
          oprot.writeListEnd();
15142
        }
15143
        oprot.writeFieldEnd();
15144
      }
15145
      oprot.writeFieldStop();
15146
      oprot.writeStructEnd();
15147
    }
15148
 
15149
    @Override
15150
    public String toString() {
15151
      StringBuilder sb = new StringBuilder("getReports_result(");
15152
      boolean first = true;
15153
 
15154
      sb.append("success:");
15155
      if (this.success == null) {
15156
        sb.append("null");
15157
      } else {
15158
        sb.append(this.success);
15159
      }
15160
      first = false;
15161
      sb.append(")");
15162
      return sb.toString();
15163
    }
15164
 
3430 rajveer 15165
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15166
      // check for required fields
15167
    }
15168
 
3430 rajveer 15169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15170
      try {
15171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15172
      } catch (org.apache.thrift.TException te) {
15173
        throw new java.io.IOException(te);
15174
      }
15175
    }
15176
 
15177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15178
      try {
15179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15180
      } catch (org.apache.thrift.TException te) {
15181
        throw new java.io.IOException(te);
15182
      }
15183
    }
15184
 
1891 ankur.sing 15185
  }
15186
 
3430 rajveer 15187
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15189
 
3430 rajveer 15190
    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);
15191
    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);
2024 ankur.sing 15192
 
3430 rajveer 15193
    private String username; // required
15194
    private String password; // required
2024 ankur.sing 15195
 
15196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15198
      USERNAME((short)1, "username"),
6788 rajveer 15199
      PASSWORD((short)2, "password");
2024 ankur.sing 15200
 
15201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15202
 
15203
      static {
15204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15205
          byName.put(field.getFieldName(), field);
15206
        }
15207
      }
15208
 
15209
      /**
15210
       * Find the _Fields constant that matches fieldId, or null if its not found.
15211
       */
15212
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15213
        switch(fieldId) {
15214
          case 1: // USERNAME
15215
            return USERNAME;
15216
          case 2: // PASSWORD
15217
            return PASSWORD;
15218
          default:
15219
            return null;
15220
        }
2024 ankur.sing 15221
      }
15222
 
15223
      /**
15224
       * Find the _Fields constant that matches fieldId, throwing an exception
15225
       * if it is not found.
15226
       */
15227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15228
        _Fields fields = findByThriftId(fieldId);
15229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15230
        return fields;
15231
      }
15232
 
15233
      /**
15234
       * Find the _Fields constant that matches name, or null if its not found.
15235
       */
15236
      public static _Fields findByName(String name) {
15237
        return byName.get(name);
15238
      }
15239
 
15240
      private final short _thriftId;
15241
      private final String _fieldName;
15242
 
15243
      _Fields(short thriftId, String fieldName) {
15244
        _thriftId = thriftId;
15245
        _fieldName = fieldName;
15246
      }
15247
 
15248
      public short getThriftFieldId() {
15249
        return _thriftId;
15250
      }
15251
 
15252
      public String getFieldName() {
15253
        return _fieldName;
15254
      }
15255
    }
15256
 
15257
    // isset id assignments
15258
 
3430 rajveer 15259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15260
    static {
3430 rajveer 15261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15262
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15264
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15268
    }
15269
 
15270
    public authenticateCatalogUser_args() {
15271
    }
15272
 
15273
    public authenticateCatalogUser_args(
15274
      String username,
6788 rajveer 15275
      String password)
2024 ankur.sing 15276
    {
15277
      this();
15278
      this.username = username;
15279
      this.password = password;
15280
    }
15281
 
15282
    /**
15283
     * Performs a deep copy on <i>other</i>.
15284
     */
15285
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
15286
      if (other.isSetUsername()) {
15287
        this.username = other.username;
15288
      }
15289
      if (other.isSetPassword()) {
15290
        this.password = other.password;
15291
      }
15292
    }
15293
 
15294
    public authenticateCatalogUser_args deepCopy() {
15295
      return new authenticateCatalogUser_args(this);
15296
    }
15297
 
3430 rajveer 15298
    @Override
15299
    public void clear() {
15300
      this.username = null;
15301
      this.password = null;
2024 ankur.sing 15302
    }
15303
 
15304
    public String getUsername() {
15305
      return this.username;
15306
    }
15307
 
3430 rajveer 15308
    public void setUsername(String username) {
2024 ankur.sing 15309
      this.username = username;
15310
    }
15311
 
15312
    public void unsetUsername() {
15313
      this.username = null;
15314
    }
15315
 
3430 rajveer 15316
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15317
    public boolean isSetUsername() {
15318
      return this.username != null;
15319
    }
15320
 
15321
    public void setUsernameIsSet(boolean value) {
15322
      if (!value) {
15323
        this.username = null;
15324
      }
15325
    }
15326
 
15327
    public String getPassword() {
15328
      return this.password;
15329
    }
15330
 
3430 rajveer 15331
    public void setPassword(String password) {
2024 ankur.sing 15332
      this.password = password;
15333
    }
15334
 
15335
    public void unsetPassword() {
15336
      this.password = null;
15337
    }
15338
 
3430 rajveer 15339
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15340
    public boolean isSetPassword() {
15341
      return this.password != null;
15342
    }
15343
 
15344
    public void setPasswordIsSet(boolean value) {
15345
      if (!value) {
15346
        this.password = null;
15347
      }
15348
    }
15349
 
15350
    public void setFieldValue(_Fields field, Object value) {
15351
      switch (field) {
15352
      case USERNAME:
15353
        if (value == null) {
15354
          unsetUsername();
15355
        } else {
15356
          setUsername((String)value);
15357
        }
15358
        break;
15359
 
15360
      case PASSWORD:
15361
        if (value == null) {
15362
          unsetPassword();
15363
        } else {
15364
          setPassword((String)value);
15365
        }
15366
        break;
15367
 
15368
      }
15369
    }
15370
 
15371
    public Object getFieldValue(_Fields field) {
15372
      switch (field) {
15373
      case USERNAME:
15374
        return getUsername();
15375
 
15376
      case PASSWORD:
15377
        return getPassword();
15378
 
15379
      }
15380
      throw new IllegalStateException();
15381
    }
15382
 
3430 rajveer 15383
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15384
    public boolean isSet(_Fields field) {
15385
      if (field == null) {
15386
        throw new IllegalArgumentException();
15387
      }
2024 ankur.sing 15388
 
15389
      switch (field) {
15390
      case USERNAME:
15391
        return isSetUsername();
15392
      case PASSWORD:
15393
        return isSetPassword();
15394
      }
15395
      throw new IllegalStateException();
15396
    }
15397
 
15398
    @Override
15399
    public boolean equals(Object that) {
15400
      if (that == null)
15401
        return false;
15402
      if (that instanceof authenticateCatalogUser_args)
15403
        return this.equals((authenticateCatalogUser_args)that);
15404
      return false;
15405
    }
15406
 
15407
    public boolean equals(authenticateCatalogUser_args that) {
15408
      if (that == null)
15409
        return false;
15410
 
15411
      boolean this_present_username = true && this.isSetUsername();
15412
      boolean that_present_username = true && that.isSetUsername();
15413
      if (this_present_username || that_present_username) {
15414
        if (!(this_present_username && that_present_username))
15415
          return false;
15416
        if (!this.username.equals(that.username))
15417
          return false;
15418
      }
15419
 
15420
      boolean this_present_password = true && this.isSetPassword();
15421
      boolean that_present_password = true && that.isSetPassword();
15422
      if (this_present_password || that_present_password) {
15423
        if (!(this_present_password && that_present_password))
15424
          return false;
15425
        if (!this.password.equals(that.password))
15426
          return false;
15427
      }
15428
 
15429
      return true;
15430
    }
15431
 
15432
    @Override
15433
    public int hashCode() {
15434
      return 0;
15435
    }
15436
 
15437
    public int compareTo(authenticateCatalogUser_args other) {
15438
      if (!getClass().equals(other.getClass())) {
15439
        return getClass().getName().compareTo(other.getClass().getName());
15440
      }
15441
 
15442
      int lastComparison = 0;
15443
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15444
 
3430 rajveer 15445
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15446
      if (lastComparison != 0) {
15447
        return lastComparison;
15448
      }
3430 rajveer 15449
      if (isSetUsername()) {
15450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15451
        if (lastComparison != 0) {
15452
          return lastComparison;
15453
        }
2024 ankur.sing 15454
      }
3430 rajveer 15455
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15456
      if (lastComparison != 0) {
15457
        return lastComparison;
15458
      }
3430 rajveer 15459
      if (isSetPassword()) {
15460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15461
        if (lastComparison != 0) {
15462
          return lastComparison;
15463
        }
2024 ankur.sing 15464
      }
15465
      return 0;
15466
    }
15467
 
3430 rajveer 15468
    public _Fields fieldForId(int fieldId) {
15469
      return _Fields.findByThriftId(fieldId);
15470
    }
15471
 
15472
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15473
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15474
      iprot.readStructBegin();
15475
      while (true)
15476
      {
15477
        field = iprot.readFieldBegin();
3430 rajveer 15478
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15479
          break;
15480
        }
3430 rajveer 15481
        switch (field.id) {
15482
          case 1: // USERNAME
15483
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15484
              this.username = iprot.readString();
15485
            } else { 
15486
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15487
            }
15488
            break;
15489
          case 2: // PASSWORD
15490
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15491
              this.password = iprot.readString();
15492
            } else { 
15493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15494
            }
15495
            break;
15496
          default:
15497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15498
        }
3430 rajveer 15499
        iprot.readFieldEnd();
2024 ankur.sing 15500
      }
15501
      iprot.readStructEnd();
15502
      validate();
15503
    }
15504
 
3430 rajveer 15505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15506
      validate();
15507
 
15508
      oprot.writeStructBegin(STRUCT_DESC);
15509
      if (this.username != null) {
15510
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15511
        oprot.writeString(this.username);
15512
        oprot.writeFieldEnd();
15513
      }
15514
      if (this.password != null) {
15515
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15516
        oprot.writeString(this.password);
15517
        oprot.writeFieldEnd();
15518
      }
15519
      oprot.writeFieldStop();
15520
      oprot.writeStructEnd();
15521
    }
15522
 
15523
    @Override
15524
    public String toString() {
15525
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15526
      boolean first = true;
15527
 
15528
      sb.append("username:");
15529
      if (this.username == null) {
15530
        sb.append("null");
15531
      } else {
15532
        sb.append(this.username);
15533
      }
15534
      first = false;
15535
      if (!first) sb.append(", ");
15536
      sb.append("password:");
15537
      if (this.password == null) {
15538
        sb.append("null");
15539
      } else {
15540
        sb.append(this.password);
15541
      }
15542
      first = false;
15543
      sb.append(")");
15544
      return sb.toString();
15545
    }
15546
 
3430 rajveer 15547
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15548
      // check for required fields
15549
    }
15550
 
3430 rajveer 15551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15552
      try {
15553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15554
      } catch (org.apache.thrift.TException te) {
15555
        throw new java.io.IOException(te);
15556
      }
15557
    }
15558
 
15559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15560
      try {
15561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15562
      } catch (org.apache.thrift.TException te) {
15563
        throw new java.io.IOException(te);
15564
      }
15565
    }
15566
 
2024 ankur.sing 15567
  }
15568
 
3430 rajveer 15569
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15571
 
3430 rajveer 15572
    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);
15573
    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 15574
 
3430 rajveer 15575
    private CatalogDashboardUser success; // required
15576
    private HelperServiceException hse; // required
2024 ankur.sing 15577
 
15578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15580
      SUCCESS((short)0, "success"),
15581
      HSE((short)1, "hse");
15582
 
15583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15584
 
15585
      static {
15586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15587
          byName.put(field.getFieldName(), field);
15588
        }
15589
      }
15590
 
15591
      /**
15592
       * Find the _Fields constant that matches fieldId, or null if its not found.
15593
       */
15594
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15595
        switch(fieldId) {
15596
          case 0: // SUCCESS
15597
            return SUCCESS;
15598
          case 1: // HSE
15599
            return HSE;
15600
          default:
15601
            return null;
15602
        }
2024 ankur.sing 15603
      }
15604
 
15605
      /**
15606
       * Find the _Fields constant that matches fieldId, throwing an exception
15607
       * if it is not found.
15608
       */
15609
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15610
        _Fields fields = findByThriftId(fieldId);
15611
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15612
        return fields;
15613
      }
15614
 
15615
      /**
15616
       * Find the _Fields constant that matches name, or null if its not found.
15617
       */
15618
      public static _Fields findByName(String name) {
15619
        return byName.get(name);
15620
      }
15621
 
15622
      private final short _thriftId;
15623
      private final String _fieldName;
15624
 
15625
      _Fields(short thriftId, String fieldName) {
15626
        _thriftId = thriftId;
15627
        _fieldName = fieldName;
15628
      }
15629
 
15630
      public short getThriftFieldId() {
15631
        return _thriftId;
15632
      }
15633
 
15634
      public String getFieldName() {
15635
        return _fieldName;
15636
      }
15637
    }
15638
 
15639
    // isset id assignments
15640
 
3430 rajveer 15641
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15642
    static {
3430 rajveer 15643
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15644
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15645
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15646
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15647
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15648
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15649
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15650
    }
15651
 
15652
    public authenticateCatalogUser_result() {
15653
    }
15654
 
15655
    public authenticateCatalogUser_result(
15656
      CatalogDashboardUser success,
15657
      HelperServiceException hse)
15658
    {
15659
      this();
15660
      this.success = success;
15661
      this.hse = hse;
15662
    }
15663
 
15664
    /**
15665
     * Performs a deep copy on <i>other</i>.
15666
     */
15667
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15668
      if (other.isSetSuccess()) {
15669
        this.success = new CatalogDashboardUser(other.success);
15670
      }
15671
      if (other.isSetHse()) {
15672
        this.hse = new HelperServiceException(other.hse);
15673
      }
15674
    }
15675
 
15676
    public authenticateCatalogUser_result deepCopy() {
15677
      return new authenticateCatalogUser_result(this);
15678
    }
15679
 
3430 rajveer 15680
    @Override
15681
    public void clear() {
15682
      this.success = null;
15683
      this.hse = null;
2024 ankur.sing 15684
    }
15685
 
15686
    public CatalogDashboardUser getSuccess() {
15687
      return this.success;
15688
    }
15689
 
3430 rajveer 15690
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15691
      this.success = success;
15692
    }
15693
 
15694
    public void unsetSuccess() {
15695
      this.success = null;
15696
    }
15697
 
3430 rajveer 15698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15699
    public boolean isSetSuccess() {
15700
      return this.success != null;
15701
    }
15702
 
15703
    public void setSuccessIsSet(boolean value) {
15704
      if (!value) {
15705
        this.success = null;
15706
      }
15707
    }
15708
 
15709
    public HelperServiceException getHse() {
15710
      return this.hse;
15711
    }
15712
 
3430 rajveer 15713
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15714
      this.hse = hse;
15715
    }
15716
 
15717
    public void unsetHse() {
15718
      this.hse = null;
15719
    }
15720
 
3430 rajveer 15721
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15722
    public boolean isSetHse() {
15723
      return this.hse != null;
15724
    }
15725
 
15726
    public void setHseIsSet(boolean value) {
15727
      if (!value) {
15728
        this.hse = null;
15729
      }
15730
    }
15731
 
15732
    public void setFieldValue(_Fields field, Object value) {
15733
      switch (field) {
15734
      case SUCCESS:
15735
        if (value == null) {
15736
          unsetSuccess();
15737
        } else {
15738
          setSuccess((CatalogDashboardUser)value);
15739
        }
15740
        break;
15741
 
15742
      case HSE:
15743
        if (value == null) {
15744
          unsetHse();
15745
        } else {
15746
          setHse((HelperServiceException)value);
15747
        }
15748
        break;
15749
 
15750
      }
15751
    }
15752
 
15753
    public Object getFieldValue(_Fields field) {
15754
      switch (field) {
15755
      case SUCCESS:
15756
        return getSuccess();
15757
 
15758
      case HSE:
15759
        return getHse();
15760
 
15761
      }
15762
      throw new IllegalStateException();
15763
    }
15764
 
3430 rajveer 15765
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15766
    public boolean isSet(_Fields field) {
15767
      if (field == null) {
15768
        throw new IllegalArgumentException();
15769
      }
2024 ankur.sing 15770
 
15771
      switch (field) {
15772
      case SUCCESS:
15773
        return isSetSuccess();
15774
      case HSE:
15775
        return isSetHse();
15776
      }
15777
      throw new IllegalStateException();
15778
    }
15779
 
15780
    @Override
15781
    public boolean equals(Object that) {
15782
      if (that == null)
15783
        return false;
15784
      if (that instanceof authenticateCatalogUser_result)
15785
        return this.equals((authenticateCatalogUser_result)that);
15786
      return false;
15787
    }
15788
 
15789
    public boolean equals(authenticateCatalogUser_result that) {
15790
      if (that == null)
15791
        return false;
15792
 
15793
      boolean this_present_success = true && this.isSetSuccess();
15794
      boolean that_present_success = true && that.isSetSuccess();
15795
      if (this_present_success || that_present_success) {
15796
        if (!(this_present_success && that_present_success))
15797
          return false;
15798
        if (!this.success.equals(that.success))
15799
          return false;
15800
      }
15801
 
15802
      boolean this_present_hse = true && this.isSetHse();
15803
      boolean that_present_hse = true && that.isSetHse();
15804
      if (this_present_hse || that_present_hse) {
15805
        if (!(this_present_hse && that_present_hse))
15806
          return false;
15807
        if (!this.hse.equals(that.hse))
15808
          return false;
15809
      }
15810
 
15811
      return true;
15812
    }
15813
 
15814
    @Override
15815
    public int hashCode() {
15816
      return 0;
15817
    }
15818
 
15819
    public int compareTo(authenticateCatalogUser_result other) {
15820
      if (!getClass().equals(other.getClass())) {
15821
        return getClass().getName().compareTo(other.getClass().getName());
15822
      }
15823
 
15824
      int lastComparison = 0;
15825
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15826
 
3430 rajveer 15827
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15828
      if (lastComparison != 0) {
15829
        return lastComparison;
15830
      }
3430 rajveer 15831
      if (isSetSuccess()) {
15832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15833
        if (lastComparison != 0) {
15834
          return lastComparison;
15835
        }
2024 ankur.sing 15836
      }
3430 rajveer 15837
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15838
      if (lastComparison != 0) {
15839
        return lastComparison;
15840
      }
3430 rajveer 15841
      if (isSetHse()) {
15842
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15843
        if (lastComparison != 0) {
15844
          return lastComparison;
15845
        }
2024 ankur.sing 15846
      }
15847
      return 0;
15848
    }
15849
 
3430 rajveer 15850
    public _Fields fieldForId(int fieldId) {
15851
      return _Fields.findByThriftId(fieldId);
15852
    }
15853
 
15854
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15855
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15856
      iprot.readStructBegin();
15857
      while (true)
15858
      {
15859
        field = iprot.readFieldBegin();
3430 rajveer 15860
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15861
          break;
15862
        }
3430 rajveer 15863
        switch (field.id) {
15864
          case 0: // SUCCESS
15865
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15866
              this.success = new CatalogDashboardUser();
15867
              this.success.read(iprot);
15868
            } else { 
15869
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15870
            }
15871
            break;
15872
          case 1: // HSE
15873
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15874
              this.hse = new HelperServiceException();
15875
              this.hse.read(iprot);
15876
            } else { 
15877
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15878
            }
15879
            break;
15880
          default:
15881
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15882
        }
3430 rajveer 15883
        iprot.readFieldEnd();
2024 ankur.sing 15884
      }
15885
      iprot.readStructEnd();
15886
      validate();
15887
    }
15888
 
3430 rajveer 15889
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15890
      oprot.writeStructBegin(STRUCT_DESC);
15891
 
15892
      if (this.isSetSuccess()) {
15893
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15894
        this.success.write(oprot);
15895
        oprot.writeFieldEnd();
15896
      } else if (this.isSetHse()) {
15897
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15898
        this.hse.write(oprot);
15899
        oprot.writeFieldEnd();
15900
      }
15901
      oprot.writeFieldStop();
15902
      oprot.writeStructEnd();
15903
    }
15904
 
15905
    @Override
15906
    public String toString() {
15907
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15908
      boolean first = true;
15909
 
15910
      sb.append("success:");
15911
      if (this.success == null) {
15912
        sb.append("null");
15913
      } else {
15914
        sb.append(this.success);
15915
      }
15916
      first = false;
15917
      if (!first) sb.append(", ");
15918
      sb.append("hse:");
15919
      if (this.hse == null) {
15920
        sb.append("null");
15921
      } else {
15922
        sb.append(this.hse);
15923
      }
15924
      first = false;
15925
      sb.append(")");
15926
      return sb.toString();
15927
    }
15928
 
3430 rajveer 15929
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15930
      // check for required fields
15931
    }
15932
 
3430 rajveer 15933
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15934
      try {
15935
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15936
      } catch (org.apache.thrift.TException te) {
15937
        throw new java.io.IOException(te);
15938
      }
15939
    }
15940
 
15941
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15942
      try {
15943
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15944
      } catch (org.apache.thrift.TException te) {
15945
        throw new java.io.IOException(te);
15946
      }
15947
    }
15948
 
2024 ankur.sing 15949
  }
15950
 
4544 varun.gupt 15951
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
15952
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
15953
 
15954
    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);
15955
    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);
15956
 
15957
    private List<Long> entityIds; // required
15958
    private String email; // required
15959
 
15960
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
15961
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
15962
      ENTITY_IDS((short)1, "entityIds"),
15963
      EMAIL((short)2, "email");
15964
 
15965
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15966
 
15967
      static {
15968
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15969
          byName.put(field.getFieldName(), field);
15970
        }
15971
      }
15972
 
15973
      /**
15974
       * Find the _Fields constant that matches fieldId, or null if its not found.
15975
       */
15976
      public static _Fields findByThriftId(int fieldId) {
15977
        switch(fieldId) {
15978
          case 1: // ENTITY_IDS
15979
            return ENTITY_IDS;
15980
          case 2: // EMAIL
15981
            return EMAIL;
15982
          default:
15983
            return null;
15984
        }
15985
      }
15986
 
15987
      /**
15988
       * Find the _Fields constant that matches fieldId, throwing an exception
15989
       * if it is not found.
15990
       */
15991
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15992
        _Fields fields = findByThriftId(fieldId);
15993
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15994
        return fields;
15995
      }
15996
 
15997
      /**
15998
       * Find the _Fields constant that matches name, or null if its not found.
15999
       */
16000
      public static _Fields findByName(String name) {
16001
        return byName.get(name);
16002
      }
16003
 
16004
      private final short _thriftId;
16005
      private final String _fieldName;
16006
 
16007
      _Fields(short thriftId, String fieldName) {
16008
        _thriftId = thriftId;
16009
        _fieldName = fieldName;
16010
      }
16011
 
16012
      public short getThriftFieldId() {
16013
        return _thriftId;
16014
      }
16015
 
16016
      public String getFieldName() {
16017
        return _fieldName;
16018
      }
16019
    }
16020
 
16021
    // isset id assignments
16022
 
16023
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16024
    static {
16025
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16026
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16027
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16028
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16029
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16033
    }
16034
 
16035
    public shareEntities_args() {
16036
    }
16037
 
16038
    public shareEntities_args(
16039
      List<Long> entityIds,
16040
      String email)
16041
    {
16042
      this();
16043
      this.entityIds = entityIds;
16044
      this.email = email;
16045
    }
16046
 
16047
    /**
16048
     * Performs a deep copy on <i>other</i>.
16049
     */
16050
    public shareEntities_args(shareEntities_args other) {
16051
      if (other.isSetEntityIds()) {
16052
        List<Long> __this__entityIds = new ArrayList<Long>();
16053
        for (Long other_element : other.entityIds) {
16054
          __this__entityIds.add(other_element);
16055
        }
16056
        this.entityIds = __this__entityIds;
16057
      }
16058
      if (other.isSetEmail()) {
16059
        this.email = other.email;
16060
      }
16061
    }
16062
 
16063
    public shareEntities_args deepCopy() {
16064
      return new shareEntities_args(this);
16065
    }
16066
 
16067
    @Override
16068
    public void clear() {
16069
      this.entityIds = null;
16070
      this.email = null;
16071
    }
16072
 
16073
    public int getEntityIdsSize() {
16074
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16075
    }
16076
 
16077
    public java.util.Iterator<Long> getEntityIdsIterator() {
16078
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16079
    }
16080
 
16081
    public void addToEntityIds(long elem) {
16082
      if (this.entityIds == null) {
16083
        this.entityIds = new ArrayList<Long>();
16084
      }
16085
      this.entityIds.add(elem);
16086
    }
16087
 
16088
    public List<Long> getEntityIds() {
16089
      return this.entityIds;
16090
    }
16091
 
16092
    public void setEntityIds(List<Long> entityIds) {
16093
      this.entityIds = entityIds;
16094
    }
16095
 
16096
    public void unsetEntityIds() {
16097
      this.entityIds = null;
16098
    }
16099
 
16100
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16101
    public boolean isSetEntityIds() {
16102
      return this.entityIds != null;
16103
    }
16104
 
16105
    public void setEntityIdsIsSet(boolean value) {
16106
      if (!value) {
16107
        this.entityIds = null;
16108
      }
16109
    }
16110
 
16111
    public String getEmail() {
16112
      return this.email;
16113
    }
16114
 
16115
    public void setEmail(String email) {
16116
      this.email = email;
16117
    }
16118
 
16119
    public void unsetEmail() {
16120
      this.email = null;
16121
    }
16122
 
16123
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16124
    public boolean isSetEmail() {
16125
      return this.email != null;
16126
    }
16127
 
16128
    public void setEmailIsSet(boolean value) {
16129
      if (!value) {
16130
        this.email = null;
16131
      }
16132
    }
16133
 
16134
    public void setFieldValue(_Fields field, Object value) {
16135
      switch (field) {
16136
      case ENTITY_IDS:
16137
        if (value == null) {
16138
          unsetEntityIds();
16139
        } else {
16140
          setEntityIds((List<Long>)value);
16141
        }
16142
        break;
16143
 
16144
      case EMAIL:
16145
        if (value == null) {
16146
          unsetEmail();
16147
        } else {
16148
          setEmail((String)value);
16149
        }
16150
        break;
16151
 
16152
      }
16153
    }
16154
 
16155
    public Object getFieldValue(_Fields field) {
16156
      switch (field) {
16157
      case ENTITY_IDS:
16158
        return getEntityIds();
16159
 
16160
      case EMAIL:
16161
        return getEmail();
16162
 
16163
      }
16164
      throw new IllegalStateException();
16165
    }
16166
 
16167
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16168
    public boolean isSet(_Fields field) {
16169
      if (field == null) {
16170
        throw new IllegalArgumentException();
16171
      }
16172
 
16173
      switch (field) {
16174
      case ENTITY_IDS:
16175
        return isSetEntityIds();
16176
      case EMAIL:
16177
        return isSetEmail();
16178
      }
16179
      throw new IllegalStateException();
16180
    }
16181
 
16182
    @Override
16183
    public boolean equals(Object that) {
16184
      if (that == null)
16185
        return false;
16186
      if (that instanceof shareEntities_args)
16187
        return this.equals((shareEntities_args)that);
16188
      return false;
16189
    }
16190
 
16191
    public boolean equals(shareEntities_args that) {
16192
      if (that == null)
16193
        return false;
16194
 
16195
      boolean this_present_entityIds = true && this.isSetEntityIds();
16196
      boolean that_present_entityIds = true && that.isSetEntityIds();
16197
      if (this_present_entityIds || that_present_entityIds) {
16198
        if (!(this_present_entityIds && that_present_entityIds))
16199
          return false;
16200
        if (!this.entityIds.equals(that.entityIds))
16201
          return false;
16202
      }
16203
 
16204
      boolean this_present_email = true && this.isSetEmail();
16205
      boolean that_present_email = true && that.isSetEmail();
16206
      if (this_present_email || that_present_email) {
16207
        if (!(this_present_email && that_present_email))
16208
          return false;
16209
        if (!this.email.equals(that.email))
16210
          return false;
16211
      }
16212
 
16213
      return true;
16214
    }
16215
 
16216
    @Override
16217
    public int hashCode() {
16218
      return 0;
16219
    }
16220
 
16221
    public int compareTo(shareEntities_args other) {
16222
      if (!getClass().equals(other.getClass())) {
16223
        return getClass().getName().compareTo(other.getClass().getName());
16224
      }
16225
 
16226
      int lastComparison = 0;
16227
      shareEntities_args typedOther = (shareEntities_args)other;
16228
 
16229
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16230
      if (lastComparison != 0) {
16231
        return lastComparison;
16232
      }
16233
      if (isSetEntityIds()) {
16234
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16235
        if (lastComparison != 0) {
16236
          return lastComparison;
16237
        }
16238
      }
16239
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16240
      if (lastComparison != 0) {
16241
        return lastComparison;
16242
      }
16243
      if (isSetEmail()) {
16244
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16245
        if (lastComparison != 0) {
16246
          return lastComparison;
16247
        }
16248
      }
16249
      return 0;
16250
    }
16251
 
16252
    public _Fields fieldForId(int fieldId) {
16253
      return _Fields.findByThriftId(fieldId);
16254
    }
16255
 
16256
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16257
      org.apache.thrift.protocol.TField field;
16258
      iprot.readStructBegin();
16259
      while (true)
16260
      {
16261
        field = iprot.readFieldBegin();
16262
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16263
          break;
16264
        }
16265
        switch (field.id) {
16266
          case 1: // ENTITY_IDS
16267
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16268
              {
5864 rajveer 16269
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16270
                this.entityIds = new ArrayList<Long>(_list45.size);
16271
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16272
                {
5864 rajveer 16273
                  long _elem47; // required
16274
                  _elem47 = iprot.readI64();
16275
                  this.entityIds.add(_elem47);
4544 varun.gupt 16276
                }
16277
                iprot.readListEnd();
16278
              }
16279
            } else { 
16280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16281
            }
16282
            break;
16283
          case 2: // EMAIL
16284
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16285
              this.email = iprot.readString();
16286
            } else { 
16287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16288
            }
16289
            break;
16290
          default:
16291
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16292
        }
16293
        iprot.readFieldEnd();
16294
      }
16295
      iprot.readStructEnd();
16296
      validate();
16297
    }
16298
 
16299
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16300
      validate();
16301
 
16302
      oprot.writeStructBegin(STRUCT_DESC);
16303
      if (this.entityIds != null) {
16304
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16305
        {
16306
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16307
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16308
          {
5864 rajveer 16309
            oprot.writeI64(_iter48);
4544 varun.gupt 16310
          }
16311
          oprot.writeListEnd();
16312
        }
16313
        oprot.writeFieldEnd();
16314
      }
16315
      if (this.email != null) {
16316
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16317
        oprot.writeString(this.email);
16318
        oprot.writeFieldEnd();
16319
      }
16320
      oprot.writeFieldStop();
16321
      oprot.writeStructEnd();
16322
    }
16323
 
16324
    @Override
16325
    public String toString() {
16326
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16327
      boolean first = true;
16328
 
16329
      sb.append("entityIds:");
16330
      if (this.entityIds == null) {
16331
        sb.append("null");
16332
      } else {
16333
        sb.append(this.entityIds);
16334
      }
16335
      first = false;
16336
      if (!first) sb.append(", ");
16337
      sb.append("email:");
16338
      if (this.email == null) {
16339
        sb.append("null");
16340
      } else {
16341
        sb.append(this.email);
16342
      }
16343
      first = false;
16344
      sb.append(")");
16345
      return sb.toString();
16346
    }
16347
 
16348
    public void validate() throws org.apache.thrift.TException {
16349
      // check for required fields
16350
    }
16351
 
16352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16353
      try {
16354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16355
      } catch (org.apache.thrift.TException te) {
16356
        throw new java.io.IOException(te);
16357
      }
16358
    }
16359
 
16360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16361
      try {
16362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16363
      } catch (org.apache.thrift.TException te) {
16364
        throw new java.io.IOException(te);
16365
      }
16366
    }
16367
 
16368
  }
16369
 
16370
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16372
 
16373
    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);
16374
 
16375
    private HelperServiceException hse; // required
16376
 
16377
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16378
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16379
      HSE((short)1, "hse");
16380
 
16381
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16382
 
16383
      static {
16384
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16385
          byName.put(field.getFieldName(), field);
16386
        }
16387
      }
16388
 
16389
      /**
16390
       * Find the _Fields constant that matches fieldId, or null if its not found.
16391
       */
16392
      public static _Fields findByThriftId(int fieldId) {
16393
        switch(fieldId) {
16394
          case 1: // HSE
16395
            return HSE;
16396
          default:
16397
            return null;
16398
        }
16399
      }
16400
 
16401
      /**
16402
       * Find the _Fields constant that matches fieldId, throwing an exception
16403
       * if it is not found.
16404
       */
16405
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16406
        _Fields fields = findByThriftId(fieldId);
16407
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16408
        return fields;
16409
      }
16410
 
16411
      /**
16412
       * Find the _Fields constant that matches name, or null if its not found.
16413
       */
16414
      public static _Fields findByName(String name) {
16415
        return byName.get(name);
16416
      }
16417
 
16418
      private final short _thriftId;
16419
      private final String _fieldName;
16420
 
16421
      _Fields(short thriftId, String fieldName) {
16422
        _thriftId = thriftId;
16423
        _fieldName = fieldName;
16424
      }
16425
 
16426
      public short getThriftFieldId() {
16427
        return _thriftId;
16428
      }
16429
 
16430
      public String getFieldName() {
16431
        return _fieldName;
16432
      }
16433
    }
16434
 
16435
    // isset id assignments
16436
 
16437
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16438
    static {
16439
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16440
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16441
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16442
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16443
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16444
    }
16445
 
16446
    public shareEntities_result() {
16447
    }
16448
 
16449
    public shareEntities_result(
16450
      HelperServiceException hse)
16451
    {
16452
      this();
16453
      this.hse = hse;
16454
    }
16455
 
16456
    /**
16457
     * Performs a deep copy on <i>other</i>.
16458
     */
16459
    public shareEntities_result(shareEntities_result other) {
16460
      if (other.isSetHse()) {
16461
        this.hse = new HelperServiceException(other.hse);
16462
      }
16463
    }
16464
 
16465
    public shareEntities_result deepCopy() {
16466
      return new shareEntities_result(this);
16467
    }
16468
 
16469
    @Override
16470
    public void clear() {
16471
      this.hse = null;
16472
    }
16473
 
16474
    public HelperServiceException getHse() {
16475
      return this.hse;
16476
    }
16477
 
16478
    public void setHse(HelperServiceException hse) {
16479
      this.hse = hse;
16480
    }
16481
 
16482
    public void unsetHse() {
16483
      this.hse = null;
16484
    }
16485
 
16486
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16487
    public boolean isSetHse() {
16488
      return this.hse != null;
16489
    }
16490
 
16491
    public void setHseIsSet(boolean value) {
16492
      if (!value) {
16493
        this.hse = null;
16494
      }
16495
    }
16496
 
16497
    public void setFieldValue(_Fields field, Object value) {
16498
      switch (field) {
16499
      case HSE:
16500
        if (value == null) {
16501
          unsetHse();
16502
        } else {
16503
          setHse((HelperServiceException)value);
16504
        }
16505
        break;
16506
 
16507
      }
16508
    }
16509
 
16510
    public Object getFieldValue(_Fields field) {
16511
      switch (field) {
16512
      case HSE:
16513
        return getHse();
16514
 
16515
      }
16516
      throw new IllegalStateException();
16517
    }
16518
 
16519
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16520
    public boolean isSet(_Fields field) {
16521
      if (field == null) {
16522
        throw new IllegalArgumentException();
16523
      }
16524
 
16525
      switch (field) {
16526
      case HSE:
16527
        return isSetHse();
16528
      }
16529
      throw new IllegalStateException();
16530
    }
16531
 
16532
    @Override
16533
    public boolean equals(Object that) {
16534
      if (that == null)
16535
        return false;
16536
      if (that instanceof shareEntities_result)
16537
        return this.equals((shareEntities_result)that);
16538
      return false;
16539
    }
16540
 
16541
    public boolean equals(shareEntities_result that) {
16542
      if (that == null)
16543
        return false;
16544
 
16545
      boolean this_present_hse = true && this.isSetHse();
16546
      boolean that_present_hse = true && that.isSetHse();
16547
      if (this_present_hse || that_present_hse) {
16548
        if (!(this_present_hse && that_present_hse))
16549
          return false;
16550
        if (!this.hse.equals(that.hse))
16551
          return false;
16552
      }
16553
 
16554
      return true;
16555
    }
16556
 
16557
    @Override
16558
    public int hashCode() {
16559
      return 0;
16560
    }
16561
 
16562
    public int compareTo(shareEntities_result other) {
16563
      if (!getClass().equals(other.getClass())) {
16564
        return getClass().getName().compareTo(other.getClass().getName());
16565
      }
16566
 
16567
      int lastComparison = 0;
16568
      shareEntities_result typedOther = (shareEntities_result)other;
16569
 
16570
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16571
      if (lastComparison != 0) {
16572
        return lastComparison;
16573
      }
16574
      if (isSetHse()) {
16575
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16576
        if (lastComparison != 0) {
16577
          return lastComparison;
16578
        }
16579
      }
16580
      return 0;
16581
    }
16582
 
16583
    public _Fields fieldForId(int fieldId) {
16584
      return _Fields.findByThriftId(fieldId);
16585
    }
16586
 
16587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16588
      org.apache.thrift.protocol.TField field;
16589
      iprot.readStructBegin();
16590
      while (true)
16591
      {
16592
        field = iprot.readFieldBegin();
16593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16594
          break;
16595
        }
16596
        switch (field.id) {
16597
          case 1: // HSE
16598
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16599
              this.hse = new HelperServiceException();
16600
              this.hse.read(iprot);
16601
            } else { 
16602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16603
            }
16604
            break;
16605
          default:
16606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16607
        }
16608
        iprot.readFieldEnd();
16609
      }
16610
      iprot.readStructEnd();
16611
      validate();
16612
    }
16613
 
16614
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16615
      oprot.writeStructBegin(STRUCT_DESC);
16616
 
16617
      if (this.isSetHse()) {
16618
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16619
        this.hse.write(oprot);
16620
        oprot.writeFieldEnd();
16621
      }
16622
      oprot.writeFieldStop();
16623
      oprot.writeStructEnd();
16624
    }
16625
 
16626
    @Override
16627
    public String toString() {
16628
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16629
      boolean first = true;
16630
 
16631
      sb.append("hse:");
16632
      if (this.hse == null) {
16633
        sb.append("null");
16634
      } else {
16635
        sb.append(this.hse);
16636
      }
16637
      first = false;
16638
      sb.append(")");
16639
      return sb.toString();
16640
    }
16641
 
16642
    public void validate() throws org.apache.thrift.TException {
16643
      // check for required fields
16644
    }
16645
 
16646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16647
      try {
16648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16649
      } catch (org.apache.thrift.TException te) {
16650
        throw new java.io.IOException(te);
16651
      }
16652
    }
16653
 
16654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16655
      try {
16656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16657
      } catch (org.apache.thrift.TException te) {
16658
        throw new java.io.IOException(te);
16659
      }
16660
    }
16661
 
16662
  }
16663
 
4693 mandeep.dh 16664
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16666
 
16667
 
16668
 
16669
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16670
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16671
;
16672
 
16673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16674
 
16675
      static {
16676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16677
          byName.put(field.getFieldName(), field);
16678
        }
16679
      }
16680
 
16681
      /**
16682
       * Find the _Fields constant that matches fieldId, or null if its not found.
16683
       */
16684
      public static _Fields findByThriftId(int fieldId) {
16685
        switch(fieldId) {
16686
          default:
16687
            return null;
16688
        }
16689
      }
16690
 
16691
      /**
16692
       * Find the _Fields constant that matches fieldId, throwing an exception
16693
       * if it is not found.
16694
       */
16695
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16696
        _Fields fields = findByThriftId(fieldId);
16697
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16698
        return fields;
16699
      }
16700
 
16701
      /**
16702
       * Find the _Fields constant that matches name, or null if its not found.
16703
       */
16704
      public static _Fields findByName(String name) {
16705
        return byName.get(name);
16706
      }
16707
 
16708
      private final short _thriftId;
16709
      private final String _fieldName;
16710
 
16711
      _Fields(short thriftId, String fieldName) {
16712
        _thriftId = thriftId;
16713
        _fieldName = fieldName;
16714
      }
16715
 
16716
      public short getThriftFieldId() {
16717
        return _thriftId;
16718
      }
16719
 
16720
      public String getFieldName() {
16721
        return _fieldName;
16722
      }
16723
    }
16724
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16725
    static {
16726
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16727
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16728
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16729
    }
16730
 
16731
    public getAgents_args() {
16732
    }
16733
 
16734
    /**
16735
     * Performs a deep copy on <i>other</i>.
16736
     */
16737
    public getAgents_args(getAgents_args other) {
16738
    }
16739
 
16740
    public getAgents_args deepCopy() {
16741
      return new getAgents_args(this);
16742
    }
16743
 
16744
    @Override
16745
    public void clear() {
16746
    }
16747
 
16748
    public void setFieldValue(_Fields field, Object value) {
16749
      switch (field) {
16750
      }
16751
    }
16752
 
16753
    public Object getFieldValue(_Fields field) {
16754
      switch (field) {
16755
      }
16756
      throw new IllegalStateException();
16757
    }
16758
 
16759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16760
    public boolean isSet(_Fields field) {
16761
      if (field == null) {
16762
        throw new IllegalArgumentException();
16763
      }
16764
 
16765
      switch (field) {
16766
      }
16767
      throw new IllegalStateException();
16768
    }
16769
 
16770
    @Override
16771
    public boolean equals(Object that) {
16772
      if (that == null)
16773
        return false;
16774
      if (that instanceof getAgents_args)
16775
        return this.equals((getAgents_args)that);
16776
      return false;
16777
    }
16778
 
16779
    public boolean equals(getAgents_args that) {
16780
      if (that == null)
16781
        return false;
16782
 
16783
      return true;
16784
    }
16785
 
16786
    @Override
16787
    public int hashCode() {
16788
      return 0;
16789
    }
16790
 
16791
    public int compareTo(getAgents_args other) {
16792
      if (!getClass().equals(other.getClass())) {
16793
        return getClass().getName().compareTo(other.getClass().getName());
16794
      }
16795
 
16796
      int lastComparison = 0;
16797
      getAgents_args typedOther = (getAgents_args)other;
16798
 
16799
      return 0;
16800
    }
16801
 
16802
    public _Fields fieldForId(int fieldId) {
16803
      return _Fields.findByThriftId(fieldId);
16804
    }
16805
 
16806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16807
      org.apache.thrift.protocol.TField field;
16808
      iprot.readStructBegin();
16809
      while (true)
16810
      {
16811
        field = iprot.readFieldBegin();
16812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16813
          break;
16814
        }
16815
        switch (field.id) {
16816
          default:
16817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16818
        }
16819
        iprot.readFieldEnd();
16820
      }
16821
      iprot.readStructEnd();
16822
      validate();
16823
    }
16824
 
16825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16826
      validate();
16827
 
16828
      oprot.writeStructBegin(STRUCT_DESC);
16829
      oprot.writeFieldStop();
16830
      oprot.writeStructEnd();
16831
    }
16832
 
16833
    @Override
16834
    public String toString() {
16835
      StringBuilder sb = new StringBuilder("getAgents_args(");
16836
      boolean first = true;
16837
 
16838
      sb.append(")");
16839
      return sb.toString();
16840
    }
16841
 
16842
    public void validate() throws org.apache.thrift.TException {
16843
      // check for required fields
16844
    }
16845
 
16846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16847
      try {
16848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16849
      } catch (org.apache.thrift.TException te) {
16850
        throw new java.io.IOException(te);
16851
      }
16852
    }
16853
 
16854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16855
      try {
16856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16857
      } catch (org.apache.thrift.TException te) {
16858
        throw new java.io.IOException(te);
16859
      }
16860
    }
16861
 
16862
  }
16863
 
16864
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16866
 
16867
    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);
16868
 
16869
    private List<Agent> success; // required
16870
 
16871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16873
      SUCCESS((short)0, "success");
16874
 
16875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16876
 
16877
      static {
16878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16879
          byName.put(field.getFieldName(), field);
16880
        }
16881
      }
16882
 
16883
      /**
16884
       * Find the _Fields constant that matches fieldId, or null if its not found.
16885
       */
16886
      public static _Fields findByThriftId(int fieldId) {
16887
        switch(fieldId) {
16888
          case 0: // SUCCESS
16889
            return SUCCESS;
16890
          default:
16891
            return null;
16892
        }
16893
      }
16894
 
16895
      /**
16896
       * Find the _Fields constant that matches fieldId, throwing an exception
16897
       * if it is not found.
16898
       */
16899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16900
        _Fields fields = findByThriftId(fieldId);
16901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16902
        return fields;
16903
      }
16904
 
16905
      /**
16906
       * Find the _Fields constant that matches name, or null if its not found.
16907
       */
16908
      public static _Fields findByName(String name) {
16909
        return byName.get(name);
16910
      }
16911
 
16912
      private final short _thriftId;
16913
      private final String _fieldName;
16914
 
16915
      _Fields(short thriftId, String fieldName) {
16916
        _thriftId = thriftId;
16917
        _fieldName = fieldName;
16918
      }
16919
 
16920
      public short getThriftFieldId() {
16921
        return _thriftId;
16922
      }
16923
 
16924
      public String getFieldName() {
16925
        return _fieldName;
16926
      }
16927
    }
16928
 
16929
    // isset id assignments
16930
 
16931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16932
    static {
16933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16934
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16935
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16936
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
16937
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16938
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
16939
    }
16940
 
16941
    public getAgents_result() {
16942
    }
16943
 
16944
    public getAgents_result(
16945
      List<Agent> success)
16946
    {
16947
      this();
16948
      this.success = success;
16949
    }
16950
 
16951
    /**
16952
     * Performs a deep copy on <i>other</i>.
16953
     */
16954
    public getAgents_result(getAgents_result other) {
16955
      if (other.isSetSuccess()) {
16956
        List<Agent> __this__success = new ArrayList<Agent>();
16957
        for (Agent other_element : other.success) {
16958
          __this__success.add(new Agent(other_element));
16959
        }
16960
        this.success = __this__success;
16961
      }
16962
    }
16963
 
16964
    public getAgents_result deepCopy() {
16965
      return new getAgents_result(this);
16966
    }
16967
 
16968
    @Override
16969
    public void clear() {
16970
      this.success = null;
16971
    }
16972
 
16973
    public int getSuccessSize() {
16974
      return (this.success == null) ? 0 : this.success.size();
16975
    }
16976
 
16977
    public java.util.Iterator<Agent> getSuccessIterator() {
16978
      return (this.success == null) ? null : this.success.iterator();
16979
    }
16980
 
16981
    public void addToSuccess(Agent elem) {
16982
      if (this.success == null) {
16983
        this.success = new ArrayList<Agent>();
16984
      }
16985
      this.success.add(elem);
16986
    }
16987
 
16988
    public List<Agent> getSuccess() {
16989
      return this.success;
16990
    }
16991
 
16992
    public void setSuccess(List<Agent> success) {
16993
      this.success = success;
16994
    }
16995
 
16996
    public void unsetSuccess() {
16997
      this.success = null;
16998
    }
16999
 
17000
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17001
    public boolean isSetSuccess() {
17002
      return this.success != null;
17003
    }
17004
 
17005
    public void setSuccessIsSet(boolean value) {
17006
      if (!value) {
17007
        this.success = null;
17008
      }
17009
    }
17010
 
17011
    public void setFieldValue(_Fields field, Object value) {
17012
      switch (field) {
17013
      case SUCCESS:
17014
        if (value == null) {
17015
          unsetSuccess();
17016
        } else {
17017
          setSuccess((List<Agent>)value);
17018
        }
17019
        break;
17020
 
17021
      }
17022
    }
17023
 
17024
    public Object getFieldValue(_Fields field) {
17025
      switch (field) {
17026
      case SUCCESS:
17027
        return getSuccess();
17028
 
17029
      }
17030
      throw new IllegalStateException();
17031
    }
17032
 
17033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17034
    public boolean isSet(_Fields field) {
17035
      if (field == null) {
17036
        throw new IllegalArgumentException();
17037
      }
17038
 
17039
      switch (field) {
17040
      case SUCCESS:
17041
        return isSetSuccess();
17042
      }
17043
      throw new IllegalStateException();
17044
    }
17045
 
17046
    @Override
17047
    public boolean equals(Object that) {
17048
      if (that == null)
17049
        return false;
17050
      if (that instanceof getAgents_result)
17051
        return this.equals((getAgents_result)that);
17052
      return false;
17053
    }
17054
 
17055
    public boolean equals(getAgents_result that) {
17056
      if (that == null)
17057
        return false;
17058
 
17059
      boolean this_present_success = true && this.isSetSuccess();
17060
      boolean that_present_success = true && that.isSetSuccess();
17061
      if (this_present_success || that_present_success) {
17062
        if (!(this_present_success && that_present_success))
17063
          return false;
17064
        if (!this.success.equals(that.success))
17065
          return false;
17066
      }
17067
 
17068
      return true;
17069
    }
17070
 
17071
    @Override
17072
    public int hashCode() {
17073
      return 0;
17074
    }
17075
 
17076
    public int compareTo(getAgents_result other) {
17077
      if (!getClass().equals(other.getClass())) {
17078
        return getClass().getName().compareTo(other.getClass().getName());
17079
      }
17080
 
17081
      int lastComparison = 0;
17082
      getAgents_result typedOther = (getAgents_result)other;
17083
 
17084
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17085
      if (lastComparison != 0) {
17086
        return lastComparison;
17087
      }
17088
      if (isSetSuccess()) {
17089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17090
        if (lastComparison != 0) {
17091
          return lastComparison;
17092
        }
17093
      }
17094
      return 0;
17095
    }
17096
 
17097
    public _Fields fieldForId(int fieldId) {
17098
      return _Fields.findByThriftId(fieldId);
17099
    }
17100
 
17101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17102
      org.apache.thrift.protocol.TField field;
17103
      iprot.readStructBegin();
17104
      while (true)
17105
      {
17106
        field = iprot.readFieldBegin();
17107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17108
          break;
17109
        }
17110
        switch (field.id) {
17111
          case 0: // SUCCESS
17112
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17113
              {
5864 rajveer 17114
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17115
                this.success = new ArrayList<Agent>(_list49.size);
17116
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17117
                {
5864 rajveer 17118
                  Agent _elem51; // required
17119
                  _elem51 = new Agent();
17120
                  _elem51.read(iprot);
17121
                  this.success.add(_elem51);
4693 mandeep.dh 17122
                }
17123
                iprot.readListEnd();
17124
              }
17125
            } else { 
17126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17127
            }
17128
            break;
17129
          default:
17130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17131
        }
17132
        iprot.readFieldEnd();
17133
      }
17134
      iprot.readStructEnd();
17135
      validate();
17136
    }
17137
 
17138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17139
      oprot.writeStructBegin(STRUCT_DESC);
17140
 
17141
      if (this.isSetSuccess()) {
17142
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17143
        {
17144
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17145
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17146
          {
5864 rajveer 17147
            _iter52.write(oprot);
4693 mandeep.dh 17148
          }
17149
          oprot.writeListEnd();
17150
        }
17151
        oprot.writeFieldEnd();
17152
      }
17153
      oprot.writeFieldStop();
17154
      oprot.writeStructEnd();
17155
    }
17156
 
17157
    @Override
17158
    public String toString() {
17159
      StringBuilder sb = new StringBuilder("getAgents_result(");
17160
      boolean first = true;
17161
 
17162
      sb.append("success:");
17163
      if (this.success == null) {
17164
        sb.append("null");
17165
      } else {
17166
        sb.append(this.success);
17167
      }
17168
      first = false;
17169
      sb.append(")");
17170
      return sb.toString();
17171
    }
17172
 
17173
    public void validate() throws org.apache.thrift.TException {
17174
      // check for required fields
17175
    }
17176
 
17177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17178
      try {
17179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17180
      } catch (org.apache.thrift.TException te) {
17181
        throw new java.io.IOException(te);
17182
      }
17183
    }
17184
 
17185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17186
      try {
17187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17188
      } catch (org.apache.thrift.TException te) {
17189
        throw new java.io.IOException(te);
17190
      }
17191
    }
17192
 
17193
  }
17194
 
17195
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17197
 
17198
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)1);
17199
    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);
17200
 
17201
    private String emailId; // required
17202
    private String password; // required
17203
 
17204
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17205
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17206
      EMAIL_ID((short)1, "emailId"),
17207
      PASSWORD((short)2, "password");
17208
 
17209
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17210
 
17211
      static {
17212
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17213
          byName.put(field.getFieldName(), field);
17214
        }
17215
      }
17216
 
17217
      /**
17218
       * Find the _Fields constant that matches fieldId, or null if its not found.
17219
       */
17220
      public static _Fields findByThriftId(int fieldId) {
17221
        switch(fieldId) {
17222
          case 1: // EMAIL_ID
17223
            return EMAIL_ID;
17224
          case 2: // PASSWORD
17225
            return PASSWORD;
17226
          default:
17227
            return null;
17228
        }
17229
      }
17230
 
17231
      /**
17232
       * Find the _Fields constant that matches fieldId, throwing an exception
17233
       * if it is not found.
17234
       */
17235
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17236
        _Fields fields = findByThriftId(fieldId);
17237
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17238
        return fields;
17239
      }
17240
 
17241
      /**
17242
       * Find the _Fields constant that matches name, or null if its not found.
17243
       */
17244
      public static _Fields findByName(String name) {
17245
        return byName.get(name);
17246
      }
17247
 
17248
      private final short _thriftId;
17249
      private final String _fieldName;
17250
 
17251
      _Fields(short thriftId, String fieldName) {
17252
        _thriftId = thriftId;
17253
        _fieldName = fieldName;
17254
      }
17255
 
17256
      public short getThriftFieldId() {
17257
        return _thriftId;
17258
      }
17259
 
17260
      public String getFieldName() {
17261
        return _fieldName;
17262
      }
17263
    }
17264
 
17265
    // isset id assignments
17266
 
17267
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17268
    static {
17269
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17270
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17272
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17276
    }
17277
 
17278
    public validateLogIn_args() {
17279
    }
17280
 
17281
    public validateLogIn_args(
17282
      String emailId,
17283
      String password)
17284
    {
17285
      this();
17286
      this.emailId = emailId;
17287
      this.password = password;
17288
    }
17289
 
17290
    /**
17291
     * Performs a deep copy on <i>other</i>.
17292
     */
17293
    public validateLogIn_args(validateLogIn_args other) {
17294
      if (other.isSetEmailId()) {
17295
        this.emailId = other.emailId;
17296
      }
17297
      if (other.isSetPassword()) {
17298
        this.password = other.password;
17299
      }
17300
    }
17301
 
17302
    public validateLogIn_args deepCopy() {
17303
      return new validateLogIn_args(this);
17304
    }
17305
 
17306
    @Override
17307
    public void clear() {
17308
      this.emailId = null;
17309
      this.password = null;
17310
    }
17311
 
17312
    public String getEmailId() {
17313
      return this.emailId;
17314
    }
17315
 
17316
    public void setEmailId(String emailId) {
17317
      this.emailId = emailId;
17318
    }
17319
 
17320
    public void unsetEmailId() {
17321
      this.emailId = null;
17322
    }
17323
 
17324
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17325
    public boolean isSetEmailId() {
17326
      return this.emailId != null;
17327
    }
17328
 
17329
    public void setEmailIdIsSet(boolean value) {
17330
      if (!value) {
17331
        this.emailId = null;
17332
      }
17333
    }
17334
 
17335
    public String getPassword() {
17336
      return this.password;
17337
    }
17338
 
17339
    public void setPassword(String password) {
17340
      this.password = password;
17341
    }
17342
 
17343
    public void unsetPassword() {
17344
      this.password = null;
17345
    }
17346
 
17347
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17348
    public boolean isSetPassword() {
17349
      return this.password != null;
17350
    }
17351
 
17352
    public void setPasswordIsSet(boolean value) {
17353
      if (!value) {
17354
        this.password = null;
17355
      }
17356
    }
17357
 
17358
    public void setFieldValue(_Fields field, Object value) {
17359
      switch (field) {
17360
      case EMAIL_ID:
17361
        if (value == null) {
17362
          unsetEmailId();
17363
        } else {
17364
          setEmailId((String)value);
17365
        }
17366
        break;
17367
 
17368
      case PASSWORD:
17369
        if (value == null) {
17370
          unsetPassword();
17371
        } else {
17372
          setPassword((String)value);
17373
        }
17374
        break;
17375
 
17376
      }
17377
    }
17378
 
17379
    public Object getFieldValue(_Fields field) {
17380
      switch (field) {
17381
      case EMAIL_ID:
17382
        return getEmailId();
17383
 
17384
      case PASSWORD:
17385
        return getPassword();
17386
 
17387
      }
17388
      throw new IllegalStateException();
17389
    }
17390
 
17391
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17392
    public boolean isSet(_Fields field) {
17393
      if (field == null) {
17394
        throw new IllegalArgumentException();
17395
      }
17396
 
17397
      switch (field) {
17398
      case EMAIL_ID:
17399
        return isSetEmailId();
17400
      case PASSWORD:
17401
        return isSetPassword();
17402
      }
17403
      throw new IllegalStateException();
17404
    }
17405
 
17406
    @Override
17407
    public boolean equals(Object that) {
17408
      if (that == null)
17409
        return false;
17410
      if (that instanceof validateLogIn_args)
17411
        return this.equals((validateLogIn_args)that);
17412
      return false;
17413
    }
17414
 
17415
    public boolean equals(validateLogIn_args that) {
17416
      if (that == null)
17417
        return false;
17418
 
17419
      boolean this_present_emailId = true && this.isSetEmailId();
17420
      boolean that_present_emailId = true && that.isSetEmailId();
17421
      if (this_present_emailId || that_present_emailId) {
17422
        if (!(this_present_emailId && that_present_emailId))
17423
          return false;
17424
        if (!this.emailId.equals(that.emailId))
17425
          return false;
17426
      }
17427
 
17428
      boolean this_present_password = true && this.isSetPassword();
17429
      boolean that_present_password = true && that.isSetPassword();
17430
      if (this_present_password || that_present_password) {
17431
        if (!(this_present_password && that_present_password))
17432
          return false;
17433
        if (!this.password.equals(that.password))
17434
          return false;
17435
      }
17436
 
17437
      return true;
17438
    }
17439
 
17440
    @Override
17441
    public int hashCode() {
17442
      return 0;
17443
    }
17444
 
17445
    public int compareTo(validateLogIn_args other) {
17446
      if (!getClass().equals(other.getClass())) {
17447
        return getClass().getName().compareTo(other.getClass().getName());
17448
      }
17449
 
17450
      int lastComparison = 0;
17451
      validateLogIn_args typedOther = (validateLogIn_args)other;
17452
 
17453
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17454
      if (lastComparison != 0) {
17455
        return lastComparison;
17456
      }
17457
      if (isSetEmailId()) {
17458
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17459
        if (lastComparison != 0) {
17460
          return lastComparison;
17461
        }
17462
      }
17463
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17464
      if (lastComparison != 0) {
17465
        return lastComparison;
17466
      }
17467
      if (isSetPassword()) {
17468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17469
        if (lastComparison != 0) {
17470
          return lastComparison;
17471
        }
17472
      }
17473
      return 0;
17474
    }
17475
 
17476
    public _Fields fieldForId(int fieldId) {
17477
      return _Fields.findByThriftId(fieldId);
17478
    }
17479
 
17480
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17481
      org.apache.thrift.protocol.TField field;
17482
      iprot.readStructBegin();
17483
      while (true)
17484
      {
17485
        field = iprot.readFieldBegin();
17486
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17487
          break;
17488
        }
17489
        switch (field.id) {
17490
          case 1: // EMAIL_ID
17491
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17492
              this.emailId = iprot.readString();
17493
            } else { 
17494
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17495
            }
17496
            break;
17497
          case 2: // PASSWORD
17498
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17499
              this.password = iprot.readString();
17500
            } else { 
17501
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17502
            }
17503
            break;
17504
          default:
17505
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17506
        }
17507
        iprot.readFieldEnd();
17508
      }
17509
      iprot.readStructEnd();
17510
      validate();
17511
    }
17512
 
17513
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17514
      validate();
17515
 
17516
      oprot.writeStructBegin(STRUCT_DESC);
17517
      if (this.emailId != null) {
17518
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17519
        oprot.writeString(this.emailId);
17520
        oprot.writeFieldEnd();
17521
      }
17522
      if (this.password != null) {
17523
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17524
        oprot.writeString(this.password);
17525
        oprot.writeFieldEnd();
17526
      }
17527
      oprot.writeFieldStop();
17528
      oprot.writeStructEnd();
17529
    }
17530
 
17531
    @Override
17532
    public String toString() {
17533
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17534
      boolean first = true;
17535
 
17536
      sb.append("emailId:");
17537
      if (this.emailId == null) {
17538
        sb.append("null");
17539
      } else {
17540
        sb.append(this.emailId);
17541
      }
17542
      first = false;
17543
      if (!first) sb.append(", ");
17544
      sb.append("password:");
17545
      if (this.password == null) {
17546
        sb.append("null");
17547
      } else {
17548
        sb.append(this.password);
17549
      }
17550
      first = false;
17551
      sb.append(")");
17552
      return sb.toString();
17553
    }
17554
 
17555
    public void validate() throws org.apache.thrift.TException {
17556
      // check for required fields
17557
    }
17558
 
17559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17560
      try {
17561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17562
      } catch (org.apache.thrift.TException te) {
17563
        throw new java.io.IOException(te);
17564
      }
17565
    }
17566
 
17567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17568
      try {
17569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17570
      } catch (org.apache.thrift.TException te) {
17571
        throw new java.io.IOException(te);
17572
      }
17573
    }
17574
 
17575
  }
17576
 
17577
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17579
 
17580
    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);
17581
 
17582
    private boolean success; // required
17583
 
17584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17586
      SUCCESS((short)0, "success");
17587
 
17588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17589
 
17590
      static {
17591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17592
          byName.put(field.getFieldName(), field);
17593
        }
17594
      }
17595
 
17596
      /**
17597
       * Find the _Fields constant that matches fieldId, or null if its not found.
17598
       */
17599
      public static _Fields findByThriftId(int fieldId) {
17600
        switch(fieldId) {
17601
          case 0: // SUCCESS
17602
            return SUCCESS;
17603
          default:
17604
            return null;
17605
        }
17606
      }
17607
 
17608
      /**
17609
       * Find the _Fields constant that matches fieldId, throwing an exception
17610
       * if it is not found.
17611
       */
17612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17613
        _Fields fields = findByThriftId(fieldId);
17614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17615
        return fields;
17616
      }
17617
 
17618
      /**
17619
       * Find the _Fields constant that matches name, or null if its not found.
17620
       */
17621
      public static _Fields findByName(String name) {
17622
        return byName.get(name);
17623
      }
17624
 
17625
      private final short _thriftId;
17626
      private final String _fieldName;
17627
 
17628
      _Fields(short thriftId, String fieldName) {
17629
        _thriftId = thriftId;
17630
        _fieldName = fieldName;
17631
      }
17632
 
17633
      public short getThriftFieldId() {
17634
        return _thriftId;
17635
      }
17636
 
17637
      public String getFieldName() {
17638
        return _fieldName;
17639
      }
17640
    }
17641
 
17642
    // isset id assignments
17643
    private static final int __SUCCESS_ISSET_ID = 0;
17644
    private BitSet __isset_bit_vector = new BitSet(1);
17645
 
17646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17647
    static {
17648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17649
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17653
    }
17654
 
17655
    public validateLogIn_result() {
17656
    }
17657
 
17658
    public validateLogIn_result(
17659
      boolean success)
17660
    {
17661
      this();
17662
      this.success = success;
17663
      setSuccessIsSet(true);
17664
    }
17665
 
17666
    /**
17667
     * Performs a deep copy on <i>other</i>.
17668
     */
17669
    public validateLogIn_result(validateLogIn_result other) {
17670
      __isset_bit_vector.clear();
17671
      __isset_bit_vector.or(other.__isset_bit_vector);
17672
      this.success = other.success;
17673
    }
17674
 
17675
    public validateLogIn_result deepCopy() {
17676
      return new validateLogIn_result(this);
17677
    }
17678
 
17679
    @Override
17680
    public void clear() {
17681
      setSuccessIsSet(false);
17682
      this.success = false;
17683
    }
17684
 
17685
    public boolean isSuccess() {
17686
      return this.success;
17687
    }
17688
 
17689
    public void setSuccess(boolean success) {
17690
      this.success = success;
17691
      setSuccessIsSet(true);
17692
    }
17693
 
17694
    public void unsetSuccess() {
17695
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17696
    }
17697
 
17698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17699
    public boolean isSetSuccess() {
17700
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17701
    }
17702
 
17703
    public void setSuccessIsSet(boolean value) {
17704
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17705
    }
17706
 
17707
    public void setFieldValue(_Fields field, Object value) {
17708
      switch (field) {
17709
      case SUCCESS:
17710
        if (value == null) {
17711
          unsetSuccess();
17712
        } else {
17713
          setSuccess((Boolean)value);
17714
        }
17715
        break;
17716
 
17717
      }
17718
    }
17719
 
17720
    public Object getFieldValue(_Fields field) {
17721
      switch (field) {
17722
      case SUCCESS:
17723
        return Boolean.valueOf(isSuccess());
17724
 
17725
      }
17726
      throw new IllegalStateException();
17727
    }
17728
 
17729
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17730
    public boolean isSet(_Fields field) {
17731
      if (field == null) {
17732
        throw new IllegalArgumentException();
17733
      }
17734
 
17735
      switch (field) {
17736
      case SUCCESS:
17737
        return isSetSuccess();
17738
      }
17739
      throw new IllegalStateException();
17740
    }
17741
 
17742
    @Override
17743
    public boolean equals(Object that) {
17744
      if (that == null)
17745
        return false;
17746
      if (that instanceof validateLogIn_result)
17747
        return this.equals((validateLogIn_result)that);
17748
      return false;
17749
    }
17750
 
17751
    public boolean equals(validateLogIn_result that) {
17752
      if (that == null)
17753
        return false;
17754
 
17755
      boolean this_present_success = true;
17756
      boolean that_present_success = true;
17757
      if (this_present_success || that_present_success) {
17758
        if (!(this_present_success && that_present_success))
17759
          return false;
17760
        if (this.success != that.success)
17761
          return false;
17762
      }
17763
 
17764
      return true;
17765
    }
17766
 
17767
    @Override
17768
    public int hashCode() {
17769
      return 0;
17770
    }
17771
 
17772
    public int compareTo(validateLogIn_result other) {
17773
      if (!getClass().equals(other.getClass())) {
17774
        return getClass().getName().compareTo(other.getClass().getName());
17775
      }
17776
 
17777
      int lastComparison = 0;
17778
      validateLogIn_result typedOther = (validateLogIn_result)other;
17779
 
17780
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17781
      if (lastComparison != 0) {
17782
        return lastComparison;
17783
      }
17784
      if (isSetSuccess()) {
17785
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17786
        if (lastComparison != 0) {
17787
          return lastComparison;
17788
        }
17789
      }
17790
      return 0;
17791
    }
17792
 
17793
    public _Fields fieldForId(int fieldId) {
17794
      return _Fields.findByThriftId(fieldId);
17795
    }
17796
 
17797
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17798
      org.apache.thrift.protocol.TField field;
17799
      iprot.readStructBegin();
17800
      while (true)
17801
      {
17802
        field = iprot.readFieldBegin();
17803
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17804
          break;
17805
        }
17806
        switch (field.id) {
17807
          case 0: // SUCCESS
17808
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17809
              this.success = iprot.readBool();
17810
              setSuccessIsSet(true);
17811
            } else { 
17812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17813
            }
17814
            break;
17815
          default:
17816
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17817
        }
17818
        iprot.readFieldEnd();
17819
      }
17820
      iprot.readStructEnd();
17821
      validate();
17822
    }
17823
 
17824
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17825
      oprot.writeStructBegin(STRUCT_DESC);
17826
 
17827
      if (this.isSetSuccess()) {
17828
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17829
        oprot.writeBool(this.success);
17830
        oprot.writeFieldEnd();
17831
      }
17832
      oprot.writeFieldStop();
17833
      oprot.writeStructEnd();
17834
    }
17835
 
17836
    @Override
17837
    public String toString() {
17838
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17839
      boolean first = true;
17840
 
17841
      sb.append("success:");
17842
      sb.append(this.success);
17843
      first = false;
17844
      sb.append(")");
17845
      return sb.toString();
17846
    }
17847
 
17848
    public void validate() throws org.apache.thrift.TException {
17849
      // check for required fields
17850
    }
17851
 
17852
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17853
      try {
17854
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17855
      } catch (org.apache.thrift.TException te) {
17856
        throw new java.io.IOException(te);
17857
      }
17858
    }
17859
 
17860
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17861
      try {
17862
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17863
      } catch (org.apache.thrift.TException te) {
17864
        throw new java.io.IOException(te);
17865
      }
17866
    }
17867
 
17868
  }
17869
 
17870
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17871
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17872
 
17873
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
17874
    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);
17875
 
17876
    private String agentEmailId; // required
17877
    private String password; // required
17878
 
17879
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17880
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17881
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17882
      PASSWORD((short)2, "password");
17883
 
17884
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17885
 
17886
      static {
17887
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17888
          byName.put(field.getFieldName(), field);
17889
        }
17890
      }
17891
 
17892
      /**
17893
       * Find the _Fields constant that matches fieldId, or null if its not found.
17894
       */
17895
      public static _Fields findByThriftId(int fieldId) {
17896
        switch(fieldId) {
17897
          case 1: // AGENT_EMAIL_ID
17898
            return AGENT_EMAIL_ID;
17899
          case 2: // PASSWORD
17900
            return PASSWORD;
17901
          default:
17902
            return null;
17903
        }
17904
      }
17905
 
17906
      /**
17907
       * Find the _Fields constant that matches fieldId, throwing an exception
17908
       * if it is not found.
17909
       */
17910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17911
        _Fields fields = findByThriftId(fieldId);
17912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17913
        return fields;
17914
      }
17915
 
17916
      /**
17917
       * Find the _Fields constant that matches name, or null if its not found.
17918
       */
17919
      public static _Fields findByName(String name) {
17920
        return byName.get(name);
17921
      }
17922
 
17923
      private final short _thriftId;
17924
      private final String _fieldName;
17925
 
17926
      _Fields(short thriftId, String fieldName) {
17927
        _thriftId = thriftId;
17928
        _fieldName = fieldName;
17929
      }
17930
 
17931
      public short getThriftFieldId() {
17932
        return _thriftId;
17933
      }
17934
 
17935
      public String getFieldName() {
17936
        return _fieldName;
17937
      }
17938
    }
17939
 
17940
    // isset id assignments
17941
 
17942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17943
    static {
17944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17945
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17947
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
17951
    }
17952
 
17953
    public updatePasswordForAgent_args() {
17954
    }
17955
 
17956
    public updatePasswordForAgent_args(
17957
      String agentEmailId,
17958
      String password)
17959
    {
17960
      this();
17961
      this.agentEmailId = agentEmailId;
17962
      this.password = password;
17963
    }
17964
 
17965
    /**
17966
     * Performs a deep copy on <i>other</i>.
17967
     */
17968
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
17969
      if (other.isSetAgentEmailId()) {
17970
        this.agentEmailId = other.agentEmailId;
17971
      }
17972
      if (other.isSetPassword()) {
17973
        this.password = other.password;
17974
      }
17975
    }
17976
 
17977
    public updatePasswordForAgent_args deepCopy() {
17978
      return new updatePasswordForAgent_args(this);
17979
    }
17980
 
17981
    @Override
17982
    public void clear() {
17983
      this.agentEmailId = null;
17984
      this.password = null;
17985
    }
17986
 
17987
    public String getAgentEmailId() {
17988
      return this.agentEmailId;
17989
    }
17990
 
17991
    public void setAgentEmailId(String agentEmailId) {
17992
      this.agentEmailId = agentEmailId;
17993
    }
17994
 
17995
    public void unsetAgentEmailId() {
17996
      this.agentEmailId = null;
17997
    }
17998
 
17999
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18000
    public boolean isSetAgentEmailId() {
18001
      return this.agentEmailId != null;
18002
    }
18003
 
18004
    public void setAgentEmailIdIsSet(boolean value) {
18005
      if (!value) {
18006
        this.agentEmailId = null;
18007
      }
18008
    }
18009
 
18010
    public String getPassword() {
18011
      return this.password;
18012
    }
18013
 
18014
    public void setPassword(String password) {
18015
      this.password = password;
18016
    }
18017
 
18018
    public void unsetPassword() {
18019
      this.password = null;
18020
    }
18021
 
18022
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18023
    public boolean isSetPassword() {
18024
      return this.password != null;
18025
    }
18026
 
18027
    public void setPasswordIsSet(boolean value) {
18028
      if (!value) {
18029
        this.password = null;
18030
      }
18031
    }
18032
 
18033
    public void setFieldValue(_Fields field, Object value) {
18034
      switch (field) {
18035
      case AGENT_EMAIL_ID:
18036
        if (value == null) {
18037
          unsetAgentEmailId();
18038
        } else {
18039
          setAgentEmailId((String)value);
18040
        }
18041
        break;
18042
 
18043
      case PASSWORD:
18044
        if (value == null) {
18045
          unsetPassword();
18046
        } else {
18047
          setPassword((String)value);
18048
        }
18049
        break;
18050
 
18051
      }
18052
    }
18053
 
18054
    public Object getFieldValue(_Fields field) {
18055
      switch (field) {
18056
      case AGENT_EMAIL_ID:
18057
        return getAgentEmailId();
18058
 
18059
      case PASSWORD:
18060
        return getPassword();
18061
 
18062
      }
18063
      throw new IllegalStateException();
18064
    }
18065
 
18066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18067
    public boolean isSet(_Fields field) {
18068
      if (field == null) {
18069
        throw new IllegalArgumentException();
18070
      }
18071
 
18072
      switch (field) {
18073
      case AGENT_EMAIL_ID:
18074
        return isSetAgentEmailId();
18075
      case PASSWORD:
18076
        return isSetPassword();
18077
      }
18078
      throw new IllegalStateException();
18079
    }
18080
 
18081
    @Override
18082
    public boolean equals(Object that) {
18083
      if (that == null)
18084
        return false;
18085
      if (that instanceof updatePasswordForAgent_args)
18086
        return this.equals((updatePasswordForAgent_args)that);
18087
      return false;
18088
    }
18089
 
18090
    public boolean equals(updatePasswordForAgent_args that) {
18091
      if (that == null)
18092
        return false;
18093
 
18094
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18095
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18096
      if (this_present_agentEmailId || that_present_agentEmailId) {
18097
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18098
          return false;
18099
        if (!this.agentEmailId.equals(that.agentEmailId))
18100
          return false;
18101
      }
18102
 
18103
      boolean this_present_password = true && this.isSetPassword();
18104
      boolean that_present_password = true && that.isSetPassword();
18105
      if (this_present_password || that_present_password) {
18106
        if (!(this_present_password && that_present_password))
18107
          return false;
18108
        if (!this.password.equals(that.password))
18109
          return false;
18110
      }
18111
 
18112
      return true;
18113
    }
18114
 
18115
    @Override
18116
    public int hashCode() {
18117
      return 0;
18118
    }
18119
 
18120
    public int compareTo(updatePasswordForAgent_args other) {
18121
      if (!getClass().equals(other.getClass())) {
18122
        return getClass().getName().compareTo(other.getClass().getName());
18123
      }
18124
 
18125
      int lastComparison = 0;
18126
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18127
 
18128
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18129
      if (lastComparison != 0) {
18130
        return lastComparison;
18131
      }
18132
      if (isSetAgentEmailId()) {
18133
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18134
        if (lastComparison != 0) {
18135
          return lastComparison;
18136
        }
18137
      }
18138
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18139
      if (lastComparison != 0) {
18140
        return lastComparison;
18141
      }
18142
      if (isSetPassword()) {
18143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18144
        if (lastComparison != 0) {
18145
          return lastComparison;
18146
        }
18147
      }
18148
      return 0;
18149
    }
18150
 
18151
    public _Fields fieldForId(int fieldId) {
18152
      return _Fields.findByThriftId(fieldId);
18153
    }
18154
 
18155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18156
      org.apache.thrift.protocol.TField field;
18157
      iprot.readStructBegin();
18158
      while (true)
18159
      {
18160
        field = iprot.readFieldBegin();
18161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18162
          break;
18163
        }
18164
        switch (field.id) {
18165
          case 1: // AGENT_EMAIL_ID
18166
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18167
              this.agentEmailId = iprot.readString();
18168
            } else { 
18169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18170
            }
18171
            break;
18172
          case 2: // PASSWORD
18173
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18174
              this.password = iprot.readString();
18175
            } else { 
18176
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18177
            }
18178
            break;
18179
          default:
18180
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18181
        }
18182
        iprot.readFieldEnd();
18183
      }
18184
      iprot.readStructEnd();
18185
      validate();
18186
    }
18187
 
18188
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18189
      validate();
18190
 
18191
      oprot.writeStructBegin(STRUCT_DESC);
18192
      if (this.agentEmailId != null) {
18193
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18194
        oprot.writeString(this.agentEmailId);
18195
        oprot.writeFieldEnd();
18196
      }
18197
      if (this.password != null) {
18198
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18199
        oprot.writeString(this.password);
18200
        oprot.writeFieldEnd();
18201
      }
18202
      oprot.writeFieldStop();
18203
      oprot.writeStructEnd();
18204
    }
18205
 
18206
    @Override
18207
    public String toString() {
18208
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18209
      boolean first = true;
18210
 
18211
      sb.append("agentEmailId:");
18212
      if (this.agentEmailId == null) {
18213
        sb.append("null");
18214
      } else {
18215
        sb.append(this.agentEmailId);
18216
      }
18217
      first = false;
18218
      if (!first) sb.append(", ");
18219
      sb.append("password:");
18220
      if (this.password == null) {
18221
        sb.append("null");
18222
      } else {
18223
        sb.append(this.password);
18224
      }
18225
      first = false;
18226
      sb.append(")");
18227
      return sb.toString();
18228
    }
18229
 
18230
    public void validate() throws org.apache.thrift.TException {
18231
      // check for required fields
18232
    }
18233
 
18234
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18235
      try {
18236
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18237
      } catch (org.apache.thrift.TException te) {
18238
        throw new java.io.IOException(te);
18239
      }
18240
    }
18241
 
18242
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18243
      try {
18244
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18245
      } catch (org.apache.thrift.TException te) {
18246
        throw new java.io.IOException(te);
18247
      }
18248
    }
18249
 
18250
  }
18251
 
18252
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18253
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18254
 
18255
 
18256
 
18257
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18258
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18259
;
18260
 
18261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18262
 
18263
      static {
18264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18265
          byName.put(field.getFieldName(), field);
18266
        }
18267
      }
18268
 
18269
      /**
18270
       * Find the _Fields constant that matches fieldId, or null if its not found.
18271
       */
18272
      public static _Fields findByThriftId(int fieldId) {
18273
        switch(fieldId) {
18274
          default:
18275
            return null;
18276
        }
18277
      }
18278
 
18279
      /**
18280
       * Find the _Fields constant that matches fieldId, throwing an exception
18281
       * if it is not found.
18282
       */
18283
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18284
        _Fields fields = findByThriftId(fieldId);
18285
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18286
        return fields;
18287
      }
18288
 
18289
      /**
18290
       * Find the _Fields constant that matches name, or null if its not found.
18291
       */
18292
      public static _Fields findByName(String name) {
18293
        return byName.get(name);
18294
      }
18295
 
18296
      private final short _thriftId;
18297
      private final String _fieldName;
18298
 
18299
      _Fields(short thriftId, String fieldName) {
18300
        _thriftId = thriftId;
18301
        _fieldName = fieldName;
18302
      }
18303
 
18304
      public short getThriftFieldId() {
18305
        return _thriftId;
18306
      }
18307
 
18308
      public String getFieldName() {
18309
        return _fieldName;
18310
      }
18311
    }
18312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18313
    static {
18314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18315
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18316
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18317
    }
18318
 
18319
    public updatePasswordForAgent_result() {
18320
    }
18321
 
18322
    /**
18323
     * Performs a deep copy on <i>other</i>.
18324
     */
18325
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18326
    }
18327
 
18328
    public updatePasswordForAgent_result deepCopy() {
18329
      return new updatePasswordForAgent_result(this);
18330
    }
18331
 
18332
    @Override
18333
    public void clear() {
18334
    }
18335
 
18336
    public void setFieldValue(_Fields field, Object value) {
18337
      switch (field) {
18338
      }
18339
    }
18340
 
18341
    public Object getFieldValue(_Fields field) {
18342
      switch (field) {
18343
      }
18344
      throw new IllegalStateException();
18345
    }
18346
 
18347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18348
    public boolean isSet(_Fields field) {
18349
      if (field == null) {
18350
        throw new IllegalArgumentException();
18351
      }
18352
 
18353
      switch (field) {
18354
      }
18355
      throw new IllegalStateException();
18356
    }
18357
 
18358
    @Override
18359
    public boolean equals(Object that) {
18360
      if (that == null)
18361
        return false;
18362
      if (that instanceof updatePasswordForAgent_result)
18363
        return this.equals((updatePasswordForAgent_result)that);
18364
      return false;
18365
    }
18366
 
18367
    public boolean equals(updatePasswordForAgent_result that) {
18368
      if (that == null)
18369
        return false;
18370
 
18371
      return true;
18372
    }
18373
 
18374
    @Override
18375
    public int hashCode() {
18376
      return 0;
18377
    }
18378
 
18379
    public int compareTo(updatePasswordForAgent_result other) {
18380
      if (!getClass().equals(other.getClass())) {
18381
        return getClass().getName().compareTo(other.getClass().getName());
18382
      }
18383
 
18384
      int lastComparison = 0;
18385
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18386
 
18387
      return 0;
18388
    }
18389
 
18390
    public _Fields fieldForId(int fieldId) {
18391
      return _Fields.findByThriftId(fieldId);
18392
    }
18393
 
18394
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18395
      org.apache.thrift.protocol.TField field;
18396
      iprot.readStructBegin();
18397
      while (true)
18398
      {
18399
        field = iprot.readFieldBegin();
18400
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18401
          break;
18402
        }
18403
        switch (field.id) {
18404
          default:
18405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18406
        }
18407
        iprot.readFieldEnd();
18408
      }
18409
      iprot.readStructEnd();
18410
      validate();
18411
    }
18412
 
18413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18414
      oprot.writeStructBegin(STRUCT_DESC);
18415
 
18416
      oprot.writeFieldStop();
18417
      oprot.writeStructEnd();
18418
    }
18419
 
18420
    @Override
18421
    public String toString() {
18422
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18423
      boolean first = true;
18424
 
18425
      sb.append(")");
18426
      return sb.toString();
18427
    }
18428
 
18429
    public void validate() throws org.apache.thrift.TException {
18430
      // check for required fields
18431
    }
18432
 
18433
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18434
      try {
18435
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18436
      } catch (org.apache.thrift.TException te) {
18437
        throw new java.io.IOException(te);
18438
      }
18439
    }
18440
 
18441
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18442
      try {
18443
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18444
      } catch (org.apache.thrift.TException te) {
18445
        throw new java.io.IOException(te);
18446
      }
18447
    }
18448
 
18449
  }
18450
 
18451
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18452
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18453
 
18454
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
18455
 
18456
    private String agentEmailId; // required
18457
 
18458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18460
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18461
 
18462
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18463
 
18464
      static {
18465
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18466
          byName.put(field.getFieldName(), field);
18467
        }
18468
      }
18469
 
18470
      /**
18471
       * Find the _Fields constant that matches fieldId, or null if its not found.
18472
       */
18473
      public static _Fields findByThriftId(int fieldId) {
18474
        switch(fieldId) {
18475
          case 1: // AGENT_EMAIL_ID
18476
            return AGENT_EMAIL_ID;
18477
          default:
18478
            return null;
18479
        }
18480
      }
18481
 
18482
      /**
18483
       * Find the _Fields constant that matches fieldId, throwing an exception
18484
       * if it is not found.
18485
       */
18486
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18487
        _Fields fields = findByThriftId(fieldId);
18488
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18489
        return fields;
18490
      }
18491
 
18492
      /**
18493
       * Find the _Fields constant that matches name, or null if its not found.
18494
       */
18495
      public static _Fields findByName(String name) {
18496
        return byName.get(name);
18497
      }
18498
 
18499
      private final short _thriftId;
18500
      private final String _fieldName;
18501
 
18502
      _Fields(short thriftId, String fieldName) {
18503
        _thriftId = thriftId;
18504
        _fieldName = fieldName;
18505
      }
18506
 
18507
      public short getThriftFieldId() {
18508
        return _thriftId;
18509
      }
18510
 
18511
      public String getFieldName() {
18512
        return _fieldName;
18513
      }
18514
    }
18515
 
18516
    // isset id assignments
18517
 
18518
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18519
    static {
18520
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18521
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18523
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18524
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18525
    }
18526
 
18527
    public getRoleNamesForAgent_args() {
18528
    }
18529
 
18530
    public getRoleNamesForAgent_args(
18531
      String agentEmailId)
18532
    {
18533
      this();
18534
      this.agentEmailId = agentEmailId;
18535
    }
18536
 
18537
    /**
18538
     * Performs a deep copy on <i>other</i>.
18539
     */
18540
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18541
      if (other.isSetAgentEmailId()) {
18542
        this.agentEmailId = other.agentEmailId;
18543
      }
18544
    }
18545
 
18546
    public getRoleNamesForAgent_args deepCopy() {
18547
      return new getRoleNamesForAgent_args(this);
18548
    }
18549
 
18550
    @Override
18551
    public void clear() {
18552
      this.agentEmailId = null;
18553
    }
18554
 
18555
    public String getAgentEmailId() {
18556
      return this.agentEmailId;
18557
    }
18558
 
18559
    public void setAgentEmailId(String agentEmailId) {
18560
      this.agentEmailId = agentEmailId;
18561
    }
18562
 
18563
    public void unsetAgentEmailId() {
18564
      this.agentEmailId = null;
18565
    }
18566
 
18567
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18568
    public boolean isSetAgentEmailId() {
18569
      return this.agentEmailId != null;
18570
    }
18571
 
18572
    public void setAgentEmailIdIsSet(boolean value) {
18573
      if (!value) {
18574
        this.agentEmailId = null;
18575
      }
18576
    }
18577
 
18578
    public void setFieldValue(_Fields field, Object value) {
18579
      switch (field) {
18580
      case AGENT_EMAIL_ID:
18581
        if (value == null) {
18582
          unsetAgentEmailId();
18583
        } else {
18584
          setAgentEmailId((String)value);
18585
        }
18586
        break;
18587
 
18588
      }
18589
    }
18590
 
18591
    public Object getFieldValue(_Fields field) {
18592
      switch (field) {
18593
      case AGENT_EMAIL_ID:
18594
        return getAgentEmailId();
18595
 
18596
      }
18597
      throw new IllegalStateException();
18598
    }
18599
 
18600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18601
    public boolean isSet(_Fields field) {
18602
      if (field == null) {
18603
        throw new IllegalArgumentException();
18604
      }
18605
 
18606
      switch (field) {
18607
      case AGENT_EMAIL_ID:
18608
        return isSetAgentEmailId();
18609
      }
18610
      throw new IllegalStateException();
18611
    }
18612
 
18613
    @Override
18614
    public boolean equals(Object that) {
18615
      if (that == null)
18616
        return false;
18617
      if (that instanceof getRoleNamesForAgent_args)
18618
        return this.equals((getRoleNamesForAgent_args)that);
18619
      return false;
18620
    }
18621
 
18622
    public boolean equals(getRoleNamesForAgent_args that) {
18623
      if (that == null)
18624
        return false;
18625
 
18626
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18627
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18628
      if (this_present_agentEmailId || that_present_agentEmailId) {
18629
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18630
          return false;
18631
        if (!this.agentEmailId.equals(that.agentEmailId))
18632
          return false;
18633
      }
18634
 
18635
      return true;
18636
    }
18637
 
18638
    @Override
18639
    public int hashCode() {
18640
      return 0;
18641
    }
18642
 
18643
    public int compareTo(getRoleNamesForAgent_args other) {
18644
      if (!getClass().equals(other.getClass())) {
18645
        return getClass().getName().compareTo(other.getClass().getName());
18646
      }
18647
 
18648
      int lastComparison = 0;
18649
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18650
 
18651
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18652
      if (lastComparison != 0) {
18653
        return lastComparison;
18654
      }
18655
      if (isSetAgentEmailId()) {
18656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18657
        if (lastComparison != 0) {
18658
          return lastComparison;
18659
        }
18660
      }
18661
      return 0;
18662
    }
18663
 
18664
    public _Fields fieldForId(int fieldId) {
18665
      return _Fields.findByThriftId(fieldId);
18666
    }
18667
 
18668
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18669
      org.apache.thrift.protocol.TField field;
18670
      iprot.readStructBegin();
18671
      while (true)
18672
      {
18673
        field = iprot.readFieldBegin();
18674
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18675
          break;
18676
        }
18677
        switch (field.id) {
18678
          case 1: // AGENT_EMAIL_ID
18679
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18680
              this.agentEmailId = iprot.readString();
18681
            } else { 
18682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18683
            }
18684
            break;
18685
          default:
18686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18687
        }
18688
        iprot.readFieldEnd();
18689
      }
18690
      iprot.readStructEnd();
18691
      validate();
18692
    }
18693
 
18694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18695
      validate();
18696
 
18697
      oprot.writeStructBegin(STRUCT_DESC);
18698
      if (this.agentEmailId != null) {
18699
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18700
        oprot.writeString(this.agentEmailId);
18701
        oprot.writeFieldEnd();
18702
      }
18703
      oprot.writeFieldStop();
18704
      oprot.writeStructEnd();
18705
    }
18706
 
18707
    @Override
18708
    public String toString() {
18709
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18710
      boolean first = true;
18711
 
18712
      sb.append("agentEmailId:");
18713
      if (this.agentEmailId == null) {
18714
        sb.append("null");
18715
      } else {
18716
        sb.append(this.agentEmailId);
18717
      }
18718
      first = false;
18719
      sb.append(")");
18720
      return sb.toString();
18721
    }
18722
 
18723
    public void validate() throws org.apache.thrift.TException {
18724
      // check for required fields
18725
    }
18726
 
18727
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18728
      try {
18729
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18730
      } catch (org.apache.thrift.TException te) {
18731
        throw new java.io.IOException(te);
18732
      }
18733
    }
18734
 
18735
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18736
      try {
18737
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18738
      } catch (org.apache.thrift.TException te) {
18739
        throw new java.io.IOException(te);
18740
      }
18741
    }
18742
 
18743
  }
18744
 
18745
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18746
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18747
 
18748
    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);
18749
 
18750
    private List<String> success; // required
18751
 
18752
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18753
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18754
      SUCCESS((short)0, "success");
18755
 
18756
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18757
 
18758
      static {
18759
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18760
          byName.put(field.getFieldName(), field);
18761
        }
18762
      }
18763
 
18764
      /**
18765
       * Find the _Fields constant that matches fieldId, or null if its not found.
18766
       */
18767
      public static _Fields findByThriftId(int fieldId) {
18768
        switch(fieldId) {
18769
          case 0: // SUCCESS
18770
            return SUCCESS;
18771
          default:
18772
            return null;
18773
        }
18774
      }
18775
 
18776
      /**
18777
       * Find the _Fields constant that matches fieldId, throwing an exception
18778
       * if it is not found.
18779
       */
18780
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18781
        _Fields fields = findByThriftId(fieldId);
18782
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18783
        return fields;
18784
      }
18785
 
18786
      /**
18787
       * Find the _Fields constant that matches name, or null if its not found.
18788
       */
18789
      public static _Fields findByName(String name) {
18790
        return byName.get(name);
18791
      }
18792
 
18793
      private final short _thriftId;
18794
      private final String _fieldName;
18795
 
18796
      _Fields(short thriftId, String fieldName) {
18797
        _thriftId = thriftId;
18798
        _fieldName = fieldName;
18799
      }
18800
 
18801
      public short getThriftFieldId() {
18802
        return _thriftId;
18803
      }
18804
 
18805
      public String getFieldName() {
18806
        return _fieldName;
18807
      }
18808
    }
18809
 
18810
    // isset id assignments
18811
 
18812
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18813
    static {
18814
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18815
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18816
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18817
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18818
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18819
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18820
    }
18821
 
18822
    public getRoleNamesForAgent_result() {
18823
    }
18824
 
18825
    public getRoleNamesForAgent_result(
18826
      List<String> success)
18827
    {
18828
      this();
18829
      this.success = success;
18830
    }
18831
 
18832
    /**
18833
     * Performs a deep copy on <i>other</i>.
18834
     */
18835
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18836
      if (other.isSetSuccess()) {
18837
        List<String> __this__success = new ArrayList<String>();
18838
        for (String other_element : other.success) {
18839
          __this__success.add(other_element);
18840
        }
18841
        this.success = __this__success;
18842
      }
18843
    }
18844
 
18845
    public getRoleNamesForAgent_result deepCopy() {
18846
      return new getRoleNamesForAgent_result(this);
18847
    }
18848
 
18849
    @Override
18850
    public void clear() {
18851
      this.success = null;
18852
    }
18853
 
18854
    public int getSuccessSize() {
18855
      return (this.success == null) ? 0 : this.success.size();
18856
    }
18857
 
18858
    public java.util.Iterator<String> getSuccessIterator() {
18859
      return (this.success == null) ? null : this.success.iterator();
18860
    }
18861
 
18862
    public void addToSuccess(String elem) {
18863
      if (this.success == null) {
18864
        this.success = new ArrayList<String>();
18865
      }
18866
      this.success.add(elem);
18867
    }
18868
 
18869
    public List<String> getSuccess() {
18870
      return this.success;
18871
    }
18872
 
18873
    public void setSuccess(List<String> success) {
18874
      this.success = success;
18875
    }
18876
 
18877
    public void unsetSuccess() {
18878
      this.success = null;
18879
    }
18880
 
18881
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18882
    public boolean isSetSuccess() {
18883
      return this.success != null;
18884
    }
18885
 
18886
    public void setSuccessIsSet(boolean value) {
18887
      if (!value) {
18888
        this.success = null;
18889
      }
18890
    }
18891
 
18892
    public void setFieldValue(_Fields field, Object value) {
18893
      switch (field) {
18894
      case SUCCESS:
18895
        if (value == null) {
18896
          unsetSuccess();
18897
        } else {
18898
          setSuccess((List<String>)value);
18899
        }
18900
        break;
18901
 
18902
      }
18903
    }
18904
 
18905
    public Object getFieldValue(_Fields field) {
18906
      switch (field) {
18907
      case SUCCESS:
18908
        return getSuccess();
18909
 
18910
      }
18911
      throw new IllegalStateException();
18912
    }
18913
 
18914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18915
    public boolean isSet(_Fields field) {
18916
      if (field == null) {
18917
        throw new IllegalArgumentException();
18918
      }
18919
 
18920
      switch (field) {
18921
      case SUCCESS:
18922
        return isSetSuccess();
18923
      }
18924
      throw new IllegalStateException();
18925
    }
18926
 
18927
    @Override
18928
    public boolean equals(Object that) {
18929
      if (that == null)
18930
        return false;
18931
      if (that instanceof getRoleNamesForAgent_result)
18932
        return this.equals((getRoleNamesForAgent_result)that);
18933
      return false;
18934
    }
18935
 
18936
    public boolean equals(getRoleNamesForAgent_result that) {
18937
      if (that == null)
18938
        return false;
18939
 
18940
      boolean this_present_success = true && this.isSetSuccess();
18941
      boolean that_present_success = true && that.isSetSuccess();
18942
      if (this_present_success || that_present_success) {
18943
        if (!(this_present_success && that_present_success))
18944
          return false;
18945
        if (!this.success.equals(that.success))
18946
          return false;
18947
      }
18948
 
18949
      return true;
18950
    }
18951
 
18952
    @Override
18953
    public int hashCode() {
18954
      return 0;
18955
    }
18956
 
18957
    public int compareTo(getRoleNamesForAgent_result other) {
18958
      if (!getClass().equals(other.getClass())) {
18959
        return getClass().getName().compareTo(other.getClass().getName());
18960
      }
18961
 
18962
      int lastComparison = 0;
18963
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
18964
 
18965
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18966
      if (lastComparison != 0) {
18967
        return lastComparison;
18968
      }
18969
      if (isSetSuccess()) {
18970
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18971
        if (lastComparison != 0) {
18972
          return lastComparison;
18973
        }
18974
      }
18975
      return 0;
18976
    }
18977
 
18978
    public _Fields fieldForId(int fieldId) {
18979
      return _Fields.findByThriftId(fieldId);
18980
    }
18981
 
18982
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18983
      org.apache.thrift.protocol.TField field;
18984
      iprot.readStructBegin();
18985
      while (true)
18986
      {
18987
        field = iprot.readFieldBegin();
18988
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18989
          break;
18990
        }
18991
        switch (field.id) {
18992
          case 0: // SUCCESS
18993
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18994
              {
5864 rajveer 18995
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
18996
                this.success = new ArrayList<String>(_list53.size);
18997
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 18998
                {
5864 rajveer 18999
                  String _elem55; // required
19000
                  _elem55 = iprot.readString();
19001
                  this.success.add(_elem55);
4693 mandeep.dh 19002
                }
19003
                iprot.readListEnd();
19004
              }
19005
            } else { 
19006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19007
            }
19008
            break;
19009
          default:
19010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19011
        }
19012
        iprot.readFieldEnd();
19013
      }
19014
      iprot.readStructEnd();
19015
      validate();
19016
    }
19017
 
19018
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19019
      oprot.writeStructBegin(STRUCT_DESC);
19020
 
19021
      if (this.isSetSuccess()) {
19022
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19023
        {
19024
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19025
          for (String _iter56 : this.success)
4693 mandeep.dh 19026
          {
5864 rajveer 19027
            oprot.writeString(_iter56);
4693 mandeep.dh 19028
          }
19029
          oprot.writeListEnd();
19030
        }
19031
        oprot.writeFieldEnd();
19032
      }
19033
      oprot.writeFieldStop();
19034
      oprot.writeStructEnd();
19035
    }
19036
 
19037
    @Override
19038
    public String toString() {
19039
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19040
      boolean first = true;
19041
 
19042
      sb.append("success:");
19043
      if (this.success == null) {
19044
        sb.append("null");
19045
      } else {
19046
        sb.append(this.success);
19047
      }
19048
      first = false;
19049
      sb.append(")");
19050
      return sb.toString();
19051
    }
19052
 
19053
    public void validate() throws org.apache.thrift.TException {
19054
      // check for required fields
19055
    }
19056
 
19057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19058
      try {
19059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19060
      } catch (org.apache.thrift.TException te) {
19061
        throw new java.io.IOException(te);
19062
      }
19063
    }
19064
 
19065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19066
      try {
19067
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19068
      } catch (org.apache.thrift.TException te) {
19069
        throw new java.io.IOException(te);
19070
      }
19071
    }
19072
 
19073
  }
19074
 
19075
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19076
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19077
 
19078
    private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
19079
 
19080
    private String roleName; // required
19081
 
19082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19084
      ROLE_NAME((short)1, "roleName");
19085
 
19086
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19087
 
19088
      static {
19089
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19090
          byName.put(field.getFieldName(), field);
19091
        }
19092
      }
19093
 
19094
      /**
19095
       * Find the _Fields constant that matches fieldId, or null if its not found.
19096
       */
19097
      public static _Fields findByThriftId(int fieldId) {
19098
        switch(fieldId) {
19099
          case 1: // ROLE_NAME
19100
            return ROLE_NAME;
19101
          default:
19102
            return null;
19103
        }
19104
      }
19105
 
19106
      /**
19107
       * Find the _Fields constant that matches fieldId, throwing an exception
19108
       * if it is not found.
19109
       */
19110
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19111
        _Fields fields = findByThriftId(fieldId);
19112
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19113
        return fields;
19114
      }
19115
 
19116
      /**
19117
       * Find the _Fields constant that matches name, or null if its not found.
19118
       */
19119
      public static _Fields findByName(String name) {
19120
        return byName.get(name);
19121
      }
19122
 
19123
      private final short _thriftId;
19124
      private final String _fieldName;
19125
 
19126
      _Fields(short thriftId, String fieldName) {
19127
        _thriftId = thriftId;
19128
        _fieldName = fieldName;
19129
      }
19130
 
19131
      public short getThriftFieldId() {
19132
        return _thriftId;
19133
      }
19134
 
19135
      public String getFieldName() {
19136
        return _fieldName;
19137
      }
19138
    }
19139
 
19140
    // isset id assignments
19141
 
19142
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19143
    static {
19144
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19145
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19146
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19149
    }
19150
 
19151
    public getPermissionsForRoleName_args() {
19152
    }
19153
 
19154
    public getPermissionsForRoleName_args(
19155
      String roleName)
19156
    {
19157
      this();
19158
      this.roleName = roleName;
19159
    }
19160
 
19161
    /**
19162
     * Performs a deep copy on <i>other</i>.
19163
     */
19164
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19165
      if (other.isSetRoleName()) {
19166
        this.roleName = other.roleName;
19167
      }
19168
    }
19169
 
19170
    public getPermissionsForRoleName_args deepCopy() {
19171
      return new getPermissionsForRoleName_args(this);
19172
    }
19173
 
19174
    @Override
19175
    public void clear() {
19176
      this.roleName = null;
19177
    }
19178
 
19179
    public String getRoleName() {
19180
      return this.roleName;
19181
    }
19182
 
19183
    public void setRoleName(String roleName) {
19184
      this.roleName = roleName;
19185
    }
19186
 
19187
    public void unsetRoleName() {
19188
      this.roleName = null;
19189
    }
19190
 
19191
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19192
    public boolean isSetRoleName() {
19193
      return this.roleName != null;
19194
    }
19195
 
19196
    public void setRoleNameIsSet(boolean value) {
19197
      if (!value) {
19198
        this.roleName = null;
19199
      }
19200
    }
19201
 
19202
    public void setFieldValue(_Fields field, Object value) {
19203
      switch (field) {
19204
      case ROLE_NAME:
19205
        if (value == null) {
19206
          unsetRoleName();
19207
        } else {
19208
          setRoleName((String)value);
19209
        }
19210
        break;
19211
 
19212
      }
19213
    }
19214
 
19215
    public Object getFieldValue(_Fields field) {
19216
      switch (field) {
19217
      case ROLE_NAME:
19218
        return getRoleName();
19219
 
19220
      }
19221
      throw new IllegalStateException();
19222
    }
19223
 
19224
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19225
    public boolean isSet(_Fields field) {
19226
      if (field == null) {
19227
        throw new IllegalArgumentException();
19228
      }
19229
 
19230
      switch (field) {
19231
      case ROLE_NAME:
19232
        return isSetRoleName();
19233
      }
19234
      throw new IllegalStateException();
19235
    }
19236
 
19237
    @Override
19238
    public boolean equals(Object that) {
19239
      if (that == null)
19240
        return false;
19241
      if (that instanceof getPermissionsForRoleName_args)
19242
        return this.equals((getPermissionsForRoleName_args)that);
19243
      return false;
19244
    }
19245
 
19246
    public boolean equals(getPermissionsForRoleName_args that) {
19247
      if (that == null)
19248
        return false;
19249
 
19250
      boolean this_present_roleName = true && this.isSetRoleName();
19251
      boolean that_present_roleName = true && that.isSetRoleName();
19252
      if (this_present_roleName || that_present_roleName) {
19253
        if (!(this_present_roleName && that_present_roleName))
19254
          return false;
19255
        if (!this.roleName.equals(that.roleName))
19256
          return false;
19257
      }
19258
 
19259
      return true;
19260
    }
19261
 
19262
    @Override
19263
    public int hashCode() {
19264
      return 0;
19265
    }
19266
 
19267
    public int compareTo(getPermissionsForRoleName_args other) {
19268
      if (!getClass().equals(other.getClass())) {
19269
        return getClass().getName().compareTo(other.getClass().getName());
19270
      }
19271
 
19272
      int lastComparison = 0;
19273
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19274
 
19275
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19276
      if (lastComparison != 0) {
19277
        return lastComparison;
19278
      }
19279
      if (isSetRoleName()) {
19280
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19281
        if (lastComparison != 0) {
19282
          return lastComparison;
19283
        }
19284
      }
19285
      return 0;
19286
    }
19287
 
19288
    public _Fields fieldForId(int fieldId) {
19289
      return _Fields.findByThriftId(fieldId);
19290
    }
19291
 
19292
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19293
      org.apache.thrift.protocol.TField field;
19294
      iprot.readStructBegin();
19295
      while (true)
19296
      {
19297
        field = iprot.readFieldBegin();
19298
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19299
          break;
19300
        }
19301
        switch (field.id) {
19302
          case 1: // ROLE_NAME
19303
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19304
              this.roleName = iprot.readString();
19305
            } else { 
19306
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19307
            }
19308
            break;
19309
          default:
19310
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19311
        }
19312
        iprot.readFieldEnd();
19313
      }
19314
      iprot.readStructEnd();
19315
      validate();
19316
    }
19317
 
19318
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19319
      validate();
19320
 
19321
      oprot.writeStructBegin(STRUCT_DESC);
19322
      if (this.roleName != null) {
19323
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19324
        oprot.writeString(this.roleName);
19325
        oprot.writeFieldEnd();
19326
      }
19327
      oprot.writeFieldStop();
19328
      oprot.writeStructEnd();
19329
    }
19330
 
19331
    @Override
19332
    public String toString() {
19333
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19334
      boolean first = true;
19335
 
19336
      sb.append("roleName:");
19337
      if (this.roleName == null) {
19338
        sb.append("null");
19339
      } else {
19340
        sb.append(this.roleName);
19341
      }
19342
      first = false;
19343
      sb.append(")");
19344
      return sb.toString();
19345
    }
19346
 
19347
    public void validate() throws org.apache.thrift.TException {
19348
      // check for required fields
19349
    }
19350
 
19351
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19352
      try {
19353
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19354
      } catch (org.apache.thrift.TException te) {
19355
        throw new java.io.IOException(te);
19356
      }
19357
    }
19358
 
19359
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19360
      try {
19361
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19362
      } catch (org.apache.thrift.TException te) {
19363
        throw new java.io.IOException(te);
19364
      }
19365
    }
19366
 
19367
  }
19368
 
19369
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19370
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19371
 
19372
    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);
19373
 
19374
    private List<String> success; // required
19375
 
19376
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19377
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19378
      SUCCESS((short)0, "success");
19379
 
19380
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19381
 
19382
      static {
19383
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19384
          byName.put(field.getFieldName(), field);
19385
        }
19386
      }
19387
 
19388
      /**
19389
       * Find the _Fields constant that matches fieldId, or null if its not found.
19390
       */
19391
      public static _Fields findByThriftId(int fieldId) {
19392
        switch(fieldId) {
19393
          case 0: // SUCCESS
19394
            return SUCCESS;
19395
          default:
19396
            return null;
19397
        }
19398
      }
19399
 
19400
      /**
19401
       * Find the _Fields constant that matches fieldId, throwing an exception
19402
       * if it is not found.
19403
       */
19404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19405
        _Fields fields = findByThriftId(fieldId);
19406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19407
        return fields;
19408
      }
19409
 
19410
      /**
19411
       * Find the _Fields constant that matches name, or null if its not found.
19412
       */
19413
      public static _Fields findByName(String name) {
19414
        return byName.get(name);
19415
      }
19416
 
19417
      private final short _thriftId;
19418
      private final String _fieldName;
19419
 
19420
      _Fields(short thriftId, String fieldName) {
19421
        _thriftId = thriftId;
19422
        _fieldName = fieldName;
19423
      }
19424
 
19425
      public short getThriftFieldId() {
19426
        return _thriftId;
19427
      }
19428
 
19429
      public String getFieldName() {
19430
        return _fieldName;
19431
      }
19432
    }
19433
 
19434
    // isset id assignments
19435
 
19436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19437
    static {
19438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19439
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19440
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19441
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19442
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19443
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19444
    }
19445
 
19446
    public getPermissionsForRoleName_result() {
19447
    }
19448
 
19449
    public getPermissionsForRoleName_result(
19450
      List<String> success)
19451
    {
19452
      this();
19453
      this.success = success;
19454
    }
19455
 
19456
    /**
19457
     * Performs a deep copy on <i>other</i>.
19458
     */
19459
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19460
      if (other.isSetSuccess()) {
19461
        List<String> __this__success = new ArrayList<String>();
19462
        for (String other_element : other.success) {
19463
          __this__success.add(other_element);
19464
        }
19465
        this.success = __this__success;
19466
      }
19467
    }
19468
 
19469
    public getPermissionsForRoleName_result deepCopy() {
19470
      return new getPermissionsForRoleName_result(this);
19471
    }
19472
 
19473
    @Override
19474
    public void clear() {
19475
      this.success = null;
19476
    }
19477
 
19478
    public int getSuccessSize() {
19479
      return (this.success == null) ? 0 : this.success.size();
19480
    }
19481
 
19482
    public java.util.Iterator<String> getSuccessIterator() {
19483
      return (this.success == null) ? null : this.success.iterator();
19484
    }
19485
 
19486
    public void addToSuccess(String elem) {
19487
      if (this.success == null) {
19488
        this.success = new ArrayList<String>();
19489
      }
19490
      this.success.add(elem);
19491
    }
19492
 
19493
    public List<String> getSuccess() {
19494
      return this.success;
19495
    }
19496
 
19497
    public void setSuccess(List<String> success) {
19498
      this.success = success;
19499
    }
19500
 
19501
    public void unsetSuccess() {
19502
      this.success = null;
19503
    }
19504
 
19505
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19506
    public boolean isSetSuccess() {
19507
      return this.success != null;
19508
    }
19509
 
19510
    public void setSuccessIsSet(boolean value) {
19511
      if (!value) {
19512
        this.success = null;
19513
      }
19514
    }
19515
 
19516
    public void setFieldValue(_Fields field, Object value) {
19517
      switch (field) {
19518
      case SUCCESS:
19519
        if (value == null) {
19520
          unsetSuccess();
19521
        } else {
19522
          setSuccess((List<String>)value);
19523
        }
19524
        break;
19525
 
19526
      }
19527
    }
19528
 
19529
    public Object getFieldValue(_Fields field) {
19530
      switch (field) {
19531
      case SUCCESS:
19532
        return getSuccess();
19533
 
19534
      }
19535
      throw new IllegalStateException();
19536
    }
19537
 
19538
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19539
    public boolean isSet(_Fields field) {
19540
      if (field == null) {
19541
        throw new IllegalArgumentException();
19542
      }
19543
 
19544
      switch (field) {
19545
      case SUCCESS:
19546
        return isSetSuccess();
19547
      }
19548
      throw new IllegalStateException();
19549
    }
19550
 
19551
    @Override
19552
    public boolean equals(Object that) {
19553
      if (that == null)
19554
        return false;
19555
      if (that instanceof getPermissionsForRoleName_result)
19556
        return this.equals((getPermissionsForRoleName_result)that);
19557
      return false;
19558
    }
19559
 
19560
    public boolean equals(getPermissionsForRoleName_result that) {
19561
      if (that == null)
19562
        return false;
19563
 
19564
      boolean this_present_success = true && this.isSetSuccess();
19565
      boolean that_present_success = true && that.isSetSuccess();
19566
      if (this_present_success || that_present_success) {
19567
        if (!(this_present_success && that_present_success))
19568
          return false;
19569
        if (!this.success.equals(that.success))
19570
          return false;
19571
      }
19572
 
19573
      return true;
19574
    }
19575
 
19576
    @Override
19577
    public int hashCode() {
19578
      return 0;
19579
    }
19580
 
19581
    public int compareTo(getPermissionsForRoleName_result other) {
19582
      if (!getClass().equals(other.getClass())) {
19583
        return getClass().getName().compareTo(other.getClass().getName());
19584
      }
19585
 
19586
      int lastComparison = 0;
19587
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19588
 
19589
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19590
      if (lastComparison != 0) {
19591
        return lastComparison;
19592
      }
19593
      if (isSetSuccess()) {
19594
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19595
        if (lastComparison != 0) {
19596
          return lastComparison;
19597
        }
19598
      }
19599
      return 0;
19600
    }
19601
 
19602
    public _Fields fieldForId(int fieldId) {
19603
      return _Fields.findByThriftId(fieldId);
19604
    }
19605
 
19606
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19607
      org.apache.thrift.protocol.TField field;
19608
      iprot.readStructBegin();
19609
      while (true)
19610
      {
19611
        field = iprot.readFieldBegin();
19612
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19613
          break;
19614
        }
19615
        switch (field.id) {
19616
          case 0: // SUCCESS
19617
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19618
              {
5864 rajveer 19619
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19620
                this.success = new ArrayList<String>(_list57.size);
19621
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19622
                {
5864 rajveer 19623
                  String _elem59; // required
19624
                  _elem59 = iprot.readString();
19625
                  this.success.add(_elem59);
4693 mandeep.dh 19626
                }
19627
                iprot.readListEnd();
19628
              }
19629
            } else { 
19630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19631
            }
19632
            break;
19633
          default:
19634
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19635
        }
19636
        iprot.readFieldEnd();
19637
      }
19638
      iprot.readStructEnd();
19639
      validate();
19640
    }
19641
 
19642
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19643
      oprot.writeStructBegin(STRUCT_DESC);
19644
 
19645
      if (this.isSetSuccess()) {
19646
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19647
        {
19648
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19649
          for (String _iter60 : this.success)
4693 mandeep.dh 19650
          {
5864 rajveer 19651
            oprot.writeString(_iter60);
4693 mandeep.dh 19652
          }
19653
          oprot.writeListEnd();
19654
        }
19655
        oprot.writeFieldEnd();
19656
      }
19657
      oprot.writeFieldStop();
19658
      oprot.writeStructEnd();
19659
    }
19660
 
19661
    @Override
19662
    public String toString() {
19663
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19664
      boolean first = true;
19665
 
19666
      sb.append("success:");
19667
      if (this.success == null) {
19668
        sb.append("null");
19669
      } else {
19670
        sb.append(this.success);
19671
      }
19672
      first = false;
19673
      sb.append(")");
19674
      return sb.toString();
19675
    }
19676
 
19677
    public void validate() throws org.apache.thrift.TException {
19678
      // check for required fields
19679
    }
19680
 
19681
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19682
      try {
19683
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19684
      } catch (org.apache.thrift.TException te) {
19685
        throw new java.io.IOException(te);
19686
      }
19687
    }
19688
 
19689
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19690
      try {
19691
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19692
      } catch (org.apache.thrift.TException te) {
19693
        throw new java.io.IOException(te);
19694
      }
19695
    }
19696
 
19697
  }
19698
 
4806 varun.gupt 19699
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19700
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19701
 
19702
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)1);
19703
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)2);
19704
 
19705
    private String url; // required
19706
    private String text; // required
19707
 
19708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19710
      URL((short)1, "url"),
19711
      TEXT((short)2, "text");
19712
 
19713
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19714
 
19715
      static {
19716
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19717
          byName.put(field.getFieldName(), field);
19718
        }
19719
      }
19720
 
19721
      /**
19722
       * Find the _Fields constant that matches fieldId, or null if its not found.
19723
       */
19724
      public static _Fields findByThriftId(int fieldId) {
19725
        switch(fieldId) {
19726
          case 1: // URL
19727
            return URL;
19728
          case 2: // TEXT
19729
            return TEXT;
19730
          default:
19731
            return null;
19732
        }
19733
      }
19734
 
19735
      /**
19736
       * Find the _Fields constant that matches fieldId, throwing an exception
19737
       * if it is not found.
19738
       */
19739
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19740
        _Fields fields = findByThriftId(fieldId);
19741
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19742
        return fields;
19743
      }
19744
 
19745
      /**
19746
       * Find the _Fields constant that matches name, or null if its not found.
19747
       */
19748
      public static _Fields findByName(String name) {
19749
        return byName.get(name);
19750
      }
19751
 
19752
      private final short _thriftId;
19753
      private final String _fieldName;
19754
 
19755
      _Fields(short thriftId, String fieldName) {
19756
        _thriftId = thriftId;
19757
        _fieldName = fieldName;
19758
      }
19759
 
19760
      public short getThriftFieldId() {
19761
        return _thriftId;
19762
      }
19763
 
19764
      public String getFieldName() {
19765
        return _fieldName;
19766
      }
19767
    }
19768
 
19769
    // isset id assignments
19770
 
19771
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19772
    static {
19773
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19774
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19775
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19776
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19780
    }
19781
 
19782
    public saveQuickLink_args() {
19783
    }
19784
 
19785
    public saveQuickLink_args(
19786
      String url,
19787
      String text)
19788
    {
19789
      this();
19790
      this.url = url;
19791
      this.text = text;
19792
    }
19793
 
19794
    /**
19795
     * Performs a deep copy on <i>other</i>.
19796
     */
19797
    public saveQuickLink_args(saveQuickLink_args other) {
19798
      if (other.isSetUrl()) {
19799
        this.url = other.url;
19800
      }
19801
      if (other.isSetText()) {
19802
        this.text = other.text;
19803
      }
19804
    }
19805
 
19806
    public saveQuickLink_args deepCopy() {
19807
      return new saveQuickLink_args(this);
19808
    }
19809
 
19810
    @Override
19811
    public void clear() {
19812
      this.url = null;
19813
      this.text = null;
19814
    }
19815
 
19816
    public String getUrl() {
19817
      return this.url;
19818
    }
19819
 
19820
    public void setUrl(String url) {
19821
      this.url = url;
19822
    }
19823
 
19824
    public void unsetUrl() {
19825
      this.url = null;
19826
    }
19827
 
19828
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19829
    public boolean isSetUrl() {
19830
      return this.url != null;
19831
    }
19832
 
19833
    public void setUrlIsSet(boolean value) {
19834
      if (!value) {
19835
        this.url = null;
19836
      }
19837
    }
19838
 
19839
    public String getText() {
19840
      return this.text;
19841
    }
19842
 
19843
    public void setText(String text) {
19844
      this.text = text;
19845
    }
19846
 
19847
    public void unsetText() {
19848
      this.text = null;
19849
    }
19850
 
19851
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19852
    public boolean isSetText() {
19853
      return this.text != null;
19854
    }
19855
 
19856
    public void setTextIsSet(boolean value) {
19857
      if (!value) {
19858
        this.text = null;
19859
      }
19860
    }
19861
 
19862
    public void setFieldValue(_Fields field, Object value) {
19863
      switch (field) {
19864
      case URL:
19865
        if (value == null) {
19866
          unsetUrl();
19867
        } else {
19868
          setUrl((String)value);
19869
        }
19870
        break;
19871
 
19872
      case TEXT:
19873
        if (value == null) {
19874
          unsetText();
19875
        } else {
19876
          setText((String)value);
19877
        }
19878
        break;
19879
 
19880
      }
19881
    }
19882
 
19883
    public Object getFieldValue(_Fields field) {
19884
      switch (field) {
19885
      case URL:
19886
        return getUrl();
19887
 
19888
      case TEXT:
19889
        return getText();
19890
 
19891
      }
19892
      throw new IllegalStateException();
19893
    }
19894
 
19895
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19896
    public boolean isSet(_Fields field) {
19897
      if (field == null) {
19898
        throw new IllegalArgumentException();
19899
      }
19900
 
19901
      switch (field) {
19902
      case URL:
19903
        return isSetUrl();
19904
      case TEXT:
19905
        return isSetText();
19906
      }
19907
      throw new IllegalStateException();
19908
    }
19909
 
19910
    @Override
19911
    public boolean equals(Object that) {
19912
      if (that == null)
19913
        return false;
19914
      if (that instanceof saveQuickLink_args)
19915
        return this.equals((saveQuickLink_args)that);
19916
      return false;
19917
    }
19918
 
19919
    public boolean equals(saveQuickLink_args that) {
19920
      if (that == null)
19921
        return false;
19922
 
19923
      boolean this_present_url = true && this.isSetUrl();
19924
      boolean that_present_url = true && that.isSetUrl();
19925
      if (this_present_url || that_present_url) {
19926
        if (!(this_present_url && that_present_url))
19927
          return false;
19928
        if (!this.url.equals(that.url))
19929
          return false;
19930
      }
19931
 
19932
      boolean this_present_text = true && this.isSetText();
19933
      boolean that_present_text = true && that.isSetText();
19934
      if (this_present_text || that_present_text) {
19935
        if (!(this_present_text && that_present_text))
19936
          return false;
19937
        if (!this.text.equals(that.text))
19938
          return false;
19939
      }
19940
 
19941
      return true;
19942
    }
19943
 
19944
    @Override
19945
    public int hashCode() {
19946
      return 0;
19947
    }
19948
 
19949
    public int compareTo(saveQuickLink_args other) {
19950
      if (!getClass().equals(other.getClass())) {
19951
        return getClass().getName().compareTo(other.getClass().getName());
19952
      }
19953
 
19954
      int lastComparison = 0;
19955
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
19956
 
19957
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
19958
      if (lastComparison != 0) {
19959
        return lastComparison;
19960
      }
19961
      if (isSetUrl()) {
19962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
19963
        if (lastComparison != 0) {
19964
          return lastComparison;
19965
        }
19966
      }
19967
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
19968
      if (lastComparison != 0) {
19969
        return lastComparison;
19970
      }
19971
      if (isSetText()) {
19972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
19973
        if (lastComparison != 0) {
19974
          return lastComparison;
19975
        }
19976
      }
19977
      return 0;
19978
    }
19979
 
19980
    public _Fields fieldForId(int fieldId) {
19981
      return _Fields.findByThriftId(fieldId);
19982
    }
19983
 
19984
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19985
      org.apache.thrift.protocol.TField field;
19986
      iprot.readStructBegin();
19987
      while (true)
19988
      {
19989
        field = iprot.readFieldBegin();
19990
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19991
          break;
19992
        }
19993
        switch (field.id) {
19994
          case 1: // URL
19995
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19996
              this.url = iprot.readString();
19997
            } else { 
19998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19999
            }
20000
            break;
20001
          case 2: // TEXT
20002
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20003
              this.text = iprot.readString();
20004
            } else { 
20005
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20006
            }
20007
            break;
20008
          default:
20009
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20010
        }
20011
        iprot.readFieldEnd();
20012
      }
20013
      iprot.readStructEnd();
20014
      validate();
20015
    }
20016
 
20017
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20018
      validate();
20019
 
20020
      oprot.writeStructBegin(STRUCT_DESC);
20021
      if (this.url != null) {
20022
        oprot.writeFieldBegin(URL_FIELD_DESC);
20023
        oprot.writeString(this.url);
20024
        oprot.writeFieldEnd();
20025
      }
20026
      if (this.text != null) {
20027
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20028
        oprot.writeString(this.text);
20029
        oprot.writeFieldEnd();
20030
      }
20031
      oprot.writeFieldStop();
20032
      oprot.writeStructEnd();
20033
    }
20034
 
20035
    @Override
20036
    public String toString() {
20037
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20038
      boolean first = true;
20039
 
20040
      sb.append("url:");
20041
      if (this.url == null) {
20042
        sb.append("null");
20043
      } else {
20044
        sb.append(this.url);
20045
      }
20046
      first = false;
20047
      if (!first) sb.append(", ");
20048
      sb.append("text:");
20049
      if (this.text == null) {
20050
        sb.append("null");
20051
      } else {
20052
        sb.append(this.text);
20053
      }
20054
      first = false;
20055
      sb.append(")");
20056
      return sb.toString();
20057
    }
20058
 
20059
    public void validate() throws org.apache.thrift.TException {
20060
      // check for required fields
20061
    }
20062
 
20063
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20064
      try {
20065
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20066
      } catch (org.apache.thrift.TException te) {
20067
        throw new java.io.IOException(te);
20068
      }
20069
    }
20070
 
20071
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20072
      try {
20073
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20074
      } catch (org.apache.thrift.TException te) {
20075
        throw new java.io.IOException(te);
20076
      }
20077
    }
20078
 
20079
  }
20080
 
20081
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20082
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20083
 
20084
    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);
20085
 
20086
    private HelperServiceException hse; // required
20087
 
20088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20089
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20090
      HSE((short)1, "hse");
20091
 
20092
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20093
 
20094
      static {
20095
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20096
          byName.put(field.getFieldName(), field);
20097
        }
20098
      }
20099
 
20100
      /**
20101
       * Find the _Fields constant that matches fieldId, or null if its not found.
20102
       */
20103
      public static _Fields findByThriftId(int fieldId) {
20104
        switch(fieldId) {
20105
          case 1: // HSE
20106
            return HSE;
20107
          default:
20108
            return null;
20109
        }
20110
      }
20111
 
20112
      /**
20113
       * Find the _Fields constant that matches fieldId, throwing an exception
20114
       * if it is not found.
20115
       */
20116
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20117
        _Fields fields = findByThriftId(fieldId);
20118
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20119
        return fields;
20120
      }
20121
 
20122
      /**
20123
       * Find the _Fields constant that matches name, or null if its not found.
20124
       */
20125
      public static _Fields findByName(String name) {
20126
        return byName.get(name);
20127
      }
20128
 
20129
      private final short _thriftId;
20130
      private final String _fieldName;
20131
 
20132
      _Fields(short thriftId, String fieldName) {
20133
        _thriftId = thriftId;
20134
        _fieldName = fieldName;
20135
      }
20136
 
20137
      public short getThriftFieldId() {
20138
        return _thriftId;
20139
      }
20140
 
20141
      public String getFieldName() {
20142
        return _fieldName;
20143
      }
20144
    }
20145
 
20146
    // isset id assignments
20147
 
20148
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20149
    static {
20150
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20151
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20152
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20153
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20154
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20155
    }
20156
 
20157
    public saveQuickLink_result() {
20158
    }
20159
 
20160
    public saveQuickLink_result(
20161
      HelperServiceException hse)
20162
    {
20163
      this();
20164
      this.hse = hse;
20165
    }
20166
 
20167
    /**
20168
     * Performs a deep copy on <i>other</i>.
20169
     */
20170
    public saveQuickLink_result(saveQuickLink_result other) {
20171
      if (other.isSetHse()) {
20172
        this.hse = new HelperServiceException(other.hse);
20173
      }
20174
    }
20175
 
20176
    public saveQuickLink_result deepCopy() {
20177
      return new saveQuickLink_result(this);
20178
    }
20179
 
20180
    @Override
20181
    public void clear() {
20182
      this.hse = null;
20183
    }
20184
 
20185
    public HelperServiceException getHse() {
20186
      return this.hse;
20187
    }
20188
 
20189
    public void setHse(HelperServiceException hse) {
20190
      this.hse = hse;
20191
    }
20192
 
20193
    public void unsetHse() {
20194
      this.hse = null;
20195
    }
20196
 
20197
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20198
    public boolean isSetHse() {
20199
      return this.hse != null;
20200
    }
20201
 
20202
    public void setHseIsSet(boolean value) {
20203
      if (!value) {
20204
        this.hse = null;
20205
      }
20206
    }
20207
 
20208
    public void setFieldValue(_Fields field, Object value) {
20209
      switch (field) {
20210
      case HSE:
20211
        if (value == null) {
20212
          unsetHse();
20213
        } else {
20214
          setHse((HelperServiceException)value);
20215
        }
20216
        break;
20217
 
20218
      }
20219
    }
20220
 
20221
    public Object getFieldValue(_Fields field) {
20222
      switch (field) {
20223
      case HSE:
20224
        return getHse();
20225
 
20226
      }
20227
      throw new IllegalStateException();
20228
    }
20229
 
20230
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20231
    public boolean isSet(_Fields field) {
20232
      if (field == null) {
20233
        throw new IllegalArgumentException();
20234
      }
20235
 
20236
      switch (field) {
20237
      case HSE:
20238
        return isSetHse();
20239
      }
20240
      throw new IllegalStateException();
20241
    }
20242
 
20243
    @Override
20244
    public boolean equals(Object that) {
20245
      if (that == null)
20246
        return false;
20247
      if (that instanceof saveQuickLink_result)
20248
        return this.equals((saveQuickLink_result)that);
20249
      return false;
20250
    }
20251
 
20252
    public boolean equals(saveQuickLink_result that) {
20253
      if (that == null)
20254
        return false;
20255
 
20256
      boolean this_present_hse = true && this.isSetHse();
20257
      boolean that_present_hse = true && that.isSetHse();
20258
      if (this_present_hse || that_present_hse) {
20259
        if (!(this_present_hse && that_present_hse))
20260
          return false;
20261
        if (!this.hse.equals(that.hse))
20262
          return false;
20263
      }
20264
 
20265
      return true;
20266
    }
20267
 
20268
    @Override
20269
    public int hashCode() {
20270
      return 0;
20271
    }
20272
 
20273
    public int compareTo(saveQuickLink_result other) {
20274
      if (!getClass().equals(other.getClass())) {
20275
        return getClass().getName().compareTo(other.getClass().getName());
20276
      }
20277
 
20278
      int lastComparison = 0;
20279
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20280
 
20281
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20282
      if (lastComparison != 0) {
20283
        return lastComparison;
20284
      }
20285
      if (isSetHse()) {
20286
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20287
        if (lastComparison != 0) {
20288
          return lastComparison;
20289
        }
20290
      }
20291
      return 0;
20292
    }
20293
 
20294
    public _Fields fieldForId(int fieldId) {
20295
      return _Fields.findByThriftId(fieldId);
20296
    }
20297
 
20298
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20299
      org.apache.thrift.protocol.TField field;
20300
      iprot.readStructBegin();
20301
      while (true)
20302
      {
20303
        field = iprot.readFieldBegin();
20304
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20305
          break;
20306
        }
20307
        switch (field.id) {
20308
          case 1: // HSE
20309
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20310
              this.hse = new HelperServiceException();
20311
              this.hse.read(iprot);
20312
            } else { 
20313
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20314
            }
20315
            break;
20316
          default:
20317
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20318
        }
20319
        iprot.readFieldEnd();
20320
      }
20321
      iprot.readStructEnd();
20322
      validate();
20323
    }
20324
 
20325
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20326
      oprot.writeStructBegin(STRUCT_DESC);
20327
 
20328
      if (this.isSetHse()) {
20329
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20330
        this.hse.write(oprot);
20331
        oprot.writeFieldEnd();
20332
      }
20333
      oprot.writeFieldStop();
20334
      oprot.writeStructEnd();
20335
    }
20336
 
20337
    @Override
20338
    public String toString() {
20339
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20340
      boolean first = true;
20341
 
20342
      sb.append("hse:");
20343
      if (this.hse == null) {
20344
        sb.append("null");
20345
      } else {
20346
        sb.append(this.hse);
20347
      }
20348
      first = false;
20349
      sb.append(")");
20350
      return sb.toString();
20351
    }
20352
 
20353
    public void validate() throws org.apache.thrift.TException {
20354
      // check for required fields
20355
    }
20356
 
20357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20358
      try {
20359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20360
      } catch (org.apache.thrift.TException te) {
20361
        throw new java.io.IOException(te);
20362
      }
20363
    }
20364
 
20365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20366
      try {
20367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20368
      } catch (org.apache.thrift.TException te) {
20369
        throw new java.io.IOException(te);
20370
      }
20371
    }
20372
 
20373
  }
20374
 
20375
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20377
 
20378
 
20379
 
20380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20382
;
20383
 
20384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20385
 
20386
      static {
20387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20388
          byName.put(field.getFieldName(), field);
20389
        }
20390
      }
20391
 
20392
      /**
20393
       * Find the _Fields constant that matches fieldId, or null if its not found.
20394
       */
20395
      public static _Fields findByThriftId(int fieldId) {
20396
        switch(fieldId) {
20397
          default:
20398
            return null;
20399
        }
20400
      }
20401
 
20402
      /**
20403
       * Find the _Fields constant that matches fieldId, throwing an exception
20404
       * if it is not found.
20405
       */
20406
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20407
        _Fields fields = findByThriftId(fieldId);
20408
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20409
        return fields;
20410
      }
20411
 
20412
      /**
20413
       * Find the _Fields constant that matches name, or null if its not found.
20414
       */
20415
      public static _Fields findByName(String name) {
20416
        return byName.get(name);
20417
      }
20418
 
20419
      private final short _thriftId;
20420
      private final String _fieldName;
20421
 
20422
      _Fields(short thriftId, String fieldName) {
20423
        _thriftId = thriftId;
20424
        _fieldName = fieldName;
20425
      }
20426
 
20427
      public short getThriftFieldId() {
20428
        return _thriftId;
20429
      }
20430
 
20431
      public String getFieldName() {
20432
        return _fieldName;
20433
      }
20434
    }
20435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20436
    static {
20437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20440
    }
20441
 
20442
    public getQuickLinks_args() {
20443
    }
20444
 
20445
    /**
20446
     * Performs a deep copy on <i>other</i>.
20447
     */
20448
    public getQuickLinks_args(getQuickLinks_args other) {
20449
    }
20450
 
20451
    public getQuickLinks_args deepCopy() {
20452
      return new getQuickLinks_args(this);
20453
    }
20454
 
20455
    @Override
20456
    public void clear() {
20457
    }
20458
 
20459
    public void setFieldValue(_Fields field, Object value) {
20460
      switch (field) {
20461
      }
20462
    }
20463
 
20464
    public Object getFieldValue(_Fields field) {
20465
      switch (field) {
20466
      }
20467
      throw new IllegalStateException();
20468
    }
20469
 
20470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20471
    public boolean isSet(_Fields field) {
20472
      if (field == null) {
20473
        throw new IllegalArgumentException();
20474
      }
20475
 
20476
      switch (field) {
20477
      }
20478
      throw new IllegalStateException();
20479
    }
20480
 
20481
    @Override
20482
    public boolean equals(Object that) {
20483
      if (that == null)
20484
        return false;
20485
      if (that instanceof getQuickLinks_args)
20486
        return this.equals((getQuickLinks_args)that);
20487
      return false;
20488
    }
20489
 
20490
    public boolean equals(getQuickLinks_args that) {
20491
      if (that == null)
20492
        return false;
20493
 
20494
      return true;
20495
    }
20496
 
20497
    @Override
20498
    public int hashCode() {
20499
      return 0;
20500
    }
20501
 
20502
    public int compareTo(getQuickLinks_args other) {
20503
      if (!getClass().equals(other.getClass())) {
20504
        return getClass().getName().compareTo(other.getClass().getName());
20505
      }
20506
 
20507
      int lastComparison = 0;
20508
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20509
 
20510
      return 0;
20511
    }
20512
 
20513
    public _Fields fieldForId(int fieldId) {
20514
      return _Fields.findByThriftId(fieldId);
20515
    }
20516
 
20517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20518
      org.apache.thrift.protocol.TField field;
20519
      iprot.readStructBegin();
20520
      while (true)
20521
      {
20522
        field = iprot.readFieldBegin();
20523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20524
          break;
20525
        }
20526
        switch (field.id) {
20527
          default:
20528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20529
        }
20530
        iprot.readFieldEnd();
20531
      }
20532
      iprot.readStructEnd();
20533
      validate();
20534
    }
20535
 
20536
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20537
      validate();
20538
 
20539
      oprot.writeStructBegin(STRUCT_DESC);
20540
      oprot.writeFieldStop();
20541
      oprot.writeStructEnd();
20542
    }
20543
 
20544
    @Override
20545
    public String toString() {
20546
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20547
      boolean first = true;
20548
 
20549
      sb.append(")");
20550
      return sb.toString();
20551
    }
20552
 
20553
    public void validate() throws org.apache.thrift.TException {
20554
      // check for required fields
20555
    }
20556
 
20557
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20558
      try {
20559
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20560
      } catch (org.apache.thrift.TException te) {
20561
        throw new java.io.IOException(te);
20562
      }
20563
    }
20564
 
20565
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20566
      try {
20567
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20568
      } catch (org.apache.thrift.TException te) {
20569
        throw new java.io.IOException(te);
20570
      }
20571
    }
20572
 
20573
  }
20574
 
20575
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20576
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20577
 
20578
    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);
20579
    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);
20580
 
20581
    private List<QuickLink> success; // required
20582
    private HelperServiceException hse; // required
20583
 
20584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20585
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20586
      SUCCESS((short)0, "success"),
20587
      HSE((short)1, "hse");
20588
 
20589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20590
 
20591
      static {
20592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20593
          byName.put(field.getFieldName(), field);
20594
        }
20595
      }
20596
 
20597
      /**
20598
       * Find the _Fields constant that matches fieldId, or null if its not found.
20599
       */
20600
      public static _Fields findByThriftId(int fieldId) {
20601
        switch(fieldId) {
20602
          case 0: // SUCCESS
20603
            return SUCCESS;
20604
          case 1: // HSE
20605
            return HSE;
20606
          default:
20607
            return null;
20608
        }
20609
      }
20610
 
20611
      /**
20612
       * Find the _Fields constant that matches fieldId, throwing an exception
20613
       * if it is not found.
20614
       */
20615
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20616
        _Fields fields = findByThriftId(fieldId);
20617
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20618
        return fields;
20619
      }
20620
 
20621
      /**
20622
       * Find the _Fields constant that matches name, or null if its not found.
20623
       */
20624
      public static _Fields findByName(String name) {
20625
        return byName.get(name);
20626
      }
20627
 
20628
      private final short _thriftId;
20629
      private final String _fieldName;
20630
 
20631
      _Fields(short thriftId, String fieldName) {
20632
        _thriftId = thriftId;
20633
        _fieldName = fieldName;
20634
      }
20635
 
20636
      public short getThriftFieldId() {
20637
        return _thriftId;
20638
      }
20639
 
20640
      public String getFieldName() {
20641
        return _fieldName;
20642
      }
20643
    }
20644
 
20645
    // isset id assignments
20646
 
20647
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20648
    static {
20649
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20650
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20651
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20652
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20653
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20657
    }
20658
 
20659
    public getQuickLinks_result() {
20660
    }
20661
 
20662
    public getQuickLinks_result(
20663
      List<QuickLink> success,
20664
      HelperServiceException hse)
20665
    {
20666
      this();
20667
      this.success = success;
20668
      this.hse = hse;
20669
    }
20670
 
20671
    /**
20672
     * Performs a deep copy on <i>other</i>.
20673
     */
20674
    public getQuickLinks_result(getQuickLinks_result other) {
20675
      if (other.isSetSuccess()) {
20676
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20677
        for (QuickLink other_element : other.success) {
20678
          __this__success.add(new QuickLink(other_element));
20679
        }
20680
        this.success = __this__success;
20681
      }
20682
      if (other.isSetHse()) {
20683
        this.hse = new HelperServiceException(other.hse);
20684
      }
20685
    }
20686
 
20687
    public getQuickLinks_result deepCopy() {
20688
      return new getQuickLinks_result(this);
20689
    }
20690
 
20691
    @Override
20692
    public void clear() {
20693
      this.success = null;
20694
      this.hse = null;
20695
    }
20696
 
20697
    public int getSuccessSize() {
20698
      return (this.success == null) ? 0 : this.success.size();
20699
    }
20700
 
20701
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20702
      return (this.success == null) ? null : this.success.iterator();
20703
    }
20704
 
20705
    public void addToSuccess(QuickLink elem) {
20706
      if (this.success == null) {
20707
        this.success = new ArrayList<QuickLink>();
20708
      }
20709
      this.success.add(elem);
20710
    }
20711
 
20712
    public List<QuickLink> getSuccess() {
20713
      return this.success;
20714
    }
20715
 
20716
    public void setSuccess(List<QuickLink> success) {
20717
      this.success = success;
20718
    }
20719
 
20720
    public void unsetSuccess() {
20721
      this.success = null;
20722
    }
20723
 
20724
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20725
    public boolean isSetSuccess() {
20726
      return this.success != null;
20727
    }
20728
 
20729
    public void setSuccessIsSet(boolean value) {
20730
      if (!value) {
20731
        this.success = null;
20732
      }
20733
    }
20734
 
20735
    public HelperServiceException getHse() {
20736
      return this.hse;
20737
    }
20738
 
20739
    public void setHse(HelperServiceException hse) {
20740
      this.hse = hse;
20741
    }
20742
 
20743
    public void unsetHse() {
20744
      this.hse = null;
20745
    }
20746
 
20747
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20748
    public boolean isSetHse() {
20749
      return this.hse != null;
20750
    }
20751
 
20752
    public void setHseIsSet(boolean value) {
20753
      if (!value) {
20754
        this.hse = null;
20755
      }
20756
    }
20757
 
20758
    public void setFieldValue(_Fields field, Object value) {
20759
      switch (field) {
20760
      case SUCCESS:
20761
        if (value == null) {
20762
          unsetSuccess();
20763
        } else {
20764
          setSuccess((List<QuickLink>)value);
20765
        }
20766
        break;
20767
 
20768
      case HSE:
20769
        if (value == null) {
20770
          unsetHse();
20771
        } else {
20772
          setHse((HelperServiceException)value);
20773
        }
20774
        break;
20775
 
20776
      }
20777
    }
20778
 
20779
    public Object getFieldValue(_Fields field) {
20780
      switch (field) {
20781
      case SUCCESS:
20782
        return getSuccess();
20783
 
20784
      case HSE:
20785
        return getHse();
20786
 
20787
      }
20788
      throw new IllegalStateException();
20789
    }
20790
 
20791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20792
    public boolean isSet(_Fields field) {
20793
      if (field == null) {
20794
        throw new IllegalArgumentException();
20795
      }
20796
 
20797
      switch (field) {
20798
      case SUCCESS:
20799
        return isSetSuccess();
20800
      case HSE:
20801
        return isSetHse();
20802
      }
20803
      throw new IllegalStateException();
20804
    }
20805
 
20806
    @Override
20807
    public boolean equals(Object that) {
20808
      if (that == null)
20809
        return false;
20810
      if (that instanceof getQuickLinks_result)
20811
        return this.equals((getQuickLinks_result)that);
20812
      return false;
20813
    }
20814
 
20815
    public boolean equals(getQuickLinks_result that) {
20816
      if (that == null)
20817
        return false;
20818
 
20819
      boolean this_present_success = true && this.isSetSuccess();
20820
      boolean that_present_success = true && that.isSetSuccess();
20821
      if (this_present_success || that_present_success) {
20822
        if (!(this_present_success && that_present_success))
20823
          return false;
20824
        if (!this.success.equals(that.success))
20825
          return false;
20826
      }
20827
 
20828
      boolean this_present_hse = true && this.isSetHse();
20829
      boolean that_present_hse = true && that.isSetHse();
20830
      if (this_present_hse || that_present_hse) {
20831
        if (!(this_present_hse && that_present_hse))
20832
          return false;
20833
        if (!this.hse.equals(that.hse))
20834
          return false;
20835
      }
20836
 
20837
      return true;
20838
    }
20839
 
20840
    @Override
20841
    public int hashCode() {
20842
      return 0;
20843
    }
20844
 
20845
    public int compareTo(getQuickLinks_result other) {
20846
      if (!getClass().equals(other.getClass())) {
20847
        return getClass().getName().compareTo(other.getClass().getName());
20848
      }
20849
 
20850
      int lastComparison = 0;
20851
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20852
 
20853
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20854
      if (lastComparison != 0) {
20855
        return lastComparison;
20856
      }
20857
      if (isSetSuccess()) {
20858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20859
        if (lastComparison != 0) {
20860
          return lastComparison;
20861
        }
20862
      }
20863
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20864
      if (lastComparison != 0) {
20865
        return lastComparison;
20866
      }
20867
      if (isSetHse()) {
20868
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20869
        if (lastComparison != 0) {
20870
          return lastComparison;
20871
        }
20872
      }
20873
      return 0;
20874
    }
20875
 
20876
    public _Fields fieldForId(int fieldId) {
20877
      return _Fields.findByThriftId(fieldId);
20878
    }
20879
 
20880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20881
      org.apache.thrift.protocol.TField field;
20882
      iprot.readStructBegin();
20883
      while (true)
20884
      {
20885
        field = iprot.readFieldBegin();
20886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20887
          break;
20888
        }
20889
        switch (field.id) {
20890
          case 0: // SUCCESS
20891
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20892
              {
5864 rajveer 20893
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
20894
                this.success = new ArrayList<QuickLink>(_list61.size);
20895
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 20896
                {
5864 rajveer 20897
                  QuickLink _elem63; // required
20898
                  _elem63 = new QuickLink();
20899
                  _elem63.read(iprot);
20900
                  this.success.add(_elem63);
4806 varun.gupt 20901
                }
20902
                iprot.readListEnd();
20903
              }
20904
            } else { 
20905
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20906
            }
20907
            break;
20908
          case 1: // HSE
20909
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20910
              this.hse = new HelperServiceException();
20911
              this.hse.read(iprot);
20912
            } else { 
20913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20914
            }
20915
            break;
20916
          default:
20917
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20918
        }
20919
        iprot.readFieldEnd();
20920
      }
20921
      iprot.readStructEnd();
20922
      validate();
20923
    }
20924
 
20925
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20926
      oprot.writeStructBegin(STRUCT_DESC);
20927
 
20928
      if (this.isSetSuccess()) {
20929
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20930
        {
20931
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 20932
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 20933
          {
5864 rajveer 20934
            _iter64.write(oprot);
4806 varun.gupt 20935
          }
20936
          oprot.writeListEnd();
20937
        }
20938
        oprot.writeFieldEnd();
20939
      } else if (this.isSetHse()) {
20940
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20941
        this.hse.write(oprot);
20942
        oprot.writeFieldEnd();
20943
      }
20944
      oprot.writeFieldStop();
20945
      oprot.writeStructEnd();
20946
    }
20947
 
20948
    @Override
20949
    public String toString() {
20950
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
20951
      boolean first = true;
20952
 
20953
      sb.append("success:");
20954
      if (this.success == null) {
20955
        sb.append("null");
20956
      } else {
20957
        sb.append(this.success);
20958
      }
20959
      first = false;
20960
      if (!first) sb.append(", ");
20961
      sb.append("hse:");
20962
      if (this.hse == null) {
20963
        sb.append("null");
20964
      } else {
20965
        sb.append(this.hse);
20966
      }
20967
      first = false;
20968
      sb.append(")");
20969
      return sb.toString();
20970
    }
20971
 
20972
    public void validate() throws org.apache.thrift.TException {
20973
      // check for required fields
20974
    }
20975
 
20976
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20977
      try {
20978
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20979
      } catch (org.apache.thrift.TException te) {
20980
        throw new java.io.IOException(te);
20981
      }
20982
    }
20983
 
20984
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20985
      try {
20986
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20987
      } catch (org.apache.thrift.TException te) {
20988
        throw new java.io.IOException(te);
20989
      }
20990
    }
20991
 
20992
  }
20993
 
4996 varun.gupt 20994
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20995
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
20996
 
20997
    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);
20998
    private static final org.apache.thrift.protocol.TField URL_FIELD_DESC = new org.apache.thrift.protocol.TField("url", org.apache.thrift.protocol.TType.STRING, (short)2);
20999
    private static final org.apache.thrift.protocol.TField TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("text", org.apache.thrift.protocol.TType.STRING, (short)3);
21000
 
21001
    private long id; // required
21002
    private String url; // required
21003
    private String text; // required
21004
 
21005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21007
      ID((short)1, "id"),
21008
      URL((short)2, "url"),
21009
      TEXT((short)3, "text");
21010
 
21011
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21012
 
21013
      static {
21014
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21015
          byName.put(field.getFieldName(), field);
21016
        }
21017
      }
21018
 
21019
      /**
21020
       * Find the _Fields constant that matches fieldId, or null if its not found.
21021
       */
21022
      public static _Fields findByThriftId(int fieldId) {
21023
        switch(fieldId) {
21024
          case 1: // ID
21025
            return ID;
21026
          case 2: // URL
21027
            return URL;
21028
          case 3: // TEXT
21029
            return TEXT;
21030
          default:
21031
            return null;
21032
        }
21033
      }
21034
 
21035
      /**
21036
       * Find the _Fields constant that matches fieldId, throwing an exception
21037
       * if it is not found.
21038
       */
21039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21040
        _Fields fields = findByThriftId(fieldId);
21041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21042
        return fields;
21043
      }
21044
 
21045
      /**
21046
       * Find the _Fields constant that matches name, or null if its not found.
21047
       */
21048
      public static _Fields findByName(String name) {
21049
        return byName.get(name);
21050
      }
21051
 
21052
      private final short _thriftId;
21053
      private final String _fieldName;
21054
 
21055
      _Fields(short thriftId, String fieldName) {
21056
        _thriftId = thriftId;
21057
        _fieldName = fieldName;
21058
      }
21059
 
21060
      public short getThriftFieldId() {
21061
        return _thriftId;
21062
      }
21063
 
21064
      public String getFieldName() {
21065
        return _fieldName;
21066
      }
21067
    }
21068
 
21069
    // isset id assignments
21070
    private static final int __ID_ISSET_ID = 0;
21071
    private BitSet __isset_bit_vector = new BitSet(1);
21072
 
21073
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21074
    static {
21075
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21076
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21077
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21078
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21079
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21080
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21081
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21084
    }
21085
 
21086
    public updateQuickLink_args() {
21087
    }
21088
 
21089
    public updateQuickLink_args(
21090
      long id,
21091
      String url,
21092
      String text)
21093
    {
21094
      this();
21095
      this.id = id;
21096
      setIdIsSet(true);
21097
      this.url = url;
21098
      this.text = text;
21099
    }
21100
 
21101
    /**
21102
     * Performs a deep copy on <i>other</i>.
21103
     */
21104
    public updateQuickLink_args(updateQuickLink_args other) {
21105
      __isset_bit_vector.clear();
21106
      __isset_bit_vector.or(other.__isset_bit_vector);
21107
      this.id = other.id;
21108
      if (other.isSetUrl()) {
21109
        this.url = other.url;
21110
      }
21111
      if (other.isSetText()) {
21112
        this.text = other.text;
21113
      }
21114
    }
21115
 
21116
    public updateQuickLink_args deepCopy() {
21117
      return new updateQuickLink_args(this);
21118
    }
21119
 
21120
    @Override
21121
    public void clear() {
21122
      setIdIsSet(false);
21123
      this.id = 0;
21124
      this.url = null;
21125
      this.text = null;
21126
    }
21127
 
21128
    public long getId() {
21129
      return this.id;
21130
    }
21131
 
21132
    public void setId(long id) {
21133
      this.id = id;
21134
      setIdIsSet(true);
21135
    }
21136
 
21137
    public void unsetId() {
21138
      __isset_bit_vector.clear(__ID_ISSET_ID);
21139
    }
21140
 
21141
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21142
    public boolean isSetId() {
21143
      return __isset_bit_vector.get(__ID_ISSET_ID);
21144
    }
21145
 
21146
    public void setIdIsSet(boolean value) {
21147
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21148
    }
21149
 
21150
    public String getUrl() {
21151
      return this.url;
21152
    }
21153
 
21154
    public void setUrl(String url) {
21155
      this.url = url;
21156
    }
21157
 
21158
    public void unsetUrl() {
21159
      this.url = null;
21160
    }
21161
 
21162
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21163
    public boolean isSetUrl() {
21164
      return this.url != null;
21165
    }
21166
 
21167
    public void setUrlIsSet(boolean value) {
21168
      if (!value) {
21169
        this.url = null;
21170
      }
21171
    }
21172
 
21173
    public String getText() {
21174
      return this.text;
21175
    }
21176
 
21177
    public void setText(String text) {
21178
      this.text = text;
21179
    }
21180
 
21181
    public void unsetText() {
21182
      this.text = null;
21183
    }
21184
 
21185
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21186
    public boolean isSetText() {
21187
      return this.text != null;
21188
    }
21189
 
21190
    public void setTextIsSet(boolean value) {
21191
      if (!value) {
21192
        this.text = null;
21193
      }
21194
    }
21195
 
21196
    public void setFieldValue(_Fields field, Object value) {
21197
      switch (field) {
21198
      case ID:
21199
        if (value == null) {
21200
          unsetId();
21201
        } else {
21202
          setId((Long)value);
21203
        }
21204
        break;
21205
 
21206
      case URL:
21207
        if (value == null) {
21208
          unsetUrl();
21209
        } else {
21210
          setUrl((String)value);
21211
        }
21212
        break;
21213
 
21214
      case TEXT:
21215
        if (value == null) {
21216
          unsetText();
21217
        } else {
21218
          setText((String)value);
21219
        }
21220
        break;
21221
 
21222
      }
21223
    }
21224
 
21225
    public Object getFieldValue(_Fields field) {
21226
      switch (field) {
21227
      case ID:
21228
        return Long.valueOf(getId());
21229
 
21230
      case URL:
21231
        return getUrl();
21232
 
21233
      case TEXT:
21234
        return getText();
21235
 
21236
      }
21237
      throw new IllegalStateException();
21238
    }
21239
 
21240
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21241
    public boolean isSet(_Fields field) {
21242
      if (field == null) {
21243
        throw new IllegalArgumentException();
21244
      }
21245
 
21246
      switch (field) {
21247
      case ID:
21248
        return isSetId();
21249
      case URL:
21250
        return isSetUrl();
21251
      case TEXT:
21252
        return isSetText();
21253
      }
21254
      throw new IllegalStateException();
21255
    }
21256
 
21257
    @Override
21258
    public boolean equals(Object that) {
21259
      if (that == null)
21260
        return false;
21261
      if (that instanceof updateQuickLink_args)
21262
        return this.equals((updateQuickLink_args)that);
21263
      return false;
21264
    }
21265
 
21266
    public boolean equals(updateQuickLink_args that) {
21267
      if (that == null)
21268
        return false;
21269
 
21270
      boolean this_present_id = true;
21271
      boolean that_present_id = true;
21272
      if (this_present_id || that_present_id) {
21273
        if (!(this_present_id && that_present_id))
21274
          return false;
21275
        if (this.id != that.id)
21276
          return false;
21277
      }
21278
 
21279
      boolean this_present_url = true && this.isSetUrl();
21280
      boolean that_present_url = true && that.isSetUrl();
21281
      if (this_present_url || that_present_url) {
21282
        if (!(this_present_url && that_present_url))
21283
          return false;
21284
        if (!this.url.equals(that.url))
21285
          return false;
21286
      }
21287
 
21288
      boolean this_present_text = true && this.isSetText();
21289
      boolean that_present_text = true && that.isSetText();
21290
      if (this_present_text || that_present_text) {
21291
        if (!(this_present_text && that_present_text))
21292
          return false;
21293
        if (!this.text.equals(that.text))
21294
          return false;
21295
      }
21296
 
21297
      return true;
21298
    }
21299
 
21300
    @Override
21301
    public int hashCode() {
21302
      return 0;
21303
    }
21304
 
21305
    public int compareTo(updateQuickLink_args other) {
21306
      if (!getClass().equals(other.getClass())) {
21307
        return getClass().getName().compareTo(other.getClass().getName());
21308
      }
21309
 
21310
      int lastComparison = 0;
21311
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21312
 
21313
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21314
      if (lastComparison != 0) {
21315
        return lastComparison;
21316
      }
21317
      if (isSetId()) {
21318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21319
        if (lastComparison != 0) {
21320
          return lastComparison;
21321
        }
21322
      }
21323
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21324
      if (lastComparison != 0) {
21325
        return lastComparison;
21326
      }
21327
      if (isSetUrl()) {
21328
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21329
        if (lastComparison != 0) {
21330
          return lastComparison;
21331
        }
21332
      }
21333
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21334
      if (lastComparison != 0) {
21335
        return lastComparison;
21336
      }
21337
      if (isSetText()) {
21338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21339
        if (lastComparison != 0) {
21340
          return lastComparison;
21341
        }
21342
      }
21343
      return 0;
21344
    }
21345
 
21346
    public _Fields fieldForId(int fieldId) {
21347
      return _Fields.findByThriftId(fieldId);
21348
    }
21349
 
21350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21351
      org.apache.thrift.protocol.TField field;
21352
      iprot.readStructBegin();
21353
      while (true)
21354
      {
21355
        field = iprot.readFieldBegin();
21356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21357
          break;
21358
        }
21359
        switch (field.id) {
21360
          case 1: // ID
21361
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21362
              this.id = iprot.readI64();
21363
              setIdIsSet(true);
21364
            } else { 
21365
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21366
            }
21367
            break;
21368
          case 2: // URL
21369
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21370
              this.url = iprot.readString();
21371
            } else { 
21372
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21373
            }
21374
            break;
21375
          case 3: // TEXT
21376
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21377
              this.text = iprot.readString();
21378
            } else { 
21379
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21380
            }
21381
            break;
21382
          default:
21383
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21384
        }
21385
        iprot.readFieldEnd();
21386
      }
21387
      iprot.readStructEnd();
21388
      validate();
21389
    }
21390
 
21391
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21392
      validate();
21393
 
21394
      oprot.writeStructBegin(STRUCT_DESC);
21395
      oprot.writeFieldBegin(ID_FIELD_DESC);
21396
      oprot.writeI64(this.id);
21397
      oprot.writeFieldEnd();
21398
      if (this.url != null) {
21399
        oprot.writeFieldBegin(URL_FIELD_DESC);
21400
        oprot.writeString(this.url);
21401
        oprot.writeFieldEnd();
21402
      }
21403
      if (this.text != null) {
21404
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21405
        oprot.writeString(this.text);
21406
        oprot.writeFieldEnd();
21407
      }
21408
      oprot.writeFieldStop();
21409
      oprot.writeStructEnd();
21410
    }
21411
 
21412
    @Override
21413
    public String toString() {
21414
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21415
      boolean first = true;
21416
 
21417
      sb.append("id:");
21418
      sb.append(this.id);
21419
      first = false;
21420
      if (!first) sb.append(", ");
21421
      sb.append("url:");
21422
      if (this.url == null) {
21423
        sb.append("null");
21424
      } else {
21425
        sb.append(this.url);
21426
      }
21427
      first = false;
21428
      if (!first) sb.append(", ");
21429
      sb.append("text:");
21430
      if (this.text == null) {
21431
        sb.append("null");
21432
      } else {
21433
        sb.append(this.text);
21434
      }
21435
      first = false;
21436
      sb.append(")");
21437
      return sb.toString();
21438
    }
21439
 
21440
    public void validate() throws org.apache.thrift.TException {
21441
      // check for required fields
21442
    }
21443
 
21444
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21445
      try {
21446
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21447
      } catch (org.apache.thrift.TException te) {
21448
        throw new java.io.IOException(te);
21449
      }
21450
    }
21451
 
21452
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21453
      try {
21454
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21455
        __isset_bit_vector = new BitSet(1);
21456
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21457
      } catch (org.apache.thrift.TException te) {
21458
        throw new java.io.IOException(te);
21459
      }
21460
    }
21461
 
21462
  }
21463
 
21464
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21465
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21466
 
21467
    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);
21468
 
21469
    private HelperServiceException hse; // required
21470
 
21471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21473
      HSE((short)1, "hse");
21474
 
21475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21476
 
21477
      static {
21478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21479
          byName.put(field.getFieldName(), field);
21480
        }
21481
      }
21482
 
21483
      /**
21484
       * Find the _Fields constant that matches fieldId, or null if its not found.
21485
       */
21486
      public static _Fields findByThriftId(int fieldId) {
21487
        switch(fieldId) {
21488
          case 1: // HSE
21489
            return HSE;
21490
          default:
21491
            return null;
21492
        }
21493
      }
21494
 
21495
      /**
21496
       * Find the _Fields constant that matches fieldId, throwing an exception
21497
       * if it is not found.
21498
       */
21499
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21500
        _Fields fields = findByThriftId(fieldId);
21501
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21502
        return fields;
21503
      }
21504
 
21505
      /**
21506
       * Find the _Fields constant that matches name, or null if its not found.
21507
       */
21508
      public static _Fields findByName(String name) {
21509
        return byName.get(name);
21510
      }
21511
 
21512
      private final short _thriftId;
21513
      private final String _fieldName;
21514
 
21515
      _Fields(short thriftId, String fieldName) {
21516
        _thriftId = thriftId;
21517
        _fieldName = fieldName;
21518
      }
21519
 
21520
      public short getThriftFieldId() {
21521
        return _thriftId;
21522
      }
21523
 
21524
      public String getFieldName() {
21525
        return _fieldName;
21526
      }
21527
    }
21528
 
21529
    // isset id assignments
21530
 
21531
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21532
    static {
21533
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21534
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21535
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21536
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21537
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21538
    }
21539
 
21540
    public updateQuickLink_result() {
21541
    }
21542
 
21543
    public updateQuickLink_result(
21544
      HelperServiceException hse)
21545
    {
21546
      this();
21547
      this.hse = hse;
21548
    }
21549
 
21550
    /**
21551
     * Performs a deep copy on <i>other</i>.
21552
     */
21553
    public updateQuickLink_result(updateQuickLink_result other) {
21554
      if (other.isSetHse()) {
21555
        this.hse = new HelperServiceException(other.hse);
21556
      }
21557
    }
21558
 
21559
    public updateQuickLink_result deepCopy() {
21560
      return new updateQuickLink_result(this);
21561
    }
21562
 
21563
    @Override
21564
    public void clear() {
21565
      this.hse = null;
21566
    }
21567
 
21568
    public HelperServiceException getHse() {
21569
      return this.hse;
21570
    }
21571
 
21572
    public void setHse(HelperServiceException hse) {
21573
      this.hse = hse;
21574
    }
21575
 
21576
    public void unsetHse() {
21577
      this.hse = null;
21578
    }
21579
 
21580
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21581
    public boolean isSetHse() {
21582
      return this.hse != null;
21583
    }
21584
 
21585
    public void setHseIsSet(boolean value) {
21586
      if (!value) {
21587
        this.hse = null;
21588
      }
21589
    }
21590
 
21591
    public void setFieldValue(_Fields field, Object value) {
21592
      switch (field) {
21593
      case HSE:
21594
        if (value == null) {
21595
          unsetHse();
21596
        } else {
21597
          setHse((HelperServiceException)value);
21598
        }
21599
        break;
21600
 
21601
      }
21602
    }
21603
 
21604
    public Object getFieldValue(_Fields field) {
21605
      switch (field) {
21606
      case HSE:
21607
        return getHse();
21608
 
21609
      }
21610
      throw new IllegalStateException();
21611
    }
21612
 
21613
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21614
    public boolean isSet(_Fields field) {
21615
      if (field == null) {
21616
        throw new IllegalArgumentException();
21617
      }
21618
 
21619
      switch (field) {
21620
      case HSE:
21621
        return isSetHse();
21622
      }
21623
      throw new IllegalStateException();
21624
    }
21625
 
21626
    @Override
21627
    public boolean equals(Object that) {
21628
      if (that == null)
21629
        return false;
21630
      if (that instanceof updateQuickLink_result)
21631
        return this.equals((updateQuickLink_result)that);
21632
      return false;
21633
    }
21634
 
21635
    public boolean equals(updateQuickLink_result that) {
21636
      if (that == null)
21637
        return false;
21638
 
21639
      boolean this_present_hse = true && this.isSetHse();
21640
      boolean that_present_hse = true && that.isSetHse();
21641
      if (this_present_hse || that_present_hse) {
21642
        if (!(this_present_hse && that_present_hse))
21643
          return false;
21644
        if (!this.hse.equals(that.hse))
21645
          return false;
21646
      }
21647
 
21648
      return true;
21649
    }
21650
 
21651
    @Override
21652
    public int hashCode() {
21653
      return 0;
21654
    }
21655
 
21656
    public int compareTo(updateQuickLink_result other) {
21657
      if (!getClass().equals(other.getClass())) {
21658
        return getClass().getName().compareTo(other.getClass().getName());
21659
      }
21660
 
21661
      int lastComparison = 0;
21662
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21663
 
21664
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21665
      if (lastComparison != 0) {
21666
        return lastComparison;
21667
      }
21668
      if (isSetHse()) {
21669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21670
        if (lastComparison != 0) {
21671
          return lastComparison;
21672
        }
21673
      }
21674
      return 0;
21675
    }
21676
 
21677
    public _Fields fieldForId(int fieldId) {
21678
      return _Fields.findByThriftId(fieldId);
21679
    }
21680
 
21681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21682
      org.apache.thrift.protocol.TField field;
21683
      iprot.readStructBegin();
21684
      while (true)
21685
      {
21686
        field = iprot.readFieldBegin();
21687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21688
          break;
21689
        }
21690
        switch (field.id) {
21691
          case 1: // HSE
21692
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21693
              this.hse = new HelperServiceException();
21694
              this.hse.read(iprot);
21695
            } else { 
21696
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21697
            }
21698
            break;
21699
          default:
21700
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21701
        }
21702
        iprot.readFieldEnd();
21703
      }
21704
      iprot.readStructEnd();
21705
      validate();
21706
    }
21707
 
21708
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21709
      oprot.writeStructBegin(STRUCT_DESC);
21710
 
21711
      if (this.isSetHse()) {
21712
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21713
        this.hse.write(oprot);
21714
        oprot.writeFieldEnd();
21715
      }
21716
      oprot.writeFieldStop();
21717
      oprot.writeStructEnd();
21718
    }
21719
 
21720
    @Override
21721
    public String toString() {
21722
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21723
      boolean first = true;
21724
 
21725
      sb.append("hse:");
21726
      if (this.hse == null) {
21727
        sb.append("null");
21728
      } else {
21729
        sb.append(this.hse);
21730
      }
21731
      first = false;
21732
      sb.append(")");
21733
      return sb.toString();
21734
    }
21735
 
21736
    public void validate() throws org.apache.thrift.TException {
21737
      // check for required fields
21738
    }
21739
 
21740
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21741
      try {
21742
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21743
      } catch (org.apache.thrift.TException te) {
21744
        throw new java.io.IOException(te);
21745
      }
21746
    }
21747
 
21748
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21749
      try {
21750
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21751
      } catch (org.apache.thrift.TException te) {
21752
        throw new java.io.IOException(te);
21753
      }
21754
    }
21755
 
21756
  }
21757
 
5055 varun.gupt 21758
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21759
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21760
 
21761
    private static final org.apache.thrift.protocol.TField START_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("startDatetime", org.apache.thrift.protocol.TType.I64, (short)1);
21762
    private static final org.apache.thrift.protocol.TField END_DATETIME_FIELD_DESC = new org.apache.thrift.protocol.TField("endDatetime", org.apache.thrift.protocol.TType.I64, (short)2);
21763
 
21764
    private long startDatetime; // required
21765
    private long endDatetime; // required
21766
 
21767
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21768
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21769
      START_DATETIME((short)1, "startDatetime"),
21770
      END_DATETIME((short)2, "endDatetime");
21771
 
21772
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21773
 
21774
      static {
21775
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21776
          byName.put(field.getFieldName(), field);
21777
        }
21778
      }
21779
 
21780
      /**
21781
       * Find the _Fields constant that matches fieldId, or null if its not found.
21782
       */
21783
      public static _Fields findByThriftId(int fieldId) {
21784
        switch(fieldId) {
21785
          case 1: // START_DATETIME
21786
            return START_DATETIME;
21787
          case 2: // END_DATETIME
21788
            return END_DATETIME;
21789
          default:
21790
            return null;
21791
        }
21792
      }
21793
 
21794
      /**
21795
       * Find the _Fields constant that matches fieldId, throwing an exception
21796
       * if it is not found.
21797
       */
21798
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21799
        _Fields fields = findByThriftId(fieldId);
21800
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21801
        return fields;
21802
      }
21803
 
21804
      /**
21805
       * Find the _Fields constant that matches name, or null if its not found.
21806
       */
21807
      public static _Fields findByName(String name) {
21808
        return byName.get(name);
21809
      }
21810
 
21811
      private final short _thriftId;
21812
      private final String _fieldName;
21813
 
21814
      _Fields(short thriftId, String fieldName) {
21815
        _thriftId = thriftId;
21816
        _fieldName = fieldName;
21817
      }
21818
 
21819
      public short getThriftFieldId() {
21820
        return _thriftId;
21821
      }
21822
 
21823
      public String getFieldName() {
21824
        return _fieldName;
21825
      }
21826
    }
21827
 
21828
    // isset id assignments
21829
    private static final int __STARTDATETIME_ISSET_ID = 0;
21830
    private static final int __ENDDATETIME_ISSET_ID = 1;
21831
    private BitSet __isset_bit_vector = new BitSet(2);
21832
 
21833
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21834
    static {
21835
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21836
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21837
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21838
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21839
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21842
    }
21843
 
21844
    public getEmailsForNotificationsSent_args() {
21845
    }
21846
 
21847
    public getEmailsForNotificationsSent_args(
21848
      long startDatetime,
21849
      long endDatetime)
21850
    {
21851
      this();
21852
      this.startDatetime = startDatetime;
21853
      setStartDatetimeIsSet(true);
21854
      this.endDatetime = endDatetime;
21855
      setEndDatetimeIsSet(true);
21856
    }
21857
 
21858
    /**
21859
     * Performs a deep copy on <i>other</i>.
21860
     */
21861
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
21862
      __isset_bit_vector.clear();
21863
      __isset_bit_vector.or(other.__isset_bit_vector);
21864
      this.startDatetime = other.startDatetime;
21865
      this.endDatetime = other.endDatetime;
21866
    }
21867
 
21868
    public getEmailsForNotificationsSent_args deepCopy() {
21869
      return new getEmailsForNotificationsSent_args(this);
21870
    }
21871
 
21872
    @Override
21873
    public void clear() {
21874
      setStartDatetimeIsSet(false);
21875
      this.startDatetime = 0;
21876
      setEndDatetimeIsSet(false);
21877
      this.endDatetime = 0;
21878
    }
21879
 
21880
    public long getStartDatetime() {
21881
      return this.startDatetime;
21882
    }
21883
 
21884
    public void setStartDatetime(long startDatetime) {
21885
      this.startDatetime = startDatetime;
21886
      setStartDatetimeIsSet(true);
21887
    }
21888
 
21889
    public void unsetStartDatetime() {
21890
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
21891
    }
21892
 
21893
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
21894
    public boolean isSetStartDatetime() {
21895
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
21896
    }
21897
 
21898
    public void setStartDatetimeIsSet(boolean value) {
21899
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
21900
    }
21901
 
21902
    public long getEndDatetime() {
21903
      return this.endDatetime;
21904
    }
21905
 
21906
    public void setEndDatetime(long endDatetime) {
21907
      this.endDatetime = endDatetime;
21908
      setEndDatetimeIsSet(true);
21909
    }
21910
 
21911
    public void unsetEndDatetime() {
21912
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
21913
    }
21914
 
21915
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
21916
    public boolean isSetEndDatetime() {
21917
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
21918
    }
21919
 
21920
    public void setEndDatetimeIsSet(boolean value) {
21921
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
21922
    }
21923
 
21924
    public void setFieldValue(_Fields field, Object value) {
21925
      switch (field) {
21926
      case START_DATETIME:
21927
        if (value == null) {
21928
          unsetStartDatetime();
21929
        } else {
21930
          setStartDatetime((Long)value);
21931
        }
21932
        break;
21933
 
21934
      case END_DATETIME:
21935
        if (value == null) {
21936
          unsetEndDatetime();
21937
        } else {
21938
          setEndDatetime((Long)value);
21939
        }
21940
        break;
21941
 
21942
      }
21943
    }
21944
 
21945
    public Object getFieldValue(_Fields field) {
21946
      switch (field) {
21947
      case START_DATETIME:
21948
        return Long.valueOf(getStartDatetime());
21949
 
21950
      case END_DATETIME:
21951
        return Long.valueOf(getEndDatetime());
21952
 
21953
      }
21954
      throw new IllegalStateException();
21955
    }
21956
 
21957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21958
    public boolean isSet(_Fields field) {
21959
      if (field == null) {
21960
        throw new IllegalArgumentException();
21961
      }
21962
 
21963
      switch (field) {
21964
      case START_DATETIME:
21965
        return isSetStartDatetime();
21966
      case END_DATETIME:
21967
        return isSetEndDatetime();
21968
      }
21969
      throw new IllegalStateException();
21970
    }
21971
 
21972
    @Override
21973
    public boolean equals(Object that) {
21974
      if (that == null)
21975
        return false;
21976
      if (that instanceof getEmailsForNotificationsSent_args)
21977
        return this.equals((getEmailsForNotificationsSent_args)that);
21978
      return false;
21979
    }
21980
 
21981
    public boolean equals(getEmailsForNotificationsSent_args that) {
21982
      if (that == null)
21983
        return false;
21984
 
21985
      boolean this_present_startDatetime = true;
21986
      boolean that_present_startDatetime = true;
21987
      if (this_present_startDatetime || that_present_startDatetime) {
21988
        if (!(this_present_startDatetime && that_present_startDatetime))
21989
          return false;
21990
        if (this.startDatetime != that.startDatetime)
21991
          return false;
21992
      }
21993
 
21994
      boolean this_present_endDatetime = true;
21995
      boolean that_present_endDatetime = true;
21996
      if (this_present_endDatetime || that_present_endDatetime) {
21997
        if (!(this_present_endDatetime && that_present_endDatetime))
21998
          return false;
21999
        if (this.endDatetime != that.endDatetime)
22000
          return false;
22001
      }
22002
 
22003
      return true;
22004
    }
22005
 
22006
    @Override
22007
    public int hashCode() {
22008
      return 0;
22009
    }
22010
 
22011
    public int compareTo(getEmailsForNotificationsSent_args other) {
22012
      if (!getClass().equals(other.getClass())) {
22013
        return getClass().getName().compareTo(other.getClass().getName());
22014
      }
22015
 
22016
      int lastComparison = 0;
22017
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22018
 
22019
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22020
      if (lastComparison != 0) {
22021
        return lastComparison;
22022
      }
22023
      if (isSetStartDatetime()) {
22024
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22025
        if (lastComparison != 0) {
22026
          return lastComparison;
22027
        }
22028
      }
22029
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22030
      if (lastComparison != 0) {
22031
        return lastComparison;
22032
      }
22033
      if (isSetEndDatetime()) {
22034
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22035
        if (lastComparison != 0) {
22036
          return lastComparison;
22037
        }
22038
      }
22039
      return 0;
22040
    }
22041
 
22042
    public _Fields fieldForId(int fieldId) {
22043
      return _Fields.findByThriftId(fieldId);
22044
    }
22045
 
22046
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22047
      org.apache.thrift.protocol.TField field;
22048
      iprot.readStructBegin();
22049
      while (true)
22050
      {
22051
        field = iprot.readFieldBegin();
22052
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22053
          break;
22054
        }
22055
        switch (field.id) {
22056
          case 1: // START_DATETIME
22057
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22058
              this.startDatetime = iprot.readI64();
22059
              setStartDatetimeIsSet(true);
22060
            } else { 
22061
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22062
            }
22063
            break;
22064
          case 2: // END_DATETIME
22065
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22066
              this.endDatetime = iprot.readI64();
22067
              setEndDatetimeIsSet(true);
22068
            } else { 
22069
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22070
            }
22071
            break;
22072
          default:
22073
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22074
        }
22075
        iprot.readFieldEnd();
22076
      }
22077
      iprot.readStructEnd();
22078
      validate();
22079
    }
22080
 
22081
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22082
      validate();
22083
 
22084
      oprot.writeStructBegin(STRUCT_DESC);
22085
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22086
      oprot.writeI64(this.startDatetime);
22087
      oprot.writeFieldEnd();
22088
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22089
      oprot.writeI64(this.endDatetime);
22090
      oprot.writeFieldEnd();
22091
      oprot.writeFieldStop();
22092
      oprot.writeStructEnd();
22093
    }
22094
 
22095
    @Override
22096
    public String toString() {
22097
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22098
      boolean first = true;
22099
 
22100
      sb.append("startDatetime:");
22101
      sb.append(this.startDatetime);
22102
      first = false;
22103
      if (!first) sb.append(", ");
22104
      sb.append("endDatetime:");
22105
      sb.append(this.endDatetime);
22106
      first = false;
22107
      sb.append(")");
22108
      return sb.toString();
22109
    }
22110
 
22111
    public void validate() throws org.apache.thrift.TException {
22112
      // check for required fields
22113
    }
22114
 
22115
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22116
      try {
22117
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22118
      } catch (org.apache.thrift.TException te) {
22119
        throw new java.io.IOException(te);
22120
      }
22121
    }
22122
 
22123
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22124
      try {
22125
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22126
      } catch (org.apache.thrift.TException te) {
22127
        throw new java.io.IOException(te);
22128
      }
22129
    }
22130
 
22131
  }
22132
 
22133
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22134
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22135
 
22136
    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);
22137
    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);
22138
 
22139
    private List<String> success; // required
22140
    private HelperServiceException hse; // required
22141
 
22142
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22143
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22144
      SUCCESS((short)0, "success"),
22145
      HSE((short)1, "hse");
22146
 
22147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22148
 
22149
      static {
22150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22151
          byName.put(field.getFieldName(), field);
22152
        }
22153
      }
22154
 
22155
      /**
22156
       * Find the _Fields constant that matches fieldId, or null if its not found.
22157
       */
22158
      public static _Fields findByThriftId(int fieldId) {
22159
        switch(fieldId) {
22160
          case 0: // SUCCESS
22161
            return SUCCESS;
22162
          case 1: // HSE
22163
            return HSE;
22164
          default:
22165
            return null;
22166
        }
22167
      }
22168
 
22169
      /**
22170
       * Find the _Fields constant that matches fieldId, throwing an exception
22171
       * if it is not found.
22172
       */
22173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22174
        _Fields fields = findByThriftId(fieldId);
22175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22176
        return fields;
22177
      }
22178
 
22179
      /**
22180
       * Find the _Fields constant that matches name, or null if its not found.
22181
       */
22182
      public static _Fields findByName(String name) {
22183
        return byName.get(name);
22184
      }
22185
 
22186
      private final short _thriftId;
22187
      private final String _fieldName;
22188
 
22189
      _Fields(short thriftId, String fieldName) {
22190
        _thriftId = thriftId;
22191
        _fieldName = fieldName;
22192
      }
22193
 
22194
      public short getThriftFieldId() {
22195
        return _thriftId;
22196
      }
22197
 
22198
      public String getFieldName() {
22199
        return _fieldName;
22200
      }
22201
    }
22202
 
22203
    // isset id assignments
22204
 
22205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22206
    static {
22207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22208
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22209
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22210
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22211
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22215
    }
22216
 
22217
    public getEmailsForNotificationsSent_result() {
22218
    }
22219
 
22220
    public getEmailsForNotificationsSent_result(
22221
      List<String> success,
22222
      HelperServiceException hse)
22223
    {
22224
      this();
22225
      this.success = success;
22226
      this.hse = hse;
22227
    }
22228
 
22229
    /**
22230
     * Performs a deep copy on <i>other</i>.
22231
     */
22232
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22233
      if (other.isSetSuccess()) {
22234
        List<String> __this__success = new ArrayList<String>();
22235
        for (String other_element : other.success) {
22236
          __this__success.add(other_element);
22237
        }
22238
        this.success = __this__success;
22239
      }
22240
      if (other.isSetHse()) {
22241
        this.hse = new HelperServiceException(other.hse);
22242
      }
22243
    }
22244
 
22245
    public getEmailsForNotificationsSent_result deepCopy() {
22246
      return new getEmailsForNotificationsSent_result(this);
22247
    }
22248
 
22249
    @Override
22250
    public void clear() {
22251
      this.success = null;
22252
      this.hse = null;
22253
    }
22254
 
22255
    public int getSuccessSize() {
22256
      return (this.success == null) ? 0 : this.success.size();
22257
    }
22258
 
22259
    public java.util.Iterator<String> getSuccessIterator() {
22260
      return (this.success == null) ? null : this.success.iterator();
22261
    }
22262
 
22263
    public void addToSuccess(String elem) {
22264
      if (this.success == null) {
22265
        this.success = new ArrayList<String>();
22266
      }
22267
      this.success.add(elem);
22268
    }
22269
 
22270
    public List<String> getSuccess() {
22271
      return this.success;
22272
    }
22273
 
22274
    public void setSuccess(List<String> success) {
22275
      this.success = success;
22276
    }
22277
 
22278
    public void unsetSuccess() {
22279
      this.success = null;
22280
    }
22281
 
22282
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22283
    public boolean isSetSuccess() {
22284
      return this.success != null;
22285
    }
22286
 
22287
    public void setSuccessIsSet(boolean value) {
22288
      if (!value) {
22289
        this.success = null;
22290
      }
22291
    }
22292
 
22293
    public HelperServiceException getHse() {
22294
      return this.hse;
22295
    }
22296
 
22297
    public void setHse(HelperServiceException hse) {
22298
      this.hse = hse;
22299
    }
22300
 
22301
    public void unsetHse() {
22302
      this.hse = null;
22303
    }
22304
 
22305
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22306
    public boolean isSetHse() {
22307
      return this.hse != null;
22308
    }
22309
 
22310
    public void setHseIsSet(boolean value) {
22311
      if (!value) {
22312
        this.hse = null;
22313
      }
22314
    }
22315
 
22316
    public void setFieldValue(_Fields field, Object value) {
22317
      switch (field) {
22318
      case SUCCESS:
22319
        if (value == null) {
22320
          unsetSuccess();
22321
        } else {
22322
          setSuccess((List<String>)value);
22323
        }
22324
        break;
22325
 
22326
      case HSE:
22327
        if (value == null) {
22328
          unsetHse();
22329
        } else {
22330
          setHse((HelperServiceException)value);
22331
        }
22332
        break;
22333
 
22334
      }
22335
    }
22336
 
22337
    public Object getFieldValue(_Fields field) {
22338
      switch (field) {
22339
      case SUCCESS:
22340
        return getSuccess();
22341
 
22342
      case HSE:
22343
        return getHse();
22344
 
22345
      }
22346
      throw new IllegalStateException();
22347
    }
22348
 
22349
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22350
    public boolean isSet(_Fields field) {
22351
      if (field == null) {
22352
        throw new IllegalArgumentException();
22353
      }
22354
 
22355
      switch (field) {
22356
      case SUCCESS:
22357
        return isSetSuccess();
22358
      case HSE:
22359
        return isSetHse();
22360
      }
22361
      throw new IllegalStateException();
22362
    }
22363
 
22364
    @Override
22365
    public boolean equals(Object that) {
22366
      if (that == null)
22367
        return false;
22368
      if (that instanceof getEmailsForNotificationsSent_result)
22369
        return this.equals((getEmailsForNotificationsSent_result)that);
22370
      return false;
22371
    }
22372
 
22373
    public boolean equals(getEmailsForNotificationsSent_result that) {
22374
      if (that == null)
22375
        return false;
22376
 
22377
      boolean this_present_success = true && this.isSetSuccess();
22378
      boolean that_present_success = true && that.isSetSuccess();
22379
      if (this_present_success || that_present_success) {
22380
        if (!(this_present_success && that_present_success))
22381
          return false;
22382
        if (!this.success.equals(that.success))
22383
          return false;
22384
      }
22385
 
22386
      boolean this_present_hse = true && this.isSetHse();
22387
      boolean that_present_hse = true && that.isSetHse();
22388
      if (this_present_hse || that_present_hse) {
22389
        if (!(this_present_hse && that_present_hse))
22390
          return false;
22391
        if (!this.hse.equals(that.hse))
22392
          return false;
22393
      }
22394
 
22395
      return true;
22396
    }
22397
 
22398
    @Override
22399
    public int hashCode() {
22400
      return 0;
22401
    }
22402
 
22403
    public int compareTo(getEmailsForNotificationsSent_result other) {
22404
      if (!getClass().equals(other.getClass())) {
22405
        return getClass().getName().compareTo(other.getClass().getName());
22406
      }
22407
 
22408
      int lastComparison = 0;
22409
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22410
 
22411
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22412
      if (lastComparison != 0) {
22413
        return lastComparison;
22414
      }
22415
      if (isSetSuccess()) {
22416
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22417
        if (lastComparison != 0) {
22418
          return lastComparison;
22419
        }
22420
      }
22421
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22422
      if (lastComparison != 0) {
22423
        return lastComparison;
22424
      }
22425
      if (isSetHse()) {
22426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22427
        if (lastComparison != 0) {
22428
          return lastComparison;
22429
        }
22430
      }
22431
      return 0;
22432
    }
22433
 
22434
    public _Fields fieldForId(int fieldId) {
22435
      return _Fields.findByThriftId(fieldId);
22436
    }
22437
 
22438
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22439
      org.apache.thrift.protocol.TField field;
22440
      iprot.readStructBegin();
22441
      while (true)
22442
      {
22443
        field = iprot.readFieldBegin();
22444
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22445
          break;
22446
        }
22447
        switch (field.id) {
22448
          case 0: // SUCCESS
22449
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22450
              {
5864 rajveer 22451
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22452
                this.success = new ArrayList<String>(_list65.size);
22453
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22454
                {
5864 rajveer 22455
                  String _elem67; // required
22456
                  _elem67 = iprot.readString();
22457
                  this.success.add(_elem67);
5055 varun.gupt 22458
                }
22459
                iprot.readListEnd();
22460
              }
22461
            } else { 
22462
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22463
            }
22464
            break;
22465
          case 1: // HSE
22466
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22467
              this.hse = new HelperServiceException();
22468
              this.hse.read(iprot);
22469
            } else { 
22470
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22471
            }
22472
            break;
22473
          default:
22474
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22475
        }
22476
        iprot.readFieldEnd();
22477
      }
22478
      iprot.readStructEnd();
22479
      validate();
22480
    }
22481
 
22482
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22483
      oprot.writeStructBegin(STRUCT_DESC);
22484
 
22485
      if (this.isSetSuccess()) {
22486
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22487
        {
22488
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22489
          for (String _iter68 : this.success)
5055 varun.gupt 22490
          {
5864 rajveer 22491
            oprot.writeString(_iter68);
5055 varun.gupt 22492
          }
22493
          oprot.writeListEnd();
22494
        }
22495
        oprot.writeFieldEnd();
22496
      } else if (this.isSetHse()) {
22497
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22498
        this.hse.write(oprot);
22499
        oprot.writeFieldEnd();
22500
      }
22501
      oprot.writeFieldStop();
22502
      oprot.writeStructEnd();
22503
    }
22504
 
22505
    @Override
22506
    public String toString() {
22507
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22508
      boolean first = true;
22509
 
22510
      sb.append("success:");
22511
      if (this.success == null) {
22512
        sb.append("null");
22513
      } else {
22514
        sb.append(this.success);
22515
      }
22516
      first = false;
22517
      if (!first) sb.append(", ");
22518
      sb.append("hse:");
22519
      if (this.hse == null) {
22520
        sb.append("null");
22521
      } else {
22522
        sb.append(this.hse);
22523
      }
22524
      first = false;
22525
      sb.append(")");
22526
      return sb.toString();
22527
    }
22528
 
22529
    public void validate() throws org.apache.thrift.TException {
22530
      // check for required fields
22531
    }
22532
 
22533
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22534
      try {
22535
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22536
      } catch (org.apache.thrift.TException te) {
22537
        throw new java.io.IOException(te);
22538
      }
22539
    }
22540
 
22541
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22542
      try {
22543
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22544
      } catch (org.apache.thrift.TException te) {
22545
        throw new java.io.IOException(te);
22546
      }
22547
    }
22548
 
22549
  }
22550
 
6322 amar.kumar 22551
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22552
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22553
 
22554
    private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)1);
22555
 
22556
    private long orderId; // required
22557
 
22558
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22559
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22560
      ORDER_ID((short)1, "orderId");
22561
 
22562
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22563
 
22564
      static {
22565
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22566
          byName.put(field.getFieldName(), field);
22567
        }
22568
      }
22569
 
22570
      /**
22571
       * Find the _Fields constant that matches fieldId, or null if its not found.
22572
       */
22573
      public static _Fields findByThriftId(int fieldId) {
22574
        switch(fieldId) {
22575
          case 1: // ORDER_ID
22576
            return ORDER_ID;
22577
          default:
22578
            return null;
22579
        }
22580
      }
22581
 
22582
      /**
22583
       * Find the _Fields constant that matches fieldId, throwing an exception
22584
       * if it is not found.
22585
       */
22586
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22587
        _Fields fields = findByThriftId(fieldId);
22588
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22589
        return fields;
22590
      }
22591
 
22592
      /**
22593
       * Find the _Fields constant that matches name, or null if its not found.
22594
       */
22595
      public static _Fields findByName(String name) {
22596
        return byName.get(name);
22597
      }
22598
 
22599
      private final short _thriftId;
22600
      private final String _fieldName;
22601
 
22602
      _Fields(short thriftId, String fieldName) {
22603
        _thriftId = thriftId;
22604
        _fieldName = fieldName;
22605
      }
22606
 
22607
      public short getThriftFieldId() {
22608
        return _thriftId;
22609
      }
22610
 
22611
      public String getFieldName() {
22612
        return _fieldName;
22613
      }
22614
    }
22615
 
22616
    // isset id assignments
22617
    private static final int __ORDERID_ISSET_ID = 0;
22618
    private BitSet __isset_bit_vector = new BitSet(1);
22619
 
22620
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22621
    static {
22622
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22623
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22624
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22625
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22626
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22627
    }
22628
 
22629
    public getOrderConfirmationMail_args() {
22630
    }
22631
 
22632
    public getOrderConfirmationMail_args(
22633
      long orderId)
22634
    {
22635
      this();
22636
      this.orderId = orderId;
22637
      setOrderIdIsSet(true);
22638
    }
22639
 
22640
    /**
22641
     * Performs a deep copy on <i>other</i>.
22642
     */
22643
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22644
      __isset_bit_vector.clear();
22645
      __isset_bit_vector.or(other.__isset_bit_vector);
22646
      this.orderId = other.orderId;
22647
    }
22648
 
22649
    public getOrderConfirmationMail_args deepCopy() {
22650
      return new getOrderConfirmationMail_args(this);
22651
    }
22652
 
22653
    @Override
22654
    public void clear() {
22655
      setOrderIdIsSet(false);
22656
      this.orderId = 0;
22657
    }
22658
 
22659
    public long getOrderId() {
22660
      return this.orderId;
22661
    }
22662
 
22663
    public void setOrderId(long orderId) {
22664
      this.orderId = orderId;
22665
      setOrderIdIsSet(true);
22666
    }
22667
 
22668
    public void unsetOrderId() {
22669
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22670
    }
22671
 
22672
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22673
    public boolean isSetOrderId() {
22674
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22675
    }
22676
 
22677
    public void setOrderIdIsSet(boolean value) {
22678
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22679
    }
22680
 
22681
    public void setFieldValue(_Fields field, Object value) {
22682
      switch (field) {
22683
      case ORDER_ID:
22684
        if (value == null) {
22685
          unsetOrderId();
22686
        } else {
22687
          setOrderId((Long)value);
22688
        }
22689
        break;
22690
 
22691
      }
22692
    }
22693
 
22694
    public Object getFieldValue(_Fields field) {
22695
      switch (field) {
22696
      case ORDER_ID:
22697
        return Long.valueOf(getOrderId());
22698
 
22699
      }
22700
      throw new IllegalStateException();
22701
    }
22702
 
22703
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22704
    public boolean isSet(_Fields field) {
22705
      if (field == null) {
22706
        throw new IllegalArgumentException();
22707
      }
22708
 
22709
      switch (field) {
22710
      case ORDER_ID:
22711
        return isSetOrderId();
22712
      }
22713
      throw new IllegalStateException();
22714
    }
22715
 
22716
    @Override
22717
    public boolean equals(Object that) {
22718
      if (that == null)
22719
        return false;
22720
      if (that instanceof getOrderConfirmationMail_args)
22721
        return this.equals((getOrderConfirmationMail_args)that);
22722
      return false;
22723
    }
22724
 
22725
    public boolean equals(getOrderConfirmationMail_args that) {
22726
      if (that == null)
22727
        return false;
22728
 
22729
      boolean this_present_orderId = true;
22730
      boolean that_present_orderId = true;
22731
      if (this_present_orderId || that_present_orderId) {
22732
        if (!(this_present_orderId && that_present_orderId))
22733
          return false;
22734
        if (this.orderId != that.orderId)
22735
          return false;
22736
      }
22737
 
22738
      return true;
22739
    }
22740
 
22741
    @Override
22742
    public int hashCode() {
22743
      return 0;
22744
    }
22745
 
22746
    public int compareTo(getOrderConfirmationMail_args other) {
22747
      if (!getClass().equals(other.getClass())) {
22748
        return getClass().getName().compareTo(other.getClass().getName());
22749
      }
22750
 
22751
      int lastComparison = 0;
22752
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22753
 
22754
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22755
      if (lastComparison != 0) {
22756
        return lastComparison;
22757
      }
22758
      if (isSetOrderId()) {
22759
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22760
        if (lastComparison != 0) {
22761
          return lastComparison;
22762
        }
22763
      }
22764
      return 0;
22765
    }
22766
 
22767
    public _Fields fieldForId(int fieldId) {
22768
      return _Fields.findByThriftId(fieldId);
22769
    }
22770
 
22771
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22772
      org.apache.thrift.protocol.TField field;
22773
      iprot.readStructBegin();
22774
      while (true)
22775
      {
22776
        field = iprot.readFieldBegin();
22777
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22778
          break;
22779
        }
22780
        switch (field.id) {
22781
          case 1: // ORDER_ID
22782
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22783
              this.orderId = iprot.readI64();
22784
              setOrderIdIsSet(true);
22785
            } else { 
22786
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22787
            }
22788
            break;
22789
          default:
22790
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22791
        }
22792
        iprot.readFieldEnd();
22793
      }
22794
      iprot.readStructEnd();
22795
      validate();
22796
    }
22797
 
22798
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22799
      validate();
22800
 
22801
      oprot.writeStructBegin(STRUCT_DESC);
22802
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22803
      oprot.writeI64(this.orderId);
22804
      oprot.writeFieldEnd();
22805
      oprot.writeFieldStop();
22806
      oprot.writeStructEnd();
22807
    }
22808
 
22809
    @Override
22810
    public String toString() {
22811
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
22812
      boolean first = true;
22813
 
22814
      sb.append("orderId:");
22815
      sb.append(this.orderId);
22816
      first = false;
22817
      sb.append(")");
22818
      return sb.toString();
22819
    }
22820
 
22821
    public void validate() throws org.apache.thrift.TException {
22822
      // check for required fields
22823
    }
22824
 
22825
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22826
      try {
22827
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22828
      } catch (org.apache.thrift.TException te) {
22829
        throw new java.io.IOException(te);
22830
      }
22831
    }
22832
 
22833
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22834
      try {
22835
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22836
        __isset_bit_vector = new BitSet(1);
22837
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22838
      } catch (org.apache.thrift.TException te) {
22839
        throw new java.io.IOException(te);
22840
      }
22841
    }
22842
 
22843
  }
22844
 
22845
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
22846
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
22847
 
22848
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
22849
 
22850
    private String success; // required
22851
 
22852
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22853
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22854
      SUCCESS((short)0, "success");
22855
 
22856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22857
 
22858
      static {
22859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22860
          byName.put(field.getFieldName(), field);
22861
        }
22862
      }
22863
 
22864
      /**
22865
       * Find the _Fields constant that matches fieldId, or null if its not found.
22866
       */
22867
      public static _Fields findByThriftId(int fieldId) {
22868
        switch(fieldId) {
22869
          case 0: // SUCCESS
22870
            return SUCCESS;
22871
          default:
22872
            return null;
22873
        }
22874
      }
22875
 
22876
      /**
22877
       * Find the _Fields constant that matches fieldId, throwing an exception
22878
       * if it is not found.
22879
       */
22880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22881
        _Fields fields = findByThriftId(fieldId);
22882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22883
        return fields;
22884
      }
22885
 
22886
      /**
22887
       * Find the _Fields constant that matches name, or null if its not found.
22888
       */
22889
      public static _Fields findByName(String name) {
22890
        return byName.get(name);
22891
      }
22892
 
22893
      private final short _thriftId;
22894
      private final String _fieldName;
22895
 
22896
      _Fields(short thriftId, String fieldName) {
22897
        _thriftId = thriftId;
22898
        _fieldName = fieldName;
22899
      }
22900
 
22901
      public short getThriftFieldId() {
22902
        return _thriftId;
22903
      }
22904
 
22905
      public String getFieldName() {
22906
        return _fieldName;
22907
      }
22908
    }
22909
 
22910
    // isset id assignments
22911
 
22912
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22913
    static {
22914
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22915
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22916
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22917
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22918
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
22919
    }
22920
 
22921
    public getOrderConfirmationMail_result() {
22922
    }
22923
 
22924
    public getOrderConfirmationMail_result(
22925
      String success)
22926
    {
22927
      this();
22928
      this.success = success;
22929
    }
22930
 
22931
    /**
22932
     * Performs a deep copy on <i>other</i>.
22933
     */
22934
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
22935
      if (other.isSetSuccess()) {
22936
        this.success = other.success;
22937
      }
22938
    }
22939
 
22940
    public getOrderConfirmationMail_result deepCopy() {
22941
      return new getOrderConfirmationMail_result(this);
22942
    }
22943
 
22944
    @Override
22945
    public void clear() {
22946
      this.success = null;
22947
    }
22948
 
22949
    public String getSuccess() {
22950
      return this.success;
22951
    }
22952
 
22953
    public void setSuccess(String success) {
22954
      this.success = success;
22955
    }
22956
 
22957
    public void unsetSuccess() {
22958
      this.success = null;
22959
    }
22960
 
22961
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22962
    public boolean isSetSuccess() {
22963
      return this.success != null;
22964
    }
22965
 
22966
    public void setSuccessIsSet(boolean value) {
22967
      if (!value) {
22968
        this.success = null;
22969
      }
22970
    }
22971
 
22972
    public void setFieldValue(_Fields field, Object value) {
22973
      switch (field) {
22974
      case SUCCESS:
22975
        if (value == null) {
22976
          unsetSuccess();
22977
        } else {
22978
          setSuccess((String)value);
22979
        }
22980
        break;
22981
 
22982
      }
22983
    }
22984
 
22985
    public Object getFieldValue(_Fields field) {
22986
      switch (field) {
22987
      case SUCCESS:
22988
        return getSuccess();
22989
 
22990
      }
22991
      throw new IllegalStateException();
22992
    }
22993
 
22994
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22995
    public boolean isSet(_Fields field) {
22996
      if (field == null) {
22997
        throw new IllegalArgumentException();
22998
      }
22999
 
23000
      switch (field) {
23001
      case SUCCESS:
23002
        return isSetSuccess();
23003
      }
23004
      throw new IllegalStateException();
23005
    }
23006
 
23007
    @Override
23008
    public boolean equals(Object that) {
23009
      if (that == null)
23010
        return false;
23011
      if (that instanceof getOrderConfirmationMail_result)
23012
        return this.equals((getOrderConfirmationMail_result)that);
23013
      return false;
23014
    }
23015
 
23016
    public boolean equals(getOrderConfirmationMail_result that) {
23017
      if (that == null)
23018
        return false;
23019
 
23020
      boolean this_present_success = true && this.isSetSuccess();
23021
      boolean that_present_success = true && that.isSetSuccess();
23022
      if (this_present_success || that_present_success) {
23023
        if (!(this_present_success && that_present_success))
23024
          return false;
23025
        if (!this.success.equals(that.success))
23026
          return false;
23027
      }
23028
 
23029
      return true;
23030
    }
23031
 
23032
    @Override
23033
    public int hashCode() {
23034
      return 0;
23035
    }
23036
 
23037
    public int compareTo(getOrderConfirmationMail_result other) {
23038
      if (!getClass().equals(other.getClass())) {
23039
        return getClass().getName().compareTo(other.getClass().getName());
23040
      }
23041
 
23042
      int lastComparison = 0;
23043
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23044
 
23045
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23046
      if (lastComparison != 0) {
23047
        return lastComparison;
23048
      }
23049
      if (isSetSuccess()) {
23050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23051
        if (lastComparison != 0) {
23052
          return lastComparison;
23053
        }
23054
      }
23055
      return 0;
23056
    }
23057
 
23058
    public _Fields fieldForId(int fieldId) {
23059
      return _Fields.findByThriftId(fieldId);
23060
    }
23061
 
23062
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23063
      org.apache.thrift.protocol.TField field;
23064
      iprot.readStructBegin();
23065
      while (true)
23066
      {
23067
        field = iprot.readFieldBegin();
23068
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23069
          break;
23070
        }
23071
        switch (field.id) {
23072
          case 0: // SUCCESS
23073
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23074
              this.success = iprot.readString();
23075
            } else { 
23076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23077
            }
23078
            break;
23079
          default:
23080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23081
        }
23082
        iprot.readFieldEnd();
23083
      }
23084
      iprot.readStructEnd();
23085
      validate();
23086
    }
23087
 
23088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23089
      oprot.writeStructBegin(STRUCT_DESC);
23090
 
23091
      if (this.isSetSuccess()) {
23092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23093
        oprot.writeString(this.success);
23094
        oprot.writeFieldEnd();
23095
      }
23096
      oprot.writeFieldStop();
23097
      oprot.writeStructEnd();
23098
    }
23099
 
23100
    @Override
23101
    public String toString() {
23102
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23103
      boolean first = true;
23104
 
23105
      sb.append("success:");
23106
      if (this.success == null) {
23107
        sb.append("null");
23108
      } else {
23109
        sb.append(this.success);
23110
      }
23111
      first = false;
23112
      sb.append(")");
23113
      return sb.toString();
23114
    }
23115
 
23116
    public void validate() throws org.apache.thrift.TException {
23117
      // check for required fields
23118
    }
23119
 
23120
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23121
      try {
23122
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23123
      } catch (org.apache.thrift.TException te) {
23124
        throw new java.io.IOException(te);
23125
      }
23126
    }
23127
 
23128
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23129
      try {
23130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23131
      } catch (org.apache.thrift.TException te) {
23132
        throw new java.io.IOException(te);
23133
      }
23134
    }
23135
 
23136
  }
23137
 
352 ashish 23138
}