Subversion Repositories SmartDukaan

Rev

Rev 6788 | Rev 7410 | 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
 
7221 kshitij.so 164
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
165
 
352 ashish 166
  }
167
 
3430 rajveer 168
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
169
 
5864 rajveer 170
    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 171
 
172
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
173
 
174
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
175
 
176
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
177
 
178
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
179
 
180
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
181
 
182
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
183
 
184
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
185
 
186
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
187
 
188
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
189
 
190
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
191
 
192
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
193
 
194
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
195
 
196
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
197
 
198
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
199
 
200
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
201
 
202
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
203
 
6788 rajveer 204
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 205
 
4544 varun.gupt 206
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
207
 
4693 mandeep.dh 208
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
209
 
210
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
211
 
212
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
213
 
214
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
215
 
216
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
217
 
4806 varun.gupt 218
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
219
 
220
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
221
 
4996 varun.gupt 222
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
223
 
5055 varun.gupt 224
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
225
 
6322 amar.kumar 226
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
227
 
7221 kshitij.so 228
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
229
 
3430 rajveer 230
  }
231
 
3374 rajveer 232
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 233
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
234
      public Factory() {}
235
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
236
        return new Client(prot);
237
      }
238
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
239
        return new Client(iprot, oprot);
240
      }
241
    }
242
 
243
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 244
    {
3430 rajveer 245
      super(prot, prot);
352 ashish 246
    }
247
 
3430 rajveer 248
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 249
      super(iprot, oprot);
352 ashish 250
    }
251
 
5864 rajveer 252
    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 253
    {
5864 rajveer 254
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
3206 mandeep.dh 255
      return recv_saveUserEmailForSending();
1395 varun.gupt 256
    }
257
 
5864 rajveer 258
    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 259
    {
260
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 261
      args.setEmailTo(emailTo);
262
      args.setEmailFrom(emailFrom);
263
      args.setSubject(subject);
264
      args.setBody(body);
265
      args.setSource(source);
266
      args.setEmailType(emailType);
5864 rajveer 267
      args.setCc(cc);
268
      args.setBcc(bcc);
3430 rajveer 269
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 270
    }
271
 
3430 rajveer 272
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 273
    {
274
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 275
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 276
      if (result.isSetSuccess()) {
277
        return result.success;
278
      }
1395 varun.gupt 279
      if (result.se != null) {
280
        throw result.se;
281
      }
3430 rajveer 282
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 283
    }
284
 
3430 rajveer 285
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 286
    {
3086 rajveer 287
      send_getEmailsToBeSent();
1422 varun.gupt 288
      return recv_getEmailsToBeSent();
289
    }
290
 
3430 rajveer 291
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 292
    {
293
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 294
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 295
    }
296
 
3430 rajveer 297
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 298
    {
299
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 300
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 301
      if (result.isSetSuccess()) {
302
        return result.success;
303
      }
304
      if (result.se != null) {
305
        throw result.se;
306
      }
3430 rajveer 307
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 308
    }
309
 
3430 rajveer 310
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 311
    {
312
      send_markEmailAsSent(emailId);
313
      recv_markEmailAsSent();
314
    }
315
 
3430 rajveer 316
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 317
    {
318
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 319
      args.setEmailId(emailId);
320
      sendBase("markEmailAsSent", args);
1422 varun.gupt 321
    }
322
 
3430 rajveer 323
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 324
    {
325
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 326
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 327
      if (result.se != null) {
328
        throw result.se;
329
      }
330
      return;
331
    }
332
 
3430 rajveer 333
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 334
    {
335
      send_sendMail(mail);
336
      recv_sendMail();
337
    }
338
 
3430 rajveer 339
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 340
    {
341
      sendMail_args args = new sendMail_args();
3430 rajveer 342
      args.setMail(mail);
343
      sendBase("sendMail", args);
352 ashish 344
    }
345
 
3430 rajveer 346
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 347
    {
348
      sendMail_result result = new sendMail_result();
3430 rajveer 349
      receiveBase(result, "sendMail");
352 ashish 350
      if (result.se != null) {
351
        throw result.se;
352
      }
353
      return;
354
    }
355
 
3430 rajveer 356
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 357
    {
358
      send_sendText(message);
359
      recv_sendText();
360
    }
361
 
3430 rajveer 362
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 363
    {
364
      sendText_args args = new sendText_args();
3430 rajveer 365
      args.setMessage(message);
366
      sendBase("sendText", args);
352 ashish 367
    }
368
 
3430 rajveer 369
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 370
    {
371
      sendText_result result = new sendText_result();
3430 rajveer 372
      receiveBase(result, "sendText");
352 ashish 373
      if (result.se != null) {
374
        throw result.se;
375
      }
376
      return;
377
    }
378
 
3430 rajveer 379
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 380
    {
381
      send_addMessage(message);
382
      recv_addMessage();
383
    }
384
 
3430 rajveer 385
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 386
    {
387
      addMessage_args args = new addMessage_args();
3430 rajveer 388
      args.setMessage(message);
389
      sendBase("addMessage", args);
352 ashish 390
    }
391
 
3430 rajveer 392
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 393
    {
394
      addMessage_result result = new addMessage_result();
3430 rajveer 395
      receiveBase(result, "addMessage");
352 ashish 396
      if (result.se != null) {
397
        throw result.se;
398
      }
399
      return;
400
    }
401
 
3430 rajveer 402
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 403
    {
404
      send_updateMessage(id, message);
405
      recv_updateMessage();
406
    }
407
 
3430 rajveer 408
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 409
    {
410
      updateMessage_args args = new updateMessage_args();
3430 rajveer 411
      args.setId(id);
412
      args.setMessage(message);
413
      sendBase("updateMessage", args);
352 ashish 414
    }
415
 
3430 rajveer 416
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 417
    {
418
      updateMessage_result result = new updateMessage_result();
3430 rajveer 419
      receiveBase(result, "updateMessage");
352 ashish 420
      if (result.se != null) {
421
        throw result.se;
422
      }
423
      return;
424
    }
425
 
3430 rajveer 426
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 427
    {
428
      send_getMessage(id);
429
      return recv_getMessage();
430
    }
431
 
3430 rajveer 432
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 433
    {
434
      getMessage_args args = new getMessage_args();
3430 rajveer 435
      args.setId(id);
436
      sendBase("getMessage", args);
352 ashish 437
    }
438
 
3430 rajveer 439
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 440
    {
441
      getMessage_result result = new getMessage_result();
3430 rajveer 442
      receiveBase(result, "getMessage");
352 ashish 443
      if (result.isSetSuccess()) {
444
        return result.success;
445
      }
446
      if (result.se != null) {
447
        throw result.se;
448
      }
3430 rajveer 449
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 450
    }
451
 
3430 rajveer 452
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 453
    {
454
      send_getSubstitutedMessage(id, params);
455
      return recv_getSubstitutedMessage();
456
    }
457
 
3430 rajveer 458
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 459
    {
460
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 461
      args.setId(id);
462
      args.setParams(params);
463
      sendBase("getSubstitutedMessage", args);
352 ashish 464
    }
465
 
3430 rajveer 466
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 467
    {
468
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 469
      receiveBase(result, "getSubstitutedMessage");
352 ashish 470
      if (result.isSetSuccess()) {
471
        return result.success;
472
      }
473
      if (result.se != null) {
474
        throw result.se;
475
      }
3430 rajveer 476
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 477
    }
478
 
3430 rajveer 479
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 480
    {
481
      send_addUser(username, password, warehouseId);
482
      return recv_addUser();
483
    }
484
 
3430 rajveer 485
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 486
    {
487
      addUser_args args = new addUser_args();
3430 rajveer 488
      args.setUsername(username);
489
      args.setPassword(password);
490
      args.setWarehouseId(warehouseId);
491
      sendBase("addUser", args);
495 rajveer 492
    }
493
 
3430 rajveer 494
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 495
    {
496
      addUser_result result = new addUser_result();
3430 rajveer 497
      receiveBase(result, "addUser");
495 rajveer 498
      if (result.isSetSuccess()) {
499
        return result.success;
500
      }
501
      if (result.se != null) {
502
        throw result.se;
503
      }
3430 rajveer 504
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 505
    }
506
 
3430 rajveer 507
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 508
    {
509
      send_deleteUser(username);
510
      return recv_deleteUser();
511
    }
512
 
3430 rajveer 513
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 514
    {
515
      deleteUser_args args = new deleteUser_args();
3430 rajveer 516
      args.setUsername(username);
517
      sendBase("deleteUser", args);
495 rajveer 518
    }
519
 
3430 rajveer 520
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 521
    {
522
      deleteUser_result result = new deleteUser_result();
3430 rajveer 523
      receiveBase(result, "deleteUser");
495 rajveer 524
      if (result.isSetSuccess()) {
525
        return result.success;
526
      }
527
      if (result.se != null) {
528
        throw result.se;
529
      }
3430 rajveer 530
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 531
    }
532
 
3430 rajveer 533
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 534
    {
2443 chandransh 535
      send_authenticateDashboardUser(username, password);
536
      return recv_authenticateDashboardUser();
495 rajveer 537
    }
538
 
3430 rajveer 539
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 540
    {
2443 chandransh 541
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 542
      args.setUsername(username);
543
      args.setPassword(password);
544
      sendBase("authenticateDashboardUser", args);
495 rajveer 545
    }
546
 
3430 rajveer 547
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 548
    {
2443 chandransh 549
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 550
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 551
      if (result.isSetSuccess()) {
552
        return result.success;
553
      }
554
      if (result.se != null) {
555
        throw result.se;
556
      }
3430 rajveer 557
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 558
    }
559
 
3430 rajveer 560
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 561
    {
562
      send_updatePassword(username, oldPassword, newPassword);
563
      return recv_updatePassword();
564
    }
565
 
3430 rajveer 566
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 567
    {
568
      updatePassword_args args = new updatePassword_args();
3430 rajveer 569
      args.setUsername(username);
570
      args.setOldPassword(oldPassword);
571
      args.setNewPassword(newPassword);
572
      sendBase("updatePassword", args);
495 rajveer 573
    }
574
 
3430 rajveer 575
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 576
    {
577
      updatePassword_result result = new updatePassword_result();
3430 rajveer 578
      receiveBase(result, "updatePassword");
495 rajveer 579
      if (result.isSetSuccess()) {
580
        return result.success;
581
      }
582
      if (result.se != null) {
583
        throw result.se;
584
      }
3430 rajveer 585
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 586
    }
587
 
3430 rajveer 588
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 589
    {
590
      send_authenticateLogisticsUser(username, password);
591
      return recv_authenticateLogisticsUser();
592
    }
593
 
3430 rajveer 594
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 595
    {
596
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 597
      args.setUsername(username);
598
      args.setPassword(password);
599
      sendBase("authenticateLogisticsUser", args);
750 chandransh 600
    }
601
 
3430 rajveer 602
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 603
    {
604
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 605
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 606
      if (result.isSetSuccess()) {
607
        return result.success;
608
      }
609
      if (result.hse != null) {
610
        throw result.hse;
611
      }
3430 rajveer 612
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 613
    }
614
 
3430 rajveer 615
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 616
    {
617
      send_authenticateStatisticsUser(username, password);
618
      return recv_authenticateStatisticsUser();
619
    }
620
 
3430 rajveer 621
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 622
    {
623
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 624
      args.setUsername(username);
625
      args.setPassword(password);
626
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 627
    }
628
 
3430 rajveer 629
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 630
    {
631
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 632
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 633
      if (result.isSetSuccess()) {
634
        return result.success;
635
      }
636
      if (result.hse != null) {
637
        throw result.hse;
638
      }
3430 rajveer 639
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 640
    }
641
 
3430 rajveer 642
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 643
    {
644
      send_authenticateReportUser(username, password);
645
      return recv_authenticateReportUser();
646
    }
647
 
3430 rajveer 648
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 649
    {
650
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 651
      args.setUsername(username);
652
      args.setPassword(password);
653
      sendBase("authenticateReportUser", args);
1891 ankur.sing 654
    }
655
 
3430 rajveer 656
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 657
    {
658
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 659
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 660
      if (result.isSetSuccess()) {
661
        return result.success;
662
      }
663
      if (result.hse != null) {
664
        throw result.hse;
665
      }
3430 rajveer 666
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 667
    }
668
 
3430 rajveer 669
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 670
    {
671
      send_getReports(role);
672
      return recv_getReports();
673
    }
674
 
3430 rajveer 675
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 676
    {
677
      getReports_args args = new getReports_args();
3430 rajveer 678
      args.setRole(role);
679
      sendBase("getReports", args);
1891 ankur.sing 680
    }
681
 
3430 rajveer 682
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 683
    {
684
      getReports_result result = new getReports_result();
3430 rajveer 685
      receiveBase(result, "getReports");
1891 ankur.sing 686
      if (result.isSetSuccess()) {
687
        return result.success;
688
      }
3430 rajveer 689
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 690
    }
691
 
6788 rajveer 692
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 693
    {
6788 rajveer 694
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 695
      return recv_authenticateCatalogUser();
696
    }
697
 
6788 rajveer 698
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 699
    {
700
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 701
      args.setUsername(username);
702
      args.setPassword(password);
703
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 704
    }
705
 
3430 rajveer 706
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 707
    {
708
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 709
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 710
      if (result.isSetSuccess()) {
711
        return result.success;
712
      }
713
      if (result.hse != null) {
714
        throw result.hse;
715
      }
3430 rajveer 716
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 717
    }
718
 
4544 varun.gupt 719
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
720
    {
721
      send_shareEntities(entityIds, email);
722
      recv_shareEntities();
723
    }
724
 
725
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
726
    {
727
      shareEntities_args args = new shareEntities_args();
728
      args.setEntityIds(entityIds);
729
      args.setEmail(email);
730
      sendBase("shareEntities", args);
731
    }
732
 
733
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
734
    {
735
      shareEntities_result result = new shareEntities_result();
736
      receiveBase(result, "shareEntities");
737
      if (result.hse != null) {
738
        throw result.hse;
739
      }
740
      return;
741
    }
742
 
4693 mandeep.dh 743
    public List<Agent> getAgents() throws org.apache.thrift.TException
744
    {
745
      send_getAgents();
746
      return recv_getAgents();
747
    }
748
 
749
    public void send_getAgents() throws org.apache.thrift.TException
750
    {
751
      getAgents_args args = new getAgents_args();
752
      sendBase("getAgents", args);
753
    }
754
 
755
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
756
    {
757
      getAgents_result result = new getAgents_result();
758
      receiveBase(result, "getAgents");
759
      if (result.isSetSuccess()) {
760
        return result.success;
761
      }
762
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
763
    }
764
 
765
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
766
    {
767
      send_validateLogIn(emailId, password);
768
      return recv_validateLogIn();
769
    }
770
 
771
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
772
    {
773
      validateLogIn_args args = new validateLogIn_args();
774
      args.setEmailId(emailId);
775
      args.setPassword(password);
776
      sendBase("validateLogIn", args);
777
    }
778
 
779
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
780
    {
781
      validateLogIn_result result = new validateLogIn_result();
782
      receiveBase(result, "validateLogIn");
783
      if (result.isSetSuccess()) {
784
        return result.success;
785
      }
786
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
787
    }
788
 
789
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
790
    {
791
      send_updatePasswordForAgent(agentEmailId, password);
792
      recv_updatePasswordForAgent();
793
    }
794
 
795
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
796
    {
797
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
798
      args.setAgentEmailId(agentEmailId);
799
      args.setPassword(password);
800
      sendBase("updatePasswordForAgent", args);
801
    }
802
 
803
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
804
    {
805
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
806
      receiveBase(result, "updatePasswordForAgent");
807
      return;
808
    }
809
 
810
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
811
    {
812
      send_getRoleNamesForAgent(agentEmailId);
813
      return recv_getRoleNamesForAgent();
814
    }
815
 
816
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
817
    {
818
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
819
      args.setAgentEmailId(agentEmailId);
820
      sendBase("getRoleNamesForAgent", args);
821
    }
822
 
823
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
824
    {
825
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
826
      receiveBase(result, "getRoleNamesForAgent");
827
      if (result.isSetSuccess()) {
828
        return result.success;
829
      }
830
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
831
    }
832
 
833
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
834
    {
835
      send_getPermissionsForRoleName(roleName);
836
      return recv_getPermissionsForRoleName();
837
    }
838
 
839
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
840
    {
841
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
842
      args.setRoleName(roleName);
843
      sendBase("getPermissionsForRoleName", args);
844
    }
845
 
846
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
847
    {
848
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
849
      receiveBase(result, "getPermissionsForRoleName");
850
      if (result.isSetSuccess()) {
851
        return result.success;
852
      }
853
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
854
    }
855
 
4806 varun.gupt 856
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
857
    {
858
      send_saveQuickLink(url, text);
859
      recv_saveQuickLink();
860
    }
861
 
862
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
863
    {
864
      saveQuickLink_args args = new saveQuickLink_args();
865
      args.setUrl(url);
866
      args.setText(text);
867
      sendBase("saveQuickLink", args);
868
    }
869
 
870
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
871
    {
872
      saveQuickLink_result result = new saveQuickLink_result();
873
      receiveBase(result, "saveQuickLink");
874
      if (result.hse != null) {
875
        throw result.hse;
876
      }
877
      return;
878
    }
879
 
880
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
881
    {
882
      send_getQuickLinks();
883
      return recv_getQuickLinks();
884
    }
885
 
886
    public void send_getQuickLinks() throws org.apache.thrift.TException
887
    {
888
      getQuickLinks_args args = new getQuickLinks_args();
889
      sendBase("getQuickLinks", args);
890
    }
891
 
892
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
893
    {
894
      getQuickLinks_result result = new getQuickLinks_result();
895
      receiveBase(result, "getQuickLinks");
896
      if (result.isSetSuccess()) {
897
        return result.success;
898
      }
899
      if (result.hse != null) {
900
        throw result.hse;
901
      }
902
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
903
    }
904
 
4996 varun.gupt 905
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
906
    {
907
      send_updateQuickLink(id, url, text);
908
      recv_updateQuickLink();
909
    }
910
 
911
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
912
    {
913
      updateQuickLink_args args = new updateQuickLink_args();
914
      args.setId(id);
915
      args.setUrl(url);
916
      args.setText(text);
917
      sendBase("updateQuickLink", args);
918
    }
919
 
920
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
921
    {
922
      updateQuickLink_result result = new updateQuickLink_result();
923
      receiveBase(result, "updateQuickLink");
924
      if (result.hse != null) {
925
        throw result.hse;
926
      }
927
      return;
928
    }
929
 
5055 varun.gupt 930
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
931
    {
932
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
933
      return recv_getEmailsForNotificationsSent();
934
    }
935
 
936
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
937
    {
938
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
939
      args.setStartDatetime(startDatetime);
940
      args.setEndDatetime(endDatetime);
941
      sendBase("getEmailsForNotificationsSent", args);
942
    }
943
 
944
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
945
    {
946
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
947
      receiveBase(result, "getEmailsForNotificationsSent");
948
      if (result.isSetSuccess()) {
949
        return result.success;
950
      }
951
      if (result.hse != null) {
952
        throw result.hse;
953
      }
954
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
955
    }
956
 
6322 amar.kumar 957
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
958
    {
959
      send_getOrderConfirmationMail(orderId);
960
      return recv_getOrderConfirmationMail();
961
    }
962
 
963
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
964
    {
965
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
966
      args.setOrderId(orderId);
967
      sendBase("getOrderConfirmationMail", args);
968
    }
969
 
970
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
971
    {
972
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
973
      receiveBase(result, "getOrderConfirmationMail");
974
      if (result.isSetSuccess()) {
975
        return result.success;
976
      }
977
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
978
    }
979
 
7221 kshitij.so 980
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
981
    {
982
      send_getOrderDeliveryMail(orderId);
983
      return recv_getOrderDeliveryMail();
984
    }
985
 
986
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
987
    {
988
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
989
      args.setOrderId(orderId);
990
      sendBase("getOrderDeliveryMail", args);
991
    }
992
 
993
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
994
    {
995
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
996
      receiveBase(result, "getOrderDeliveryMail");
997
      if (result.isSetSuccess()) {
998
        return result.success;
999
      }
1000
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1001
    }
1002
 
352 ashish 1003
  }
3430 rajveer 1004
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1005
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1006
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1007
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1008
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1009
        this.clientManager = clientManager;
1010
        this.protocolFactory = protocolFactory;
1011
      }
1012
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1013
        return new AsyncClient(protocolFactory, clientManager, transport);
1014
      }
352 ashish 1015
    }
1016
 
3430 rajveer 1017
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1018
      super(protocolFactory, clientManager, transport);
1019
    }
352 ashish 1020
 
5864 rajveer 1021
    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 1022
      checkReady();
5864 rajveer 1023
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1024
      this.___currentMethod = method_call;
1025
      ___manager.call(method_call);
1026
    }
1027
 
1028
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1029
      private List<String> emailTo;
3430 rajveer 1030
      private String emailFrom;
1031
      private String subject;
1032
      private String body;
1033
      private String source;
1034
      private String emailType;
5864 rajveer 1035
      private List<String> cc;
1036
      private List<String> bcc;
1037
      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 1038
        super(client, protocolFactory, transport, resultHandler, false);
1039
        this.emailTo = emailTo;
1040
        this.emailFrom = emailFrom;
1041
        this.subject = subject;
1042
        this.body = body;
1043
        this.source = source;
1044
        this.emailType = emailType;
5864 rajveer 1045
        this.cc = cc;
1046
        this.bcc = bcc;
352 ashish 1047
      }
3430 rajveer 1048
 
1049
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1050
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1051
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1052
        args.setEmailTo(emailTo);
1053
        args.setEmailFrom(emailFrom);
1054
        args.setSubject(subject);
1055
        args.setBody(body);
1056
        args.setSource(source);
1057
        args.setEmailType(emailType);
5864 rajveer 1058
        args.setCc(cc);
1059
        args.setBcc(bcc);
3430 rajveer 1060
        args.write(prot);
1061
        prot.writeMessageEnd();
1062
      }
1063
 
1064
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1066
          throw new IllegalStateException("Method call not finished!");
1067
        }
1068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1070
        return (new Client(prot)).recv_saveUserEmailForSending();
1071
      }
352 ashish 1072
    }
1073
 
3430 rajveer 1074
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1075
      checkReady();
1076
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1077
      this.___currentMethod = method_call;
1078
      ___manager.call(method_call);
1079
    }
1080
 
1081
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1082
      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 {
1083
        super(client, protocolFactory, transport, resultHandler, false);
1084
      }
1085
 
1086
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1087
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1088
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1089
        args.write(prot);
1090
        prot.writeMessageEnd();
1091
      }
1092
 
1093
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1094
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1095
          throw new IllegalStateException("Method call not finished!");
1096
        }
1097
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1098
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1099
        return (new Client(prot)).recv_getEmailsToBeSent();
1100
      }
1101
    }
1102
 
1103
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1104
      checkReady();
1105
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1106
      this.___currentMethod = method_call;
1107
      ___manager.call(method_call);
1108
    }
1109
 
1110
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1111
      private long emailId;
1112
      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 {
1113
        super(client, protocolFactory, transport, resultHandler, false);
1114
        this.emailId = emailId;
1115
      }
1116
 
1117
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1118
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1119
        markEmailAsSent_args args = new markEmailAsSent_args();
1120
        args.setEmailId(emailId);
1121
        args.write(prot);
1122
        prot.writeMessageEnd();
1123
      }
1124
 
1125
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1126
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1127
          throw new IllegalStateException("Method call not finished!");
1128
        }
1129
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1130
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1131
        (new Client(prot)).recv_markEmailAsSent();
1132
      }
1133
    }
1134
 
1135
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1136
      checkReady();
1137
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1138
      this.___currentMethod = method_call;
1139
      ___manager.call(method_call);
1140
    }
1141
 
1142
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1143
      private Mail mail;
1144
      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 {
1145
        super(client, protocolFactory, transport, resultHandler, false);
1146
        this.mail = mail;
1147
      }
1148
 
1149
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1150
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1151
        sendMail_args args = new sendMail_args();
1152
        args.setMail(mail);
1153
        args.write(prot);
1154
        prot.writeMessageEnd();
1155
      }
1156
 
1157
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1158
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1159
          throw new IllegalStateException("Method call not finished!");
1160
        }
1161
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1162
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1163
        (new Client(prot)).recv_sendMail();
1164
      }
1165
    }
1166
 
1167
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1168
      checkReady();
1169
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1170
      this.___currentMethod = method_call;
1171
      ___manager.call(method_call);
1172
    }
1173
 
1174
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1175
      private TextMessage message;
1176
      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 {
1177
        super(client, protocolFactory, transport, resultHandler, false);
1178
        this.message = message;
1179
      }
1180
 
1181
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1182
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1183
        sendText_args args = new sendText_args();
1184
        args.setMessage(message);
1185
        args.write(prot);
1186
        prot.writeMessageEnd();
1187
      }
1188
 
1189
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1190
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1191
          throw new IllegalStateException("Method call not finished!");
1192
        }
1193
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1194
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1195
        (new Client(prot)).recv_sendText();
1196
      }
1197
    }
1198
 
1199
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1200
      checkReady();
1201
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1202
      this.___currentMethod = method_call;
1203
      ___manager.call(method_call);
1204
    }
1205
 
1206
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1207
      private Message message;
1208
      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 {
1209
        super(client, protocolFactory, transport, resultHandler, false);
1210
        this.message = message;
1211
      }
1212
 
1213
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1214
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1215
        addMessage_args args = new addMessage_args();
1216
        args.setMessage(message);
1217
        args.write(prot);
1218
        prot.writeMessageEnd();
1219
      }
1220
 
1221
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1222
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1223
          throw new IllegalStateException("Method call not finished!");
1224
        }
1225
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1226
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1227
        (new Client(prot)).recv_addMessage();
1228
      }
1229
    }
1230
 
1231
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1232
      checkReady();
1233
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1234
      this.___currentMethod = method_call;
1235
      ___manager.call(method_call);
1236
    }
1237
 
1238
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1239
      private long id;
1240
      private String message;
1241
      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 {
1242
        super(client, protocolFactory, transport, resultHandler, false);
1243
        this.id = id;
1244
        this.message = message;
1245
      }
1246
 
1247
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1248
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1249
        updateMessage_args args = new updateMessage_args();
1250
        args.setId(id);
1251
        args.setMessage(message);
1252
        args.write(prot);
1253
        prot.writeMessageEnd();
1254
      }
1255
 
1256
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1257
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1258
          throw new IllegalStateException("Method call not finished!");
1259
        }
1260
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1261
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1262
        (new Client(prot)).recv_updateMessage();
1263
      }
1264
    }
1265
 
1266
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1267
      checkReady();
1268
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1269
      this.___currentMethod = method_call;
1270
      ___manager.call(method_call);
1271
    }
1272
 
1273
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1274
      private long id;
1275
      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 {
1276
        super(client, protocolFactory, transport, resultHandler, false);
1277
        this.id = id;
1278
      }
1279
 
1280
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1281
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1282
        getMessage_args args = new getMessage_args();
1283
        args.setId(id);
1284
        args.write(prot);
1285
        prot.writeMessageEnd();
1286
      }
1287
 
1288
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1289
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1290
          throw new IllegalStateException("Method call not finished!");
1291
        }
1292
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1293
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1294
        return (new Client(prot)).recv_getMessage();
1295
      }
1296
    }
1297
 
1298
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1299
      checkReady();
1300
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1301
      this.___currentMethod = method_call;
1302
      ___manager.call(method_call);
1303
    }
1304
 
1305
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1306
      private long id;
1307
      private Map<String,String> params;
1308
      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 {
1309
        super(client, protocolFactory, transport, resultHandler, false);
1310
        this.id = id;
1311
        this.params = params;
1312
      }
1313
 
1314
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1315
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1316
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1317
        args.setId(id);
1318
        args.setParams(params);
1319
        args.write(prot);
1320
        prot.writeMessageEnd();
1321
      }
1322
 
1323
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1324
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1325
          throw new IllegalStateException("Method call not finished!");
1326
        }
1327
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1328
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1329
        return (new Client(prot)).recv_getSubstitutedMessage();
1330
      }
1331
    }
1332
 
1333
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1334
      checkReady();
1335
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1336
      this.___currentMethod = method_call;
1337
      ___manager.call(method_call);
1338
    }
1339
 
1340
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1341
      private String username;
1342
      private String password;
1343
      private long warehouseId;
1344
      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 {
1345
        super(client, protocolFactory, transport, resultHandler, false);
1346
        this.username = username;
1347
        this.password = password;
1348
        this.warehouseId = warehouseId;
1349
      }
1350
 
1351
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1352
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1353
        addUser_args args = new addUser_args();
1354
        args.setUsername(username);
1355
        args.setPassword(password);
1356
        args.setWarehouseId(warehouseId);
1357
        args.write(prot);
1358
        prot.writeMessageEnd();
1359
      }
1360
 
1361
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1362
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1363
          throw new IllegalStateException("Method call not finished!");
1364
        }
1365
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1366
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1367
        return (new Client(prot)).recv_addUser();
1368
      }
1369
    }
1370
 
1371
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1372
      checkReady();
1373
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1374
      this.___currentMethod = method_call;
1375
      ___manager.call(method_call);
1376
    }
1377
 
1378
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1379
      private String username;
1380
      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 {
1381
        super(client, protocolFactory, transport, resultHandler, false);
1382
        this.username = username;
1383
      }
1384
 
1385
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1386
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1387
        deleteUser_args args = new deleteUser_args();
1388
        args.setUsername(username);
1389
        args.write(prot);
1390
        prot.writeMessageEnd();
1391
      }
1392
 
1393
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1394
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1395
          throw new IllegalStateException("Method call not finished!");
1396
        }
1397
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1398
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1399
        return (new Client(prot)).recv_deleteUser();
1400
      }
1401
    }
1402
 
1403
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1404
      checkReady();
1405
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1406
      this.___currentMethod = method_call;
1407
      ___manager.call(method_call);
1408
    }
1409
 
1410
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1411
      private String username;
1412
      private String password;
1413
      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 {
1414
        super(client, protocolFactory, transport, resultHandler, false);
1415
        this.username = username;
1416
        this.password = password;
1417
      }
1418
 
1419
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1420
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1421
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1422
        args.setUsername(username);
1423
        args.setPassword(password);
1424
        args.write(prot);
1425
        prot.writeMessageEnd();
1426
      }
1427
 
1428
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1429
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1430
          throw new IllegalStateException("Method call not finished!");
1431
        }
1432
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1433
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1434
        return (new Client(prot)).recv_authenticateDashboardUser();
1435
      }
1436
    }
1437
 
1438
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1439
      checkReady();
1440
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1441
      this.___currentMethod = method_call;
1442
      ___manager.call(method_call);
1443
    }
1444
 
1445
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1446
      private String username;
1447
      private String oldPassword;
1448
      private String newPassword;
1449
      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 {
1450
        super(client, protocolFactory, transport, resultHandler, false);
1451
        this.username = username;
1452
        this.oldPassword = oldPassword;
1453
        this.newPassword = newPassword;
1454
      }
1455
 
1456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1458
        updatePassword_args args = new updatePassword_args();
1459
        args.setUsername(username);
1460
        args.setOldPassword(oldPassword);
1461
        args.setNewPassword(newPassword);
1462
        args.write(prot);
1463
        prot.writeMessageEnd();
1464
      }
1465
 
1466
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1467
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1468
          throw new IllegalStateException("Method call not finished!");
1469
        }
1470
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1471
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1472
        return (new Client(prot)).recv_updatePassword();
1473
      }
1474
    }
1475
 
1476
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1477
      checkReady();
1478
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1479
      this.___currentMethod = method_call;
1480
      ___manager.call(method_call);
1481
    }
1482
 
1483
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1484
      private String username;
1485
      private String password;
1486
      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 {
1487
        super(client, protocolFactory, transport, resultHandler, false);
1488
        this.username = username;
1489
        this.password = password;
1490
      }
1491
 
1492
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1493
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1494
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1495
        args.setUsername(username);
1496
        args.setPassword(password);
1497
        args.write(prot);
1498
        prot.writeMessageEnd();
1499
      }
1500
 
1501
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1502
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1503
          throw new IllegalStateException("Method call not finished!");
1504
        }
1505
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1506
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1507
        return (new Client(prot)).recv_authenticateLogisticsUser();
1508
      }
1509
    }
1510
 
1511
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1512
      checkReady();
1513
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1514
      this.___currentMethod = method_call;
1515
      ___manager.call(method_call);
1516
    }
1517
 
1518
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1519
      private String username;
1520
      private String password;
1521
      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 {
1522
        super(client, protocolFactory, transport, resultHandler, false);
1523
        this.username = username;
1524
        this.password = password;
1525
      }
1526
 
1527
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1528
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1529
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1530
        args.setUsername(username);
1531
        args.setPassword(password);
1532
        args.write(prot);
1533
        prot.writeMessageEnd();
1534
      }
1535
 
1536
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1537
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1538
          throw new IllegalStateException("Method call not finished!");
1539
        }
1540
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1541
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1542
        return (new Client(prot)).recv_authenticateStatisticsUser();
1543
      }
1544
    }
1545
 
1546
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1547
      checkReady();
1548
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1549
      this.___currentMethod = method_call;
1550
      ___manager.call(method_call);
1551
    }
1552
 
1553
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1554
      private String username;
1555
      private String password;
1556
      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 {
1557
        super(client, protocolFactory, transport, resultHandler, false);
1558
        this.username = username;
1559
        this.password = password;
1560
      }
1561
 
1562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1564
        authenticateReportUser_args args = new authenticateReportUser_args();
1565
        args.setUsername(username);
1566
        args.setPassword(password);
1567
        args.write(prot);
1568
        prot.writeMessageEnd();
1569
      }
1570
 
1571
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1572
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1573
          throw new IllegalStateException("Method call not finished!");
1574
        }
1575
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1576
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1577
        return (new Client(prot)).recv_authenticateReportUser();
1578
      }
1579
    }
1580
 
1581
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1582
      checkReady();
1583
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1584
      this.___currentMethod = method_call;
1585
      ___manager.call(method_call);
1586
    }
1587
 
1588
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1589
      private long role;
1590
      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 {
1591
        super(client, protocolFactory, transport, resultHandler, false);
1592
        this.role = role;
1593
      }
1594
 
1595
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1596
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1597
        getReports_args args = new getReports_args();
1598
        args.setRole(role);
1599
        args.write(prot);
1600
        prot.writeMessageEnd();
1601
      }
1602
 
1603
      public List<Report> getResult() throws org.apache.thrift.TException {
1604
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1605
          throw new IllegalStateException("Method call not finished!");
1606
        }
1607
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1608
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1609
        return (new Client(prot)).recv_getReports();
1610
      }
1611
    }
1612
 
6788 rajveer 1613
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1614
      checkReady();
6788 rajveer 1615
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1616
      this.___currentMethod = method_call;
1617
      ___manager.call(method_call);
1618
    }
1619
 
1620
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1621
      private String username;
1622
      private String password;
6788 rajveer 1623
      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 1624
        super(client, protocolFactory, transport, resultHandler, false);
1625
        this.username = username;
1626
        this.password = password;
1627
      }
1628
 
1629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1631
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1632
        args.setUsername(username);
1633
        args.setPassword(password);
1634
        args.write(prot);
1635
        prot.writeMessageEnd();
1636
      }
1637
 
1638
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1639
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1640
          throw new IllegalStateException("Method call not finished!");
1641
        }
1642
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1643
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1644
        return (new Client(prot)).recv_authenticateCatalogUser();
1645
      }
1646
    }
1647
 
4544 varun.gupt 1648
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1649
      checkReady();
1650
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1651
      this.___currentMethod = method_call;
1652
      ___manager.call(method_call);
1653
    }
1654
 
1655
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1656
      private List<Long> entityIds;
1657
      private String email;
1658
      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 {
1659
        super(client, protocolFactory, transport, resultHandler, false);
1660
        this.entityIds = entityIds;
1661
        this.email = email;
1662
      }
1663
 
1664
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1665
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1666
        shareEntities_args args = new shareEntities_args();
1667
        args.setEntityIds(entityIds);
1668
        args.setEmail(email);
1669
        args.write(prot);
1670
        prot.writeMessageEnd();
1671
      }
1672
 
1673
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1674
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1675
          throw new IllegalStateException("Method call not finished!");
1676
        }
1677
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1678
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1679
        (new Client(prot)).recv_shareEntities();
1680
      }
1681
    }
1682
 
4693 mandeep.dh 1683
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1684
      checkReady();
1685
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1686
      this.___currentMethod = method_call;
1687
      ___manager.call(method_call);
1688
    }
1689
 
1690
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1691
      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 {
1692
        super(client, protocolFactory, transport, resultHandler, false);
1693
      }
1694
 
1695
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1696
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1697
        getAgents_args args = new getAgents_args();
1698
        args.write(prot);
1699
        prot.writeMessageEnd();
1700
      }
1701
 
1702
      public List<Agent> getResult() throws org.apache.thrift.TException {
1703
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1704
          throw new IllegalStateException("Method call not finished!");
1705
        }
1706
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1707
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1708
        return (new Client(prot)).recv_getAgents();
1709
      }
1710
    }
1711
 
1712
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1713
      checkReady();
1714
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1715
      this.___currentMethod = method_call;
1716
      ___manager.call(method_call);
1717
    }
1718
 
1719
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1720
      private String emailId;
1721
      private String password;
1722
      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 {
1723
        super(client, protocolFactory, transport, resultHandler, false);
1724
        this.emailId = emailId;
1725
        this.password = password;
1726
      }
1727
 
1728
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1729
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1730
        validateLogIn_args args = new validateLogIn_args();
1731
        args.setEmailId(emailId);
1732
        args.setPassword(password);
1733
        args.write(prot);
1734
        prot.writeMessageEnd();
1735
      }
1736
 
1737
      public boolean getResult() throws org.apache.thrift.TException {
1738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1739
          throw new IllegalStateException("Method call not finished!");
1740
        }
1741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        return (new Client(prot)).recv_validateLogIn();
1744
      }
1745
    }
1746
 
1747
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1748
      checkReady();
1749
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1750
      this.___currentMethod = method_call;
1751
      ___manager.call(method_call);
1752
    }
1753
 
1754
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1755
      private String agentEmailId;
1756
      private String password;
1757
      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 {
1758
        super(client, protocolFactory, transport, resultHandler, false);
1759
        this.agentEmailId = agentEmailId;
1760
        this.password = password;
1761
      }
1762
 
1763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1765
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1766
        args.setAgentEmailId(agentEmailId);
1767
        args.setPassword(password);
1768
        args.write(prot);
1769
        prot.writeMessageEnd();
1770
      }
1771
 
1772
      public void getResult() throws org.apache.thrift.TException {
1773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1774
          throw new IllegalStateException("Method call not finished!");
1775
        }
1776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1778
        (new Client(prot)).recv_updatePasswordForAgent();
1779
      }
1780
    }
1781
 
1782
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1783
      checkReady();
1784
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1785
      this.___currentMethod = method_call;
1786
      ___manager.call(method_call);
1787
    }
1788
 
1789
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1790
      private String agentEmailId;
1791
      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 {
1792
        super(client, protocolFactory, transport, resultHandler, false);
1793
        this.agentEmailId = agentEmailId;
1794
      }
1795
 
1796
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1797
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1798
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1799
        args.setAgentEmailId(agentEmailId);
1800
        args.write(prot);
1801
        prot.writeMessageEnd();
1802
      }
1803
 
1804
      public List<String> getResult() throws org.apache.thrift.TException {
1805
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1806
          throw new IllegalStateException("Method call not finished!");
1807
        }
1808
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1810
        return (new Client(prot)).recv_getRoleNamesForAgent();
1811
      }
1812
    }
1813
 
1814
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1815
      checkReady();
1816
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1817
      this.___currentMethod = method_call;
1818
      ___manager.call(method_call);
1819
    }
1820
 
1821
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1822
      private String roleName;
1823
      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 {
1824
        super(client, protocolFactory, transport, resultHandler, false);
1825
        this.roleName = roleName;
1826
      }
1827
 
1828
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1829
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1830
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1831
        args.setRoleName(roleName);
1832
        args.write(prot);
1833
        prot.writeMessageEnd();
1834
      }
1835
 
1836
      public List<String> getResult() throws org.apache.thrift.TException {
1837
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1838
          throw new IllegalStateException("Method call not finished!");
1839
        }
1840
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1841
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1842
        return (new Client(prot)).recv_getPermissionsForRoleName();
1843
      }
1844
    }
1845
 
4806 varun.gupt 1846
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1847
      checkReady();
1848
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1849
      this.___currentMethod = method_call;
1850
      ___manager.call(method_call);
1851
    }
1852
 
1853
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1854
      private String url;
1855
      private String text;
1856
      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 {
1857
        super(client, protocolFactory, transport, resultHandler, false);
1858
        this.url = url;
1859
        this.text = text;
1860
      }
1861
 
1862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1864
        saveQuickLink_args args = new saveQuickLink_args();
1865
        args.setUrl(url);
1866
        args.setText(text);
1867
        args.write(prot);
1868
        prot.writeMessageEnd();
1869
      }
1870
 
1871
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1872
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1873
          throw new IllegalStateException("Method call not finished!");
1874
        }
1875
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1876
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1877
        (new Client(prot)).recv_saveQuickLink();
1878
      }
1879
    }
1880
 
1881
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1882
      checkReady();
1883
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1884
      this.___currentMethod = method_call;
1885
      ___manager.call(method_call);
1886
    }
1887
 
1888
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1889
      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 {
1890
        super(client, protocolFactory, transport, resultHandler, false);
1891
      }
1892
 
1893
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1894
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1895
        getQuickLinks_args args = new getQuickLinks_args();
1896
        args.write(prot);
1897
        prot.writeMessageEnd();
1898
      }
1899
 
1900
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1901
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1902
          throw new IllegalStateException("Method call not finished!");
1903
        }
1904
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1905
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1906
        return (new Client(prot)).recv_getQuickLinks();
1907
      }
1908
    }
1909
 
4996 varun.gupt 1910
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1911
      checkReady();
1912
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1913
      this.___currentMethod = method_call;
1914
      ___manager.call(method_call);
1915
    }
1916
 
1917
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1918
      private long id;
1919
      private String url;
1920
      private String text;
1921
      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 {
1922
        super(client, protocolFactory, transport, resultHandler, false);
1923
        this.id = id;
1924
        this.url = url;
1925
        this.text = text;
1926
      }
1927
 
1928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1930
        updateQuickLink_args args = new updateQuickLink_args();
1931
        args.setId(id);
1932
        args.setUrl(url);
1933
        args.setText(text);
1934
        args.write(prot);
1935
        prot.writeMessageEnd();
1936
      }
1937
 
1938
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1939
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1940
          throw new IllegalStateException("Method call not finished!");
1941
        }
1942
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1943
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1944
        (new Client(prot)).recv_updateQuickLink();
1945
      }
1946
    }
1947
 
5055 varun.gupt 1948
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1949
      checkReady();
1950
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1951
      this.___currentMethod = method_call;
1952
      ___manager.call(method_call);
1953
    }
1954
 
1955
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1956
      private long startDatetime;
1957
      private long endDatetime;
1958
      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 {
1959
        super(client, protocolFactory, transport, resultHandler, false);
1960
        this.startDatetime = startDatetime;
1961
        this.endDatetime = endDatetime;
1962
      }
1963
 
1964
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1965
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1966
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1967
        args.setStartDatetime(startDatetime);
1968
        args.setEndDatetime(endDatetime);
1969
        args.write(prot);
1970
        prot.writeMessageEnd();
1971
      }
1972
 
1973
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
1974
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1975
          throw new IllegalStateException("Method call not finished!");
1976
        }
1977
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1978
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1979
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
1980
      }
1981
    }
1982
 
6322 amar.kumar 1983
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
1984
      checkReady();
1985
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
1986
      this.___currentMethod = method_call;
1987
      ___manager.call(method_call);
1988
    }
1989
 
1990
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1991
      private long orderId;
1992
      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 {
1993
        super(client, protocolFactory, transport, resultHandler, false);
1994
        this.orderId = orderId;
1995
      }
1996
 
1997
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1998
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1999
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
2000
        args.setOrderId(orderId);
2001
        args.write(prot);
2002
        prot.writeMessageEnd();
2003
      }
2004
 
2005
      public String getResult() throws org.apache.thrift.TException {
2006
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2007
          throw new IllegalStateException("Method call not finished!");
2008
        }
2009
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2010
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2011
        return (new Client(prot)).recv_getOrderConfirmationMail();
2012
      }
2013
    }
2014
 
7221 kshitij.so 2015
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2016
      checkReady();
2017
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2018
      this.___currentMethod = method_call;
2019
      ___manager.call(method_call);
2020
    }
2021
 
2022
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2023
      private long orderId;
2024
      public getOrderDeliveryMail_call(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_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 {
2025
        super(client, protocolFactory, transport, resultHandler, false);
2026
        this.orderId = orderId;
2027
      }
2028
 
2029
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2030
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2031
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2032
        args.setOrderId(orderId);
2033
        args.write(prot);
2034
        prot.writeMessageEnd();
2035
      }
2036
 
2037
      public String getResult() throws org.apache.thrift.TException {
2038
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2039
          throw new IllegalStateException("Method call not finished!");
2040
        }
2041
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2042
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2043
        return (new Client(prot)).recv_getOrderDeliveryMail();
2044
      }
2045
    }
2046
 
3430 rajveer 2047
  }
2048
 
2049
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2050
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2051
    public Processor(I iface) {
2052
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2053
    }
2054
 
2055
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2056
      super(iface, getProcessMap(processMap));
2057
    }
2058
 
2059
    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) {
2060
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2061
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2062
      processMap.put("markEmailAsSent", new markEmailAsSent());
2063
      processMap.put("sendMail", new sendMail());
2064
      processMap.put("sendText", new sendText());
2065
      processMap.put("addMessage", new addMessage());
2066
      processMap.put("updateMessage", new updateMessage());
2067
      processMap.put("getMessage", new getMessage());
2068
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2069
      processMap.put("addUser", new addUser());
2070
      processMap.put("deleteUser", new deleteUser());
2071
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2072
      processMap.put("updatePassword", new updatePassword());
2073
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2074
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2075
      processMap.put("authenticateReportUser", new authenticateReportUser());
2076
      processMap.put("getReports", new getReports());
2077
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2078
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2079
      processMap.put("getAgents", new getAgents());
2080
      processMap.put("validateLogIn", new validateLogIn());
2081
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2082
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2083
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2084
      processMap.put("saveQuickLink", new saveQuickLink());
2085
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2086
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2087
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2088
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2089
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
3430 rajveer 2090
      return processMap;
2091
    }
2092
 
2093
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2094
      public saveUserEmailForSending() {
2095
        super("saveUserEmailForSending");
2096
      }
2097
 
2098
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2099
        return new saveUserEmailForSending_args();
2100
      }
2101
 
2102
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2103
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2104
        try {
5864 rajveer 2105
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
3206 mandeep.dh 2106
          result.setSuccessIsSet(true);
1395 varun.gupt 2107
        } catch (HelperServiceException se) {
2108
          result.se = se;
2109
        }
3430 rajveer 2110
        return result;
1395 varun.gupt 2111
      }
2112
    }
2113
 
3430 rajveer 2114
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2115
      public getEmailsToBeSent() {
2116
        super("getEmailsToBeSent");
2117
      }
2118
 
2119
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2120
        return new getEmailsToBeSent_args();
2121
      }
2122
 
2123
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2124
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2125
        try {
3430 rajveer 2126
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2127
        } catch (HelperServiceException se) {
2128
          result.se = se;
2129
        }
3430 rajveer 2130
        return result;
1422 varun.gupt 2131
      }
2132
    }
2133
 
3430 rajveer 2134
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2135
      public markEmailAsSent() {
2136
        super("markEmailAsSent");
2137
      }
2138
 
2139
      protected markEmailAsSent_args getEmptyArgsInstance() {
2140
        return new markEmailAsSent_args();
2141
      }
2142
 
2143
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2144
        markEmailAsSent_result result = new markEmailAsSent_result();
2145
        try {
3430 rajveer 2146
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2147
        } catch (HelperServiceException se) {
2148
          result.se = se;
2149
        }
3430 rajveer 2150
        return result;
1422 varun.gupt 2151
      }
2152
    }
2153
 
3430 rajveer 2154
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2155
      public sendMail() {
2156
        super("sendMail");
2157
      }
2158
 
2159
      protected sendMail_args getEmptyArgsInstance() {
2160
        return new sendMail_args();
2161
      }
2162
 
2163
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2164
        sendMail_result result = new sendMail_result();
2165
        try {
3430 rajveer 2166
          iface.sendMail(args.mail);
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 sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2175
      public sendText() {
2176
        super("sendText");
2177
      }
2178
 
2179
      protected sendText_args getEmptyArgsInstance() {
2180
        return new sendText_args();
2181
      }
2182
 
2183
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2184
        sendText_result result = new sendText_result();
2185
        try {
3430 rajveer 2186
          iface.sendText(args.message);
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 addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2195
      public addMessage() {
2196
        super("addMessage");
2197
      }
2198
 
2199
      protected addMessage_args getEmptyArgsInstance() {
2200
        return new addMessage_args();
2201
      }
2202
 
2203
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2204
        addMessage_result result = new addMessage_result();
2205
        try {
3430 rajveer 2206
          iface.addMessage(args.message);
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 updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2215
      public updateMessage() {
2216
        super("updateMessage");
2217
      }
2218
 
2219
      protected updateMessage_args getEmptyArgsInstance() {
2220
        return new updateMessage_args();
2221
      }
2222
 
2223
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2224
        updateMessage_result result = new updateMessage_result();
2225
        try {
3430 rajveer 2226
          iface.updateMessage(args.id, args.message);
352 ashish 2227
        } catch (HelperServiceException se) {
2228
          result.se = se;
2229
        }
3430 rajveer 2230
        return result;
352 ashish 2231
      }
2232
    }
2233
 
3430 rajveer 2234
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2235
      public getMessage() {
2236
        super("getMessage");
2237
      }
2238
 
2239
      protected getMessage_args getEmptyArgsInstance() {
2240
        return new getMessage_args();
2241
      }
2242
 
2243
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2244
        getMessage_result result = new getMessage_result();
2245
        try {
3430 rajveer 2246
          result.success = iface.getMessage(args.id);
352 ashish 2247
        } catch (HelperServiceException se) {
2248
          result.se = se;
2249
        }
3430 rajveer 2250
        return result;
352 ashish 2251
      }
2252
    }
2253
 
3430 rajveer 2254
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2255
      public getSubstitutedMessage() {
2256
        super("getSubstitutedMessage");
2257
      }
2258
 
2259
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2260
        return new getSubstitutedMessage_args();
2261
      }
2262
 
2263
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2264
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2265
        try {
3430 rajveer 2266
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2267
        } catch (HelperServiceException se) {
2268
          result.se = se;
2269
        }
3430 rajveer 2270
        return result;
352 ashish 2271
      }
2272
    }
2273
 
3430 rajveer 2274
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2275
      public addUser() {
2276
        super("addUser");
2277
      }
2278
 
2279
      protected addUser_args getEmptyArgsInstance() {
2280
        return new addUser_args();
2281
      }
2282
 
2283
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2284
        addUser_result result = new addUser_result();
2285
        try {
3430 rajveer 2286
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2287
          result.setSuccessIsSet(true);
2288
        } catch (HelperServiceException se) {
2289
          result.se = se;
2290
        }
3430 rajveer 2291
        return result;
495 rajveer 2292
      }
2293
    }
2294
 
3430 rajveer 2295
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2296
      public deleteUser() {
2297
        super("deleteUser");
2298
      }
2299
 
2300
      protected deleteUser_args getEmptyArgsInstance() {
2301
        return new deleteUser_args();
2302
      }
2303
 
2304
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2305
        deleteUser_result result = new deleteUser_result();
2306
        try {
3430 rajveer 2307
          result.success = iface.deleteUser(args.username);
495 rajveer 2308
          result.setSuccessIsSet(true);
2309
        } catch (HelperServiceException se) {
2310
          result.se = se;
2311
        }
3430 rajveer 2312
        return result;
495 rajveer 2313
      }
2314
    }
2315
 
3430 rajveer 2316
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2317
      public authenticateDashboardUser() {
2318
        super("authenticateDashboardUser");
2319
      }
2320
 
2321
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2322
        return new authenticateDashboardUser_args();
2323
      }
2324
 
2325
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2326
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2327
        try {
3430 rajveer 2328
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2329
        } catch (HelperServiceException se) {
2330
          result.se = se;
2331
        }
3430 rajveer 2332
        return result;
495 rajveer 2333
      }
2334
    }
2335
 
3430 rajveer 2336
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2337
      public updatePassword() {
2338
        super("updatePassword");
2339
      }
2340
 
2341
      protected updatePassword_args getEmptyArgsInstance() {
2342
        return new updatePassword_args();
2343
      }
2344
 
2345
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2346
        updatePassword_result result = new updatePassword_result();
2347
        try {
3430 rajveer 2348
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2349
          result.setSuccessIsSet(true);
2350
        } catch (HelperServiceException se) {
2351
          result.se = se;
2352
        }
3430 rajveer 2353
        return result;
495 rajveer 2354
      }
2355
    }
2356
 
3430 rajveer 2357
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2358
      public authenticateLogisticsUser() {
2359
        super("authenticateLogisticsUser");
2360
      }
2361
 
2362
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2363
        return new authenticateLogisticsUser_args();
2364
      }
2365
 
2366
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2367
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2368
        try {
3430 rajveer 2369
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2370
        } catch (HelperServiceException hse) {
2371
          result.hse = hse;
2372
        }
3430 rajveer 2373
        return result;
750 chandransh 2374
      }
2375
    }
2376
 
3430 rajveer 2377
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2378
      public authenticateStatisticsUser() {
2379
        super("authenticateStatisticsUser");
2380
      }
2381
 
2382
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2383
        return new authenticateStatisticsUser_args();
2384
      }
2385
 
2386
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2387
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2388
        try {
3430 rajveer 2389
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2390
        } catch (HelperServiceException hse) {
2391
          result.hse = hse;
2392
        }
3430 rajveer 2393
        return result;
1611 ankur.sing 2394
      }
2395
    }
2396
 
3430 rajveer 2397
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2398
      public authenticateReportUser() {
2399
        super("authenticateReportUser");
2400
      }
2401
 
2402
      protected authenticateReportUser_args getEmptyArgsInstance() {
2403
        return new authenticateReportUser_args();
2404
      }
2405
 
2406
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2407
        authenticateReportUser_result result = new authenticateReportUser_result();
2408
        try {
3430 rajveer 2409
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2410
        } catch (HelperServiceException hse) {
2411
          result.hse = hse;
2412
        }
3430 rajveer 2413
        return result;
1891 ankur.sing 2414
      }
2415
    }
2416
 
3430 rajveer 2417
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2418
      public getReports() {
2419
        super("getReports");
2420
      }
2421
 
2422
      protected getReports_args getEmptyArgsInstance() {
2423
        return new getReports_args();
2424
      }
2425
 
2426
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2427
        getReports_result result = new getReports_result();
3430 rajveer 2428
        result.success = iface.getReports(args.role);
2429
        return result;
1891 ankur.sing 2430
      }
2431
    }
2432
 
3430 rajveer 2433
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2434
      public authenticateCatalogUser() {
2435
        super("authenticateCatalogUser");
2436
      }
2437
 
2438
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2439
        return new authenticateCatalogUser_args();
2440
      }
2441
 
2442
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2443
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2444
        try {
6788 rajveer 2445
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 2446
        } catch (HelperServiceException hse) {
2447
          result.hse = hse;
2448
        }
3430 rajveer 2449
        return result;
2024 ankur.sing 2450
      }
2451
    }
2452
 
4544 varun.gupt 2453
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2454
      public shareEntities() {
2455
        super("shareEntities");
2456
      }
2457
 
2458
      protected shareEntities_args getEmptyArgsInstance() {
2459
        return new shareEntities_args();
2460
      }
2461
 
2462
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2463
        shareEntities_result result = new shareEntities_result();
2464
        try {
2465
          iface.shareEntities(args.entityIds, args.email);
2466
        } catch (HelperServiceException hse) {
2467
          result.hse = hse;
2468
        }
2469
        return result;
2470
      }
2471
    }
2472
 
4693 mandeep.dh 2473
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2474
      public getAgents() {
2475
        super("getAgents");
2476
      }
2477
 
2478
      protected getAgents_args getEmptyArgsInstance() {
2479
        return new getAgents_args();
2480
      }
2481
 
2482
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2483
        getAgents_result result = new getAgents_result();
2484
        result.success = iface.getAgents();
2485
        return result;
2486
      }
2487
    }
2488
 
2489
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2490
      public validateLogIn() {
2491
        super("validateLogIn");
2492
      }
2493
 
2494
      protected validateLogIn_args getEmptyArgsInstance() {
2495
        return new validateLogIn_args();
2496
      }
2497
 
2498
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2499
        validateLogIn_result result = new validateLogIn_result();
2500
        result.success = iface.validateLogIn(args.emailId, args.password);
2501
        result.setSuccessIsSet(true);
2502
        return result;
2503
      }
2504
    }
2505
 
2506
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2507
      public updatePasswordForAgent() {
2508
        super("updatePasswordForAgent");
2509
      }
2510
 
2511
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2512
        return new updatePasswordForAgent_args();
2513
      }
2514
 
2515
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2516
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2517
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2518
        return result;
2519
      }
2520
    }
2521
 
2522
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2523
      public getRoleNamesForAgent() {
2524
        super("getRoleNamesForAgent");
2525
      }
2526
 
2527
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2528
        return new getRoleNamesForAgent_args();
2529
      }
2530
 
2531
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2532
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2533
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2534
        return result;
2535
      }
2536
    }
2537
 
2538
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2539
      public getPermissionsForRoleName() {
2540
        super("getPermissionsForRoleName");
2541
      }
2542
 
2543
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2544
        return new getPermissionsForRoleName_args();
2545
      }
2546
 
2547
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2548
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2549
        result.success = iface.getPermissionsForRoleName(args.roleName);
2550
        return result;
2551
      }
2552
    }
2553
 
4806 varun.gupt 2554
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2555
      public saveQuickLink() {
2556
        super("saveQuickLink");
2557
      }
2558
 
2559
      protected saveQuickLink_args getEmptyArgsInstance() {
2560
        return new saveQuickLink_args();
2561
      }
2562
 
2563
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2564
        saveQuickLink_result result = new saveQuickLink_result();
2565
        try {
2566
          iface.saveQuickLink(args.url, args.text);
2567
        } catch (HelperServiceException hse) {
2568
          result.hse = hse;
2569
        }
2570
        return result;
2571
      }
2572
    }
2573
 
2574
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2575
      public getQuickLinks() {
2576
        super("getQuickLinks");
2577
      }
2578
 
2579
      protected getQuickLinks_args getEmptyArgsInstance() {
2580
        return new getQuickLinks_args();
2581
      }
2582
 
2583
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2584
        getQuickLinks_result result = new getQuickLinks_result();
2585
        try {
2586
          result.success = iface.getQuickLinks();
2587
        } catch (HelperServiceException hse) {
2588
          result.hse = hse;
2589
        }
2590
        return result;
2591
      }
2592
    }
2593
 
4996 varun.gupt 2594
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2595
      public updateQuickLink() {
2596
        super("updateQuickLink");
2597
      }
2598
 
2599
      protected updateQuickLink_args getEmptyArgsInstance() {
2600
        return new updateQuickLink_args();
2601
      }
2602
 
2603
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2604
        updateQuickLink_result result = new updateQuickLink_result();
2605
        try {
2606
          iface.updateQuickLink(args.id, args.url, args.text);
2607
        } catch (HelperServiceException hse) {
2608
          result.hse = hse;
2609
        }
2610
        return result;
2611
      }
2612
    }
2613
 
5055 varun.gupt 2614
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2615
      public getEmailsForNotificationsSent() {
2616
        super("getEmailsForNotificationsSent");
2617
      }
2618
 
2619
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2620
        return new getEmailsForNotificationsSent_args();
2621
      }
2622
 
2623
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2624
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2625
        try {
2626
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2627
        } catch (HelperServiceException hse) {
2628
          result.hse = hse;
2629
        }
2630
        return result;
2631
      }
2632
    }
2633
 
6322 amar.kumar 2634
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
2635
      public getOrderConfirmationMail() {
2636
        super("getOrderConfirmationMail");
2637
      }
2638
 
2639
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
2640
        return new getOrderConfirmationMail_args();
2641
      }
2642
 
2643
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
2644
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
2645
        result.success = iface.getOrderConfirmationMail(args.orderId);
2646
        return result;
2647
      }
2648
    }
2649
 
7221 kshitij.so 2650
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
2651
      public getOrderDeliveryMail() {
2652
        super("getOrderDeliveryMail");
2653
      }
2654
 
2655
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
2656
        return new getOrderDeliveryMail_args();
2657
      }
2658
 
2659
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
2660
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
2661
        result.success = iface.getOrderDeliveryMail(args.orderId);
2662
        return result;
2663
      }
2664
    }
2665
 
352 ashish 2666
  }
2667
 
3430 rajveer 2668
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2669
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2670
 
5864 rajveer 2671
    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 2672
    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);
2673
    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);
2674
    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);
2675
    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);
2676
    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 2677
    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);
2678
    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 2679
 
5864 rajveer 2680
    private List<String> emailTo; // required
3430 rajveer 2681
    private String emailFrom; // required
2682
    private String subject; // required
2683
    private String body; // required
2684
    private String source; // required
2685
    private String emailType; // required
5864 rajveer 2686
    private List<String> cc; // required
2687
    private List<String> bcc; // required
1395 varun.gupt 2688
 
2689
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2690
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2691
      EMAIL_TO((short)1, "emailTo"),
2692
      EMAIL_FROM((short)2, "emailFrom"),
2693
      SUBJECT((short)3, "subject"),
2694
      BODY((short)4, "body"),
2695
      SOURCE((short)5, "source"),
5864 rajveer 2696
      EMAIL_TYPE((short)6, "emailType"),
2697
      CC((short)7, "cc"),
2698
      BCC((short)8, "bcc");
1395 varun.gupt 2699
 
2700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2701
 
2702
      static {
2703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2704
          byName.put(field.getFieldName(), field);
2705
        }
2706
      }
2707
 
2708
      /**
2709
       * Find the _Fields constant that matches fieldId, or null if its not found.
2710
       */
2711
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2712
        switch(fieldId) {
2713
          case 1: // EMAIL_TO
2714
            return EMAIL_TO;
2715
          case 2: // EMAIL_FROM
2716
            return EMAIL_FROM;
2717
          case 3: // SUBJECT
2718
            return SUBJECT;
2719
          case 4: // BODY
2720
            return BODY;
2721
          case 5: // SOURCE
2722
            return SOURCE;
2723
          case 6: // EMAIL_TYPE
2724
            return EMAIL_TYPE;
5864 rajveer 2725
          case 7: // CC
2726
            return CC;
2727
          case 8: // BCC
2728
            return BCC;
3430 rajveer 2729
          default:
2730
            return null;
2731
        }
1395 varun.gupt 2732
      }
2733
 
2734
      /**
2735
       * Find the _Fields constant that matches fieldId, throwing an exception
2736
       * if it is not found.
2737
       */
2738
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2739
        _Fields fields = findByThriftId(fieldId);
2740
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2741
        return fields;
2742
      }
2743
 
2744
      /**
2745
       * Find the _Fields constant that matches name, or null if its not found.
2746
       */
2747
      public static _Fields findByName(String name) {
2748
        return byName.get(name);
2749
      }
2750
 
2751
      private final short _thriftId;
2752
      private final String _fieldName;
2753
 
2754
      _Fields(short thriftId, String fieldName) {
2755
        _thriftId = thriftId;
2756
        _fieldName = fieldName;
2757
      }
2758
 
2759
      public short getThriftFieldId() {
2760
        return _thriftId;
2761
      }
2762
 
2763
      public String getFieldName() {
2764
        return _fieldName;
2765
      }
2766
    }
2767
 
2768
    // isset id assignments
2769
 
3430 rajveer 2770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2771
    static {
3430 rajveer 2772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2773
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2774
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2775
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2776
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2778
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2779
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2780
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2781
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2782
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2784
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2786
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2787
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2788
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2789
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2790
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2791
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2794
    }
2795
 
2796
    public saveUserEmailForSending_args() {
2797
    }
2798
 
2799
    public saveUserEmailForSending_args(
5864 rajveer 2800
      List<String> emailTo,
1395 varun.gupt 2801
      String emailFrom,
2802
      String subject,
2803
      String body,
2804
      String source,
5864 rajveer 2805
      String emailType,
2806
      List<String> cc,
2807
      List<String> bcc)
1395 varun.gupt 2808
    {
2809
      this();
2810
      this.emailTo = emailTo;
2811
      this.emailFrom = emailFrom;
2812
      this.subject = subject;
2813
      this.body = body;
2814
      this.source = source;
2815
      this.emailType = emailType;
5864 rajveer 2816
      this.cc = cc;
2817
      this.bcc = bcc;
1395 varun.gupt 2818
    }
2819
 
2820
    /**
2821
     * Performs a deep copy on <i>other</i>.
2822
     */
2823
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2824
      if (other.isSetEmailTo()) {
5864 rajveer 2825
        List<String> __this__emailTo = new ArrayList<String>();
2826
        for (String other_element : other.emailTo) {
2827
          __this__emailTo.add(other_element);
2828
        }
2829
        this.emailTo = __this__emailTo;
1395 varun.gupt 2830
      }
2831
      if (other.isSetEmailFrom()) {
2832
        this.emailFrom = other.emailFrom;
2833
      }
2834
      if (other.isSetSubject()) {
2835
        this.subject = other.subject;
2836
      }
2837
      if (other.isSetBody()) {
2838
        this.body = other.body;
2839
      }
2840
      if (other.isSetSource()) {
2841
        this.source = other.source;
2842
      }
2843
      if (other.isSetEmailType()) {
2844
        this.emailType = other.emailType;
2845
      }
5864 rajveer 2846
      if (other.isSetCc()) {
2847
        List<String> __this__cc = new ArrayList<String>();
2848
        for (String other_element : other.cc) {
2849
          __this__cc.add(other_element);
2850
        }
2851
        this.cc = __this__cc;
2852
      }
2853
      if (other.isSetBcc()) {
2854
        List<String> __this__bcc = new ArrayList<String>();
2855
        for (String other_element : other.bcc) {
2856
          __this__bcc.add(other_element);
2857
        }
2858
        this.bcc = __this__bcc;
2859
      }
1395 varun.gupt 2860
    }
2861
 
2862
    public saveUserEmailForSending_args deepCopy() {
2863
      return new saveUserEmailForSending_args(this);
2864
    }
2865
 
3430 rajveer 2866
    @Override
2867
    public void clear() {
2868
      this.emailTo = null;
2869
      this.emailFrom = null;
2870
      this.subject = null;
2871
      this.body = null;
2872
      this.source = null;
2873
      this.emailType = null;
5864 rajveer 2874
      this.cc = null;
2875
      this.bcc = null;
1395 varun.gupt 2876
    }
2877
 
5864 rajveer 2878
    public int getEmailToSize() {
2879
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2880
    }
2881
 
2882
    public java.util.Iterator<String> getEmailToIterator() {
2883
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2884
    }
2885
 
2886
    public void addToEmailTo(String elem) {
2887
      if (this.emailTo == null) {
2888
        this.emailTo = new ArrayList<String>();
2889
      }
2890
      this.emailTo.add(elem);
2891
    }
2892
 
2893
    public List<String> getEmailTo() {
1395 varun.gupt 2894
      return this.emailTo;
2895
    }
2896
 
5864 rajveer 2897
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2898
      this.emailTo = emailTo;
2899
    }
2900
 
2901
    public void unsetEmailTo() {
2902
      this.emailTo = null;
2903
    }
2904
 
3430 rajveer 2905
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2906
    public boolean isSetEmailTo() {
2907
      return this.emailTo != null;
2908
    }
2909
 
2910
    public void setEmailToIsSet(boolean value) {
2911
      if (!value) {
2912
        this.emailTo = null;
2913
      }
2914
    }
2915
 
2916
    public String getEmailFrom() {
2917
      return this.emailFrom;
2918
    }
2919
 
3430 rajveer 2920
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2921
      this.emailFrom = emailFrom;
2922
    }
2923
 
2924
    public void unsetEmailFrom() {
2925
      this.emailFrom = null;
2926
    }
2927
 
3430 rajveer 2928
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2929
    public boolean isSetEmailFrom() {
2930
      return this.emailFrom != null;
2931
    }
2932
 
2933
    public void setEmailFromIsSet(boolean value) {
2934
      if (!value) {
2935
        this.emailFrom = null;
2936
      }
2937
    }
2938
 
2939
    public String getSubject() {
2940
      return this.subject;
2941
    }
2942
 
3430 rajveer 2943
    public void setSubject(String subject) {
1395 varun.gupt 2944
      this.subject = subject;
2945
    }
2946
 
2947
    public void unsetSubject() {
2948
      this.subject = null;
2949
    }
2950
 
3430 rajveer 2951
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2952
    public boolean isSetSubject() {
2953
      return this.subject != null;
2954
    }
2955
 
2956
    public void setSubjectIsSet(boolean value) {
2957
      if (!value) {
2958
        this.subject = null;
2959
      }
2960
    }
2961
 
2962
    public String getBody() {
2963
      return this.body;
2964
    }
2965
 
3430 rajveer 2966
    public void setBody(String body) {
1395 varun.gupt 2967
      this.body = body;
2968
    }
2969
 
2970
    public void unsetBody() {
2971
      this.body = null;
2972
    }
2973
 
3430 rajveer 2974
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2975
    public boolean isSetBody() {
2976
      return this.body != null;
2977
    }
2978
 
2979
    public void setBodyIsSet(boolean value) {
2980
      if (!value) {
2981
        this.body = null;
2982
      }
2983
    }
2984
 
2985
    public String getSource() {
2986
      return this.source;
2987
    }
2988
 
3430 rajveer 2989
    public void setSource(String source) {
1395 varun.gupt 2990
      this.source = source;
2991
    }
2992
 
2993
    public void unsetSource() {
2994
      this.source = null;
2995
    }
2996
 
3430 rajveer 2997
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2998
    public boolean isSetSource() {
2999
      return this.source != null;
3000
    }
3001
 
3002
    public void setSourceIsSet(boolean value) {
3003
      if (!value) {
3004
        this.source = null;
3005
      }
3006
    }
3007
 
3008
    public String getEmailType() {
3009
      return this.emailType;
3010
    }
3011
 
3430 rajveer 3012
    public void setEmailType(String emailType) {
1395 varun.gupt 3013
      this.emailType = emailType;
3014
    }
3015
 
3016
    public void unsetEmailType() {
3017
      this.emailType = null;
3018
    }
3019
 
3430 rajveer 3020
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3021
    public boolean isSetEmailType() {
3022
      return this.emailType != null;
3023
    }
3024
 
3025
    public void setEmailTypeIsSet(boolean value) {
3026
      if (!value) {
3027
        this.emailType = null;
3028
      }
3029
    }
3030
 
5864 rajveer 3031
    public int getCcSize() {
3032
      return (this.cc == null) ? 0 : this.cc.size();
3033
    }
3034
 
3035
    public java.util.Iterator<String> getCcIterator() {
3036
      return (this.cc == null) ? null : this.cc.iterator();
3037
    }
3038
 
3039
    public void addToCc(String elem) {
3040
      if (this.cc == null) {
3041
        this.cc = new ArrayList<String>();
3042
      }
3043
      this.cc.add(elem);
3044
    }
3045
 
3046
    public List<String> getCc() {
3047
      return this.cc;
3048
    }
3049
 
3050
    public void setCc(List<String> cc) {
3051
      this.cc = cc;
3052
    }
3053
 
3054
    public void unsetCc() {
3055
      this.cc = null;
3056
    }
3057
 
3058
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
3059
    public boolean isSetCc() {
3060
      return this.cc != null;
3061
    }
3062
 
3063
    public void setCcIsSet(boolean value) {
3064
      if (!value) {
3065
        this.cc = null;
3066
      }
3067
    }
3068
 
3069
    public int getBccSize() {
3070
      return (this.bcc == null) ? 0 : this.bcc.size();
3071
    }
3072
 
3073
    public java.util.Iterator<String> getBccIterator() {
3074
      return (this.bcc == null) ? null : this.bcc.iterator();
3075
    }
3076
 
3077
    public void addToBcc(String elem) {
3078
      if (this.bcc == null) {
3079
        this.bcc = new ArrayList<String>();
3080
      }
3081
      this.bcc.add(elem);
3082
    }
3083
 
3084
    public List<String> getBcc() {
3085
      return this.bcc;
3086
    }
3087
 
3088
    public void setBcc(List<String> bcc) {
3089
      this.bcc = bcc;
3090
    }
3091
 
3092
    public void unsetBcc() {
3093
      this.bcc = null;
3094
    }
3095
 
3096
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
3097
    public boolean isSetBcc() {
3098
      return this.bcc != null;
3099
    }
3100
 
3101
    public void setBccIsSet(boolean value) {
3102
      if (!value) {
3103
        this.bcc = null;
3104
      }
3105
    }
3106
 
1395 varun.gupt 3107
    public void setFieldValue(_Fields field, Object value) {
3108
      switch (field) {
3109
      case EMAIL_TO:
3110
        if (value == null) {
3111
          unsetEmailTo();
3112
        } else {
5864 rajveer 3113
          setEmailTo((List<String>)value);
1395 varun.gupt 3114
        }
3115
        break;
3116
 
3117
      case EMAIL_FROM:
3118
        if (value == null) {
3119
          unsetEmailFrom();
3120
        } else {
3121
          setEmailFrom((String)value);
3122
        }
3123
        break;
3124
 
3125
      case SUBJECT:
3126
        if (value == null) {
3127
          unsetSubject();
3128
        } else {
3129
          setSubject((String)value);
3130
        }
3131
        break;
3132
 
3133
      case BODY:
3134
        if (value == null) {
3135
          unsetBody();
3136
        } else {
3137
          setBody((String)value);
3138
        }
3139
        break;
3140
 
3141
      case SOURCE:
3142
        if (value == null) {
3143
          unsetSource();
3144
        } else {
3145
          setSource((String)value);
3146
        }
3147
        break;
3148
 
3149
      case EMAIL_TYPE:
3150
        if (value == null) {
3151
          unsetEmailType();
3152
        } else {
3153
          setEmailType((String)value);
3154
        }
3155
        break;
3156
 
5864 rajveer 3157
      case CC:
3158
        if (value == null) {
3159
          unsetCc();
3160
        } else {
3161
          setCc((List<String>)value);
3162
        }
3163
        break;
3164
 
3165
      case BCC:
3166
        if (value == null) {
3167
          unsetBcc();
3168
        } else {
3169
          setBcc((List<String>)value);
3170
        }
3171
        break;
3172
 
1395 varun.gupt 3173
      }
3174
    }
3175
 
3176
    public Object getFieldValue(_Fields field) {
3177
      switch (field) {
3178
      case EMAIL_TO:
3179
        return getEmailTo();
3180
 
3181
      case EMAIL_FROM:
3182
        return getEmailFrom();
3183
 
3184
      case SUBJECT:
3185
        return getSubject();
3186
 
3187
      case BODY:
3188
        return getBody();
3189
 
3190
      case SOURCE:
3191
        return getSource();
3192
 
3193
      case EMAIL_TYPE:
3194
        return getEmailType();
3195
 
5864 rajveer 3196
      case CC:
3197
        return getCc();
3198
 
3199
      case BCC:
3200
        return getBcc();
3201
 
1395 varun.gupt 3202
      }
3203
      throw new IllegalStateException();
3204
    }
3205
 
3430 rajveer 3206
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3207
    public boolean isSet(_Fields field) {
3208
      if (field == null) {
3209
        throw new IllegalArgumentException();
3210
      }
1395 varun.gupt 3211
 
3212
      switch (field) {
3213
      case EMAIL_TO:
3214
        return isSetEmailTo();
3215
      case EMAIL_FROM:
3216
        return isSetEmailFrom();
3217
      case SUBJECT:
3218
        return isSetSubject();
3219
      case BODY:
3220
        return isSetBody();
3221
      case SOURCE:
3222
        return isSetSource();
3223
      case EMAIL_TYPE:
3224
        return isSetEmailType();
5864 rajveer 3225
      case CC:
3226
        return isSetCc();
3227
      case BCC:
3228
        return isSetBcc();
1395 varun.gupt 3229
      }
3230
      throw new IllegalStateException();
3231
    }
3232
 
3233
    @Override
3234
    public boolean equals(Object that) {
3235
      if (that == null)
3236
        return false;
3237
      if (that instanceof saveUserEmailForSending_args)
3238
        return this.equals((saveUserEmailForSending_args)that);
3239
      return false;
3240
    }
3241
 
3242
    public boolean equals(saveUserEmailForSending_args that) {
3243
      if (that == null)
3244
        return false;
3245
 
3246
      boolean this_present_emailTo = true && this.isSetEmailTo();
3247
      boolean that_present_emailTo = true && that.isSetEmailTo();
3248
      if (this_present_emailTo || that_present_emailTo) {
3249
        if (!(this_present_emailTo && that_present_emailTo))
3250
          return false;
3251
        if (!this.emailTo.equals(that.emailTo))
3252
          return false;
3253
      }
3254
 
3255
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3256
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3257
      if (this_present_emailFrom || that_present_emailFrom) {
3258
        if (!(this_present_emailFrom && that_present_emailFrom))
3259
          return false;
3260
        if (!this.emailFrom.equals(that.emailFrom))
3261
          return false;
3262
      }
3263
 
3264
      boolean this_present_subject = true && this.isSetSubject();
3265
      boolean that_present_subject = true && that.isSetSubject();
3266
      if (this_present_subject || that_present_subject) {
3267
        if (!(this_present_subject && that_present_subject))
3268
          return false;
3269
        if (!this.subject.equals(that.subject))
3270
          return false;
3271
      }
3272
 
3273
      boolean this_present_body = true && this.isSetBody();
3274
      boolean that_present_body = true && that.isSetBody();
3275
      if (this_present_body || that_present_body) {
3276
        if (!(this_present_body && that_present_body))
3277
          return false;
3278
        if (!this.body.equals(that.body))
3279
          return false;
3280
      }
3281
 
3282
      boolean this_present_source = true && this.isSetSource();
3283
      boolean that_present_source = true && that.isSetSource();
3284
      if (this_present_source || that_present_source) {
3285
        if (!(this_present_source && that_present_source))
3286
          return false;
3287
        if (!this.source.equals(that.source))
3288
          return false;
3289
      }
3290
 
3291
      boolean this_present_emailType = true && this.isSetEmailType();
3292
      boolean that_present_emailType = true && that.isSetEmailType();
3293
      if (this_present_emailType || that_present_emailType) {
3294
        if (!(this_present_emailType && that_present_emailType))
3295
          return false;
3296
        if (!this.emailType.equals(that.emailType))
3297
          return false;
3298
      }
3299
 
5864 rajveer 3300
      boolean this_present_cc = true && this.isSetCc();
3301
      boolean that_present_cc = true && that.isSetCc();
3302
      if (this_present_cc || that_present_cc) {
3303
        if (!(this_present_cc && that_present_cc))
3304
          return false;
3305
        if (!this.cc.equals(that.cc))
3306
          return false;
3307
      }
3308
 
3309
      boolean this_present_bcc = true && this.isSetBcc();
3310
      boolean that_present_bcc = true && that.isSetBcc();
3311
      if (this_present_bcc || that_present_bcc) {
3312
        if (!(this_present_bcc && that_present_bcc))
3313
          return false;
3314
        if (!this.bcc.equals(that.bcc))
3315
          return false;
3316
      }
3317
 
1395 varun.gupt 3318
      return true;
3319
    }
3320
 
3321
    @Override
3322
    public int hashCode() {
3323
      return 0;
3324
    }
3325
 
3326
    public int compareTo(saveUserEmailForSending_args other) {
3327
      if (!getClass().equals(other.getClass())) {
3328
        return getClass().getName().compareTo(other.getClass().getName());
3329
      }
3330
 
3331
      int lastComparison = 0;
3332
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3333
 
3430 rajveer 3334
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3335
      if (lastComparison != 0) {
3336
        return lastComparison;
3337
      }
3430 rajveer 3338
      if (isSetEmailTo()) {
3339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3340
        if (lastComparison != 0) {
3341
          return lastComparison;
3342
        }
1395 varun.gupt 3343
      }
3430 rajveer 3344
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3345
      if (lastComparison != 0) {
3346
        return lastComparison;
3347
      }
3430 rajveer 3348
      if (isSetEmailFrom()) {
3349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3350
        if (lastComparison != 0) {
3351
          return lastComparison;
3352
        }
1395 varun.gupt 3353
      }
3430 rajveer 3354
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3355
      if (lastComparison != 0) {
3356
        return lastComparison;
3357
      }
3430 rajveer 3358
      if (isSetSubject()) {
3359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3360
        if (lastComparison != 0) {
3361
          return lastComparison;
3362
        }
1395 varun.gupt 3363
      }
3430 rajveer 3364
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3365
      if (lastComparison != 0) {
3366
        return lastComparison;
3367
      }
3430 rajveer 3368
      if (isSetBody()) {
3369
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3370
        if (lastComparison != 0) {
3371
          return lastComparison;
3372
        }
1395 varun.gupt 3373
      }
3430 rajveer 3374
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3375
      if (lastComparison != 0) {
3376
        return lastComparison;
3377
      }
3430 rajveer 3378
      if (isSetSource()) {
3379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3380
        if (lastComparison != 0) {
3381
          return lastComparison;
3382
        }
1395 varun.gupt 3383
      }
3430 rajveer 3384
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3385
      if (lastComparison != 0) {
3386
        return lastComparison;
3387
      }
3430 rajveer 3388
      if (isSetEmailType()) {
3389
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3390
        if (lastComparison != 0) {
3391
          return lastComparison;
3392
        }
1395 varun.gupt 3393
      }
5864 rajveer 3394
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3395
      if (lastComparison != 0) {
3396
        return lastComparison;
3397
      }
3398
      if (isSetCc()) {
3399
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3400
        if (lastComparison != 0) {
3401
          return lastComparison;
3402
        }
3403
      }
3404
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3405
      if (lastComparison != 0) {
3406
        return lastComparison;
3407
      }
3408
      if (isSetBcc()) {
3409
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3410
        if (lastComparison != 0) {
3411
          return lastComparison;
3412
        }
3413
      }
1395 varun.gupt 3414
      return 0;
3415
    }
3416
 
3430 rajveer 3417
    public _Fields fieldForId(int fieldId) {
3418
      return _Fields.findByThriftId(fieldId);
3419
    }
3420
 
3421
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3422
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3423
      iprot.readStructBegin();
3424
      while (true)
3425
      {
3426
        field = iprot.readFieldBegin();
3430 rajveer 3427
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3428
          break;
3429
        }
3430 rajveer 3430
        switch (field.id) {
3431
          case 1: // EMAIL_TO
5864 rajveer 3432
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3433
              {
3434
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3435
                this.emailTo = new ArrayList<String>(_list20.size);
3436
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3437
                {
3438
                  String _elem22; // required
3439
                  _elem22 = iprot.readString();
3440
                  this.emailTo.add(_elem22);
3441
                }
3442
                iprot.readListEnd();
3443
              }
3430 rajveer 3444
            } else { 
3445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3446
            }
3447
            break;
3448
          case 2: // EMAIL_FROM
3449
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3450
              this.emailFrom = iprot.readString();
3451
            } else { 
3452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3453
            }
3454
            break;
3455
          case 3: // SUBJECT
3456
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3457
              this.subject = iprot.readString();
3458
            } else { 
3459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3460
            }
3461
            break;
3462
          case 4: // BODY
3463
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3464
              this.body = iprot.readString();
3465
            } else { 
3466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3467
            }
3468
            break;
3469
          case 5: // SOURCE
3470
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3471
              this.source = iprot.readString();
3472
            } else { 
3473
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3474
            }
3475
            break;
3476
          case 6: // EMAIL_TYPE
3477
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3478
              this.emailType = iprot.readString();
3479
            } else { 
3480
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3481
            }
3482
            break;
5864 rajveer 3483
          case 7: // CC
3484
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3485
              {
3486
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3487
                this.cc = new ArrayList<String>(_list23.size);
3488
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3489
                {
3490
                  String _elem25; // required
3491
                  _elem25 = iprot.readString();
3492
                  this.cc.add(_elem25);
3493
                }
3494
                iprot.readListEnd();
3495
              }
3496
            } else { 
3497
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3498
            }
3499
            break;
3500
          case 8: // BCC
3501
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3502
              {
3503
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3504
                this.bcc = new ArrayList<String>(_list26.size);
3505
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3506
                {
3507
                  String _elem28; // required
3508
                  _elem28 = iprot.readString();
3509
                  this.bcc.add(_elem28);
3510
                }
3511
                iprot.readListEnd();
3512
              }
3513
            } else { 
3514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3515
            }
3516
            break;
3430 rajveer 3517
          default:
3518
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3519
        }
3430 rajveer 3520
        iprot.readFieldEnd();
1395 varun.gupt 3521
      }
3522
      iprot.readStructEnd();
3523
      validate();
3524
    }
3525
 
3430 rajveer 3526
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3527
      validate();
3528
 
3529
      oprot.writeStructBegin(STRUCT_DESC);
3530
      if (this.emailTo != null) {
3531
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3532
        {
3533
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3534
          for (String _iter29 : this.emailTo)
3535
          {
3536
            oprot.writeString(_iter29);
3537
          }
3538
          oprot.writeListEnd();
3539
        }
1395 varun.gupt 3540
        oprot.writeFieldEnd();
3541
      }
3542
      if (this.emailFrom != null) {
3543
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3544
        oprot.writeString(this.emailFrom);
3545
        oprot.writeFieldEnd();
3546
      }
3547
      if (this.subject != null) {
3548
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3549
        oprot.writeString(this.subject);
3550
        oprot.writeFieldEnd();
3551
      }
3552
      if (this.body != null) {
3553
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3554
        oprot.writeString(this.body);
3555
        oprot.writeFieldEnd();
3556
      }
3557
      if (this.source != null) {
3558
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3559
        oprot.writeString(this.source);
3560
        oprot.writeFieldEnd();
3561
      }
3562
      if (this.emailType != null) {
3563
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3564
        oprot.writeString(this.emailType);
3565
        oprot.writeFieldEnd();
3566
      }
5864 rajveer 3567
      if (this.cc != null) {
3568
        oprot.writeFieldBegin(CC_FIELD_DESC);
3569
        {
3570
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3571
          for (String _iter30 : this.cc)
3572
          {
3573
            oprot.writeString(_iter30);
3574
          }
3575
          oprot.writeListEnd();
3576
        }
3577
        oprot.writeFieldEnd();
3578
      }
3579
      if (this.bcc != null) {
3580
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3581
        {
3582
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3583
          for (String _iter31 : this.bcc)
3584
          {
3585
            oprot.writeString(_iter31);
3586
          }
3587
          oprot.writeListEnd();
3588
        }
3589
        oprot.writeFieldEnd();
3590
      }
1395 varun.gupt 3591
      oprot.writeFieldStop();
3592
      oprot.writeStructEnd();
3593
    }
3594
 
3595
    @Override
3596
    public String toString() {
3597
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3598
      boolean first = true;
3599
 
3600
      sb.append("emailTo:");
3601
      if (this.emailTo == null) {
3602
        sb.append("null");
3603
      } else {
3604
        sb.append(this.emailTo);
3605
      }
3606
      first = false;
3607
      if (!first) sb.append(", ");
3608
      sb.append("emailFrom:");
3609
      if (this.emailFrom == null) {
3610
        sb.append("null");
3611
      } else {
3612
        sb.append(this.emailFrom);
3613
      }
3614
      first = false;
3615
      if (!first) sb.append(", ");
3616
      sb.append("subject:");
3617
      if (this.subject == null) {
3618
        sb.append("null");
3619
      } else {
3620
        sb.append(this.subject);
3621
      }
3622
      first = false;
3623
      if (!first) sb.append(", ");
3624
      sb.append("body:");
3625
      if (this.body == null) {
3626
        sb.append("null");
3627
      } else {
3628
        sb.append(this.body);
3629
      }
3630
      first = false;
3631
      if (!first) sb.append(", ");
3632
      sb.append("source:");
3633
      if (this.source == null) {
3634
        sb.append("null");
3635
      } else {
3636
        sb.append(this.source);
3637
      }
3638
      first = false;
3639
      if (!first) sb.append(", ");
3640
      sb.append("emailType:");
3641
      if (this.emailType == null) {
3642
        sb.append("null");
3643
      } else {
3644
        sb.append(this.emailType);
3645
      }
3646
      first = false;
5864 rajveer 3647
      if (!first) sb.append(", ");
3648
      sb.append("cc:");
3649
      if (this.cc == null) {
3650
        sb.append("null");
3651
      } else {
3652
        sb.append(this.cc);
3653
      }
3654
      first = false;
3655
      if (!first) sb.append(", ");
3656
      sb.append("bcc:");
3657
      if (this.bcc == null) {
3658
        sb.append("null");
3659
      } else {
3660
        sb.append(this.bcc);
3661
      }
3662
      first = false;
1395 varun.gupt 3663
      sb.append(")");
3664
      return sb.toString();
3665
    }
3666
 
3430 rajveer 3667
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3668
      // check for required fields
3669
    }
3670
 
3430 rajveer 3671
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3672
      try {
3673
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3674
      } catch (org.apache.thrift.TException te) {
3675
        throw new java.io.IOException(te);
3676
      }
3677
    }
3678
 
3679
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3680
      try {
3681
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3682
      } catch (org.apache.thrift.TException te) {
3683
        throw new java.io.IOException(te);
3684
      }
3685
    }
3686
 
1395 varun.gupt 3687
  }
3688
 
3430 rajveer 3689
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3691
 
3430 rajveer 3692
    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);
3693
    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 3694
 
3430 rajveer 3695
    private long success; // required
3696
    private HelperServiceException se; // required
1395 varun.gupt 3697
 
3698
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3699
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3700
      SUCCESS((short)0, "success"),
1395 varun.gupt 3701
      SE((short)1, "se");
3702
 
3703
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3704
 
3705
      static {
3706
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3707
          byName.put(field.getFieldName(), field);
3708
        }
3709
      }
3710
 
3711
      /**
3712
       * Find the _Fields constant that matches fieldId, or null if its not found.
3713
       */
3714
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3715
        switch(fieldId) {
3716
          case 0: // SUCCESS
3717
            return SUCCESS;
3718
          case 1: // SE
3719
            return SE;
3720
          default:
3721
            return null;
3722
        }
1395 varun.gupt 3723
      }
3724
 
3725
      /**
3726
       * Find the _Fields constant that matches fieldId, throwing an exception
3727
       * if it is not found.
3728
       */
3729
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3730
        _Fields fields = findByThriftId(fieldId);
3731
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3732
        return fields;
3733
      }
3734
 
3735
      /**
3736
       * Find the _Fields constant that matches name, or null if its not found.
3737
       */
3738
      public static _Fields findByName(String name) {
3739
        return byName.get(name);
3740
      }
3741
 
3742
      private final short _thriftId;
3743
      private final String _fieldName;
3744
 
3745
      _Fields(short thriftId, String fieldName) {
3746
        _thriftId = thriftId;
3747
        _fieldName = fieldName;
3748
      }
3749
 
3750
      public short getThriftFieldId() {
3751
        return _thriftId;
3752
      }
3753
 
3754
      public String getFieldName() {
3755
        return _fieldName;
3756
      }
3757
    }
3758
 
3759
    // isset id assignments
3206 mandeep.dh 3760
    private static final int __SUCCESS_ISSET_ID = 0;
3761
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3762
 
3430 rajveer 3763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3764
    static {
3430 rajveer 3765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3766
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3768
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3772
    }
3773
 
3774
    public saveUserEmailForSending_result() {
3775
    }
3776
 
3777
    public saveUserEmailForSending_result(
3206 mandeep.dh 3778
      long success,
1395 varun.gupt 3779
      HelperServiceException se)
3780
    {
3781
      this();
3206 mandeep.dh 3782
      this.success = success;
3783
      setSuccessIsSet(true);
1395 varun.gupt 3784
      this.se = se;
3785
    }
3786
 
3787
    /**
3788
     * Performs a deep copy on <i>other</i>.
3789
     */
3790
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3791
      __isset_bit_vector.clear();
3792
      __isset_bit_vector.or(other.__isset_bit_vector);
3793
      this.success = other.success;
1395 varun.gupt 3794
      if (other.isSetSe()) {
3795
        this.se = new HelperServiceException(other.se);
3796
      }
3797
    }
3798
 
3799
    public saveUserEmailForSending_result deepCopy() {
3800
      return new saveUserEmailForSending_result(this);
3801
    }
3802
 
3430 rajveer 3803
    @Override
3804
    public void clear() {
3805
      setSuccessIsSet(false);
3806
      this.success = 0;
3807
      this.se = null;
1395 varun.gupt 3808
    }
3809
 
3206 mandeep.dh 3810
    public long getSuccess() {
3811
      return this.success;
3812
    }
3813
 
3430 rajveer 3814
    public void setSuccess(long success) {
3206 mandeep.dh 3815
      this.success = success;
3816
      setSuccessIsSet(true);
3817
    }
3818
 
3819
    public void unsetSuccess() {
3820
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3821
    }
3822
 
3430 rajveer 3823
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3824
    public boolean isSetSuccess() {
3825
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3826
    }
3827
 
3828
    public void setSuccessIsSet(boolean value) {
3829
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3830
    }
3831
 
1395 varun.gupt 3832
    public HelperServiceException getSe() {
3833
      return this.se;
3834
    }
3835
 
3430 rajveer 3836
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3837
      this.se = se;
3838
    }
3839
 
3840
    public void unsetSe() {
3841
      this.se = null;
3842
    }
3843
 
3430 rajveer 3844
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3845
    public boolean isSetSe() {
3846
      return this.se != null;
3847
    }
3848
 
3849
    public void setSeIsSet(boolean value) {
3850
      if (!value) {
3851
        this.se = null;
3852
      }
3853
    }
3854
 
3855
    public void setFieldValue(_Fields field, Object value) {
3856
      switch (field) {
3206 mandeep.dh 3857
      case SUCCESS:
3858
        if (value == null) {
3859
          unsetSuccess();
3860
        } else {
3861
          setSuccess((Long)value);
3862
        }
3863
        break;
3864
 
1395 varun.gupt 3865
      case SE:
3866
        if (value == null) {
3867
          unsetSe();
3868
        } else {
3869
          setSe((HelperServiceException)value);
3870
        }
3871
        break;
3872
 
3873
      }
3874
    }
3875
 
3876
    public Object getFieldValue(_Fields field) {
3877
      switch (field) {
3206 mandeep.dh 3878
      case SUCCESS:
3430 rajveer 3879
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3880
 
1395 varun.gupt 3881
      case SE:
3882
        return getSe();
3883
 
3884
      }
3885
      throw new IllegalStateException();
3886
    }
3887
 
3430 rajveer 3888
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3889
    public boolean isSet(_Fields field) {
3890
      if (field == null) {
3891
        throw new IllegalArgumentException();
3892
      }
1395 varun.gupt 3893
 
3894
      switch (field) {
3206 mandeep.dh 3895
      case SUCCESS:
3896
        return isSetSuccess();
1395 varun.gupt 3897
      case SE:
3898
        return isSetSe();
3899
      }
3900
      throw new IllegalStateException();
3901
    }
3902
 
3903
    @Override
3904
    public boolean equals(Object that) {
3905
      if (that == null)
3906
        return false;
3907
      if (that instanceof saveUserEmailForSending_result)
3908
        return this.equals((saveUserEmailForSending_result)that);
3909
      return false;
3910
    }
3911
 
3912
    public boolean equals(saveUserEmailForSending_result that) {
3913
      if (that == null)
3914
        return false;
3915
 
3206 mandeep.dh 3916
      boolean this_present_success = true;
3917
      boolean that_present_success = true;
3918
      if (this_present_success || that_present_success) {
3919
        if (!(this_present_success && that_present_success))
3920
          return false;
3921
        if (this.success != that.success)
3922
          return false;
3923
      }
3924
 
1395 varun.gupt 3925
      boolean this_present_se = true && this.isSetSe();
3926
      boolean that_present_se = true && that.isSetSe();
3927
      if (this_present_se || that_present_se) {
3928
        if (!(this_present_se && that_present_se))
3929
          return false;
3930
        if (!this.se.equals(that.se))
3931
          return false;
3932
      }
3933
 
3934
      return true;
3935
    }
3936
 
3937
    @Override
3938
    public int hashCode() {
3939
      return 0;
3940
    }
3941
 
3942
    public int compareTo(saveUserEmailForSending_result other) {
3943
      if (!getClass().equals(other.getClass())) {
3944
        return getClass().getName().compareTo(other.getClass().getName());
3945
      }
3946
 
3947
      int lastComparison = 0;
3948
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
3949
 
3430 rajveer 3950
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 3951
      if (lastComparison != 0) {
3952
        return lastComparison;
3953
      }
3430 rajveer 3954
      if (isSetSuccess()) {
3955
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3956
        if (lastComparison != 0) {
3957
          return lastComparison;
3958
        }
3206 mandeep.dh 3959
      }
3430 rajveer 3960
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 3961
      if (lastComparison != 0) {
3962
        return lastComparison;
3963
      }
3430 rajveer 3964
      if (isSetSe()) {
3965
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3966
        if (lastComparison != 0) {
3967
          return lastComparison;
3968
        }
1395 varun.gupt 3969
      }
3970
      return 0;
3971
    }
3972
 
3430 rajveer 3973
    public _Fields fieldForId(int fieldId) {
3974
      return _Fields.findByThriftId(fieldId);
3975
    }
3976
 
3977
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3978
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3979
      iprot.readStructBegin();
3980
      while (true)
3981
      {
3982
        field = iprot.readFieldBegin();
3430 rajveer 3983
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3984
          break;
3985
        }
3430 rajveer 3986
        switch (field.id) {
3987
          case 0: // SUCCESS
3988
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3989
              this.success = iprot.readI64();
3990
              setSuccessIsSet(true);
3991
            } else { 
3992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3993
            }
3994
            break;
3995
          case 1: // SE
3996
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3997
              this.se = new HelperServiceException();
3998
              this.se.read(iprot);
3999
            } else { 
4000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4001
            }
4002
            break;
4003
          default:
4004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4005
        }
3430 rajveer 4006
        iprot.readFieldEnd();
1395 varun.gupt 4007
      }
4008
      iprot.readStructEnd();
4009
      validate();
4010
    }
4011
 
3430 rajveer 4012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4013
      oprot.writeStructBegin(STRUCT_DESC);
4014
 
3206 mandeep.dh 4015
      if (this.isSetSuccess()) {
4016
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4017
        oprot.writeI64(this.success);
4018
        oprot.writeFieldEnd();
4019
      } else if (this.isSetSe()) {
1395 varun.gupt 4020
        oprot.writeFieldBegin(SE_FIELD_DESC);
4021
        this.se.write(oprot);
4022
        oprot.writeFieldEnd();
4023
      }
4024
      oprot.writeFieldStop();
4025
      oprot.writeStructEnd();
4026
    }
4027
 
4028
    @Override
4029
    public String toString() {
4030
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
4031
      boolean first = true;
4032
 
3206 mandeep.dh 4033
      sb.append("success:");
4034
      sb.append(this.success);
4035
      first = false;
4036
      if (!first) sb.append(", ");
1395 varun.gupt 4037
      sb.append("se:");
4038
      if (this.se == null) {
4039
        sb.append("null");
4040
      } else {
4041
        sb.append(this.se);
4042
      }
4043
      first = false;
4044
      sb.append(")");
4045
      return sb.toString();
4046
    }
4047
 
3430 rajveer 4048
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4049
      // check for required fields
4050
    }
4051
 
3430 rajveer 4052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4053
      try {
4054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4055
      } catch (org.apache.thrift.TException te) {
4056
        throw new java.io.IOException(te);
4057
      }
4058
    }
4059
 
4060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4061
      try {
4062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4063
      } catch (org.apache.thrift.TException te) {
4064
        throw new java.io.IOException(te);
4065
      }
4066
    }
4067
 
1395 varun.gupt 4068
  }
4069
 
3430 rajveer 4070
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
4071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 4072
 
4073
 
4074
 
4075
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4076
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 4077
;
1422 varun.gupt 4078
 
4079
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4080
 
4081
      static {
4082
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4083
          byName.put(field.getFieldName(), field);
4084
        }
4085
      }
4086
 
4087
      /**
4088
       * Find the _Fields constant that matches fieldId, or null if its not found.
4089
       */
4090
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4091
        switch(fieldId) {
4092
          default:
4093
            return null;
4094
        }
1422 varun.gupt 4095
      }
4096
 
4097
      /**
4098
       * Find the _Fields constant that matches fieldId, throwing an exception
4099
       * if it is not found.
4100
       */
4101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4102
        _Fields fields = findByThriftId(fieldId);
4103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4104
        return fields;
4105
      }
4106
 
4107
      /**
4108
       * Find the _Fields constant that matches name, or null if its not found.
4109
       */
4110
      public static _Fields findByName(String name) {
4111
        return byName.get(name);
4112
      }
4113
 
4114
      private final short _thriftId;
4115
      private final String _fieldName;
4116
 
4117
      _Fields(short thriftId, String fieldName) {
4118
        _thriftId = thriftId;
4119
        _fieldName = fieldName;
4120
      }
4121
 
4122
      public short getThriftFieldId() {
4123
        return _thriftId;
4124
      }
4125
 
4126
      public String getFieldName() {
4127
        return _fieldName;
4128
      }
4129
    }
3430 rajveer 4130
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4131
    static {
3430 rajveer 4132
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4133
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4134
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 4135
    }
4136
 
4137
    public getEmailsToBeSent_args() {
4138
    }
4139
 
4140
    /**
4141
     * Performs a deep copy on <i>other</i>.
4142
     */
4143
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
4144
    }
4145
 
4146
    public getEmailsToBeSent_args deepCopy() {
4147
      return new getEmailsToBeSent_args(this);
4148
    }
4149
 
3430 rajveer 4150
    @Override
4151
    public void clear() {
1422 varun.gupt 4152
    }
4153
 
4154
    public void setFieldValue(_Fields field, Object value) {
4155
      switch (field) {
4156
      }
4157
    }
4158
 
4159
    public Object getFieldValue(_Fields field) {
4160
      switch (field) {
4161
      }
4162
      throw new IllegalStateException();
4163
    }
4164
 
3430 rajveer 4165
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4166
    public boolean isSet(_Fields field) {
4167
      if (field == null) {
4168
        throw new IllegalArgumentException();
4169
      }
1422 varun.gupt 4170
 
4171
      switch (field) {
4172
      }
4173
      throw new IllegalStateException();
4174
    }
4175
 
4176
    @Override
4177
    public boolean equals(Object that) {
4178
      if (that == null)
4179
        return false;
4180
      if (that instanceof getEmailsToBeSent_args)
4181
        return this.equals((getEmailsToBeSent_args)that);
4182
      return false;
4183
    }
4184
 
4185
    public boolean equals(getEmailsToBeSent_args that) {
4186
      if (that == null)
4187
        return false;
4188
 
4189
      return true;
4190
    }
4191
 
4192
    @Override
4193
    public int hashCode() {
4194
      return 0;
4195
    }
4196
 
4197
    public int compareTo(getEmailsToBeSent_args other) {
4198
      if (!getClass().equals(other.getClass())) {
4199
        return getClass().getName().compareTo(other.getClass().getName());
4200
      }
4201
 
4202
      int lastComparison = 0;
4203
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4204
 
4205
      return 0;
4206
    }
4207
 
3430 rajveer 4208
    public _Fields fieldForId(int fieldId) {
4209
      return _Fields.findByThriftId(fieldId);
4210
    }
4211
 
4212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4213
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4214
      iprot.readStructBegin();
4215
      while (true)
4216
      {
4217
        field = iprot.readFieldBegin();
3430 rajveer 4218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4219
          break;
4220
        }
3430 rajveer 4221
        switch (field.id) {
4222
          default:
4223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4224
        }
3430 rajveer 4225
        iprot.readFieldEnd();
1422 varun.gupt 4226
      }
4227
      iprot.readStructEnd();
4228
      validate();
4229
    }
4230
 
3430 rajveer 4231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4232
      validate();
4233
 
4234
      oprot.writeStructBegin(STRUCT_DESC);
4235
      oprot.writeFieldStop();
4236
      oprot.writeStructEnd();
4237
    }
4238
 
4239
    @Override
4240
    public String toString() {
4241
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4242
      boolean first = true;
4243
 
4244
      sb.append(")");
4245
      return sb.toString();
4246
    }
4247
 
3430 rajveer 4248
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4249
      // check for required fields
4250
    }
4251
 
3430 rajveer 4252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4253
      try {
4254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4255
      } catch (org.apache.thrift.TException te) {
4256
        throw new java.io.IOException(te);
4257
      }
4258
    }
4259
 
4260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4261
      try {
4262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4263
      } catch (org.apache.thrift.TException te) {
4264
        throw new java.io.IOException(te);
4265
      }
4266
    }
4267
 
1422 varun.gupt 4268
  }
4269
 
3430 rajveer 4270
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4272
 
3430 rajveer 4273
    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);
4274
    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 4275
 
3430 rajveer 4276
    private List<UserEmail> success; // required
4277
    private HelperServiceException se; // required
1422 varun.gupt 4278
 
4279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4281
      SUCCESS((short)0, "success"),
4282
      SE((short)1, "se");
4283
 
4284
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4285
 
4286
      static {
4287
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4288
          byName.put(field.getFieldName(), field);
4289
        }
4290
      }
4291
 
4292
      /**
4293
       * Find the _Fields constant that matches fieldId, or null if its not found.
4294
       */
4295
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4296
        switch(fieldId) {
4297
          case 0: // SUCCESS
4298
            return SUCCESS;
4299
          case 1: // SE
4300
            return SE;
4301
          default:
4302
            return null;
4303
        }
1422 varun.gupt 4304
      }
4305
 
4306
      /**
4307
       * Find the _Fields constant that matches fieldId, throwing an exception
4308
       * if it is not found.
4309
       */
4310
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4311
        _Fields fields = findByThriftId(fieldId);
4312
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4313
        return fields;
4314
      }
4315
 
4316
      /**
4317
       * Find the _Fields constant that matches name, or null if its not found.
4318
       */
4319
      public static _Fields findByName(String name) {
4320
        return byName.get(name);
4321
      }
4322
 
4323
      private final short _thriftId;
4324
      private final String _fieldName;
4325
 
4326
      _Fields(short thriftId, String fieldName) {
4327
        _thriftId = thriftId;
4328
        _fieldName = fieldName;
4329
      }
4330
 
4331
      public short getThriftFieldId() {
4332
        return _thriftId;
4333
      }
4334
 
4335
      public String getFieldName() {
4336
        return _fieldName;
4337
      }
4338
    }
4339
 
4340
    // isset id assignments
4341
 
3430 rajveer 4342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4343
    static {
3430 rajveer 4344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4345
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4346
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4347
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4348
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4349
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4350
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4351
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4352
    }
4353
 
4354
    public getEmailsToBeSent_result() {
4355
    }
4356
 
4357
    public getEmailsToBeSent_result(
4358
      List<UserEmail> success,
4359
      HelperServiceException se)
4360
    {
4361
      this();
4362
      this.success = success;
4363
      this.se = se;
4364
    }
4365
 
4366
    /**
4367
     * Performs a deep copy on <i>other</i>.
4368
     */
4369
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4370
      if (other.isSetSuccess()) {
4371
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4372
        for (UserEmail other_element : other.success) {
4373
          __this__success.add(new UserEmail(other_element));
4374
        }
4375
        this.success = __this__success;
4376
      }
4377
      if (other.isSetSe()) {
4378
        this.se = new HelperServiceException(other.se);
4379
      }
4380
    }
4381
 
4382
    public getEmailsToBeSent_result deepCopy() {
4383
      return new getEmailsToBeSent_result(this);
4384
    }
4385
 
3430 rajveer 4386
    @Override
4387
    public void clear() {
4388
      this.success = null;
4389
      this.se = null;
1422 varun.gupt 4390
    }
4391
 
4392
    public int getSuccessSize() {
4393
      return (this.success == null) ? 0 : this.success.size();
4394
    }
4395
 
4396
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4397
      return (this.success == null) ? null : this.success.iterator();
4398
    }
4399
 
4400
    public void addToSuccess(UserEmail elem) {
4401
      if (this.success == null) {
4402
        this.success = new ArrayList<UserEmail>();
4403
      }
4404
      this.success.add(elem);
4405
    }
4406
 
4407
    public List<UserEmail> getSuccess() {
4408
      return this.success;
4409
    }
4410
 
3430 rajveer 4411
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4412
      this.success = success;
4413
    }
4414
 
4415
    public void unsetSuccess() {
4416
      this.success = null;
4417
    }
4418
 
3430 rajveer 4419
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4420
    public boolean isSetSuccess() {
4421
      return this.success != null;
4422
    }
4423
 
4424
    public void setSuccessIsSet(boolean value) {
4425
      if (!value) {
4426
        this.success = null;
4427
      }
4428
    }
4429
 
4430
    public HelperServiceException getSe() {
4431
      return this.se;
4432
    }
4433
 
3430 rajveer 4434
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4435
      this.se = se;
4436
    }
4437
 
4438
    public void unsetSe() {
4439
      this.se = null;
4440
    }
4441
 
3430 rajveer 4442
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4443
    public boolean isSetSe() {
4444
      return this.se != null;
4445
    }
4446
 
4447
    public void setSeIsSet(boolean value) {
4448
      if (!value) {
4449
        this.se = null;
4450
      }
4451
    }
4452
 
4453
    public void setFieldValue(_Fields field, Object value) {
4454
      switch (field) {
4455
      case SUCCESS:
4456
        if (value == null) {
4457
          unsetSuccess();
4458
        } else {
4459
          setSuccess((List<UserEmail>)value);
4460
        }
4461
        break;
4462
 
4463
      case SE:
4464
        if (value == null) {
4465
          unsetSe();
4466
        } else {
4467
          setSe((HelperServiceException)value);
4468
        }
4469
        break;
4470
 
4471
      }
4472
    }
4473
 
4474
    public Object getFieldValue(_Fields field) {
4475
      switch (field) {
4476
      case SUCCESS:
4477
        return getSuccess();
4478
 
4479
      case SE:
4480
        return getSe();
4481
 
4482
      }
4483
      throw new IllegalStateException();
4484
    }
4485
 
3430 rajveer 4486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4487
    public boolean isSet(_Fields field) {
4488
      if (field == null) {
4489
        throw new IllegalArgumentException();
4490
      }
1422 varun.gupt 4491
 
4492
      switch (field) {
4493
      case SUCCESS:
4494
        return isSetSuccess();
4495
      case SE:
4496
        return isSetSe();
4497
      }
4498
      throw new IllegalStateException();
4499
    }
4500
 
4501
    @Override
4502
    public boolean equals(Object that) {
4503
      if (that == null)
4504
        return false;
4505
      if (that instanceof getEmailsToBeSent_result)
4506
        return this.equals((getEmailsToBeSent_result)that);
4507
      return false;
4508
    }
4509
 
4510
    public boolean equals(getEmailsToBeSent_result that) {
4511
      if (that == null)
4512
        return false;
4513
 
4514
      boolean this_present_success = true && this.isSetSuccess();
4515
      boolean that_present_success = true && that.isSetSuccess();
4516
      if (this_present_success || that_present_success) {
4517
        if (!(this_present_success && that_present_success))
4518
          return false;
4519
        if (!this.success.equals(that.success))
4520
          return false;
4521
      }
4522
 
4523
      boolean this_present_se = true && this.isSetSe();
4524
      boolean that_present_se = true && that.isSetSe();
4525
      if (this_present_se || that_present_se) {
4526
        if (!(this_present_se && that_present_se))
4527
          return false;
4528
        if (!this.se.equals(that.se))
4529
          return false;
4530
      }
4531
 
4532
      return true;
4533
    }
4534
 
4535
    @Override
4536
    public int hashCode() {
4537
      return 0;
4538
    }
4539
 
4540
    public int compareTo(getEmailsToBeSent_result other) {
4541
      if (!getClass().equals(other.getClass())) {
4542
        return getClass().getName().compareTo(other.getClass().getName());
4543
      }
4544
 
4545
      int lastComparison = 0;
4546
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4547
 
3430 rajveer 4548
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4549
      if (lastComparison != 0) {
4550
        return lastComparison;
4551
      }
3430 rajveer 4552
      if (isSetSuccess()) {
4553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4554
        if (lastComparison != 0) {
4555
          return lastComparison;
4556
        }
1422 varun.gupt 4557
      }
3430 rajveer 4558
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4559
      if (lastComparison != 0) {
4560
        return lastComparison;
4561
      }
3430 rajveer 4562
      if (isSetSe()) {
4563
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4564
        if (lastComparison != 0) {
4565
          return lastComparison;
4566
        }
1422 varun.gupt 4567
      }
4568
      return 0;
4569
    }
4570
 
3430 rajveer 4571
    public _Fields fieldForId(int fieldId) {
4572
      return _Fields.findByThriftId(fieldId);
4573
    }
4574
 
4575
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4576
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4577
      iprot.readStructBegin();
4578
      while (true)
4579
      {
4580
        field = iprot.readFieldBegin();
3430 rajveer 4581
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4582
          break;
4583
        }
3430 rajveer 4584
        switch (field.id) {
4585
          case 0: // SUCCESS
4586
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4587
              {
5864 rajveer 4588
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4589
                this.success = new ArrayList<UserEmail>(_list32.size);
4590
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4591
                {
5864 rajveer 4592
                  UserEmail _elem34; // required
4593
                  _elem34 = new UserEmail();
4594
                  _elem34.read(iprot);
4595
                  this.success.add(_elem34);
1422 varun.gupt 4596
                }
3430 rajveer 4597
                iprot.readListEnd();
1422 varun.gupt 4598
              }
3430 rajveer 4599
            } else { 
4600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4601
            }
4602
            break;
4603
          case 1: // SE
4604
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4605
              this.se = new HelperServiceException();
4606
              this.se.read(iprot);
4607
            } else { 
4608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4609
            }
4610
            break;
4611
          default:
4612
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4613
        }
3430 rajveer 4614
        iprot.readFieldEnd();
1422 varun.gupt 4615
      }
4616
      iprot.readStructEnd();
4617
      validate();
4618
    }
4619
 
3430 rajveer 4620
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4621
      oprot.writeStructBegin(STRUCT_DESC);
4622
 
4623
      if (this.isSetSuccess()) {
4624
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4625
        {
3430 rajveer 4626
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4627
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4628
          {
5864 rajveer 4629
            _iter35.write(oprot);
1422 varun.gupt 4630
          }
4631
          oprot.writeListEnd();
4632
        }
4633
        oprot.writeFieldEnd();
4634
      } else if (this.isSetSe()) {
4635
        oprot.writeFieldBegin(SE_FIELD_DESC);
4636
        this.se.write(oprot);
4637
        oprot.writeFieldEnd();
4638
      }
4639
      oprot.writeFieldStop();
4640
      oprot.writeStructEnd();
4641
    }
4642
 
4643
    @Override
4644
    public String toString() {
4645
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4646
      boolean first = true;
4647
 
4648
      sb.append("success:");
4649
      if (this.success == null) {
4650
        sb.append("null");
4651
      } else {
4652
        sb.append(this.success);
4653
      }
4654
      first = false;
4655
      if (!first) sb.append(", ");
4656
      sb.append("se:");
4657
      if (this.se == null) {
4658
        sb.append("null");
4659
      } else {
4660
        sb.append(this.se);
4661
      }
4662
      first = false;
4663
      sb.append(")");
4664
      return sb.toString();
4665
    }
4666
 
3430 rajveer 4667
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4668
      // check for required fields
4669
    }
4670
 
3430 rajveer 4671
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4672
      try {
4673
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4674
      } catch (org.apache.thrift.TException te) {
4675
        throw new java.io.IOException(te);
4676
      }
4677
    }
4678
 
4679
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4680
      try {
4681
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4682
      } catch (org.apache.thrift.TException te) {
4683
        throw new java.io.IOException(te);
4684
      }
4685
    }
4686
 
1422 varun.gupt 4687
  }
4688
 
3430 rajveer 4689
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4690
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4691
 
3430 rajveer 4692
    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 4693
 
3430 rajveer 4694
    private long emailId; // required
1422 varun.gupt 4695
 
4696
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4697
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4698
      EMAIL_ID((short)1, "emailId");
4699
 
4700
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4701
 
4702
      static {
4703
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4704
          byName.put(field.getFieldName(), field);
4705
        }
4706
      }
4707
 
4708
      /**
4709
       * Find the _Fields constant that matches fieldId, or null if its not found.
4710
       */
4711
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4712
        switch(fieldId) {
4713
          case 1: // EMAIL_ID
4714
            return EMAIL_ID;
4715
          default:
4716
            return null;
4717
        }
1422 varun.gupt 4718
      }
4719
 
4720
      /**
4721
       * Find the _Fields constant that matches fieldId, throwing an exception
4722
       * if it is not found.
4723
       */
4724
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4725
        _Fields fields = findByThriftId(fieldId);
4726
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4727
        return fields;
4728
      }
4729
 
4730
      /**
4731
       * Find the _Fields constant that matches name, or null if its not found.
4732
       */
4733
      public static _Fields findByName(String name) {
4734
        return byName.get(name);
4735
      }
4736
 
4737
      private final short _thriftId;
4738
      private final String _fieldName;
4739
 
4740
      _Fields(short thriftId, String fieldName) {
4741
        _thriftId = thriftId;
4742
        _fieldName = fieldName;
4743
      }
4744
 
4745
      public short getThriftFieldId() {
4746
        return _thriftId;
4747
      }
4748
 
4749
      public String getFieldName() {
4750
        return _fieldName;
4751
      }
4752
    }
4753
 
4754
    // isset id assignments
4755
    private static final int __EMAILID_ISSET_ID = 0;
4756
    private BitSet __isset_bit_vector = new BitSet(1);
4757
 
3430 rajveer 4758
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4759
    static {
3430 rajveer 4760
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4761
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4762
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4763
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4764
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4765
    }
4766
 
4767
    public markEmailAsSent_args() {
4768
    }
4769
 
4770
    public markEmailAsSent_args(
4771
      long emailId)
4772
    {
4773
      this();
4774
      this.emailId = emailId;
4775
      setEmailIdIsSet(true);
4776
    }
4777
 
4778
    /**
4779
     * Performs a deep copy on <i>other</i>.
4780
     */
4781
    public markEmailAsSent_args(markEmailAsSent_args other) {
4782
      __isset_bit_vector.clear();
4783
      __isset_bit_vector.or(other.__isset_bit_vector);
4784
      this.emailId = other.emailId;
4785
    }
4786
 
4787
    public markEmailAsSent_args deepCopy() {
4788
      return new markEmailAsSent_args(this);
4789
    }
4790
 
3430 rajveer 4791
    @Override
4792
    public void clear() {
4793
      setEmailIdIsSet(false);
4794
      this.emailId = 0;
1422 varun.gupt 4795
    }
4796
 
4797
    public long getEmailId() {
4798
      return this.emailId;
4799
    }
4800
 
3430 rajveer 4801
    public void setEmailId(long emailId) {
1422 varun.gupt 4802
      this.emailId = emailId;
4803
      setEmailIdIsSet(true);
4804
    }
4805
 
4806
    public void unsetEmailId() {
4807
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4808
    }
4809
 
3430 rajveer 4810
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4811
    public boolean isSetEmailId() {
4812
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4813
    }
4814
 
4815
    public void setEmailIdIsSet(boolean value) {
4816
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4817
    }
4818
 
4819
    public void setFieldValue(_Fields field, Object value) {
4820
      switch (field) {
4821
      case EMAIL_ID:
4822
        if (value == null) {
4823
          unsetEmailId();
4824
        } else {
4825
          setEmailId((Long)value);
4826
        }
4827
        break;
4828
 
4829
      }
4830
    }
4831
 
4832
    public Object getFieldValue(_Fields field) {
4833
      switch (field) {
4834
      case EMAIL_ID:
3430 rajveer 4835
        return Long.valueOf(getEmailId());
1422 varun.gupt 4836
 
4837
      }
4838
      throw new IllegalStateException();
4839
    }
4840
 
3430 rajveer 4841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4842
    public boolean isSet(_Fields field) {
4843
      if (field == null) {
4844
        throw new IllegalArgumentException();
4845
      }
1422 varun.gupt 4846
 
4847
      switch (field) {
4848
      case EMAIL_ID:
4849
        return isSetEmailId();
4850
      }
4851
      throw new IllegalStateException();
4852
    }
4853
 
4854
    @Override
4855
    public boolean equals(Object that) {
4856
      if (that == null)
4857
        return false;
4858
      if (that instanceof markEmailAsSent_args)
4859
        return this.equals((markEmailAsSent_args)that);
4860
      return false;
4861
    }
4862
 
4863
    public boolean equals(markEmailAsSent_args that) {
4864
      if (that == null)
4865
        return false;
4866
 
4867
      boolean this_present_emailId = true;
4868
      boolean that_present_emailId = true;
4869
      if (this_present_emailId || that_present_emailId) {
4870
        if (!(this_present_emailId && that_present_emailId))
4871
          return false;
4872
        if (this.emailId != that.emailId)
4873
          return false;
4874
      }
4875
 
4876
      return true;
4877
    }
4878
 
4879
    @Override
4880
    public int hashCode() {
4881
      return 0;
4882
    }
4883
 
4884
    public int compareTo(markEmailAsSent_args other) {
4885
      if (!getClass().equals(other.getClass())) {
4886
        return getClass().getName().compareTo(other.getClass().getName());
4887
      }
4888
 
4889
      int lastComparison = 0;
4890
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4891
 
3430 rajveer 4892
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4893
      if (lastComparison != 0) {
4894
        return lastComparison;
4895
      }
3430 rajveer 4896
      if (isSetEmailId()) {
4897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4898
        if (lastComparison != 0) {
4899
          return lastComparison;
4900
        }
1422 varun.gupt 4901
      }
4902
      return 0;
4903
    }
4904
 
3430 rajveer 4905
    public _Fields fieldForId(int fieldId) {
4906
      return _Fields.findByThriftId(fieldId);
4907
    }
4908
 
4909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4910
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4911
      iprot.readStructBegin();
4912
      while (true)
4913
      {
4914
        field = iprot.readFieldBegin();
3430 rajveer 4915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4916
          break;
4917
        }
3430 rajveer 4918
        switch (field.id) {
4919
          case 1: // EMAIL_ID
4920
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4921
              this.emailId = iprot.readI64();
4922
              setEmailIdIsSet(true);
4923
            } else { 
4924
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4925
            }
4926
            break;
4927
          default:
4928
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4929
        }
3430 rajveer 4930
        iprot.readFieldEnd();
1422 varun.gupt 4931
      }
4932
      iprot.readStructEnd();
4933
      validate();
4934
    }
4935
 
3430 rajveer 4936
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4937
      validate();
4938
 
4939
      oprot.writeStructBegin(STRUCT_DESC);
4940
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
4941
      oprot.writeI64(this.emailId);
4942
      oprot.writeFieldEnd();
4943
      oprot.writeFieldStop();
4944
      oprot.writeStructEnd();
4945
    }
4946
 
4947
    @Override
4948
    public String toString() {
4949
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
4950
      boolean first = true;
4951
 
4952
      sb.append("emailId:");
4953
      sb.append(this.emailId);
4954
      first = false;
4955
      sb.append(")");
4956
      return sb.toString();
4957
    }
4958
 
3430 rajveer 4959
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4960
      // check for required fields
4961
    }
4962
 
3430 rajveer 4963
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4964
      try {
4965
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4966
      } catch (org.apache.thrift.TException te) {
4967
        throw new java.io.IOException(te);
4968
      }
4969
    }
4970
 
4971
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4972
      try {
4973
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4974
      } catch (org.apache.thrift.TException te) {
4975
        throw new java.io.IOException(te);
4976
      }
4977
    }
4978
 
1422 varun.gupt 4979
  }
4980
 
3430 rajveer 4981
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
4982
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 4983
 
3430 rajveer 4984
    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 4985
 
3430 rajveer 4986
    private HelperServiceException se; // required
1422 varun.gupt 4987
 
4988
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4989
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4990
      SE((short)1, "se");
4991
 
4992
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4993
 
4994
      static {
4995
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4996
          byName.put(field.getFieldName(), field);
4997
        }
4998
      }
4999
 
5000
      /**
5001
       * Find the _Fields constant that matches fieldId, or null if its not found.
5002
       */
5003
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5004
        switch(fieldId) {
5005
          case 1: // SE
5006
            return SE;
5007
          default:
5008
            return null;
5009
        }
1422 varun.gupt 5010
      }
5011
 
5012
      /**
5013
       * Find the _Fields constant that matches fieldId, throwing an exception
5014
       * if it is not found.
5015
       */
5016
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5017
        _Fields fields = findByThriftId(fieldId);
5018
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5019
        return fields;
5020
      }
5021
 
5022
      /**
5023
       * Find the _Fields constant that matches name, or null if its not found.
5024
       */
5025
      public static _Fields findByName(String name) {
5026
        return byName.get(name);
5027
      }
5028
 
5029
      private final short _thriftId;
5030
      private final String _fieldName;
5031
 
5032
      _Fields(short thriftId, String fieldName) {
5033
        _thriftId = thriftId;
5034
        _fieldName = fieldName;
5035
      }
5036
 
5037
      public short getThriftFieldId() {
5038
        return _thriftId;
5039
      }
5040
 
5041
      public String getFieldName() {
5042
        return _fieldName;
5043
      }
5044
    }
5045
 
5046
    // isset id assignments
5047
 
3430 rajveer 5048
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5049
    static {
3430 rajveer 5050
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5051
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5052
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 5055
    }
5056
 
5057
    public markEmailAsSent_result() {
5058
    }
5059
 
5060
    public markEmailAsSent_result(
5061
      HelperServiceException se)
5062
    {
5063
      this();
5064
      this.se = se;
5065
    }
5066
 
5067
    /**
5068
     * Performs a deep copy on <i>other</i>.
5069
     */
5070
    public markEmailAsSent_result(markEmailAsSent_result other) {
5071
      if (other.isSetSe()) {
5072
        this.se = new HelperServiceException(other.se);
5073
      }
5074
    }
5075
 
5076
    public markEmailAsSent_result deepCopy() {
5077
      return new markEmailAsSent_result(this);
5078
    }
5079
 
3430 rajveer 5080
    @Override
5081
    public void clear() {
5082
      this.se = null;
1422 varun.gupt 5083
    }
5084
 
5085
    public HelperServiceException getSe() {
5086
      return this.se;
5087
    }
5088
 
3430 rajveer 5089
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5090
      this.se = se;
5091
    }
5092
 
5093
    public void unsetSe() {
5094
      this.se = null;
5095
    }
5096
 
3430 rajveer 5097
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5098
    public boolean isSetSe() {
5099
      return this.se != null;
5100
    }
5101
 
5102
    public void setSeIsSet(boolean value) {
5103
      if (!value) {
5104
        this.se = null;
5105
      }
5106
    }
5107
 
5108
    public void setFieldValue(_Fields field, Object value) {
5109
      switch (field) {
5110
      case SE:
5111
        if (value == null) {
5112
          unsetSe();
5113
        } else {
5114
          setSe((HelperServiceException)value);
5115
        }
5116
        break;
5117
 
5118
      }
5119
    }
5120
 
5121
    public Object getFieldValue(_Fields field) {
5122
      switch (field) {
5123
      case SE:
5124
        return getSe();
5125
 
5126
      }
5127
      throw new IllegalStateException();
5128
    }
5129
 
3430 rajveer 5130
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5131
    public boolean isSet(_Fields field) {
5132
      if (field == null) {
5133
        throw new IllegalArgumentException();
5134
      }
1422 varun.gupt 5135
 
5136
      switch (field) {
5137
      case SE:
5138
        return isSetSe();
5139
      }
5140
      throw new IllegalStateException();
5141
    }
5142
 
5143
    @Override
5144
    public boolean equals(Object that) {
5145
      if (that == null)
5146
        return false;
5147
      if (that instanceof markEmailAsSent_result)
5148
        return this.equals((markEmailAsSent_result)that);
5149
      return false;
5150
    }
5151
 
5152
    public boolean equals(markEmailAsSent_result that) {
5153
      if (that == null)
5154
        return false;
5155
 
5156
      boolean this_present_se = true && this.isSetSe();
5157
      boolean that_present_se = true && that.isSetSe();
5158
      if (this_present_se || that_present_se) {
5159
        if (!(this_present_se && that_present_se))
5160
          return false;
5161
        if (!this.se.equals(that.se))
5162
          return false;
5163
      }
5164
 
5165
      return true;
5166
    }
5167
 
5168
    @Override
5169
    public int hashCode() {
5170
      return 0;
5171
    }
5172
 
5173
    public int compareTo(markEmailAsSent_result other) {
5174
      if (!getClass().equals(other.getClass())) {
5175
        return getClass().getName().compareTo(other.getClass().getName());
5176
      }
5177
 
5178
      int lastComparison = 0;
5179
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5180
 
3430 rajveer 5181
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5182
      if (lastComparison != 0) {
5183
        return lastComparison;
5184
      }
3430 rajveer 5185
      if (isSetSe()) {
5186
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5187
        if (lastComparison != 0) {
5188
          return lastComparison;
5189
        }
1422 varun.gupt 5190
      }
5191
      return 0;
5192
    }
5193
 
3430 rajveer 5194
    public _Fields fieldForId(int fieldId) {
5195
      return _Fields.findByThriftId(fieldId);
5196
    }
5197
 
5198
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5199
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5200
      iprot.readStructBegin();
5201
      while (true)
5202
      {
5203
        field = iprot.readFieldBegin();
3430 rajveer 5204
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5205
          break;
5206
        }
3430 rajveer 5207
        switch (field.id) {
5208
          case 1: // SE
5209
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5210
              this.se = new HelperServiceException();
5211
              this.se.read(iprot);
5212
            } else { 
5213
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5214
            }
5215
            break;
5216
          default:
5217
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5218
        }
3430 rajveer 5219
        iprot.readFieldEnd();
1422 varun.gupt 5220
      }
5221
      iprot.readStructEnd();
5222
      validate();
5223
    }
5224
 
3430 rajveer 5225
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5226
      oprot.writeStructBegin(STRUCT_DESC);
5227
 
5228
      if (this.isSetSe()) {
5229
        oprot.writeFieldBegin(SE_FIELD_DESC);
5230
        this.se.write(oprot);
5231
        oprot.writeFieldEnd();
5232
      }
5233
      oprot.writeFieldStop();
5234
      oprot.writeStructEnd();
5235
    }
5236
 
5237
    @Override
5238
    public String toString() {
5239
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5240
      boolean first = true;
5241
 
5242
      sb.append("se:");
5243
      if (this.se == null) {
5244
        sb.append("null");
5245
      } else {
5246
        sb.append(this.se);
5247
      }
5248
      first = false;
5249
      sb.append(")");
5250
      return sb.toString();
5251
    }
5252
 
3430 rajveer 5253
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5254
      // check for required fields
5255
    }
5256
 
3430 rajveer 5257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5258
      try {
5259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5260
      } catch (org.apache.thrift.TException te) {
5261
        throw new java.io.IOException(te);
5262
      }
5263
    }
5264
 
5265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5266
      try {
5267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5268
      } catch (org.apache.thrift.TException te) {
5269
        throw new java.io.IOException(te);
5270
      }
5271
    }
5272
 
1422 varun.gupt 5273
  }
5274
 
3430 rajveer 5275
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5277
 
3430 rajveer 5278
    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 5279
 
3430 rajveer 5280
    private Mail mail; // required
352 ashish 5281
 
5282
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5283
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5284
      MAIL((short)1, "mail");
5285
 
5286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5287
 
5288
      static {
5289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5290
          byName.put(field.getFieldName(), field);
5291
        }
5292
      }
5293
 
5294
      /**
5295
       * Find the _Fields constant that matches fieldId, or null if its not found.
5296
       */
5297
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5298
        switch(fieldId) {
5299
          case 1: // MAIL
5300
            return MAIL;
5301
          default:
5302
            return null;
5303
        }
352 ashish 5304
      }
5305
 
5306
      /**
5307
       * Find the _Fields constant that matches fieldId, throwing an exception
5308
       * if it is not found.
5309
       */
5310
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5311
        _Fields fields = findByThriftId(fieldId);
5312
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5313
        return fields;
5314
      }
5315
 
5316
      /**
5317
       * Find the _Fields constant that matches name, or null if its not found.
5318
       */
5319
      public static _Fields findByName(String name) {
5320
        return byName.get(name);
5321
      }
5322
 
5323
      private final short _thriftId;
5324
      private final String _fieldName;
5325
 
5326
      _Fields(short thriftId, String fieldName) {
5327
        _thriftId = thriftId;
5328
        _fieldName = fieldName;
5329
      }
5330
 
5331
      public short getThriftFieldId() {
5332
        return _thriftId;
5333
      }
5334
 
5335
      public String getFieldName() {
5336
        return _fieldName;
5337
      }
5338
    }
5339
 
5340
    // isset id assignments
5341
 
3430 rajveer 5342
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5343
    static {
3430 rajveer 5344
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5345
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5346
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5347
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5348
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5349
    }
5350
 
5351
    public sendMail_args() {
5352
    }
5353
 
5354
    public sendMail_args(
5355
      Mail mail)
5356
    {
5357
      this();
5358
      this.mail = mail;
5359
    }
5360
 
5361
    /**
5362
     * Performs a deep copy on <i>other</i>.
5363
     */
5364
    public sendMail_args(sendMail_args other) {
5365
      if (other.isSetMail()) {
5366
        this.mail = new Mail(other.mail);
5367
      }
5368
    }
5369
 
5370
    public sendMail_args deepCopy() {
5371
      return new sendMail_args(this);
5372
    }
5373
 
3430 rajveer 5374
    @Override
5375
    public void clear() {
5376
      this.mail = null;
352 ashish 5377
    }
5378
 
5379
    public Mail getMail() {
5380
      return this.mail;
5381
    }
5382
 
3430 rajveer 5383
    public void setMail(Mail mail) {
352 ashish 5384
      this.mail = mail;
5385
    }
5386
 
5387
    public void unsetMail() {
5388
      this.mail = null;
5389
    }
5390
 
3430 rajveer 5391
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5392
    public boolean isSetMail() {
5393
      return this.mail != null;
5394
    }
5395
 
5396
    public void setMailIsSet(boolean value) {
5397
      if (!value) {
5398
        this.mail = null;
5399
      }
5400
    }
5401
 
5402
    public void setFieldValue(_Fields field, Object value) {
5403
      switch (field) {
5404
      case MAIL:
5405
        if (value == null) {
5406
          unsetMail();
5407
        } else {
5408
          setMail((Mail)value);
5409
        }
5410
        break;
5411
 
5412
      }
5413
    }
5414
 
5415
    public Object getFieldValue(_Fields field) {
5416
      switch (field) {
5417
      case MAIL:
5418
        return getMail();
5419
 
5420
      }
5421
      throw new IllegalStateException();
5422
    }
5423
 
3430 rajveer 5424
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5425
    public boolean isSet(_Fields field) {
5426
      if (field == null) {
5427
        throw new IllegalArgumentException();
5428
      }
352 ashish 5429
 
5430
      switch (field) {
5431
      case MAIL:
5432
        return isSetMail();
5433
      }
5434
      throw new IllegalStateException();
5435
    }
5436
 
5437
    @Override
5438
    public boolean equals(Object that) {
5439
      if (that == null)
5440
        return false;
5441
      if (that instanceof sendMail_args)
5442
        return this.equals((sendMail_args)that);
5443
      return false;
5444
    }
5445
 
5446
    public boolean equals(sendMail_args that) {
5447
      if (that == null)
5448
        return false;
5449
 
5450
      boolean this_present_mail = true && this.isSetMail();
5451
      boolean that_present_mail = true && that.isSetMail();
5452
      if (this_present_mail || that_present_mail) {
5453
        if (!(this_present_mail && that_present_mail))
5454
          return false;
5455
        if (!this.mail.equals(that.mail))
5456
          return false;
5457
      }
5458
 
5459
      return true;
5460
    }
5461
 
5462
    @Override
5463
    public int hashCode() {
5464
      return 0;
5465
    }
5466
 
5467
    public int compareTo(sendMail_args other) {
5468
      if (!getClass().equals(other.getClass())) {
5469
        return getClass().getName().compareTo(other.getClass().getName());
5470
      }
5471
 
5472
      int lastComparison = 0;
5473
      sendMail_args typedOther = (sendMail_args)other;
5474
 
3430 rajveer 5475
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5476
      if (lastComparison != 0) {
5477
        return lastComparison;
5478
      }
3430 rajveer 5479
      if (isSetMail()) {
5480
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5481
        if (lastComparison != 0) {
5482
          return lastComparison;
5483
        }
352 ashish 5484
      }
5485
      return 0;
5486
    }
5487
 
3430 rajveer 5488
    public _Fields fieldForId(int fieldId) {
5489
      return _Fields.findByThriftId(fieldId);
5490
    }
5491
 
5492
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5493
      org.apache.thrift.protocol.TField field;
352 ashish 5494
      iprot.readStructBegin();
5495
      while (true)
5496
      {
5497
        field = iprot.readFieldBegin();
3430 rajveer 5498
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5499
          break;
5500
        }
3430 rajveer 5501
        switch (field.id) {
5502
          case 1: // MAIL
5503
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5504
              this.mail = new Mail();
5505
              this.mail.read(iprot);
5506
            } else { 
5507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5508
            }
5509
            break;
5510
          default:
5511
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5512
        }
3430 rajveer 5513
        iprot.readFieldEnd();
352 ashish 5514
      }
5515
      iprot.readStructEnd();
5516
      validate();
5517
    }
5518
 
3430 rajveer 5519
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5520
      validate();
5521
 
5522
      oprot.writeStructBegin(STRUCT_DESC);
5523
      if (this.mail != null) {
5524
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5525
        this.mail.write(oprot);
5526
        oprot.writeFieldEnd();
5527
      }
5528
      oprot.writeFieldStop();
5529
      oprot.writeStructEnd();
5530
    }
5531
 
5532
    @Override
5533
    public String toString() {
5534
      StringBuilder sb = new StringBuilder("sendMail_args(");
5535
      boolean first = true;
5536
 
5537
      sb.append("mail:");
5538
      if (this.mail == null) {
5539
        sb.append("null");
5540
      } else {
5541
        sb.append(this.mail);
5542
      }
5543
      first = false;
5544
      sb.append(")");
5545
      return sb.toString();
5546
    }
5547
 
3430 rajveer 5548
    public void validate() throws org.apache.thrift.TException {
352 ashish 5549
      // check for required fields
5550
    }
5551
 
3430 rajveer 5552
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5553
      try {
5554
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5555
      } catch (org.apache.thrift.TException te) {
5556
        throw new java.io.IOException(te);
5557
      }
5558
    }
5559
 
5560
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5561
      try {
5562
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5563
      } catch (org.apache.thrift.TException te) {
5564
        throw new java.io.IOException(te);
5565
      }
5566
    }
5567
 
352 ashish 5568
  }
5569
 
3430 rajveer 5570
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5571
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5572
 
3430 rajveer 5573
    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 5574
 
3430 rajveer 5575
    private HelperServiceException se; // required
352 ashish 5576
 
5577
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5578
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5579
      SE((short)1, "se");
5580
 
5581
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5582
 
5583
      static {
5584
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5585
          byName.put(field.getFieldName(), field);
5586
        }
5587
      }
5588
 
5589
      /**
5590
       * Find the _Fields constant that matches fieldId, or null if its not found.
5591
       */
5592
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5593
        switch(fieldId) {
5594
          case 1: // SE
5595
            return SE;
5596
          default:
5597
            return null;
5598
        }
352 ashish 5599
      }
5600
 
5601
      /**
5602
       * Find the _Fields constant that matches fieldId, throwing an exception
5603
       * if it is not found.
5604
       */
5605
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5606
        _Fields fields = findByThriftId(fieldId);
5607
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5608
        return fields;
5609
      }
5610
 
5611
      /**
5612
       * Find the _Fields constant that matches name, or null if its not found.
5613
       */
5614
      public static _Fields findByName(String name) {
5615
        return byName.get(name);
5616
      }
5617
 
5618
      private final short _thriftId;
5619
      private final String _fieldName;
5620
 
5621
      _Fields(short thriftId, String fieldName) {
5622
        _thriftId = thriftId;
5623
        _fieldName = fieldName;
5624
      }
5625
 
5626
      public short getThriftFieldId() {
5627
        return _thriftId;
5628
      }
5629
 
5630
      public String getFieldName() {
5631
        return _fieldName;
5632
      }
5633
    }
5634
 
5635
    // isset id assignments
5636
 
3430 rajveer 5637
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5638
    static {
3430 rajveer 5639
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5640
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5644
    }
5645
 
5646
    public sendMail_result() {
5647
    }
5648
 
5649
    public sendMail_result(
5650
      HelperServiceException se)
5651
    {
5652
      this();
5653
      this.se = se;
5654
    }
5655
 
5656
    /**
5657
     * Performs a deep copy on <i>other</i>.
5658
     */
5659
    public sendMail_result(sendMail_result other) {
5660
      if (other.isSetSe()) {
5661
        this.se = new HelperServiceException(other.se);
5662
      }
5663
    }
5664
 
5665
    public sendMail_result deepCopy() {
5666
      return new sendMail_result(this);
5667
    }
5668
 
3430 rajveer 5669
    @Override
5670
    public void clear() {
5671
      this.se = null;
352 ashish 5672
    }
5673
 
5674
    public HelperServiceException getSe() {
5675
      return this.se;
5676
    }
5677
 
3430 rajveer 5678
    public void setSe(HelperServiceException se) {
352 ashish 5679
      this.se = se;
5680
    }
5681
 
5682
    public void unsetSe() {
5683
      this.se = null;
5684
    }
5685
 
3430 rajveer 5686
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5687
    public boolean isSetSe() {
5688
      return this.se != null;
5689
    }
5690
 
5691
    public void setSeIsSet(boolean value) {
5692
      if (!value) {
5693
        this.se = null;
5694
      }
5695
    }
5696
 
5697
    public void setFieldValue(_Fields field, Object value) {
5698
      switch (field) {
5699
      case SE:
5700
        if (value == null) {
5701
          unsetSe();
5702
        } else {
5703
          setSe((HelperServiceException)value);
5704
        }
5705
        break;
5706
 
5707
      }
5708
    }
5709
 
5710
    public Object getFieldValue(_Fields field) {
5711
      switch (field) {
5712
      case SE:
5713
        return getSe();
5714
 
5715
      }
5716
      throw new IllegalStateException();
5717
    }
5718
 
3430 rajveer 5719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5720
    public boolean isSet(_Fields field) {
5721
      if (field == null) {
5722
        throw new IllegalArgumentException();
5723
      }
352 ashish 5724
 
5725
      switch (field) {
5726
      case SE:
5727
        return isSetSe();
5728
      }
5729
      throw new IllegalStateException();
5730
    }
5731
 
5732
    @Override
5733
    public boolean equals(Object that) {
5734
      if (that == null)
5735
        return false;
5736
      if (that instanceof sendMail_result)
5737
        return this.equals((sendMail_result)that);
5738
      return false;
5739
    }
5740
 
5741
    public boolean equals(sendMail_result that) {
5742
      if (that == null)
5743
        return false;
5744
 
5745
      boolean this_present_se = true && this.isSetSe();
5746
      boolean that_present_se = true && that.isSetSe();
5747
      if (this_present_se || that_present_se) {
5748
        if (!(this_present_se && that_present_se))
5749
          return false;
5750
        if (!this.se.equals(that.se))
5751
          return false;
5752
      }
5753
 
5754
      return true;
5755
    }
5756
 
5757
    @Override
5758
    public int hashCode() {
5759
      return 0;
5760
    }
5761
 
5762
    public int compareTo(sendMail_result other) {
5763
      if (!getClass().equals(other.getClass())) {
5764
        return getClass().getName().compareTo(other.getClass().getName());
5765
      }
5766
 
5767
      int lastComparison = 0;
5768
      sendMail_result typedOther = (sendMail_result)other;
5769
 
3430 rajveer 5770
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5771
      if (lastComparison != 0) {
5772
        return lastComparison;
5773
      }
3430 rajveer 5774
      if (isSetSe()) {
5775
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5776
        if (lastComparison != 0) {
5777
          return lastComparison;
5778
        }
352 ashish 5779
      }
5780
      return 0;
5781
    }
5782
 
3430 rajveer 5783
    public _Fields fieldForId(int fieldId) {
5784
      return _Fields.findByThriftId(fieldId);
5785
    }
5786
 
5787
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5788
      org.apache.thrift.protocol.TField field;
352 ashish 5789
      iprot.readStructBegin();
5790
      while (true)
5791
      {
5792
        field = iprot.readFieldBegin();
3430 rajveer 5793
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5794
          break;
5795
        }
3430 rajveer 5796
        switch (field.id) {
5797
          case 1: // SE
5798
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5799
              this.se = new HelperServiceException();
5800
              this.se.read(iprot);
5801
            } else { 
5802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5803
            }
5804
            break;
5805
          default:
5806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5807
        }
3430 rajveer 5808
        iprot.readFieldEnd();
352 ashish 5809
      }
5810
      iprot.readStructEnd();
5811
      validate();
5812
    }
5813
 
3430 rajveer 5814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5815
      oprot.writeStructBegin(STRUCT_DESC);
5816
 
5817
      if (this.isSetSe()) {
5818
        oprot.writeFieldBegin(SE_FIELD_DESC);
5819
        this.se.write(oprot);
5820
        oprot.writeFieldEnd();
5821
      }
5822
      oprot.writeFieldStop();
5823
      oprot.writeStructEnd();
5824
    }
5825
 
5826
    @Override
5827
    public String toString() {
5828
      StringBuilder sb = new StringBuilder("sendMail_result(");
5829
      boolean first = true;
5830
 
5831
      sb.append("se:");
5832
      if (this.se == null) {
5833
        sb.append("null");
5834
      } else {
5835
        sb.append(this.se);
5836
      }
5837
      first = false;
5838
      sb.append(")");
5839
      return sb.toString();
5840
    }
5841
 
3430 rajveer 5842
    public void validate() throws org.apache.thrift.TException {
352 ashish 5843
      // check for required fields
5844
    }
5845
 
3430 rajveer 5846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5847
      try {
5848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5849
      } catch (org.apache.thrift.TException te) {
5850
        throw new java.io.IOException(te);
5851
      }
5852
    }
5853
 
5854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5855
      try {
5856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5857
      } catch (org.apache.thrift.TException te) {
5858
        throw new java.io.IOException(te);
5859
      }
5860
    }
5861
 
352 ashish 5862
  }
5863
 
3430 rajveer 5864
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5866
 
3430 rajveer 5867
    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 5868
 
3430 rajveer 5869
    private TextMessage message; // required
352 ashish 5870
 
5871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5873
      MESSAGE((short)1, "message");
5874
 
5875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5876
 
5877
      static {
5878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5879
          byName.put(field.getFieldName(), field);
5880
        }
5881
      }
5882
 
5883
      /**
5884
       * Find the _Fields constant that matches fieldId, or null if its not found.
5885
       */
5886
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5887
        switch(fieldId) {
5888
          case 1: // MESSAGE
5889
            return MESSAGE;
5890
          default:
5891
            return null;
5892
        }
352 ashish 5893
      }
5894
 
5895
      /**
5896
       * Find the _Fields constant that matches fieldId, throwing an exception
5897
       * if it is not found.
5898
       */
5899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5900
        _Fields fields = findByThriftId(fieldId);
5901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5902
        return fields;
5903
      }
5904
 
5905
      /**
5906
       * Find the _Fields constant that matches name, or null if its not found.
5907
       */
5908
      public static _Fields findByName(String name) {
5909
        return byName.get(name);
5910
      }
5911
 
5912
      private final short _thriftId;
5913
      private final String _fieldName;
5914
 
5915
      _Fields(short thriftId, String fieldName) {
5916
        _thriftId = thriftId;
5917
        _fieldName = fieldName;
5918
      }
5919
 
5920
      public short getThriftFieldId() {
5921
        return _thriftId;
5922
      }
5923
 
5924
      public String getFieldName() {
5925
        return _fieldName;
5926
      }
5927
    }
5928
 
5929
    // isset id assignments
5930
 
3430 rajveer 5931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5932
    static {
3430 rajveer 5933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5934
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5935
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
5936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 5938
    }
5939
 
5940
    public sendText_args() {
5941
    }
5942
 
5943
    public sendText_args(
5944
      TextMessage message)
5945
    {
5946
      this();
5947
      this.message = message;
5948
    }
5949
 
5950
    /**
5951
     * Performs a deep copy on <i>other</i>.
5952
     */
5953
    public sendText_args(sendText_args other) {
5954
      if (other.isSetMessage()) {
5955
        this.message = new TextMessage(other.message);
5956
      }
5957
    }
5958
 
5959
    public sendText_args deepCopy() {
5960
      return new sendText_args(this);
5961
    }
5962
 
3430 rajveer 5963
    @Override
5964
    public void clear() {
5965
      this.message = null;
352 ashish 5966
    }
5967
 
5968
    public TextMessage getMessage() {
5969
      return this.message;
5970
    }
5971
 
3430 rajveer 5972
    public void setMessage(TextMessage message) {
352 ashish 5973
      this.message = message;
5974
    }
5975
 
5976
    public void unsetMessage() {
5977
      this.message = null;
5978
    }
5979
 
3430 rajveer 5980
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 5981
    public boolean isSetMessage() {
5982
      return this.message != null;
5983
    }
5984
 
5985
    public void setMessageIsSet(boolean value) {
5986
      if (!value) {
5987
        this.message = null;
5988
      }
5989
    }
5990
 
5991
    public void setFieldValue(_Fields field, Object value) {
5992
      switch (field) {
5993
      case MESSAGE:
5994
        if (value == null) {
5995
          unsetMessage();
5996
        } else {
5997
          setMessage((TextMessage)value);
5998
        }
5999
        break;
6000
 
6001
      }
6002
    }
6003
 
6004
    public Object getFieldValue(_Fields field) {
6005
      switch (field) {
6006
      case MESSAGE:
6007
        return getMessage();
6008
 
6009
      }
6010
      throw new IllegalStateException();
6011
    }
6012
 
3430 rajveer 6013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6014
    public boolean isSet(_Fields field) {
6015
      if (field == null) {
6016
        throw new IllegalArgumentException();
6017
      }
352 ashish 6018
 
6019
      switch (field) {
6020
      case MESSAGE:
6021
        return isSetMessage();
6022
      }
6023
      throw new IllegalStateException();
6024
    }
6025
 
6026
    @Override
6027
    public boolean equals(Object that) {
6028
      if (that == null)
6029
        return false;
6030
      if (that instanceof sendText_args)
6031
        return this.equals((sendText_args)that);
6032
      return false;
6033
    }
6034
 
6035
    public boolean equals(sendText_args that) {
6036
      if (that == null)
6037
        return false;
6038
 
6039
      boolean this_present_message = true && this.isSetMessage();
6040
      boolean that_present_message = true && that.isSetMessage();
6041
      if (this_present_message || that_present_message) {
6042
        if (!(this_present_message && that_present_message))
6043
          return false;
6044
        if (!this.message.equals(that.message))
6045
          return false;
6046
      }
6047
 
6048
      return true;
6049
    }
6050
 
6051
    @Override
6052
    public int hashCode() {
6053
      return 0;
6054
    }
6055
 
6056
    public int compareTo(sendText_args other) {
6057
      if (!getClass().equals(other.getClass())) {
6058
        return getClass().getName().compareTo(other.getClass().getName());
6059
      }
6060
 
6061
      int lastComparison = 0;
6062
      sendText_args typedOther = (sendText_args)other;
6063
 
3430 rajveer 6064
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6065
      if (lastComparison != 0) {
6066
        return lastComparison;
6067
      }
3430 rajveer 6068
      if (isSetMessage()) {
6069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6070
        if (lastComparison != 0) {
6071
          return lastComparison;
6072
        }
352 ashish 6073
      }
6074
      return 0;
6075
    }
6076
 
3430 rajveer 6077
    public _Fields fieldForId(int fieldId) {
6078
      return _Fields.findByThriftId(fieldId);
6079
    }
6080
 
6081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6082
      org.apache.thrift.protocol.TField field;
352 ashish 6083
      iprot.readStructBegin();
6084
      while (true)
6085
      {
6086
        field = iprot.readFieldBegin();
3430 rajveer 6087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6088
          break;
6089
        }
3430 rajveer 6090
        switch (field.id) {
6091
          case 1: // MESSAGE
6092
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6093
              this.message = new TextMessage();
6094
              this.message.read(iprot);
6095
            } else { 
6096
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6097
            }
6098
            break;
6099
          default:
6100
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6101
        }
3430 rajveer 6102
        iprot.readFieldEnd();
352 ashish 6103
      }
6104
      iprot.readStructEnd();
6105
      validate();
6106
    }
6107
 
3430 rajveer 6108
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6109
      validate();
6110
 
6111
      oprot.writeStructBegin(STRUCT_DESC);
6112
      if (this.message != null) {
6113
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6114
        this.message.write(oprot);
6115
        oprot.writeFieldEnd();
6116
      }
6117
      oprot.writeFieldStop();
6118
      oprot.writeStructEnd();
6119
    }
6120
 
6121
    @Override
6122
    public String toString() {
6123
      StringBuilder sb = new StringBuilder("sendText_args(");
6124
      boolean first = true;
6125
 
6126
      sb.append("message:");
6127
      if (this.message == null) {
6128
        sb.append("null");
6129
      } else {
6130
        sb.append(this.message);
6131
      }
6132
      first = false;
6133
      sb.append(")");
6134
      return sb.toString();
6135
    }
6136
 
3430 rajveer 6137
    public void validate() throws org.apache.thrift.TException {
352 ashish 6138
      // check for required fields
6139
    }
6140
 
3430 rajveer 6141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6142
      try {
6143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6144
      } catch (org.apache.thrift.TException te) {
6145
        throw new java.io.IOException(te);
6146
      }
6147
    }
6148
 
6149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6150
      try {
6151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6152
      } catch (org.apache.thrift.TException te) {
6153
        throw new java.io.IOException(te);
6154
      }
6155
    }
6156
 
352 ashish 6157
  }
6158
 
3430 rajveer 6159
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6161
 
3430 rajveer 6162
    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 6163
 
3430 rajveer 6164
    private HelperServiceException se; // required
352 ashish 6165
 
6166
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6167
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6168
      SE((short)1, "se");
6169
 
6170
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6171
 
6172
      static {
6173
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6174
          byName.put(field.getFieldName(), field);
6175
        }
6176
      }
6177
 
6178
      /**
6179
       * Find the _Fields constant that matches fieldId, or null if its not found.
6180
       */
6181
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6182
        switch(fieldId) {
6183
          case 1: // SE
6184
            return SE;
6185
          default:
6186
            return null;
6187
        }
352 ashish 6188
      }
6189
 
6190
      /**
6191
       * Find the _Fields constant that matches fieldId, throwing an exception
6192
       * if it is not found.
6193
       */
6194
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6195
        _Fields fields = findByThriftId(fieldId);
6196
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6197
        return fields;
6198
      }
6199
 
6200
      /**
6201
       * Find the _Fields constant that matches name, or null if its not found.
6202
       */
6203
      public static _Fields findByName(String name) {
6204
        return byName.get(name);
6205
      }
6206
 
6207
      private final short _thriftId;
6208
      private final String _fieldName;
6209
 
6210
      _Fields(short thriftId, String fieldName) {
6211
        _thriftId = thriftId;
6212
        _fieldName = fieldName;
6213
      }
6214
 
6215
      public short getThriftFieldId() {
6216
        return _thriftId;
6217
      }
6218
 
6219
      public String getFieldName() {
6220
        return _fieldName;
6221
      }
6222
    }
6223
 
6224
    // isset id assignments
6225
 
3430 rajveer 6226
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6227
    static {
3430 rajveer 6228
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6229
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6230
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6233
    }
6234
 
6235
    public sendText_result() {
6236
    }
6237
 
6238
    public sendText_result(
6239
      HelperServiceException se)
6240
    {
6241
      this();
6242
      this.se = se;
6243
    }
6244
 
6245
    /**
6246
     * Performs a deep copy on <i>other</i>.
6247
     */
6248
    public sendText_result(sendText_result other) {
6249
      if (other.isSetSe()) {
6250
        this.se = new HelperServiceException(other.se);
6251
      }
6252
    }
6253
 
6254
    public sendText_result deepCopy() {
6255
      return new sendText_result(this);
6256
    }
6257
 
3430 rajveer 6258
    @Override
6259
    public void clear() {
6260
      this.se = null;
352 ashish 6261
    }
6262
 
6263
    public HelperServiceException getSe() {
6264
      return this.se;
6265
    }
6266
 
3430 rajveer 6267
    public void setSe(HelperServiceException se) {
352 ashish 6268
      this.se = se;
6269
    }
6270
 
6271
    public void unsetSe() {
6272
      this.se = null;
6273
    }
6274
 
3430 rajveer 6275
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6276
    public boolean isSetSe() {
6277
      return this.se != null;
6278
    }
6279
 
6280
    public void setSeIsSet(boolean value) {
6281
      if (!value) {
6282
        this.se = null;
6283
      }
6284
    }
6285
 
6286
    public void setFieldValue(_Fields field, Object value) {
6287
      switch (field) {
6288
      case SE:
6289
        if (value == null) {
6290
          unsetSe();
6291
        } else {
6292
          setSe((HelperServiceException)value);
6293
        }
6294
        break;
6295
 
6296
      }
6297
    }
6298
 
6299
    public Object getFieldValue(_Fields field) {
6300
      switch (field) {
6301
      case SE:
6302
        return getSe();
6303
 
6304
      }
6305
      throw new IllegalStateException();
6306
    }
6307
 
3430 rajveer 6308
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6309
    public boolean isSet(_Fields field) {
6310
      if (field == null) {
6311
        throw new IllegalArgumentException();
6312
      }
352 ashish 6313
 
6314
      switch (field) {
6315
      case SE:
6316
        return isSetSe();
6317
      }
6318
      throw new IllegalStateException();
6319
    }
6320
 
6321
    @Override
6322
    public boolean equals(Object that) {
6323
      if (that == null)
6324
        return false;
6325
      if (that instanceof sendText_result)
6326
        return this.equals((sendText_result)that);
6327
      return false;
6328
    }
6329
 
6330
    public boolean equals(sendText_result that) {
6331
      if (that == null)
6332
        return false;
6333
 
6334
      boolean this_present_se = true && this.isSetSe();
6335
      boolean that_present_se = true && that.isSetSe();
6336
      if (this_present_se || that_present_se) {
6337
        if (!(this_present_se && that_present_se))
6338
          return false;
6339
        if (!this.se.equals(that.se))
6340
          return false;
6341
      }
6342
 
6343
      return true;
6344
    }
6345
 
6346
    @Override
6347
    public int hashCode() {
6348
      return 0;
6349
    }
6350
 
6351
    public int compareTo(sendText_result other) {
6352
      if (!getClass().equals(other.getClass())) {
6353
        return getClass().getName().compareTo(other.getClass().getName());
6354
      }
6355
 
6356
      int lastComparison = 0;
6357
      sendText_result typedOther = (sendText_result)other;
6358
 
3430 rajveer 6359
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6360
      if (lastComparison != 0) {
6361
        return lastComparison;
6362
      }
3430 rajveer 6363
      if (isSetSe()) {
6364
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6365
        if (lastComparison != 0) {
6366
          return lastComparison;
6367
        }
352 ashish 6368
      }
6369
      return 0;
6370
    }
6371
 
3430 rajveer 6372
    public _Fields fieldForId(int fieldId) {
6373
      return _Fields.findByThriftId(fieldId);
6374
    }
6375
 
6376
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6377
      org.apache.thrift.protocol.TField field;
352 ashish 6378
      iprot.readStructBegin();
6379
      while (true)
6380
      {
6381
        field = iprot.readFieldBegin();
3430 rajveer 6382
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6383
          break;
6384
        }
3430 rajveer 6385
        switch (field.id) {
6386
          case 1: // SE
6387
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6388
              this.se = new HelperServiceException();
6389
              this.se.read(iprot);
6390
            } else { 
6391
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6392
            }
6393
            break;
6394
          default:
6395
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6396
        }
3430 rajveer 6397
        iprot.readFieldEnd();
352 ashish 6398
      }
6399
      iprot.readStructEnd();
6400
      validate();
6401
    }
6402
 
3430 rajveer 6403
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6404
      oprot.writeStructBegin(STRUCT_DESC);
6405
 
6406
      if (this.isSetSe()) {
6407
        oprot.writeFieldBegin(SE_FIELD_DESC);
6408
        this.se.write(oprot);
6409
        oprot.writeFieldEnd();
6410
      }
6411
      oprot.writeFieldStop();
6412
      oprot.writeStructEnd();
6413
    }
6414
 
6415
    @Override
6416
    public String toString() {
6417
      StringBuilder sb = new StringBuilder("sendText_result(");
6418
      boolean first = true;
6419
 
6420
      sb.append("se:");
6421
      if (this.se == null) {
6422
        sb.append("null");
6423
      } else {
6424
        sb.append(this.se);
6425
      }
6426
      first = false;
6427
      sb.append(")");
6428
      return sb.toString();
6429
    }
6430
 
3430 rajveer 6431
    public void validate() throws org.apache.thrift.TException {
352 ashish 6432
      // check for required fields
6433
    }
6434
 
3430 rajveer 6435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6436
      try {
6437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6438
      } catch (org.apache.thrift.TException te) {
6439
        throw new java.io.IOException(te);
6440
      }
6441
    }
6442
 
6443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6444
      try {
6445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6446
      } catch (org.apache.thrift.TException te) {
6447
        throw new java.io.IOException(te);
6448
      }
6449
    }
6450
 
352 ashish 6451
  }
6452
 
3430 rajveer 6453
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6455
 
3430 rajveer 6456
    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 6457
 
3430 rajveer 6458
    private Message message; // required
352 ashish 6459
 
6460
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6461
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6462
      MESSAGE((short)1, "message");
6463
 
6464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6465
 
6466
      static {
6467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6468
          byName.put(field.getFieldName(), field);
6469
        }
6470
      }
6471
 
6472
      /**
6473
       * Find the _Fields constant that matches fieldId, or null if its not found.
6474
       */
6475
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6476
        switch(fieldId) {
6477
          case 1: // MESSAGE
6478
            return MESSAGE;
6479
          default:
6480
            return null;
6481
        }
352 ashish 6482
      }
6483
 
6484
      /**
6485
       * Find the _Fields constant that matches fieldId, throwing an exception
6486
       * if it is not found.
6487
       */
6488
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6489
        _Fields fields = findByThriftId(fieldId);
6490
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6491
        return fields;
6492
      }
6493
 
6494
      /**
6495
       * Find the _Fields constant that matches name, or null if its not found.
6496
       */
6497
      public static _Fields findByName(String name) {
6498
        return byName.get(name);
6499
      }
6500
 
6501
      private final short _thriftId;
6502
      private final String _fieldName;
6503
 
6504
      _Fields(short thriftId, String fieldName) {
6505
        _thriftId = thriftId;
6506
        _fieldName = fieldName;
6507
      }
6508
 
6509
      public short getThriftFieldId() {
6510
        return _thriftId;
6511
      }
6512
 
6513
      public String getFieldName() {
6514
        return _fieldName;
6515
      }
6516
    }
6517
 
6518
    // isset id assignments
6519
 
3430 rajveer 6520
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6521
    static {
3430 rajveer 6522
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6523
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6524
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6527
    }
6528
 
6529
    public addMessage_args() {
6530
    }
6531
 
6532
    public addMessage_args(
6533
      Message message)
6534
    {
6535
      this();
6536
      this.message = message;
6537
    }
6538
 
6539
    /**
6540
     * Performs a deep copy on <i>other</i>.
6541
     */
6542
    public addMessage_args(addMessage_args other) {
6543
      if (other.isSetMessage()) {
6544
        this.message = new Message(other.message);
6545
      }
6546
    }
6547
 
6548
    public addMessage_args deepCopy() {
6549
      return new addMessage_args(this);
6550
    }
6551
 
3430 rajveer 6552
    @Override
6553
    public void clear() {
6554
      this.message = null;
352 ashish 6555
    }
6556
 
6557
    public Message getMessage() {
6558
      return this.message;
6559
    }
6560
 
3430 rajveer 6561
    public void setMessage(Message message) {
352 ashish 6562
      this.message = message;
6563
    }
6564
 
6565
    public void unsetMessage() {
6566
      this.message = null;
6567
    }
6568
 
3430 rajveer 6569
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6570
    public boolean isSetMessage() {
6571
      return this.message != null;
6572
    }
6573
 
6574
    public void setMessageIsSet(boolean value) {
6575
      if (!value) {
6576
        this.message = null;
6577
      }
6578
    }
6579
 
6580
    public void setFieldValue(_Fields field, Object value) {
6581
      switch (field) {
6582
      case MESSAGE:
6583
        if (value == null) {
6584
          unsetMessage();
6585
        } else {
6586
          setMessage((Message)value);
6587
        }
6588
        break;
6589
 
6590
      }
6591
    }
6592
 
6593
    public Object getFieldValue(_Fields field) {
6594
      switch (field) {
6595
      case MESSAGE:
6596
        return getMessage();
6597
 
6598
      }
6599
      throw new IllegalStateException();
6600
    }
6601
 
3430 rajveer 6602
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6603
    public boolean isSet(_Fields field) {
6604
      if (field == null) {
6605
        throw new IllegalArgumentException();
6606
      }
352 ashish 6607
 
6608
      switch (field) {
6609
      case MESSAGE:
6610
        return isSetMessage();
6611
      }
6612
      throw new IllegalStateException();
6613
    }
6614
 
6615
    @Override
6616
    public boolean equals(Object that) {
6617
      if (that == null)
6618
        return false;
6619
      if (that instanceof addMessage_args)
6620
        return this.equals((addMessage_args)that);
6621
      return false;
6622
    }
6623
 
6624
    public boolean equals(addMessage_args that) {
6625
      if (that == null)
6626
        return false;
6627
 
6628
      boolean this_present_message = true && this.isSetMessage();
6629
      boolean that_present_message = true && that.isSetMessage();
6630
      if (this_present_message || that_present_message) {
6631
        if (!(this_present_message && that_present_message))
6632
          return false;
6633
        if (!this.message.equals(that.message))
6634
          return false;
6635
      }
6636
 
6637
      return true;
6638
    }
6639
 
6640
    @Override
6641
    public int hashCode() {
6642
      return 0;
6643
    }
6644
 
6645
    public int compareTo(addMessage_args other) {
6646
      if (!getClass().equals(other.getClass())) {
6647
        return getClass().getName().compareTo(other.getClass().getName());
6648
      }
6649
 
6650
      int lastComparison = 0;
6651
      addMessage_args typedOther = (addMessage_args)other;
6652
 
3430 rajveer 6653
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6654
      if (lastComparison != 0) {
6655
        return lastComparison;
6656
      }
3430 rajveer 6657
      if (isSetMessage()) {
6658
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6659
        if (lastComparison != 0) {
6660
          return lastComparison;
6661
        }
352 ashish 6662
      }
6663
      return 0;
6664
    }
6665
 
3430 rajveer 6666
    public _Fields fieldForId(int fieldId) {
6667
      return _Fields.findByThriftId(fieldId);
6668
    }
6669
 
6670
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6671
      org.apache.thrift.protocol.TField field;
352 ashish 6672
      iprot.readStructBegin();
6673
      while (true)
6674
      {
6675
        field = iprot.readFieldBegin();
3430 rajveer 6676
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6677
          break;
6678
        }
3430 rajveer 6679
        switch (field.id) {
6680
          case 1: // MESSAGE
6681
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6682
              this.message = new Message();
6683
              this.message.read(iprot);
6684
            } else { 
6685
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6686
            }
6687
            break;
6688
          default:
6689
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6690
        }
3430 rajveer 6691
        iprot.readFieldEnd();
352 ashish 6692
      }
6693
      iprot.readStructEnd();
6694
      validate();
6695
    }
6696
 
3430 rajveer 6697
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6698
      validate();
6699
 
6700
      oprot.writeStructBegin(STRUCT_DESC);
6701
      if (this.message != null) {
6702
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6703
        this.message.write(oprot);
6704
        oprot.writeFieldEnd();
6705
      }
6706
      oprot.writeFieldStop();
6707
      oprot.writeStructEnd();
6708
    }
6709
 
6710
    @Override
6711
    public String toString() {
6712
      StringBuilder sb = new StringBuilder("addMessage_args(");
6713
      boolean first = true;
6714
 
6715
      sb.append("message:");
6716
      if (this.message == null) {
6717
        sb.append("null");
6718
      } else {
6719
        sb.append(this.message);
6720
      }
6721
      first = false;
6722
      sb.append(")");
6723
      return sb.toString();
6724
    }
6725
 
3430 rajveer 6726
    public void validate() throws org.apache.thrift.TException {
352 ashish 6727
      // check for required fields
6728
    }
6729
 
3430 rajveer 6730
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6731
      try {
6732
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6733
      } catch (org.apache.thrift.TException te) {
6734
        throw new java.io.IOException(te);
6735
      }
6736
    }
6737
 
6738
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6739
      try {
6740
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6741
      } catch (org.apache.thrift.TException te) {
6742
        throw new java.io.IOException(te);
6743
      }
6744
    }
6745
 
352 ashish 6746
  }
6747
 
3430 rajveer 6748
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6749
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6750
 
3430 rajveer 6751
    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 6752
 
3430 rajveer 6753
    private HelperServiceException se; // required
352 ashish 6754
 
6755
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6756
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6757
      SE((short)1, "se");
6758
 
6759
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6760
 
6761
      static {
6762
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6763
          byName.put(field.getFieldName(), field);
6764
        }
6765
      }
6766
 
6767
      /**
6768
       * Find the _Fields constant that matches fieldId, or null if its not found.
6769
       */
6770
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6771
        switch(fieldId) {
6772
          case 1: // SE
6773
            return SE;
6774
          default:
6775
            return null;
6776
        }
352 ashish 6777
      }
6778
 
6779
      /**
6780
       * Find the _Fields constant that matches fieldId, throwing an exception
6781
       * if it is not found.
6782
       */
6783
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6784
        _Fields fields = findByThriftId(fieldId);
6785
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6786
        return fields;
6787
      }
6788
 
6789
      /**
6790
       * Find the _Fields constant that matches name, or null if its not found.
6791
       */
6792
      public static _Fields findByName(String name) {
6793
        return byName.get(name);
6794
      }
6795
 
6796
      private final short _thriftId;
6797
      private final String _fieldName;
6798
 
6799
      _Fields(short thriftId, String fieldName) {
6800
        _thriftId = thriftId;
6801
        _fieldName = fieldName;
6802
      }
6803
 
6804
      public short getThriftFieldId() {
6805
        return _thriftId;
6806
      }
6807
 
6808
      public String getFieldName() {
6809
        return _fieldName;
6810
      }
6811
    }
6812
 
6813
    // isset id assignments
6814
 
3430 rajveer 6815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6816
    static {
3430 rajveer 6817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6818
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6822
    }
6823
 
6824
    public addMessage_result() {
6825
    }
6826
 
6827
    public addMessage_result(
6828
      HelperServiceException se)
6829
    {
6830
      this();
6831
      this.se = se;
6832
    }
6833
 
6834
    /**
6835
     * Performs a deep copy on <i>other</i>.
6836
     */
6837
    public addMessage_result(addMessage_result other) {
6838
      if (other.isSetSe()) {
6839
        this.se = new HelperServiceException(other.se);
6840
      }
6841
    }
6842
 
6843
    public addMessage_result deepCopy() {
6844
      return new addMessage_result(this);
6845
    }
6846
 
3430 rajveer 6847
    @Override
6848
    public void clear() {
6849
      this.se = null;
352 ashish 6850
    }
6851
 
6852
    public HelperServiceException getSe() {
6853
      return this.se;
6854
    }
6855
 
3430 rajveer 6856
    public void setSe(HelperServiceException se) {
352 ashish 6857
      this.se = se;
6858
    }
6859
 
6860
    public void unsetSe() {
6861
      this.se = null;
6862
    }
6863
 
3430 rajveer 6864
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6865
    public boolean isSetSe() {
6866
      return this.se != null;
6867
    }
6868
 
6869
    public void setSeIsSet(boolean value) {
6870
      if (!value) {
6871
        this.se = null;
6872
      }
6873
    }
6874
 
6875
    public void setFieldValue(_Fields field, Object value) {
6876
      switch (field) {
6877
      case SE:
6878
        if (value == null) {
6879
          unsetSe();
6880
        } else {
6881
          setSe((HelperServiceException)value);
6882
        }
6883
        break;
6884
 
6885
      }
6886
    }
6887
 
6888
    public Object getFieldValue(_Fields field) {
6889
      switch (field) {
6890
      case SE:
6891
        return getSe();
6892
 
6893
      }
6894
      throw new IllegalStateException();
6895
    }
6896
 
3430 rajveer 6897
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6898
    public boolean isSet(_Fields field) {
6899
      if (field == null) {
6900
        throw new IllegalArgumentException();
6901
      }
352 ashish 6902
 
6903
      switch (field) {
6904
      case SE:
6905
        return isSetSe();
6906
      }
6907
      throw new IllegalStateException();
6908
    }
6909
 
6910
    @Override
6911
    public boolean equals(Object that) {
6912
      if (that == null)
6913
        return false;
6914
      if (that instanceof addMessage_result)
6915
        return this.equals((addMessage_result)that);
6916
      return false;
6917
    }
6918
 
6919
    public boolean equals(addMessage_result that) {
6920
      if (that == null)
6921
        return false;
6922
 
6923
      boolean this_present_se = true && this.isSetSe();
6924
      boolean that_present_se = true && that.isSetSe();
6925
      if (this_present_se || that_present_se) {
6926
        if (!(this_present_se && that_present_se))
6927
          return false;
6928
        if (!this.se.equals(that.se))
6929
          return false;
6930
      }
6931
 
6932
      return true;
6933
    }
6934
 
6935
    @Override
6936
    public int hashCode() {
6937
      return 0;
6938
    }
6939
 
6940
    public int compareTo(addMessage_result other) {
6941
      if (!getClass().equals(other.getClass())) {
6942
        return getClass().getName().compareTo(other.getClass().getName());
6943
      }
6944
 
6945
      int lastComparison = 0;
6946
      addMessage_result typedOther = (addMessage_result)other;
6947
 
3430 rajveer 6948
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6949
      if (lastComparison != 0) {
6950
        return lastComparison;
6951
      }
3430 rajveer 6952
      if (isSetSe()) {
6953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6954
        if (lastComparison != 0) {
6955
          return lastComparison;
6956
        }
352 ashish 6957
      }
6958
      return 0;
6959
    }
6960
 
3430 rajveer 6961
    public _Fields fieldForId(int fieldId) {
6962
      return _Fields.findByThriftId(fieldId);
6963
    }
6964
 
6965
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6966
      org.apache.thrift.protocol.TField field;
352 ashish 6967
      iprot.readStructBegin();
6968
      while (true)
6969
      {
6970
        field = iprot.readFieldBegin();
3430 rajveer 6971
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6972
          break;
6973
        }
3430 rajveer 6974
        switch (field.id) {
6975
          case 1: // SE
6976
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6977
              this.se = new HelperServiceException();
6978
              this.se.read(iprot);
6979
            } else { 
6980
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6981
            }
6982
            break;
6983
          default:
6984
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6985
        }
3430 rajveer 6986
        iprot.readFieldEnd();
352 ashish 6987
      }
6988
      iprot.readStructEnd();
6989
      validate();
6990
    }
6991
 
3430 rajveer 6992
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6993
      oprot.writeStructBegin(STRUCT_DESC);
6994
 
6995
      if (this.isSetSe()) {
6996
        oprot.writeFieldBegin(SE_FIELD_DESC);
6997
        this.se.write(oprot);
6998
        oprot.writeFieldEnd();
6999
      }
7000
      oprot.writeFieldStop();
7001
      oprot.writeStructEnd();
7002
    }
7003
 
7004
    @Override
7005
    public String toString() {
7006
      StringBuilder sb = new StringBuilder("addMessage_result(");
7007
      boolean first = true;
7008
 
7009
      sb.append("se:");
7010
      if (this.se == null) {
7011
        sb.append("null");
7012
      } else {
7013
        sb.append(this.se);
7014
      }
7015
      first = false;
7016
      sb.append(")");
7017
      return sb.toString();
7018
    }
7019
 
3430 rajveer 7020
    public void validate() throws org.apache.thrift.TException {
352 ashish 7021
      // check for required fields
7022
    }
7023
 
3430 rajveer 7024
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7025
      try {
7026
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7027
      } catch (org.apache.thrift.TException te) {
7028
        throw new java.io.IOException(te);
7029
      }
7030
    }
7031
 
7032
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7033
      try {
7034
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7035
      } catch (org.apache.thrift.TException te) {
7036
        throw new java.io.IOException(te);
7037
      }
7038
    }
7039
 
352 ashish 7040
  }
7041
 
3430 rajveer 7042
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
7043
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 7044
 
3430 rajveer 7045
    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);
7046
    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 7047
 
3430 rajveer 7048
    private long id; // required
7049
    private String message; // required
352 ashish 7050
 
7051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7053
      ID((short)1, "id"),
7054
      MESSAGE((short)2, "message");
7055
 
7056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7057
 
7058
      static {
7059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7060
          byName.put(field.getFieldName(), field);
7061
        }
7062
      }
7063
 
7064
      /**
7065
       * Find the _Fields constant that matches fieldId, or null if its not found.
7066
       */
7067
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7068
        switch(fieldId) {
7069
          case 1: // ID
7070
            return ID;
7071
          case 2: // MESSAGE
7072
            return MESSAGE;
7073
          default:
7074
            return null;
7075
        }
352 ashish 7076
      }
7077
 
7078
      /**
7079
       * Find the _Fields constant that matches fieldId, throwing an exception
7080
       * if it is not found.
7081
       */
7082
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7083
        _Fields fields = findByThriftId(fieldId);
7084
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7085
        return fields;
7086
      }
7087
 
7088
      /**
7089
       * Find the _Fields constant that matches name, or null if its not found.
7090
       */
7091
      public static _Fields findByName(String name) {
7092
        return byName.get(name);
7093
      }
7094
 
7095
      private final short _thriftId;
7096
      private final String _fieldName;
7097
 
7098
      _Fields(short thriftId, String fieldName) {
7099
        _thriftId = thriftId;
7100
        _fieldName = fieldName;
7101
      }
7102
 
7103
      public short getThriftFieldId() {
7104
        return _thriftId;
7105
      }
7106
 
7107
      public String getFieldName() {
7108
        return _fieldName;
7109
      }
7110
    }
7111
 
7112
    // isset id assignments
7113
    private static final int __ID_ISSET_ID = 0;
7114
    private BitSet __isset_bit_vector = new BitSet(1);
7115
 
3430 rajveer 7116
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7117
    static {
3430 rajveer 7118
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7119
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7120
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7121
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7122
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7123
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7124
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7125
    }
7126
 
7127
    public updateMessage_args() {
7128
    }
7129
 
7130
    public updateMessage_args(
7131
      long id,
7132
      String message)
7133
    {
7134
      this();
7135
      this.id = id;
7136
      setIdIsSet(true);
7137
      this.message = message;
7138
    }
7139
 
7140
    /**
7141
     * Performs a deep copy on <i>other</i>.
7142
     */
7143
    public updateMessage_args(updateMessage_args other) {
7144
      __isset_bit_vector.clear();
7145
      __isset_bit_vector.or(other.__isset_bit_vector);
7146
      this.id = other.id;
7147
      if (other.isSetMessage()) {
7148
        this.message = other.message;
7149
      }
7150
    }
7151
 
7152
    public updateMessage_args deepCopy() {
7153
      return new updateMessage_args(this);
7154
    }
7155
 
3430 rajveer 7156
    @Override
7157
    public void clear() {
7158
      setIdIsSet(false);
7159
      this.id = 0;
7160
      this.message = null;
352 ashish 7161
    }
7162
 
7163
    public long getId() {
7164
      return this.id;
7165
    }
7166
 
3430 rajveer 7167
    public void setId(long id) {
352 ashish 7168
      this.id = id;
7169
      setIdIsSet(true);
7170
    }
7171
 
7172
    public void unsetId() {
7173
      __isset_bit_vector.clear(__ID_ISSET_ID);
7174
    }
7175
 
3430 rajveer 7176
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7177
    public boolean isSetId() {
7178
      return __isset_bit_vector.get(__ID_ISSET_ID);
7179
    }
7180
 
7181
    public void setIdIsSet(boolean value) {
7182
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7183
    }
7184
 
7185
    public String getMessage() {
7186
      return this.message;
7187
    }
7188
 
3430 rajveer 7189
    public void setMessage(String message) {
352 ashish 7190
      this.message = message;
7191
    }
7192
 
7193
    public void unsetMessage() {
7194
      this.message = null;
7195
    }
7196
 
3430 rajveer 7197
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7198
    public boolean isSetMessage() {
7199
      return this.message != null;
7200
    }
7201
 
7202
    public void setMessageIsSet(boolean value) {
7203
      if (!value) {
7204
        this.message = null;
7205
      }
7206
    }
7207
 
7208
    public void setFieldValue(_Fields field, Object value) {
7209
      switch (field) {
7210
      case ID:
7211
        if (value == null) {
7212
          unsetId();
7213
        } else {
7214
          setId((Long)value);
7215
        }
7216
        break;
7217
 
7218
      case MESSAGE:
7219
        if (value == null) {
7220
          unsetMessage();
7221
        } else {
7222
          setMessage((String)value);
7223
        }
7224
        break;
7225
 
7226
      }
7227
    }
7228
 
7229
    public Object getFieldValue(_Fields field) {
7230
      switch (field) {
7231
      case ID:
3430 rajveer 7232
        return Long.valueOf(getId());
352 ashish 7233
 
7234
      case MESSAGE:
7235
        return getMessage();
7236
 
7237
      }
7238
      throw new IllegalStateException();
7239
    }
7240
 
3430 rajveer 7241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7242
    public boolean isSet(_Fields field) {
7243
      if (field == null) {
7244
        throw new IllegalArgumentException();
7245
      }
352 ashish 7246
 
7247
      switch (field) {
7248
      case ID:
7249
        return isSetId();
7250
      case MESSAGE:
7251
        return isSetMessage();
7252
      }
7253
      throw new IllegalStateException();
7254
    }
7255
 
7256
    @Override
7257
    public boolean equals(Object that) {
7258
      if (that == null)
7259
        return false;
7260
      if (that instanceof updateMessage_args)
7261
        return this.equals((updateMessage_args)that);
7262
      return false;
7263
    }
7264
 
7265
    public boolean equals(updateMessage_args that) {
7266
      if (that == null)
7267
        return false;
7268
 
7269
      boolean this_present_id = true;
7270
      boolean that_present_id = true;
7271
      if (this_present_id || that_present_id) {
7272
        if (!(this_present_id && that_present_id))
7273
          return false;
7274
        if (this.id != that.id)
7275
          return false;
7276
      }
7277
 
7278
      boolean this_present_message = true && this.isSetMessage();
7279
      boolean that_present_message = true && that.isSetMessage();
7280
      if (this_present_message || that_present_message) {
7281
        if (!(this_present_message && that_present_message))
7282
          return false;
7283
        if (!this.message.equals(that.message))
7284
          return false;
7285
      }
7286
 
7287
      return true;
7288
    }
7289
 
7290
    @Override
7291
    public int hashCode() {
7292
      return 0;
7293
    }
7294
 
7295
    public int compareTo(updateMessage_args other) {
7296
      if (!getClass().equals(other.getClass())) {
7297
        return getClass().getName().compareTo(other.getClass().getName());
7298
      }
7299
 
7300
      int lastComparison = 0;
7301
      updateMessage_args typedOther = (updateMessage_args)other;
7302
 
3430 rajveer 7303
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7304
      if (lastComparison != 0) {
7305
        return lastComparison;
7306
      }
3430 rajveer 7307
      if (isSetId()) {
7308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7309
        if (lastComparison != 0) {
7310
          return lastComparison;
7311
        }
352 ashish 7312
      }
3430 rajveer 7313
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7314
      if (lastComparison != 0) {
7315
        return lastComparison;
7316
      }
3430 rajveer 7317
      if (isSetMessage()) {
7318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7319
        if (lastComparison != 0) {
7320
          return lastComparison;
7321
        }
352 ashish 7322
      }
7323
      return 0;
7324
    }
7325
 
3430 rajveer 7326
    public _Fields fieldForId(int fieldId) {
7327
      return _Fields.findByThriftId(fieldId);
7328
    }
7329
 
7330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7331
      org.apache.thrift.protocol.TField field;
352 ashish 7332
      iprot.readStructBegin();
7333
      while (true)
7334
      {
7335
        field = iprot.readFieldBegin();
3430 rajveer 7336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7337
          break;
7338
        }
3430 rajveer 7339
        switch (field.id) {
7340
          case 1: // ID
7341
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7342
              this.id = iprot.readI64();
7343
              setIdIsSet(true);
7344
            } else { 
7345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7346
            }
7347
            break;
7348
          case 2: // MESSAGE
7349
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7350
              this.message = iprot.readString();
7351
            } else { 
7352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7353
            }
7354
            break;
7355
          default:
7356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7357
        }
3430 rajveer 7358
        iprot.readFieldEnd();
352 ashish 7359
      }
7360
      iprot.readStructEnd();
7361
      validate();
7362
    }
7363
 
3430 rajveer 7364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7365
      validate();
7366
 
7367
      oprot.writeStructBegin(STRUCT_DESC);
7368
      oprot.writeFieldBegin(ID_FIELD_DESC);
7369
      oprot.writeI64(this.id);
7370
      oprot.writeFieldEnd();
7371
      if (this.message != null) {
7372
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7373
        oprot.writeString(this.message);
7374
        oprot.writeFieldEnd();
7375
      }
7376
      oprot.writeFieldStop();
7377
      oprot.writeStructEnd();
7378
    }
7379
 
7380
    @Override
7381
    public String toString() {
7382
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7383
      boolean first = true;
7384
 
7385
      sb.append("id:");
7386
      sb.append(this.id);
7387
      first = false;
7388
      if (!first) sb.append(", ");
7389
      sb.append("message:");
7390
      if (this.message == null) {
7391
        sb.append("null");
7392
      } else {
7393
        sb.append(this.message);
7394
      }
7395
      first = false;
7396
      sb.append(")");
7397
      return sb.toString();
7398
    }
7399
 
3430 rajveer 7400
    public void validate() throws org.apache.thrift.TException {
352 ashish 7401
      // check for required fields
7402
    }
7403
 
3430 rajveer 7404
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7405
      try {
7406
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7407
      } catch (org.apache.thrift.TException te) {
7408
        throw new java.io.IOException(te);
7409
      }
7410
    }
7411
 
7412
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7413
      try {
7414
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7415
        __isset_bit_vector = new BitSet(1);
7416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7417
      } catch (org.apache.thrift.TException te) {
7418
        throw new java.io.IOException(te);
7419
      }
7420
    }
7421
 
352 ashish 7422
  }
7423
 
3430 rajveer 7424
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7426
 
3430 rajveer 7427
    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 7428
 
3430 rajveer 7429
    private HelperServiceException se; // required
352 ashish 7430
 
7431
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7432
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7433
      SE((short)1, "se");
7434
 
7435
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7436
 
7437
      static {
7438
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7439
          byName.put(field.getFieldName(), field);
7440
        }
7441
      }
7442
 
7443
      /**
7444
       * Find the _Fields constant that matches fieldId, or null if its not found.
7445
       */
7446
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7447
        switch(fieldId) {
7448
          case 1: // SE
7449
            return SE;
7450
          default:
7451
            return null;
7452
        }
352 ashish 7453
      }
7454
 
7455
      /**
7456
       * Find the _Fields constant that matches fieldId, throwing an exception
7457
       * if it is not found.
7458
       */
7459
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7460
        _Fields fields = findByThriftId(fieldId);
7461
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7462
        return fields;
7463
      }
7464
 
7465
      /**
7466
       * Find the _Fields constant that matches name, or null if its not found.
7467
       */
7468
      public static _Fields findByName(String name) {
7469
        return byName.get(name);
7470
      }
7471
 
7472
      private final short _thriftId;
7473
      private final String _fieldName;
7474
 
7475
      _Fields(short thriftId, String fieldName) {
7476
        _thriftId = thriftId;
7477
        _fieldName = fieldName;
7478
      }
7479
 
7480
      public short getThriftFieldId() {
7481
        return _thriftId;
7482
      }
7483
 
7484
      public String getFieldName() {
7485
        return _fieldName;
7486
      }
7487
    }
7488
 
7489
    // isset id assignments
7490
 
3430 rajveer 7491
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7492
    static {
3430 rajveer 7493
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7494
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7498
    }
7499
 
7500
    public updateMessage_result() {
7501
    }
7502
 
7503
    public updateMessage_result(
7504
      HelperServiceException se)
7505
    {
7506
      this();
7507
      this.se = se;
7508
    }
7509
 
7510
    /**
7511
     * Performs a deep copy on <i>other</i>.
7512
     */
7513
    public updateMessage_result(updateMessage_result other) {
7514
      if (other.isSetSe()) {
7515
        this.se = new HelperServiceException(other.se);
7516
      }
7517
    }
7518
 
7519
    public updateMessage_result deepCopy() {
7520
      return new updateMessage_result(this);
7521
    }
7522
 
3430 rajveer 7523
    @Override
7524
    public void clear() {
7525
      this.se = null;
352 ashish 7526
    }
7527
 
7528
    public HelperServiceException getSe() {
7529
      return this.se;
7530
    }
7531
 
3430 rajveer 7532
    public void setSe(HelperServiceException se) {
352 ashish 7533
      this.se = se;
7534
    }
7535
 
7536
    public void unsetSe() {
7537
      this.se = null;
7538
    }
7539
 
3430 rajveer 7540
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7541
    public boolean isSetSe() {
7542
      return this.se != null;
7543
    }
7544
 
7545
    public void setSeIsSet(boolean value) {
7546
      if (!value) {
7547
        this.se = null;
7548
      }
7549
    }
7550
 
7551
    public void setFieldValue(_Fields field, Object value) {
7552
      switch (field) {
7553
      case SE:
7554
        if (value == null) {
7555
          unsetSe();
7556
        } else {
7557
          setSe((HelperServiceException)value);
7558
        }
7559
        break;
7560
 
7561
      }
7562
    }
7563
 
7564
    public Object getFieldValue(_Fields field) {
7565
      switch (field) {
7566
      case SE:
7567
        return getSe();
7568
 
7569
      }
7570
      throw new IllegalStateException();
7571
    }
7572
 
3430 rajveer 7573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7574
    public boolean isSet(_Fields field) {
7575
      if (field == null) {
7576
        throw new IllegalArgumentException();
7577
      }
352 ashish 7578
 
7579
      switch (field) {
7580
      case SE:
7581
        return isSetSe();
7582
      }
7583
      throw new IllegalStateException();
7584
    }
7585
 
7586
    @Override
7587
    public boolean equals(Object that) {
7588
      if (that == null)
7589
        return false;
7590
      if (that instanceof updateMessage_result)
7591
        return this.equals((updateMessage_result)that);
7592
      return false;
7593
    }
7594
 
7595
    public boolean equals(updateMessage_result that) {
7596
      if (that == null)
7597
        return false;
7598
 
7599
      boolean this_present_se = true && this.isSetSe();
7600
      boolean that_present_se = true && that.isSetSe();
7601
      if (this_present_se || that_present_se) {
7602
        if (!(this_present_se && that_present_se))
7603
          return false;
7604
        if (!this.se.equals(that.se))
7605
          return false;
7606
      }
7607
 
7608
      return true;
7609
    }
7610
 
7611
    @Override
7612
    public int hashCode() {
7613
      return 0;
7614
    }
7615
 
7616
    public int compareTo(updateMessage_result other) {
7617
      if (!getClass().equals(other.getClass())) {
7618
        return getClass().getName().compareTo(other.getClass().getName());
7619
      }
7620
 
7621
      int lastComparison = 0;
7622
      updateMessage_result typedOther = (updateMessage_result)other;
7623
 
3430 rajveer 7624
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7625
      if (lastComparison != 0) {
7626
        return lastComparison;
7627
      }
3430 rajveer 7628
      if (isSetSe()) {
7629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7630
        if (lastComparison != 0) {
7631
          return lastComparison;
7632
        }
352 ashish 7633
      }
7634
      return 0;
7635
    }
7636
 
3430 rajveer 7637
    public _Fields fieldForId(int fieldId) {
7638
      return _Fields.findByThriftId(fieldId);
7639
    }
7640
 
7641
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7642
      org.apache.thrift.protocol.TField field;
352 ashish 7643
      iprot.readStructBegin();
7644
      while (true)
7645
      {
7646
        field = iprot.readFieldBegin();
3430 rajveer 7647
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7648
          break;
7649
        }
3430 rajveer 7650
        switch (field.id) {
7651
          case 1: // SE
7652
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7653
              this.se = new HelperServiceException();
7654
              this.se.read(iprot);
7655
            } else { 
7656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7657
            }
7658
            break;
7659
          default:
7660
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7661
        }
3430 rajveer 7662
        iprot.readFieldEnd();
352 ashish 7663
      }
7664
      iprot.readStructEnd();
7665
      validate();
7666
    }
7667
 
3430 rajveer 7668
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7669
      oprot.writeStructBegin(STRUCT_DESC);
7670
 
7671
      if (this.isSetSe()) {
7672
        oprot.writeFieldBegin(SE_FIELD_DESC);
7673
        this.se.write(oprot);
7674
        oprot.writeFieldEnd();
7675
      }
7676
      oprot.writeFieldStop();
7677
      oprot.writeStructEnd();
7678
    }
7679
 
7680
    @Override
7681
    public String toString() {
7682
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7683
      boolean first = true;
7684
 
7685
      sb.append("se:");
7686
      if (this.se == null) {
7687
        sb.append("null");
7688
      } else {
7689
        sb.append(this.se);
7690
      }
7691
      first = false;
7692
      sb.append(")");
7693
      return sb.toString();
7694
    }
7695
 
3430 rajveer 7696
    public void validate() throws org.apache.thrift.TException {
352 ashish 7697
      // check for required fields
7698
    }
7699
 
3430 rajveer 7700
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7701
      try {
7702
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7703
      } catch (org.apache.thrift.TException te) {
7704
        throw new java.io.IOException(te);
7705
      }
7706
    }
7707
 
7708
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7709
      try {
7710
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7711
      } catch (org.apache.thrift.TException te) {
7712
        throw new java.io.IOException(te);
7713
      }
7714
    }
7715
 
352 ashish 7716
  }
7717
 
3430 rajveer 7718
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7719
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7720
 
3430 rajveer 7721
    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 7722
 
3430 rajveer 7723
    private long id; // required
352 ashish 7724
 
7725
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7726
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7727
      ID((short)1, "id");
7728
 
7729
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7730
 
7731
      static {
7732
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7733
          byName.put(field.getFieldName(), field);
7734
        }
7735
      }
7736
 
7737
      /**
7738
       * Find the _Fields constant that matches fieldId, or null if its not found.
7739
       */
7740
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7741
        switch(fieldId) {
7742
          case 1: // ID
7743
            return ID;
7744
          default:
7745
            return null;
7746
        }
352 ashish 7747
      }
7748
 
7749
      /**
7750
       * Find the _Fields constant that matches fieldId, throwing an exception
7751
       * if it is not found.
7752
       */
7753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7754
        _Fields fields = findByThriftId(fieldId);
7755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7756
        return fields;
7757
      }
7758
 
7759
      /**
7760
       * Find the _Fields constant that matches name, or null if its not found.
7761
       */
7762
      public static _Fields findByName(String name) {
7763
        return byName.get(name);
7764
      }
7765
 
7766
      private final short _thriftId;
7767
      private final String _fieldName;
7768
 
7769
      _Fields(short thriftId, String fieldName) {
7770
        _thriftId = thriftId;
7771
        _fieldName = fieldName;
7772
      }
7773
 
7774
      public short getThriftFieldId() {
7775
        return _thriftId;
7776
      }
7777
 
7778
      public String getFieldName() {
7779
        return _fieldName;
7780
      }
7781
    }
7782
 
7783
    // isset id assignments
7784
    private static final int __ID_ISSET_ID = 0;
7785
    private BitSet __isset_bit_vector = new BitSet(1);
7786
 
3430 rajveer 7787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7788
    static {
3430 rajveer 7789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7790
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7792
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7793
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7794
    }
7795
 
7796
    public getMessage_args() {
7797
    }
7798
 
7799
    public getMessage_args(
7800
      long id)
7801
    {
7802
      this();
7803
      this.id = id;
7804
      setIdIsSet(true);
7805
    }
7806
 
7807
    /**
7808
     * Performs a deep copy on <i>other</i>.
7809
     */
7810
    public getMessage_args(getMessage_args other) {
7811
      __isset_bit_vector.clear();
7812
      __isset_bit_vector.or(other.__isset_bit_vector);
7813
      this.id = other.id;
7814
    }
7815
 
7816
    public getMessage_args deepCopy() {
7817
      return new getMessage_args(this);
7818
    }
7819
 
3430 rajveer 7820
    @Override
7821
    public void clear() {
7822
      setIdIsSet(false);
7823
      this.id = 0;
352 ashish 7824
    }
7825
 
7826
    public long getId() {
7827
      return this.id;
7828
    }
7829
 
3430 rajveer 7830
    public void setId(long id) {
352 ashish 7831
      this.id = id;
7832
      setIdIsSet(true);
7833
    }
7834
 
7835
    public void unsetId() {
7836
      __isset_bit_vector.clear(__ID_ISSET_ID);
7837
    }
7838
 
3430 rajveer 7839
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7840
    public boolean isSetId() {
7841
      return __isset_bit_vector.get(__ID_ISSET_ID);
7842
    }
7843
 
7844
    public void setIdIsSet(boolean value) {
7845
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7846
    }
7847
 
7848
    public void setFieldValue(_Fields field, Object value) {
7849
      switch (field) {
7850
      case ID:
7851
        if (value == null) {
7852
          unsetId();
7853
        } else {
7854
          setId((Long)value);
7855
        }
7856
        break;
7857
 
7858
      }
7859
    }
7860
 
7861
    public Object getFieldValue(_Fields field) {
7862
      switch (field) {
7863
      case ID:
3430 rajveer 7864
        return Long.valueOf(getId());
352 ashish 7865
 
7866
      }
7867
      throw new IllegalStateException();
7868
    }
7869
 
3430 rajveer 7870
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7871
    public boolean isSet(_Fields field) {
7872
      if (field == null) {
7873
        throw new IllegalArgumentException();
7874
      }
352 ashish 7875
 
7876
      switch (field) {
7877
      case ID:
7878
        return isSetId();
7879
      }
7880
      throw new IllegalStateException();
7881
    }
7882
 
7883
    @Override
7884
    public boolean equals(Object that) {
7885
      if (that == null)
7886
        return false;
7887
      if (that instanceof getMessage_args)
7888
        return this.equals((getMessage_args)that);
7889
      return false;
7890
    }
7891
 
7892
    public boolean equals(getMessage_args that) {
7893
      if (that == null)
7894
        return false;
7895
 
7896
      boolean this_present_id = true;
7897
      boolean that_present_id = true;
7898
      if (this_present_id || that_present_id) {
7899
        if (!(this_present_id && that_present_id))
7900
          return false;
7901
        if (this.id != that.id)
7902
          return false;
7903
      }
7904
 
7905
      return true;
7906
    }
7907
 
7908
    @Override
7909
    public int hashCode() {
7910
      return 0;
7911
    }
7912
 
7913
    public int compareTo(getMessage_args other) {
7914
      if (!getClass().equals(other.getClass())) {
7915
        return getClass().getName().compareTo(other.getClass().getName());
7916
      }
7917
 
7918
      int lastComparison = 0;
7919
      getMessage_args typedOther = (getMessage_args)other;
7920
 
3430 rajveer 7921
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7922
      if (lastComparison != 0) {
7923
        return lastComparison;
7924
      }
3430 rajveer 7925
      if (isSetId()) {
7926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7927
        if (lastComparison != 0) {
7928
          return lastComparison;
7929
        }
352 ashish 7930
      }
7931
      return 0;
7932
    }
7933
 
3430 rajveer 7934
    public _Fields fieldForId(int fieldId) {
7935
      return _Fields.findByThriftId(fieldId);
7936
    }
7937
 
7938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7939
      org.apache.thrift.protocol.TField field;
352 ashish 7940
      iprot.readStructBegin();
7941
      while (true)
7942
      {
7943
        field = iprot.readFieldBegin();
3430 rajveer 7944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7945
          break;
7946
        }
3430 rajveer 7947
        switch (field.id) {
7948
          case 1: // ID
7949
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7950
              this.id = iprot.readI64();
7951
              setIdIsSet(true);
7952
            } else { 
7953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7954
            }
7955
            break;
7956
          default:
7957
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7958
        }
3430 rajveer 7959
        iprot.readFieldEnd();
352 ashish 7960
      }
7961
      iprot.readStructEnd();
7962
      validate();
7963
    }
7964
 
3430 rajveer 7965
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7966
      validate();
7967
 
7968
      oprot.writeStructBegin(STRUCT_DESC);
7969
      oprot.writeFieldBegin(ID_FIELD_DESC);
7970
      oprot.writeI64(this.id);
7971
      oprot.writeFieldEnd();
7972
      oprot.writeFieldStop();
7973
      oprot.writeStructEnd();
7974
    }
7975
 
7976
    @Override
7977
    public String toString() {
7978
      StringBuilder sb = new StringBuilder("getMessage_args(");
7979
      boolean first = true;
7980
 
7981
      sb.append("id:");
7982
      sb.append(this.id);
7983
      first = false;
7984
      sb.append(")");
7985
      return sb.toString();
7986
    }
7987
 
3430 rajveer 7988
    public void validate() throws org.apache.thrift.TException {
352 ashish 7989
      // check for required fields
7990
    }
7991
 
3430 rajveer 7992
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7993
      try {
7994
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7995
      } catch (org.apache.thrift.TException te) {
7996
        throw new java.io.IOException(te);
7997
      }
7998
    }
7999
 
8000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8001
      try {
8002
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8003
        __isset_bit_vector = new BitSet(1);
8004
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8005
      } catch (org.apache.thrift.TException te) {
8006
        throw new java.io.IOException(te);
8007
      }
8008
    }
8009
 
352 ashish 8010
  }
8011
 
3430 rajveer 8012
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
8013
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 8014
 
3430 rajveer 8015
    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);
8016
    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 8017
 
3430 rajveer 8018
    private Message success; // required
8019
    private HelperServiceException se; // required
352 ashish 8020
 
8021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8022
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8023
      SUCCESS((short)0, "success"),
8024
      SE((short)1, "se");
8025
 
8026
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8027
 
8028
      static {
8029
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8030
          byName.put(field.getFieldName(), field);
8031
        }
8032
      }
8033
 
8034
      /**
8035
       * Find the _Fields constant that matches fieldId, or null if its not found.
8036
       */
8037
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8038
        switch(fieldId) {
8039
          case 0: // SUCCESS
8040
            return SUCCESS;
8041
          case 1: // SE
8042
            return SE;
8043
          default:
8044
            return null;
8045
        }
352 ashish 8046
      }
8047
 
8048
      /**
8049
       * Find the _Fields constant that matches fieldId, throwing an exception
8050
       * if it is not found.
8051
       */
8052
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8053
        _Fields fields = findByThriftId(fieldId);
8054
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8055
        return fields;
8056
      }
8057
 
8058
      /**
8059
       * Find the _Fields constant that matches name, or null if its not found.
8060
       */
8061
      public static _Fields findByName(String name) {
8062
        return byName.get(name);
8063
      }
8064
 
8065
      private final short _thriftId;
8066
      private final String _fieldName;
8067
 
8068
      _Fields(short thriftId, String fieldName) {
8069
        _thriftId = thriftId;
8070
        _fieldName = fieldName;
8071
      }
8072
 
8073
      public short getThriftFieldId() {
8074
        return _thriftId;
8075
      }
8076
 
8077
      public String getFieldName() {
8078
        return _fieldName;
8079
      }
8080
    }
8081
 
8082
    // isset id assignments
8083
 
3430 rajveer 8084
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8085
    static {
3430 rajveer 8086
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8087
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8088
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8089
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8093
    }
8094
 
8095
    public getMessage_result() {
8096
    }
8097
 
8098
    public getMessage_result(
8099
      Message success,
8100
      HelperServiceException se)
8101
    {
8102
      this();
8103
      this.success = success;
8104
      this.se = se;
8105
    }
8106
 
8107
    /**
8108
     * Performs a deep copy on <i>other</i>.
8109
     */
8110
    public getMessage_result(getMessage_result other) {
8111
      if (other.isSetSuccess()) {
8112
        this.success = new Message(other.success);
8113
      }
8114
      if (other.isSetSe()) {
8115
        this.se = new HelperServiceException(other.se);
8116
      }
8117
    }
8118
 
8119
    public getMessage_result deepCopy() {
8120
      return new getMessage_result(this);
8121
    }
8122
 
3430 rajveer 8123
    @Override
8124
    public void clear() {
8125
      this.success = null;
8126
      this.se = null;
352 ashish 8127
    }
8128
 
8129
    public Message getSuccess() {
8130
      return this.success;
8131
    }
8132
 
3430 rajveer 8133
    public void setSuccess(Message success) {
352 ashish 8134
      this.success = success;
8135
    }
8136
 
8137
    public void unsetSuccess() {
8138
      this.success = null;
8139
    }
8140
 
3430 rajveer 8141
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8142
    public boolean isSetSuccess() {
8143
      return this.success != null;
8144
    }
8145
 
8146
    public void setSuccessIsSet(boolean value) {
8147
      if (!value) {
8148
        this.success = null;
8149
      }
8150
    }
8151
 
8152
    public HelperServiceException getSe() {
8153
      return this.se;
8154
    }
8155
 
3430 rajveer 8156
    public void setSe(HelperServiceException se) {
352 ashish 8157
      this.se = se;
8158
    }
8159
 
8160
    public void unsetSe() {
8161
      this.se = null;
8162
    }
8163
 
3430 rajveer 8164
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8165
    public boolean isSetSe() {
8166
      return this.se != null;
8167
    }
8168
 
8169
    public void setSeIsSet(boolean value) {
8170
      if (!value) {
8171
        this.se = null;
8172
      }
8173
    }
8174
 
8175
    public void setFieldValue(_Fields field, Object value) {
8176
      switch (field) {
8177
      case SUCCESS:
8178
        if (value == null) {
8179
          unsetSuccess();
8180
        } else {
8181
          setSuccess((Message)value);
8182
        }
8183
        break;
8184
 
8185
      case SE:
8186
        if (value == null) {
8187
          unsetSe();
8188
        } else {
8189
          setSe((HelperServiceException)value);
8190
        }
8191
        break;
8192
 
8193
      }
8194
    }
8195
 
8196
    public Object getFieldValue(_Fields field) {
8197
      switch (field) {
8198
      case SUCCESS:
8199
        return getSuccess();
8200
 
8201
      case SE:
8202
        return getSe();
8203
 
8204
      }
8205
      throw new IllegalStateException();
8206
    }
8207
 
3430 rajveer 8208
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8209
    public boolean isSet(_Fields field) {
8210
      if (field == null) {
8211
        throw new IllegalArgumentException();
8212
      }
352 ashish 8213
 
8214
      switch (field) {
8215
      case SUCCESS:
8216
        return isSetSuccess();
8217
      case SE:
8218
        return isSetSe();
8219
      }
8220
      throw new IllegalStateException();
8221
    }
8222
 
8223
    @Override
8224
    public boolean equals(Object that) {
8225
      if (that == null)
8226
        return false;
8227
      if (that instanceof getMessage_result)
8228
        return this.equals((getMessage_result)that);
8229
      return false;
8230
    }
8231
 
8232
    public boolean equals(getMessage_result that) {
8233
      if (that == null)
8234
        return false;
8235
 
8236
      boolean this_present_success = true && this.isSetSuccess();
8237
      boolean that_present_success = true && that.isSetSuccess();
8238
      if (this_present_success || that_present_success) {
8239
        if (!(this_present_success && that_present_success))
8240
          return false;
8241
        if (!this.success.equals(that.success))
8242
          return false;
8243
      }
8244
 
8245
      boolean this_present_se = true && this.isSetSe();
8246
      boolean that_present_se = true && that.isSetSe();
8247
      if (this_present_se || that_present_se) {
8248
        if (!(this_present_se && that_present_se))
8249
          return false;
8250
        if (!this.se.equals(that.se))
8251
          return false;
8252
      }
8253
 
8254
      return true;
8255
    }
8256
 
8257
    @Override
8258
    public int hashCode() {
8259
      return 0;
8260
    }
8261
 
8262
    public int compareTo(getMessage_result other) {
8263
      if (!getClass().equals(other.getClass())) {
8264
        return getClass().getName().compareTo(other.getClass().getName());
8265
      }
8266
 
8267
      int lastComparison = 0;
8268
      getMessage_result typedOther = (getMessage_result)other;
8269
 
3430 rajveer 8270
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8271
      if (lastComparison != 0) {
8272
        return lastComparison;
8273
      }
3430 rajveer 8274
      if (isSetSuccess()) {
8275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8276
        if (lastComparison != 0) {
8277
          return lastComparison;
8278
        }
352 ashish 8279
      }
3430 rajveer 8280
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8281
      if (lastComparison != 0) {
8282
        return lastComparison;
8283
      }
3430 rajveer 8284
      if (isSetSe()) {
8285
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8286
        if (lastComparison != 0) {
8287
          return lastComparison;
8288
        }
352 ashish 8289
      }
8290
      return 0;
8291
    }
8292
 
3430 rajveer 8293
    public _Fields fieldForId(int fieldId) {
8294
      return _Fields.findByThriftId(fieldId);
8295
    }
8296
 
8297
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8298
      org.apache.thrift.protocol.TField field;
352 ashish 8299
      iprot.readStructBegin();
8300
      while (true)
8301
      {
8302
        field = iprot.readFieldBegin();
3430 rajveer 8303
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8304
          break;
8305
        }
3430 rajveer 8306
        switch (field.id) {
8307
          case 0: // SUCCESS
8308
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8309
              this.success = new Message();
8310
              this.success.read(iprot);
8311
            } else { 
8312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8313
            }
8314
            break;
8315
          case 1: // SE
8316
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8317
              this.se = new HelperServiceException();
8318
              this.se.read(iprot);
8319
            } else { 
8320
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8321
            }
8322
            break;
8323
          default:
8324
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8325
        }
3430 rajveer 8326
        iprot.readFieldEnd();
352 ashish 8327
      }
8328
      iprot.readStructEnd();
8329
      validate();
8330
    }
8331
 
3430 rajveer 8332
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8333
      oprot.writeStructBegin(STRUCT_DESC);
8334
 
8335
      if (this.isSetSuccess()) {
8336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8337
        this.success.write(oprot);
8338
        oprot.writeFieldEnd();
8339
      } else if (this.isSetSe()) {
8340
        oprot.writeFieldBegin(SE_FIELD_DESC);
8341
        this.se.write(oprot);
8342
        oprot.writeFieldEnd();
8343
      }
8344
      oprot.writeFieldStop();
8345
      oprot.writeStructEnd();
8346
    }
8347
 
8348
    @Override
8349
    public String toString() {
8350
      StringBuilder sb = new StringBuilder("getMessage_result(");
8351
      boolean first = true;
8352
 
8353
      sb.append("success:");
8354
      if (this.success == null) {
8355
        sb.append("null");
8356
      } else {
8357
        sb.append(this.success);
8358
      }
8359
      first = false;
8360
      if (!first) sb.append(", ");
8361
      sb.append("se:");
8362
      if (this.se == null) {
8363
        sb.append("null");
8364
      } else {
8365
        sb.append(this.se);
8366
      }
8367
      first = false;
8368
      sb.append(")");
8369
      return sb.toString();
8370
    }
8371
 
3430 rajveer 8372
    public void validate() throws org.apache.thrift.TException {
352 ashish 8373
      // check for required fields
8374
    }
8375
 
3430 rajveer 8376
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8377
      try {
8378
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8379
      } catch (org.apache.thrift.TException te) {
8380
        throw new java.io.IOException(te);
8381
      }
8382
    }
8383
 
8384
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8385
      try {
8386
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8387
      } catch (org.apache.thrift.TException te) {
8388
        throw new java.io.IOException(te);
8389
      }
8390
    }
8391
 
352 ashish 8392
  }
8393
 
3430 rajveer 8394
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8395
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8396
 
3430 rajveer 8397
    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);
8398
    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 8399
 
3430 rajveer 8400
    private long id; // required
8401
    private Map<String,String> params; // required
352 ashish 8402
 
8403
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8404
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8405
      ID((short)1, "id"),
8406
      PARAMS((short)2, "params");
8407
 
8408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8409
 
8410
      static {
8411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8412
          byName.put(field.getFieldName(), field);
8413
        }
8414
      }
8415
 
8416
      /**
8417
       * Find the _Fields constant that matches fieldId, or null if its not found.
8418
       */
8419
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8420
        switch(fieldId) {
8421
          case 1: // ID
8422
            return ID;
8423
          case 2: // PARAMS
8424
            return PARAMS;
8425
          default:
8426
            return null;
8427
        }
352 ashish 8428
      }
8429
 
8430
      /**
8431
       * Find the _Fields constant that matches fieldId, throwing an exception
8432
       * if it is not found.
8433
       */
8434
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8435
        _Fields fields = findByThriftId(fieldId);
8436
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8437
        return fields;
8438
      }
8439
 
8440
      /**
8441
       * Find the _Fields constant that matches name, or null if its not found.
8442
       */
8443
      public static _Fields findByName(String name) {
8444
        return byName.get(name);
8445
      }
8446
 
8447
      private final short _thriftId;
8448
      private final String _fieldName;
8449
 
8450
      _Fields(short thriftId, String fieldName) {
8451
        _thriftId = thriftId;
8452
        _fieldName = fieldName;
8453
      }
8454
 
8455
      public short getThriftFieldId() {
8456
        return _thriftId;
8457
      }
8458
 
8459
      public String getFieldName() {
8460
        return _fieldName;
8461
      }
8462
    }
8463
 
8464
    // isset id assignments
8465
    private static final int __ID_ISSET_ID = 0;
8466
    private BitSet __isset_bit_vector = new BitSet(1);
8467
 
3430 rajveer 8468
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8469
    static {
3430 rajveer 8470
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8471
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8472
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8473
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8474
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8475
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8476
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8477
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8478
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8479
    }
8480
 
8481
    public getSubstitutedMessage_args() {
8482
    }
8483
 
8484
    public getSubstitutedMessage_args(
8485
      long id,
8486
      Map<String,String> params)
8487
    {
8488
      this();
8489
      this.id = id;
8490
      setIdIsSet(true);
8491
      this.params = params;
8492
    }
8493
 
8494
    /**
8495
     * Performs a deep copy on <i>other</i>.
8496
     */
8497
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8498
      __isset_bit_vector.clear();
8499
      __isset_bit_vector.or(other.__isset_bit_vector);
8500
      this.id = other.id;
8501
      if (other.isSetParams()) {
8502
        Map<String,String> __this__params = new HashMap<String,String>();
8503
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8504
 
8505
          String other_element_key = other_element.getKey();
8506
          String other_element_value = other_element.getValue();
8507
 
8508
          String __this__params_copy_key = other_element_key;
8509
 
8510
          String __this__params_copy_value = other_element_value;
8511
 
8512
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8513
        }
8514
        this.params = __this__params;
8515
      }
8516
    }
8517
 
8518
    public getSubstitutedMessage_args deepCopy() {
8519
      return new getSubstitutedMessage_args(this);
8520
    }
8521
 
3430 rajveer 8522
    @Override
8523
    public void clear() {
8524
      setIdIsSet(false);
8525
      this.id = 0;
8526
      this.params = null;
352 ashish 8527
    }
8528
 
8529
    public long getId() {
8530
      return this.id;
8531
    }
8532
 
3430 rajveer 8533
    public void setId(long id) {
352 ashish 8534
      this.id = id;
8535
      setIdIsSet(true);
8536
    }
8537
 
8538
    public void unsetId() {
8539
      __isset_bit_vector.clear(__ID_ISSET_ID);
8540
    }
8541
 
3430 rajveer 8542
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8543
    public boolean isSetId() {
8544
      return __isset_bit_vector.get(__ID_ISSET_ID);
8545
    }
8546
 
8547
    public void setIdIsSet(boolean value) {
8548
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8549
    }
8550
 
8551
    public int getParamsSize() {
8552
      return (this.params == null) ? 0 : this.params.size();
8553
    }
8554
 
8555
    public void putToParams(String key, String val) {
8556
      if (this.params == null) {
8557
        this.params = new HashMap<String,String>();
8558
      }
8559
      this.params.put(key, val);
8560
    }
8561
 
8562
    public Map<String,String> getParams() {
8563
      return this.params;
8564
    }
8565
 
3430 rajveer 8566
    public void setParams(Map<String,String> params) {
352 ashish 8567
      this.params = params;
8568
    }
8569
 
8570
    public void unsetParams() {
8571
      this.params = null;
8572
    }
8573
 
3430 rajveer 8574
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8575
    public boolean isSetParams() {
8576
      return this.params != null;
8577
    }
8578
 
8579
    public void setParamsIsSet(boolean value) {
8580
      if (!value) {
8581
        this.params = null;
8582
      }
8583
    }
8584
 
8585
    public void setFieldValue(_Fields field, Object value) {
8586
      switch (field) {
8587
      case ID:
8588
        if (value == null) {
8589
          unsetId();
8590
        } else {
8591
          setId((Long)value);
8592
        }
8593
        break;
8594
 
8595
      case PARAMS:
8596
        if (value == null) {
8597
          unsetParams();
8598
        } else {
8599
          setParams((Map<String,String>)value);
8600
        }
8601
        break;
8602
 
8603
      }
8604
    }
8605
 
8606
    public Object getFieldValue(_Fields field) {
8607
      switch (field) {
8608
      case ID:
3430 rajveer 8609
        return Long.valueOf(getId());
352 ashish 8610
 
8611
      case PARAMS:
8612
        return getParams();
8613
 
8614
      }
8615
      throw new IllegalStateException();
8616
    }
8617
 
3430 rajveer 8618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8619
    public boolean isSet(_Fields field) {
8620
      if (field == null) {
8621
        throw new IllegalArgumentException();
8622
      }
352 ashish 8623
 
8624
      switch (field) {
8625
      case ID:
8626
        return isSetId();
8627
      case PARAMS:
8628
        return isSetParams();
8629
      }
8630
      throw new IllegalStateException();
8631
    }
8632
 
8633
    @Override
8634
    public boolean equals(Object that) {
8635
      if (that == null)
8636
        return false;
8637
      if (that instanceof getSubstitutedMessage_args)
8638
        return this.equals((getSubstitutedMessage_args)that);
8639
      return false;
8640
    }
8641
 
8642
    public boolean equals(getSubstitutedMessage_args that) {
8643
      if (that == null)
8644
        return false;
8645
 
8646
      boolean this_present_id = true;
8647
      boolean that_present_id = true;
8648
      if (this_present_id || that_present_id) {
8649
        if (!(this_present_id && that_present_id))
8650
          return false;
8651
        if (this.id != that.id)
8652
          return false;
8653
      }
8654
 
8655
      boolean this_present_params = true && this.isSetParams();
8656
      boolean that_present_params = true && that.isSetParams();
8657
      if (this_present_params || that_present_params) {
8658
        if (!(this_present_params && that_present_params))
8659
          return false;
8660
        if (!this.params.equals(that.params))
8661
          return false;
8662
      }
8663
 
8664
      return true;
8665
    }
8666
 
8667
    @Override
8668
    public int hashCode() {
8669
      return 0;
8670
    }
8671
 
3430 rajveer 8672
    public int compareTo(getSubstitutedMessage_args other) {
8673
      if (!getClass().equals(other.getClass())) {
8674
        return getClass().getName().compareTo(other.getClass().getName());
8675
      }
8676
 
8677
      int lastComparison = 0;
8678
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8679
 
8680
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8681
      if (lastComparison != 0) {
8682
        return lastComparison;
8683
      }
8684
      if (isSetId()) {
8685
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8686
        if (lastComparison != 0) {
8687
          return lastComparison;
8688
        }
8689
      }
8690
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8691
      if (lastComparison != 0) {
8692
        return lastComparison;
8693
      }
8694
      if (isSetParams()) {
8695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8696
        if (lastComparison != 0) {
8697
          return lastComparison;
8698
        }
8699
      }
8700
      return 0;
8701
    }
8702
 
8703
    public _Fields fieldForId(int fieldId) {
8704
      return _Fields.findByThriftId(fieldId);
8705
    }
8706
 
8707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8708
      org.apache.thrift.protocol.TField field;
352 ashish 8709
      iprot.readStructBegin();
8710
      while (true)
8711
      {
8712
        field = iprot.readFieldBegin();
3430 rajveer 8713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8714
          break;
8715
        }
3430 rajveer 8716
        switch (field.id) {
8717
          case 1: // ID
8718
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8719
              this.id = iprot.readI64();
8720
              setIdIsSet(true);
8721
            } else { 
8722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8723
            }
8724
            break;
8725
          case 2: // PARAMS
8726
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8727
              {
5864 rajveer 8728
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8729
                this.params = new HashMap<String,String>(2*_map36.size);
8730
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8731
                {
5864 rajveer 8732
                  String _key38; // required
8733
                  String _val39; // required
8734
                  _key38 = iprot.readString();
8735
                  _val39 = iprot.readString();
8736
                  this.params.put(_key38, _val39);
352 ashish 8737
                }
3430 rajveer 8738
                iprot.readMapEnd();
352 ashish 8739
              }
3430 rajveer 8740
            } else { 
8741
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8742
            }
8743
            break;
8744
          default:
8745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8746
        }
3430 rajveer 8747
        iprot.readFieldEnd();
352 ashish 8748
      }
8749
      iprot.readStructEnd();
8750
      validate();
8751
    }
8752
 
3430 rajveer 8753
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8754
      validate();
8755
 
8756
      oprot.writeStructBegin(STRUCT_DESC);
8757
      oprot.writeFieldBegin(ID_FIELD_DESC);
8758
      oprot.writeI64(this.id);
8759
      oprot.writeFieldEnd();
8760
      if (this.params != null) {
8761
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8762
        {
3430 rajveer 8763
          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 8764
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8765
          {
5864 rajveer 8766
            oprot.writeString(_iter40.getKey());
8767
            oprot.writeString(_iter40.getValue());
352 ashish 8768
          }
8769
          oprot.writeMapEnd();
8770
        }
8771
        oprot.writeFieldEnd();
8772
      }
8773
      oprot.writeFieldStop();
8774
      oprot.writeStructEnd();
8775
    }
8776
 
8777
    @Override
8778
    public String toString() {
8779
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8780
      boolean first = true;
8781
 
8782
      sb.append("id:");
8783
      sb.append(this.id);
8784
      first = false;
8785
      if (!first) sb.append(", ");
8786
      sb.append("params:");
8787
      if (this.params == null) {
8788
        sb.append("null");
8789
      } else {
8790
        sb.append(this.params);
8791
      }
8792
      first = false;
8793
      sb.append(")");
8794
      return sb.toString();
8795
    }
8796
 
3430 rajveer 8797
    public void validate() throws org.apache.thrift.TException {
352 ashish 8798
      // check for required fields
8799
    }
8800
 
3430 rajveer 8801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8802
      try {
8803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8804
      } catch (org.apache.thrift.TException te) {
8805
        throw new java.io.IOException(te);
8806
      }
8807
    }
8808
 
8809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8810
      try {
8811
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8812
        __isset_bit_vector = new BitSet(1);
8813
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8814
      } catch (org.apache.thrift.TException te) {
8815
        throw new java.io.IOException(te);
8816
      }
8817
    }
8818
 
352 ashish 8819
  }
8820
 
3430 rajveer 8821
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8822
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8823
 
3430 rajveer 8824
    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);
8825
    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 8826
 
3430 rajveer 8827
    private Message success; // required
8828
    private HelperServiceException se; // required
352 ashish 8829
 
8830
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8831
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8832
      SUCCESS((short)0, "success"),
8833
      SE((short)1, "se");
8834
 
8835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8836
 
8837
      static {
8838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8839
          byName.put(field.getFieldName(), field);
8840
        }
8841
      }
8842
 
8843
      /**
8844
       * Find the _Fields constant that matches fieldId, or null if its not found.
8845
       */
8846
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8847
        switch(fieldId) {
8848
          case 0: // SUCCESS
8849
            return SUCCESS;
8850
          case 1: // SE
8851
            return SE;
8852
          default:
8853
            return null;
8854
        }
352 ashish 8855
      }
8856
 
8857
      /**
8858
       * Find the _Fields constant that matches fieldId, throwing an exception
8859
       * if it is not found.
8860
       */
8861
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8862
        _Fields fields = findByThriftId(fieldId);
8863
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8864
        return fields;
8865
      }
8866
 
8867
      /**
8868
       * Find the _Fields constant that matches name, or null if its not found.
8869
       */
8870
      public static _Fields findByName(String name) {
8871
        return byName.get(name);
8872
      }
8873
 
8874
      private final short _thriftId;
8875
      private final String _fieldName;
8876
 
8877
      _Fields(short thriftId, String fieldName) {
8878
        _thriftId = thriftId;
8879
        _fieldName = fieldName;
8880
      }
8881
 
8882
      public short getThriftFieldId() {
8883
        return _thriftId;
8884
      }
8885
 
8886
      public String getFieldName() {
8887
        return _fieldName;
8888
      }
8889
    }
8890
 
8891
    // isset id assignments
8892
 
3430 rajveer 8893
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8894
    static {
3430 rajveer 8895
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8896
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8897
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8898
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8899
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8900
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8901
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8902
    }
8903
 
8904
    public getSubstitutedMessage_result() {
8905
    }
8906
 
8907
    public getSubstitutedMessage_result(
8908
      Message success,
8909
      HelperServiceException se)
8910
    {
8911
      this();
8912
      this.success = success;
8913
      this.se = se;
8914
    }
8915
 
8916
    /**
8917
     * Performs a deep copy on <i>other</i>.
8918
     */
8919
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8920
      if (other.isSetSuccess()) {
8921
        this.success = new Message(other.success);
8922
      }
8923
      if (other.isSetSe()) {
8924
        this.se = new HelperServiceException(other.se);
8925
      }
8926
    }
8927
 
8928
    public getSubstitutedMessage_result deepCopy() {
8929
      return new getSubstitutedMessage_result(this);
8930
    }
8931
 
3430 rajveer 8932
    @Override
8933
    public void clear() {
8934
      this.success = null;
8935
      this.se = null;
352 ashish 8936
    }
8937
 
8938
    public Message getSuccess() {
8939
      return this.success;
8940
    }
8941
 
3430 rajveer 8942
    public void setSuccess(Message success) {
352 ashish 8943
      this.success = success;
8944
    }
8945
 
8946
    public void unsetSuccess() {
8947
      this.success = null;
8948
    }
8949
 
3430 rajveer 8950
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8951
    public boolean isSetSuccess() {
8952
      return this.success != null;
8953
    }
8954
 
8955
    public void setSuccessIsSet(boolean value) {
8956
      if (!value) {
8957
        this.success = null;
8958
      }
8959
    }
8960
 
8961
    public HelperServiceException getSe() {
8962
      return this.se;
8963
    }
8964
 
3430 rajveer 8965
    public void setSe(HelperServiceException se) {
352 ashish 8966
      this.se = se;
8967
    }
8968
 
8969
    public void unsetSe() {
8970
      this.se = null;
8971
    }
8972
 
3430 rajveer 8973
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8974
    public boolean isSetSe() {
8975
      return this.se != null;
8976
    }
8977
 
8978
    public void setSeIsSet(boolean value) {
8979
      if (!value) {
8980
        this.se = null;
8981
      }
8982
    }
8983
 
8984
    public void setFieldValue(_Fields field, Object value) {
8985
      switch (field) {
8986
      case SUCCESS:
8987
        if (value == null) {
8988
          unsetSuccess();
8989
        } else {
8990
          setSuccess((Message)value);
8991
        }
8992
        break;
8993
 
8994
      case SE:
8995
        if (value == null) {
8996
          unsetSe();
8997
        } else {
8998
          setSe((HelperServiceException)value);
8999
        }
9000
        break;
9001
 
9002
      }
9003
    }
9004
 
9005
    public Object getFieldValue(_Fields field) {
9006
      switch (field) {
9007
      case SUCCESS:
9008
        return getSuccess();
9009
 
9010
      case SE:
9011
        return getSe();
9012
 
9013
      }
9014
      throw new IllegalStateException();
9015
    }
9016
 
3430 rajveer 9017
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9018
    public boolean isSet(_Fields field) {
9019
      if (field == null) {
9020
        throw new IllegalArgumentException();
9021
      }
352 ashish 9022
 
9023
      switch (field) {
9024
      case SUCCESS:
9025
        return isSetSuccess();
9026
      case SE:
9027
        return isSetSe();
9028
      }
9029
      throw new IllegalStateException();
9030
    }
9031
 
9032
    @Override
9033
    public boolean equals(Object that) {
9034
      if (that == null)
9035
        return false;
9036
      if (that instanceof getSubstitutedMessage_result)
9037
        return this.equals((getSubstitutedMessage_result)that);
9038
      return false;
9039
    }
9040
 
9041
    public boolean equals(getSubstitutedMessage_result that) {
9042
      if (that == null)
9043
        return false;
9044
 
9045
      boolean this_present_success = true && this.isSetSuccess();
9046
      boolean that_present_success = true && that.isSetSuccess();
9047
      if (this_present_success || that_present_success) {
9048
        if (!(this_present_success && that_present_success))
9049
          return false;
9050
        if (!this.success.equals(that.success))
9051
          return false;
9052
      }
9053
 
9054
      boolean this_present_se = true && this.isSetSe();
9055
      boolean that_present_se = true && that.isSetSe();
9056
      if (this_present_se || that_present_se) {
9057
        if (!(this_present_se && that_present_se))
9058
          return false;
9059
        if (!this.se.equals(that.se))
9060
          return false;
9061
      }
9062
 
9063
      return true;
9064
    }
9065
 
9066
    @Override
9067
    public int hashCode() {
9068
      return 0;
9069
    }
9070
 
9071
    public int compareTo(getSubstitutedMessage_result other) {
9072
      if (!getClass().equals(other.getClass())) {
9073
        return getClass().getName().compareTo(other.getClass().getName());
9074
      }
9075
 
9076
      int lastComparison = 0;
9077
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9078
 
3430 rajveer 9079
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9080
      if (lastComparison != 0) {
9081
        return lastComparison;
9082
      }
3430 rajveer 9083
      if (isSetSuccess()) {
9084
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9085
        if (lastComparison != 0) {
9086
          return lastComparison;
9087
        }
352 ashish 9088
      }
3430 rajveer 9089
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9090
      if (lastComparison != 0) {
9091
        return lastComparison;
9092
      }
3430 rajveer 9093
      if (isSetSe()) {
9094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9095
        if (lastComparison != 0) {
9096
          return lastComparison;
9097
        }
352 ashish 9098
      }
9099
      return 0;
9100
    }
9101
 
3430 rajveer 9102
    public _Fields fieldForId(int fieldId) {
9103
      return _Fields.findByThriftId(fieldId);
9104
    }
9105
 
9106
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9107
      org.apache.thrift.protocol.TField field;
352 ashish 9108
      iprot.readStructBegin();
9109
      while (true)
9110
      {
9111
        field = iprot.readFieldBegin();
3430 rajveer 9112
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9113
          break;
9114
        }
3430 rajveer 9115
        switch (field.id) {
9116
          case 0: // SUCCESS
9117
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9118
              this.success = new Message();
9119
              this.success.read(iprot);
9120
            } else { 
9121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9122
            }
9123
            break;
9124
          case 1: // SE
9125
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9126
              this.se = new HelperServiceException();
9127
              this.se.read(iprot);
9128
            } else { 
9129
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9130
            }
9131
            break;
9132
          default:
9133
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9134
        }
3430 rajveer 9135
        iprot.readFieldEnd();
352 ashish 9136
      }
9137
      iprot.readStructEnd();
9138
      validate();
9139
    }
9140
 
3430 rajveer 9141
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9142
      oprot.writeStructBegin(STRUCT_DESC);
9143
 
9144
      if (this.isSetSuccess()) {
9145
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9146
        this.success.write(oprot);
9147
        oprot.writeFieldEnd();
9148
      } else if (this.isSetSe()) {
9149
        oprot.writeFieldBegin(SE_FIELD_DESC);
9150
        this.se.write(oprot);
9151
        oprot.writeFieldEnd();
9152
      }
9153
      oprot.writeFieldStop();
9154
      oprot.writeStructEnd();
9155
    }
9156
 
9157
    @Override
9158
    public String toString() {
9159
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9160
      boolean first = true;
9161
 
9162
      sb.append("success:");
9163
      if (this.success == null) {
9164
        sb.append("null");
9165
      } else {
9166
        sb.append(this.success);
9167
      }
9168
      first = false;
9169
      if (!first) sb.append(", ");
9170
      sb.append("se:");
9171
      if (this.se == null) {
9172
        sb.append("null");
9173
      } else {
9174
        sb.append(this.se);
9175
      }
9176
      first = false;
9177
      sb.append(")");
9178
      return sb.toString();
9179
    }
9180
 
3430 rajveer 9181
    public void validate() throws org.apache.thrift.TException {
352 ashish 9182
      // check for required fields
9183
    }
9184
 
3430 rajveer 9185
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9186
      try {
9187
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9188
      } catch (org.apache.thrift.TException te) {
9189
        throw new java.io.IOException(te);
9190
      }
9191
    }
9192
 
9193
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9194
      try {
9195
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9196
      } catch (org.apache.thrift.TException te) {
9197
        throw new java.io.IOException(te);
9198
      }
9199
    }
9200
 
352 ashish 9201
  }
9202
 
3430 rajveer 9203
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9204
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9205
 
3430 rajveer 9206
    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);
9207
    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);
9208
    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 9209
 
3430 rajveer 9210
    private String username; // required
9211
    private String password; // required
9212
    private long warehouseId; // required
495 rajveer 9213
 
9214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9216
      USERNAME((short)1, "username"),
9217
      PASSWORD((short)2, "password"),
9218
      WAREHOUSE_ID((short)3, "warehouseId");
9219
 
9220
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9221
 
9222
      static {
9223
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9224
          byName.put(field.getFieldName(), field);
9225
        }
9226
      }
9227
 
9228
      /**
9229
       * Find the _Fields constant that matches fieldId, or null if its not found.
9230
       */
9231
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9232
        switch(fieldId) {
9233
          case 1: // USERNAME
9234
            return USERNAME;
9235
          case 2: // PASSWORD
9236
            return PASSWORD;
9237
          case 3: // WAREHOUSE_ID
9238
            return WAREHOUSE_ID;
9239
          default:
9240
            return null;
9241
        }
495 rajveer 9242
      }
9243
 
9244
      /**
9245
       * Find the _Fields constant that matches fieldId, throwing an exception
9246
       * if it is not found.
9247
       */
9248
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9249
        _Fields fields = findByThriftId(fieldId);
9250
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9251
        return fields;
9252
      }
9253
 
9254
      /**
9255
       * Find the _Fields constant that matches name, or null if its not found.
9256
       */
9257
      public static _Fields findByName(String name) {
9258
        return byName.get(name);
9259
      }
9260
 
9261
      private final short _thriftId;
9262
      private final String _fieldName;
9263
 
9264
      _Fields(short thriftId, String fieldName) {
9265
        _thriftId = thriftId;
9266
        _fieldName = fieldName;
9267
      }
9268
 
9269
      public short getThriftFieldId() {
9270
        return _thriftId;
9271
      }
9272
 
9273
      public String getFieldName() {
9274
        return _fieldName;
9275
      }
9276
    }
9277
 
9278
    // isset id assignments
9279
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9280
    private BitSet __isset_bit_vector = new BitSet(1);
9281
 
3430 rajveer 9282
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9283
    static {
3430 rajveer 9284
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9285
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9287
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9288
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9289
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9291
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9292
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9293
    }
9294
 
9295
    public addUser_args() {
9296
    }
9297
 
9298
    public addUser_args(
9299
      String username,
9300
      String password,
9301
      long warehouseId)
9302
    {
9303
      this();
9304
      this.username = username;
9305
      this.password = password;
9306
      this.warehouseId = warehouseId;
9307
      setWarehouseIdIsSet(true);
9308
    }
9309
 
9310
    /**
9311
     * Performs a deep copy on <i>other</i>.
9312
     */
9313
    public addUser_args(addUser_args other) {
9314
      __isset_bit_vector.clear();
9315
      __isset_bit_vector.or(other.__isset_bit_vector);
9316
      if (other.isSetUsername()) {
9317
        this.username = other.username;
9318
      }
9319
      if (other.isSetPassword()) {
9320
        this.password = other.password;
9321
      }
9322
      this.warehouseId = other.warehouseId;
9323
    }
9324
 
9325
    public addUser_args deepCopy() {
9326
      return new addUser_args(this);
9327
    }
9328
 
3430 rajveer 9329
    @Override
9330
    public void clear() {
9331
      this.username = null;
9332
      this.password = null;
9333
      setWarehouseIdIsSet(false);
9334
      this.warehouseId = 0;
495 rajveer 9335
    }
9336
 
9337
    public String getUsername() {
9338
      return this.username;
9339
    }
9340
 
3430 rajveer 9341
    public void setUsername(String username) {
495 rajveer 9342
      this.username = username;
9343
    }
9344
 
9345
    public void unsetUsername() {
9346
      this.username = null;
9347
    }
9348
 
3430 rajveer 9349
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9350
    public boolean isSetUsername() {
9351
      return this.username != null;
9352
    }
9353
 
9354
    public void setUsernameIsSet(boolean value) {
9355
      if (!value) {
9356
        this.username = null;
9357
      }
9358
    }
9359
 
9360
    public String getPassword() {
9361
      return this.password;
9362
    }
9363
 
3430 rajveer 9364
    public void setPassword(String password) {
495 rajveer 9365
      this.password = password;
9366
    }
9367
 
9368
    public void unsetPassword() {
9369
      this.password = null;
9370
    }
9371
 
3430 rajveer 9372
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9373
    public boolean isSetPassword() {
9374
      return this.password != null;
9375
    }
9376
 
9377
    public void setPasswordIsSet(boolean value) {
9378
      if (!value) {
9379
        this.password = null;
9380
      }
9381
    }
9382
 
9383
    public long getWarehouseId() {
9384
      return this.warehouseId;
9385
    }
9386
 
3430 rajveer 9387
    public void setWarehouseId(long warehouseId) {
495 rajveer 9388
      this.warehouseId = warehouseId;
9389
      setWarehouseIdIsSet(true);
9390
    }
9391
 
9392
    public void unsetWarehouseId() {
9393
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9394
    }
9395
 
3430 rajveer 9396
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9397
    public boolean isSetWarehouseId() {
9398
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9399
    }
9400
 
9401
    public void setWarehouseIdIsSet(boolean value) {
9402
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9403
    }
9404
 
9405
    public void setFieldValue(_Fields field, Object value) {
9406
      switch (field) {
9407
      case USERNAME:
9408
        if (value == null) {
9409
          unsetUsername();
9410
        } else {
9411
          setUsername((String)value);
9412
        }
9413
        break;
9414
 
9415
      case PASSWORD:
9416
        if (value == null) {
9417
          unsetPassword();
9418
        } else {
9419
          setPassword((String)value);
9420
        }
9421
        break;
9422
 
9423
      case WAREHOUSE_ID:
9424
        if (value == null) {
9425
          unsetWarehouseId();
9426
        } else {
9427
          setWarehouseId((Long)value);
9428
        }
9429
        break;
9430
 
9431
      }
9432
    }
9433
 
9434
    public Object getFieldValue(_Fields field) {
9435
      switch (field) {
9436
      case USERNAME:
9437
        return getUsername();
9438
 
9439
      case PASSWORD:
9440
        return getPassword();
9441
 
9442
      case WAREHOUSE_ID:
3430 rajveer 9443
        return Long.valueOf(getWarehouseId());
495 rajveer 9444
 
9445
      }
9446
      throw new IllegalStateException();
9447
    }
9448
 
3430 rajveer 9449
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9450
    public boolean isSet(_Fields field) {
9451
      if (field == null) {
9452
        throw new IllegalArgumentException();
9453
      }
495 rajveer 9454
 
9455
      switch (field) {
9456
      case USERNAME:
9457
        return isSetUsername();
9458
      case PASSWORD:
9459
        return isSetPassword();
9460
      case WAREHOUSE_ID:
9461
        return isSetWarehouseId();
9462
      }
9463
      throw new IllegalStateException();
9464
    }
9465
 
9466
    @Override
9467
    public boolean equals(Object that) {
9468
      if (that == null)
9469
        return false;
9470
      if (that instanceof addUser_args)
9471
        return this.equals((addUser_args)that);
9472
      return false;
9473
    }
9474
 
9475
    public boolean equals(addUser_args that) {
9476
      if (that == null)
9477
        return false;
9478
 
9479
      boolean this_present_username = true && this.isSetUsername();
9480
      boolean that_present_username = true && that.isSetUsername();
9481
      if (this_present_username || that_present_username) {
9482
        if (!(this_present_username && that_present_username))
9483
          return false;
9484
        if (!this.username.equals(that.username))
9485
          return false;
9486
      }
9487
 
9488
      boolean this_present_password = true && this.isSetPassword();
9489
      boolean that_present_password = true && that.isSetPassword();
9490
      if (this_present_password || that_present_password) {
9491
        if (!(this_present_password && that_present_password))
9492
          return false;
9493
        if (!this.password.equals(that.password))
9494
          return false;
9495
      }
9496
 
9497
      boolean this_present_warehouseId = true;
9498
      boolean that_present_warehouseId = true;
9499
      if (this_present_warehouseId || that_present_warehouseId) {
9500
        if (!(this_present_warehouseId && that_present_warehouseId))
9501
          return false;
9502
        if (this.warehouseId != that.warehouseId)
9503
          return false;
9504
      }
9505
 
9506
      return true;
9507
    }
9508
 
9509
    @Override
9510
    public int hashCode() {
9511
      return 0;
9512
    }
9513
 
9514
    public int compareTo(addUser_args other) {
9515
      if (!getClass().equals(other.getClass())) {
9516
        return getClass().getName().compareTo(other.getClass().getName());
9517
      }
9518
 
9519
      int lastComparison = 0;
9520
      addUser_args typedOther = (addUser_args)other;
9521
 
3430 rajveer 9522
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9523
      if (lastComparison != 0) {
9524
        return lastComparison;
9525
      }
3430 rajveer 9526
      if (isSetUsername()) {
9527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9528
        if (lastComparison != 0) {
9529
          return lastComparison;
9530
        }
495 rajveer 9531
      }
3430 rajveer 9532
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9533
      if (lastComparison != 0) {
9534
        return lastComparison;
9535
      }
3430 rajveer 9536
      if (isSetPassword()) {
9537
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9538
        if (lastComparison != 0) {
9539
          return lastComparison;
9540
        }
495 rajveer 9541
      }
3430 rajveer 9542
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9543
      if (lastComparison != 0) {
9544
        return lastComparison;
9545
      }
3430 rajveer 9546
      if (isSetWarehouseId()) {
9547
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9548
        if (lastComparison != 0) {
9549
          return lastComparison;
9550
        }
495 rajveer 9551
      }
9552
      return 0;
9553
    }
9554
 
3430 rajveer 9555
    public _Fields fieldForId(int fieldId) {
9556
      return _Fields.findByThriftId(fieldId);
9557
    }
9558
 
9559
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9560
      org.apache.thrift.protocol.TField field;
495 rajveer 9561
      iprot.readStructBegin();
9562
      while (true)
9563
      {
9564
        field = iprot.readFieldBegin();
3430 rajveer 9565
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9566
          break;
9567
        }
3430 rajveer 9568
        switch (field.id) {
9569
          case 1: // USERNAME
9570
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9571
              this.username = iprot.readString();
9572
            } else { 
9573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9574
            }
9575
            break;
9576
          case 2: // PASSWORD
9577
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9578
              this.password = iprot.readString();
9579
            } else { 
9580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9581
            }
9582
            break;
9583
          case 3: // WAREHOUSE_ID
9584
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9585
              this.warehouseId = iprot.readI64();
9586
              setWarehouseIdIsSet(true);
9587
            } else { 
9588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9589
            }
9590
            break;
9591
          default:
9592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9593
        }
3430 rajveer 9594
        iprot.readFieldEnd();
495 rajveer 9595
      }
9596
      iprot.readStructEnd();
9597
      validate();
9598
    }
9599
 
3430 rajveer 9600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9601
      validate();
9602
 
9603
      oprot.writeStructBegin(STRUCT_DESC);
9604
      if (this.username != null) {
9605
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9606
        oprot.writeString(this.username);
9607
        oprot.writeFieldEnd();
9608
      }
9609
      if (this.password != null) {
9610
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9611
        oprot.writeString(this.password);
9612
        oprot.writeFieldEnd();
9613
      }
9614
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9615
      oprot.writeI64(this.warehouseId);
9616
      oprot.writeFieldEnd();
9617
      oprot.writeFieldStop();
9618
      oprot.writeStructEnd();
9619
    }
9620
 
9621
    @Override
9622
    public String toString() {
9623
      StringBuilder sb = new StringBuilder("addUser_args(");
9624
      boolean first = true;
9625
 
9626
      sb.append("username:");
9627
      if (this.username == null) {
9628
        sb.append("null");
9629
      } else {
9630
        sb.append(this.username);
9631
      }
9632
      first = false;
9633
      if (!first) sb.append(", ");
9634
      sb.append("password:");
9635
      if (this.password == null) {
9636
        sb.append("null");
9637
      } else {
9638
        sb.append(this.password);
9639
      }
9640
      first = false;
9641
      if (!first) sb.append(", ");
9642
      sb.append("warehouseId:");
9643
      sb.append(this.warehouseId);
9644
      first = false;
9645
      sb.append(")");
9646
      return sb.toString();
9647
    }
9648
 
3430 rajveer 9649
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9650
      // check for required fields
9651
    }
9652
 
3430 rajveer 9653
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9654
      try {
9655
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9656
      } catch (org.apache.thrift.TException te) {
9657
        throw new java.io.IOException(te);
9658
      }
9659
    }
9660
 
9661
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9662
      try {
9663
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9664
        __isset_bit_vector = new BitSet(1);
9665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9666
      } catch (org.apache.thrift.TException te) {
9667
        throw new java.io.IOException(te);
9668
      }
9669
    }
9670
 
495 rajveer 9671
  }
9672
 
3430 rajveer 9673
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9675
 
3430 rajveer 9676
    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);
9677
    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 9678
 
3430 rajveer 9679
    private boolean success; // required
9680
    private HelperServiceException se; // required
495 rajveer 9681
 
9682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9684
      SUCCESS((short)0, "success"),
9685
      SE((short)1, "se");
9686
 
9687
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9688
 
9689
      static {
9690
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9691
          byName.put(field.getFieldName(), field);
9692
        }
9693
      }
9694
 
9695
      /**
9696
       * Find the _Fields constant that matches fieldId, or null if its not found.
9697
       */
9698
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9699
        switch(fieldId) {
9700
          case 0: // SUCCESS
9701
            return SUCCESS;
9702
          case 1: // SE
9703
            return SE;
9704
          default:
9705
            return null;
9706
        }
495 rajveer 9707
      }
9708
 
9709
      /**
9710
       * Find the _Fields constant that matches fieldId, throwing an exception
9711
       * if it is not found.
9712
       */
9713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9714
        _Fields fields = findByThriftId(fieldId);
9715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9716
        return fields;
9717
      }
9718
 
9719
      /**
9720
       * Find the _Fields constant that matches name, or null if its not found.
9721
       */
9722
      public static _Fields findByName(String name) {
9723
        return byName.get(name);
9724
      }
9725
 
9726
      private final short _thriftId;
9727
      private final String _fieldName;
9728
 
9729
      _Fields(short thriftId, String fieldName) {
9730
        _thriftId = thriftId;
9731
        _fieldName = fieldName;
9732
      }
9733
 
9734
      public short getThriftFieldId() {
9735
        return _thriftId;
9736
      }
9737
 
9738
      public String getFieldName() {
9739
        return _fieldName;
9740
      }
9741
    }
9742
 
9743
    // isset id assignments
9744
    private static final int __SUCCESS_ISSET_ID = 0;
9745
    private BitSet __isset_bit_vector = new BitSet(1);
9746
 
3430 rajveer 9747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9748
    static {
3430 rajveer 9749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9750
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9751
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9752
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9753
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9754
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9755
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9756
    }
9757
 
9758
    public addUser_result() {
9759
    }
9760
 
9761
    public addUser_result(
9762
      boolean success,
9763
      HelperServiceException se)
9764
    {
9765
      this();
9766
      this.success = success;
9767
      setSuccessIsSet(true);
9768
      this.se = se;
9769
    }
9770
 
9771
    /**
9772
     * Performs a deep copy on <i>other</i>.
9773
     */
9774
    public addUser_result(addUser_result other) {
9775
      __isset_bit_vector.clear();
9776
      __isset_bit_vector.or(other.__isset_bit_vector);
9777
      this.success = other.success;
9778
      if (other.isSetSe()) {
9779
        this.se = new HelperServiceException(other.se);
9780
      }
9781
    }
9782
 
9783
    public addUser_result deepCopy() {
9784
      return new addUser_result(this);
9785
    }
9786
 
3430 rajveer 9787
    @Override
9788
    public void clear() {
9789
      setSuccessIsSet(false);
9790
      this.success = false;
9791
      this.se = null;
495 rajveer 9792
    }
9793
 
9794
    public boolean isSuccess() {
9795
      return this.success;
9796
    }
9797
 
3430 rajveer 9798
    public void setSuccess(boolean success) {
495 rajveer 9799
      this.success = success;
9800
      setSuccessIsSet(true);
9801
    }
9802
 
9803
    public void unsetSuccess() {
9804
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9805
    }
9806
 
3430 rajveer 9807
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9808
    public boolean isSetSuccess() {
9809
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9810
    }
9811
 
9812
    public void setSuccessIsSet(boolean value) {
9813
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9814
    }
9815
 
9816
    public HelperServiceException getSe() {
9817
      return this.se;
9818
    }
9819
 
3430 rajveer 9820
    public void setSe(HelperServiceException se) {
495 rajveer 9821
      this.se = se;
9822
    }
9823
 
9824
    public void unsetSe() {
9825
      this.se = null;
9826
    }
9827
 
3430 rajveer 9828
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9829
    public boolean isSetSe() {
9830
      return this.se != null;
9831
    }
9832
 
9833
    public void setSeIsSet(boolean value) {
9834
      if (!value) {
9835
        this.se = null;
9836
      }
9837
    }
9838
 
9839
    public void setFieldValue(_Fields field, Object value) {
9840
      switch (field) {
9841
      case SUCCESS:
9842
        if (value == null) {
9843
          unsetSuccess();
9844
        } else {
9845
          setSuccess((Boolean)value);
9846
        }
9847
        break;
9848
 
9849
      case SE:
9850
        if (value == null) {
9851
          unsetSe();
9852
        } else {
9853
          setSe((HelperServiceException)value);
9854
        }
9855
        break;
9856
 
9857
      }
9858
    }
9859
 
9860
    public Object getFieldValue(_Fields field) {
9861
      switch (field) {
9862
      case SUCCESS:
3430 rajveer 9863
        return Boolean.valueOf(isSuccess());
495 rajveer 9864
 
9865
      case SE:
9866
        return getSe();
9867
 
9868
      }
9869
      throw new IllegalStateException();
9870
    }
9871
 
3430 rajveer 9872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9873
    public boolean isSet(_Fields field) {
9874
      if (field == null) {
9875
        throw new IllegalArgumentException();
9876
      }
495 rajveer 9877
 
9878
      switch (field) {
9879
      case SUCCESS:
9880
        return isSetSuccess();
9881
      case SE:
9882
        return isSetSe();
9883
      }
9884
      throw new IllegalStateException();
9885
    }
9886
 
9887
    @Override
9888
    public boolean equals(Object that) {
9889
      if (that == null)
9890
        return false;
9891
      if (that instanceof addUser_result)
9892
        return this.equals((addUser_result)that);
9893
      return false;
9894
    }
9895
 
9896
    public boolean equals(addUser_result that) {
9897
      if (that == null)
9898
        return false;
9899
 
9900
      boolean this_present_success = true;
9901
      boolean that_present_success = true;
9902
      if (this_present_success || that_present_success) {
9903
        if (!(this_present_success && that_present_success))
9904
          return false;
9905
        if (this.success != that.success)
9906
          return false;
9907
      }
9908
 
9909
      boolean this_present_se = true && this.isSetSe();
9910
      boolean that_present_se = true && that.isSetSe();
9911
      if (this_present_se || that_present_se) {
9912
        if (!(this_present_se && that_present_se))
9913
          return false;
9914
        if (!this.se.equals(that.se))
9915
          return false;
9916
      }
9917
 
9918
      return true;
9919
    }
9920
 
9921
    @Override
9922
    public int hashCode() {
9923
      return 0;
9924
    }
9925
 
9926
    public int compareTo(addUser_result other) {
9927
      if (!getClass().equals(other.getClass())) {
9928
        return getClass().getName().compareTo(other.getClass().getName());
9929
      }
9930
 
9931
      int lastComparison = 0;
9932
      addUser_result typedOther = (addUser_result)other;
9933
 
3430 rajveer 9934
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 9935
      if (lastComparison != 0) {
9936
        return lastComparison;
9937
      }
3430 rajveer 9938
      if (isSetSuccess()) {
9939
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9940
        if (lastComparison != 0) {
9941
          return lastComparison;
9942
        }
495 rajveer 9943
      }
3430 rajveer 9944
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 9945
      if (lastComparison != 0) {
9946
        return lastComparison;
9947
      }
3430 rajveer 9948
      if (isSetSe()) {
9949
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9950
        if (lastComparison != 0) {
9951
          return lastComparison;
9952
        }
495 rajveer 9953
      }
9954
      return 0;
9955
    }
9956
 
3430 rajveer 9957
    public _Fields fieldForId(int fieldId) {
9958
      return _Fields.findByThriftId(fieldId);
9959
    }
9960
 
9961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9962
      org.apache.thrift.protocol.TField field;
495 rajveer 9963
      iprot.readStructBegin();
9964
      while (true)
9965
      {
9966
        field = iprot.readFieldBegin();
3430 rajveer 9967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9968
          break;
9969
        }
3430 rajveer 9970
        switch (field.id) {
9971
          case 0: // SUCCESS
9972
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
9973
              this.success = iprot.readBool();
9974
              setSuccessIsSet(true);
9975
            } else { 
9976
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9977
            }
9978
            break;
9979
          case 1: // SE
9980
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9981
              this.se = new HelperServiceException();
9982
              this.se.read(iprot);
9983
            } else { 
9984
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9985
            }
9986
            break;
9987
          default:
9988
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9989
        }
3430 rajveer 9990
        iprot.readFieldEnd();
495 rajveer 9991
      }
9992
      iprot.readStructEnd();
9993
      validate();
9994
    }
9995
 
3430 rajveer 9996
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9997
      oprot.writeStructBegin(STRUCT_DESC);
9998
 
9999
      if (this.isSetSuccess()) {
10000
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10001
        oprot.writeBool(this.success);
10002
        oprot.writeFieldEnd();
10003
      } else if (this.isSetSe()) {
10004
        oprot.writeFieldBegin(SE_FIELD_DESC);
10005
        this.se.write(oprot);
10006
        oprot.writeFieldEnd();
10007
      }
10008
      oprot.writeFieldStop();
10009
      oprot.writeStructEnd();
10010
    }
10011
 
10012
    @Override
10013
    public String toString() {
10014
      StringBuilder sb = new StringBuilder("addUser_result(");
10015
      boolean first = true;
10016
 
10017
      sb.append("success:");
10018
      sb.append(this.success);
10019
      first = false;
10020
      if (!first) sb.append(", ");
10021
      sb.append("se:");
10022
      if (this.se == null) {
10023
        sb.append("null");
10024
      } else {
10025
        sb.append(this.se);
10026
      }
10027
      first = false;
10028
      sb.append(")");
10029
      return sb.toString();
10030
    }
10031
 
3430 rajveer 10032
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10033
      // check for required fields
10034
    }
10035
 
3430 rajveer 10036
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10037
      try {
10038
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10039
      } catch (org.apache.thrift.TException te) {
10040
        throw new java.io.IOException(te);
10041
      }
10042
    }
10043
 
10044
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10045
      try {
10046
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10047
      } catch (org.apache.thrift.TException te) {
10048
        throw new java.io.IOException(te);
10049
      }
10050
    }
10051
 
495 rajveer 10052
  }
10053
 
3430 rajveer 10054
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10055
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 10056
 
3430 rajveer 10057
    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 10058
 
3430 rajveer 10059
    private String username; // required
495 rajveer 10060
 
10061
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10062
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10063
      USERNAME((short)1, "username");
10064
 
10065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10066
 
10067
      static {
10068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10069
          byName.put(field.getFieldName(), field);
10070
        }
10071
      }
10072
 
10073
      /**
10074
       * Find the _Fields constant that matches fieldId, or null if its not found.
10075
       */
10076
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10077
        switch(fieldId) {
10078
          case 1: // USERNAME
10079
            return USERNAME;
10080
          default:
10081
            return null;
10082
        }
495 rajveer 10083
      }
10084
 
10085
      /**
10086
       * Find the _Fields constant that matches fieldId, throwing an exception
10087
       * if it is not found.
10088
       */
10089
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10090
        _Fields fields = findByThriftId(fieldId);
10091
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10092
        return fields;
10093
      }
10094
 
10095
      /**
10096
       * Find the _Fields constant that matches name, or null if its not found.
10097
       */
10098
      public static _Fields findByName(String name) {
10099
        return byName.get(name);
10100
      }
10101
 
10102
      private final short _thriftId;
10103
      private final String _fieldName;
10104
 
10105
      _Fields(short thriftId, String fieldName) {
10106
        _thriftId = thriftId;
10107
        _fieldName = fieldName;
10108
      }
10109
 
10110
      public short getThriftFieldId() {
10111
        return _thriftId;
10112
      }
10113
 
10114
      public String getFieldName() {
10115
        return _fieldName;
10116
      }
10117
    }
10118
 
10119
    // isset id assignments
10120
 
3430 rajveer 10121
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10122
    static {
3430 rajveer 10123
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10124
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10125
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10126
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10127
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10128
    }
10129
 
10130
    public deleteUser_args() {
10131
    }
10132
 
10133
    public deleteUser_args(
10134
      String username)
10135
    {
10136
      this();
10137
      this.username = username;
10138
    }
10139
 
10140
    /**
10141
     * Performs a deep copy on <i>other</i>.
10142
     */
10143
    public deleteUser_args(deleteUser_args other) {
10144
      if (other.isSetUsername()) {
10145
        this.username = other.username;
10146
      }
10147
    }
10148
 
10149
    public deleteUser_args deepCopy() {
10150
      return new deleteUser_args(this);
10151
    }
10152
 
3430 rajveer 10153
    @Override
10154
    public void clear() {
10155
      this.username = null;
495 rajveer 10156
    }
10157
 
10158
    public String getUsername() {
10159
      return this.username;
10160
    }
10161
 
3430 rajveer 10162
    public void setUsername(String username) {
495 rajveer 10163
      this.username = username;
10164
    }
10165
 
10166
    public void unsetUsername() {
10167
      this.username = null;
10168
    }
10169
 
3430 rajveer 10170
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10171
    public boolean isSetUsername() {
10172
      return this.username != null;
10173
    }
10174
 
10175
    public void setUsernameIsSet(boolean value) {
10176
      if (!value) {
10177
        this.username = null;
10178
      }
10179
    }
10180
 
10181
    public void setFieldValue(_Fields field, Object value) {
10182
      switch (field) {
10183
      case USERNAME:
10184
        if (value == null) {
10185
          unsetUsername();
10186
        } else {
10187
          setUsername((String)value);
10188
        }
10189
        break;
10190
 
10191
      }
10192
    }
10193
 
10194
    public Object getFieldValue(_Fields field) {
10195
      switch (field) {
10196
      case USERNAME:
10197
        return getUsername();
10198
 
10199
      }
10200
      throw new IllegalStateException();
10201
    }
10202
 
3430 rajveer 10203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10204
    public boolean isSet(_Fields field) {
10205
      if (field == null) {
10206
        throw new IllegalArgumentException();
10207
      }
495 rajveer 10208
 
10209
      switch (field) {
10210
      case USERNAME:
10211
        return isSetUsername();
10212
      }
10213
      throw new IllegalStateException();
10214
    }
10215
 
10216
    @Override
10217
    public boolean equals(Object that) {
10218
      if (that == null)
10219
        return false;
10220
      if (that instanceof deleteUser_args)
10221
        return this.equals((deleteUser_args)that);
10222
      return false;
10223
    }
10224
 
10225
    public boolean equals(deleteUser_args that) {
10226
      if (that == null)
10227
        return false;
10228
 
10229
      boolean this_present_username = true && this.isSetUsername();
10230
      boolean that_present_username = true && that.isSetUsername();
10231
      if (this_present_username || that_present_username) {
10232
        if (!(this_present_username && that_present_username))
10233
          return false;
10234
        if (!this.username.equals(that.username))
10235
          return false;
10236
      }
10237
 
10238
      return true;
10239
    }
10240
 
10241
    @Override
10242
    public int hashCode() {
10243
      return 0;
10244
    }
10245
 
10246
    public int compareTo(deleteUser_args other) {
10247
      if (!getClass().equals(other.getClass())) {
10248
        return getClass().getName().compareTo(other.getClass().getName());
10249
      }
10250
 
10251
      int lastComparison = 0;
10252
      deleteUser_args typedOther = (deleteUser_args)other;
10253
 
3430 rajveer 10254
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10255
      if (lastComparison != 0) {
10256
        return lastComparison;
10257
      }
3430 rajveer 10258
      if (isSetUsername()) {
10259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10260
        if (lastComparison != 0) {
10261
          return lastComparison;
10262
        }
495 rajveer 10263
      }
10264
      return 0;
10265
    }
10266
 
3430 rajveer 10267
    public _Fields fieldForId(int fieldId) {
10268
      return _Fields.findByThriftId(fieldId);
10269
    }
10270
 
10271
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10272
      org.apache.thrift.protocol.TField field;
495 rajveer 10273
      iprot.readStructBegin();
10274
      while (true)
10275
      {
10276
        field = iprot.readFieldBegin();
3430 rajveer 10277
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10278
          break;
10279
        }
3430 rajveer 10280
        switch (field.id) {
10281
          case 1: // USERNAME
10282
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10283
              this.username = iprot.readString();
10284
            } else { 
10285
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10286
            }
10287
            break;
10288
          default:
10289
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10290
        }
3430 rajveer 10291
        iprot.readFieldEnd();
495 rajveer 10292
      }
10293
      iprot.readStructEnd();
10294
      validate();
10295
    }
10296
 
3430 rajveer 10297
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10298
      validate();
10299
 
10300
      oprot.writeStructBegin(STRUCT_DESC);
10301
      if (this.username != null) {
10302
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10303
        oprot.writeString(this.username);
10304
        oprot.writeFieldEnd();
10305
      }
10306
      oprot.writeFieldStop();
10307
      oprot.writeStructEnd();
10308
    }
10309
 
10310
    @Override
10311
    public String toString() {
10312
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10313
      boolean first = true;
10314
 
10315
      sb.append("username:");
10316
      if (this.username == null) {
10317
        sb.append("null");
10318
      } else {
10319
        sb.append(this.username);
10320
      }
10321
      first = false;
10322
      sb.append(")");
10323
      return sb.toString();
10324
    }
10325
 
3430 rajveer 10326
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10327
      // check for required fields
10328
    }
10329
 
3430 rajveer 10330
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10331
      try {
10332
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10333
      } catch (org.apache.thrift.TException te) {
10334
        throw new java.io.IOException(te);
10335
      }
10336
    }
10337
 
10338
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10339
      try {
10340
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10341
      } catch (org.apache.thrift.TException te) {
10342
        throw new java.io.IOException(te);
10343
      }
10344
    }
10345
 
495 rajveer 10346
  }
10347
 
3430 rajveer 10348
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10349
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10350
 
3430 rajveer 10351
    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);
10352
    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 10353
 
3430 rajveer 10354
    private boolean success; // required
10355
    private HelperServiceException se; // required
495 rajveer 10356
 
10357
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10358
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10359
      SUCCESS((short)0, "success"),
10360
      SE((short)1, "se");
10361
 
10362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10363
 
10364
      static {
10365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10366
          byName.put(field.getFieldName(), field);
10367
        }
10368
      }
10369
 
10370
      /**
10371
       * Find the _Fields constant that matches fieldId, or null if its not found.
10372
       */
10373
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10374
        switch(fieldId) {
10375
          case 0: // SUCCESS
10376
            return SUCCESS;
10377
          case 1: // SE
10378
            return SE;
10379
          default:
10380
            return null;
10381
        }
495 rajveer 10382
      }
10383
 
10384
      /**
10385
       * Find the _Fields constant that matches fieldId, throwing an exception
10386
       * if it is not found.
10387
       */
10388
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10389
        _Fields fields = findByThriftId(fieldId);
10390
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10391
        return fields;
10392
      }
10393
 
10394
      /**
10395
       * Find the _Fields constant that matches name, or null if its not found.
10396
       */
10397
      public static _Fields findByName(String name) {
10398
        return byName.get(name);
10399
      }
10400
 
10401
      private final short _thriftId;
10402
      private final String _fieldName;
10403
 
10404
      _Fields(short thriftId, String fieldName) {
10405
        _thriftId = thriftId;
10406
        _fieldName = fieldName;
10407
      }
10408
 
10409
      public short getThriftFieldId() {
10410
        return _thriftId;
10411
      }
10412
 
10413
      public String getFieldName() {
10414
        return _fieldName;
10415
      }
10416
    }
10417
 
10418
    // isset id assignments
10419
    private static final int __SUCCESS_ISSET_ID = 0;
10420
    private BitSet __isset_bit_vector = new BitSet(1);
10421
 
3430 rajveer 10422
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10423
    static {
3430 rajveer 10424
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10425
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10426
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10427
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10428
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10429
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10430
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10431
    }
10432
 
10433
    public deleteUser_result() {
10434
    }
10435
 
10436
    public deleteUser_result(
10437
      boolean success,
10438
      HelperServiceException se)
10439
    {
10440
      this();
10441
      this.success = success;
10442
      setSuccessIsSet(true);
10443
      this.se = se;
10444
    }
10445
 
10446
    /**
10447
     * Performs a deep copy on <i>other</i>.
10448
     */
10449
    public deleteUser_result(deleteUser_result other) {
10450
      __isset_bit_vector.clear();
10451
      __isset_bit_vector.or(other.__isset_bit_vector);
10452
      this.success = other.success;
10453
      if (other.isSetSe()) {
10454
        this.se = new HelperServiceException(other.se);
10455
      }
10456
    }
10457
 
10458
    public deleteUser_result deepCopy() {
10459
      return new deleteUser_result(this);
10460
    }
10461
 
3430 rajveer 10462
    @Override
10463
    public void clear() {
10464
      setSuccessIsSet(false);
10465
      this.success = false;
10466
      this.se = null;
495 rajveer 10467
    }
10468
 
10469
    public boolean isSuccess() {
10470
      return this.success;
10471
    }
10472
 
3430 rajveer 10473
    public void setSuccess(boolean success) {
495 rajveer 10474
      this.success = success;
10475
      setSuccessIsSet(true);
10476
    }
10477
 
10478
    public void unsetSuccess() {
10479
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10480
    }
10481
 
3430 rajveer 10482
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10483
    public boolean isSetSuccess() {
10484
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10485
    }
10486
 
10487
    public void setSuccessIsSet(boolean value) {
10488
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10489
    }
10490
 
10491
    public HelperServiceException getSe() {
10492
      return this.se;
10493
    }
10494
 
3430 rajveer 10495
    public void setSe(HelperServiceException se) {
495 rajveer 10496
      this.se = se;
10497
    }
10498
 
10499
    public void unsetSe() {
10500
      this.se = null;
10501
    }
10502
 
3430 rajveer 10503
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10504
    public boolean isSetSe() {
10505
      return this.se != null;
10506
    }
10507
 
10508
    public void setSeIsSet(boolean value) {
10509
      if (!value) {
10510
        this.se = null;
10511
      }
10512
    }
10513
 
10514
    public void setFieldValue(_Fields field, Object value) {
10515
      switch (field) {
10516
      case SUCCESS:
10517
        if (value == null) {
10518
          unsetSuccess();
10519
        } else {
10520
          setSuccess((Boolean)value);
10521
        }
10522
        break;
10523
 
10524
      case SE:
10525
        if (value == null) {
10526
          unsetSe();
10527
        } else {
10528
          setSe((HelperServiceException)value);
10529
        }
10530
        break;
10531
 
10532
      }
10533
    }
10534
 
10535
    public Object getFieldValue(_Fields field) {
10536
      switch (field) {
10537
      case SUCCESS:
3430 rajveer 10538
        return Boolean.valueOf(isSuccess());
495 rajveer 10539
 
10540
      case SE:
10541
        return getSe();
10542
 
10543
      }
10544
      throw new IllegalStateException();
10545
    }
10546
 
3430 rajveer 10547
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10548
    public boolean isSet(_Fields field) {
10549
      if (field == null) {
10550
        throw new IllegalArgumentException();
10551
      }
495 rajveer 10552
 
10553
      switch (field) {
10554
      case SUCCESS:
10555
        return isSetSuccess();
10556
      case SE:
10557
        return isSetSe();
10558
      }
10559
      throw new IllegalStateException();
10560
    }
10561
 
10562
    @Override
10563
    public boolean equals(Object that) {
10564
      if (that == null)
10565
        return false;
10566
      if (that instanceof deleteUser_result)
10567
        return this.equals((deleteUser_result)that);
10568
      return false;
10569
    }
10570
 
10571
    public boolean equals(deleteUser_result that) {
10572
      if (that == null)
10573
        return false;
10574
 
10575
      boolean this_present_success = true;
10576
      boolean that_present_success = true;
10577
      if (this_present_success || that_present_success) {
10578
        if (!(this_present_success && that_present_success))
10579
          return false;
10580
        if (this.success != that.success)
10581
          return false;
10582
      }
10583
 
10584
      boolean this_present_se = true && this.isSetSe();
10585
      boolean that_present_se = true && that.isSetSe();
10586
      if (this_present_se || that_present_se) {
10587
        if (!(this_present_se && that_present_se))
10588
          return false;
10589
        if (!this.se.equals(that.se))
10590
          return false;
10591
      }
10592
 
10593
      return true;
10594
    }
10595
 
10596
    @Override
10597
    public int hashCode() {
10598
      return 0;
10599
    }
10600
 
10601
    public int compareTo(deleteUser_result other) {
10602
      if (!getClass().equals(other.getClass())) {
10603
        return getClass().getName().compareTo(other.getClass().getName());
10604
      }
10605
 
10606
      int lastComparison = 0;
10607
      deleteUser_result typedOther = (deleteUser_result)other;
10608
 
3430 rajveer 10609
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10610
      if (lastComparison != 0) {
10611
        return lastComparison;
10612
      }
3430 rajveer 10613
      if (isSetSuccess()) {
10614
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10615
        if (lastComparison != 0) {
10616
          return lastComparison;
10617
        }
495 rajveer 10618
      }
3430 rajveer 10619
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10620
      if (lastComparison != 0) {
10621
        return lastComparison;
10622
      }
3430 rajveer 10623
      if (isSetSe()) {
10624
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10625
        if (lastComparison != 0) {
10626
          return lastComparison;
10627
        }
495 rajveer 10628
      }
10629
      return 0;
10630
    }
10631
 
3430 rajveer 10632
    public _Fields fieldForId(int fieldId) {
10633
      return _Fields.findByThriftId(fieldId);
10634
    }
10635
 
10636
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10637
      org.apache.thrift.protocol.TField field;
495 rajveer 10638
      iprot.readStructBegin();
10639
      while (true)
10640
      {
10641
        field = iprot.readFieldBegin();
3430 rajveer 10642
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10643
          break;
10644
        }
3430 rajveer 10645
        switch (field.id) {
10646
          case 0: // SUCCESS
10647
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10648
              this.success = iprot.readBool();
10649
              setSuccessIsSet(true);
10650
            } else { 
10651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10652
            }
10653
            break;
10654
          case 1: // SE
10655
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10656
              this.se = new HelperServiceException();
10657
              this.se.read(iprot);
10658
            } else { 
10659
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10660
            }
10661
            break;
10662
          default:
10663
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10664
        }
3430 rajveer 10665
        iprot.readFieldEnd();
495 rajveer 10666
      }
10667
      iprot.readStructEnd();
10668
      validate();
10669
    }
10670
 
3430 rajveer 10671
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10672
      oprot.writeStructBegin(STRUCT_DESC);
10673
 
10674
      if (this.isSetSuccess()) {
10675
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10676
        oprot.writeBool(this.success);
10677
        oprot.writeFieldEnd();
10678
      } else if (this.isSetSe()) {
10679
        oprot.writeFieldBegin(SE_FIELD_DESC);
10680
        this.se.write(oprot);
10681
        oprot.writeFieldEnd();
10682
      }
10683
      oprot.writeFieldStop();
10684
      oprot.writeStructEnd();
10685
    }
10686
 
10687
    @Override
10688
    public String toString() {
10689
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10690
      boolean first = true;
10691
 
10692
      sb.append("success:");
10693
      sb.append(this.success);
10694
      first = false;
10695
      if (!first) sb.append(", ");
10696
      sb.append("se:");
10697
      if (this.se == null) {
10698
        sb.append("null");
10699
      } else {
10700
        sb.append(this.se);
10701
      }
10702
      first = false;
10703
      sb.append(")");
10704
      return sb.toString();
10705
    }
10706
 
3430 rajveer 10707
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10708
      // check for required fields
10709
    }
10710
 
3430 rajveer 10711
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10712
      try {
10713
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10714
      } catch (org.apache.thrift.TException te) {
10715
        throw new java.io.IOException(te);
10716
      }
10717
    }
10718
 
10719
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10720
      try {
10721
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10722
      } catch (org.apache.thrift.TException te) {
10723
        throw new java.io.IOException(te);
10724
      }
10725
    }
10726
 
495 rajveer 10727
  }
10728
 
3430 rajveer 10729
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10731
 
3430 rajveer 10732
    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);
10733
    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 10734
 
3430 rajveer 10735
    private String username; // required
10736
    private String password; // required
495 rajveer 10737
 
10738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10740
      USERNAME((short)1, "username"),
10741
      PASSWORD((short)2, "password");
10742
 
10743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10744
 
10745
      static {
10746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10747
          byName.put(field.getFieldName(), field);
10748
        }
10749
      }
10750
 
10751
      /**
10752
       * Find the _Fields constant that matches fieldId, or null if its not found.
10753
       */
10754
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10755
        switch(fieldId) {
10756
          case 1: // USERNAME
10757
            return USERNAME;
10758
          case 2: // PASSWORD
10759
            return PASSWORD;
10760
          default:
10761
            return null;
10762
        }
495 rajveer 10763
      }
10764
 
10765
      /**
10766
       * Find the _Fields constant that matches fieldId, throwing an exception
10767
       * if it is not found.
10768
       */
10769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10770
        _Fields fields = findByThriftId(fieldId);
10771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10772
        return fields;
10773
      }
10774
 
10775
      /**
10776
       * Find the _Fields constant that matches name, or null if its not found.
10777
       */
10778
      public static _Fields findByName(String name) {
10779
        return byName.get(name);
10780
      }
10781
 
10782
      private final short _thriftId;
10783
      private final String _fieldName;
10784
 
10785
      _Fields(short thriftId, String fieldName) {
10786
        _thriftId = thriftId;
10787
        _fieldName = fieldName;
10788
      }
10789
 
10790
      public short getThriftFieldId() {
10791
        return _thriftId;
10792
      }
10793
 
10794
      public String getFieldName() {
10795
        return _fieldName;
10796
      }
10797
    }
10798
 
10799
    // isset id assignments
10800
 
3430 rajveer 10801
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10802
    static {
3430 rajveer 10803
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10804
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10805
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10806
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10807
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10808
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10809
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10810
    }
10811
 
2443 chandransh 10812
    public authenticateDashboardUser_args() {
495 rajveer 10813
    }
10814
 
2443 chandransh 10815
    public authenticateDashboardUser_args(
495 rajveer 10816
      String username,
10817
      String password)
10818
    {
10819
      this();
10820
      this.username = username;
10821
      this.password = password;
10822
    }
10823
 
10824
    /**
10825
     * Performs a deep copy on <i>other</i>.
10826
     */
2443 chandransh 10827
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10828
      if (other.isSetUsername()) {
10829
        this.username = other.username;
10830
      }
10831
      if (other.isSetPassword()) {
10832
        this.password = other.password;
10833
      }
10834
    }
10835
 
2443 chandransh 10836
    public authenticateDashboardUser_args deepCopy() {
10837
      return new authenticateDashboardUser_args(this);
495 rajveer 10838
    }
10839
 
3430 rajveer 10840
    @Override
10841
    public void clear() {
10842
      this.username = null;
10843
      this.password = null;
495 rajveer 10844
    }
10845
 
10846
    public String getUsername() {
10847
      return this.username;
10848
    }
10849
 
3430 rajveer 10850
    public void setUsername(String username) {
495 rajveer 10851
      this.username = username;
10852
    }
10853
 
10854
    public void unsetUsername() {
10855
      this.username = null;
10856
    }
10857
 
3430 rajveer 10858
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10859
    public boolean isSetUsername() {
10860
      return this.username != null;
10861
    }
10862
 
10863
    public void setUsernameIsSet(boolean value) {
10864
      if (!value) {
10865
        this.username = null;
10866
      }
10867
    }
10868
 
10869
    public String getPassword() {
10870
      return this.password;
10871
    }
10872
 
3430 rajveer 10873
    public void setPassword(String password) {
495 rajveer 10874
      this.password = password;
10875
    }
10876
 
10877
    public void unsetPassword() {
10878
      this.password = null;
10879
    }
10880
 
3430 rajveer 10881
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10882
    public boolean isSetPassword() {
10883
      return this.password != null;
10884
    }
10885
 
10886
    public void setPasswordIsSet(boolean value) {
10887
      if (!value) {
10888
        this.password = null;
10889
      }
10890
    }
10891
 
10892
    public void setFieldValue(_Fields field, Object value) {
10893
      switch (field) {
10894
      case USERNAME:
10895
        if (value == null) {
10896
          unsetUsername();
10897
        } else {
10898
          setUsername((String)value);
10899
        }
10900
        break;
10901
 
10902
      case PASSWORD:
10903
        if (value == null) {
10904
          unsetPassword();
10905
        } else {
10906
          setPassword((String)value);
10907
        }
10908
        break;
10909
 
10910
      }
10911
    }
10912
 
10913
    public Object getFieldValue(_Fields field) {
10914
      switch (field) {
10915
      case USERNAME:
10916
        return getUsername();
10917
 
10918
      case PASSWORD:
10919
        return getPassword();
10920
 
10921
      }
10922
      throw new IllegalStateException();
10923
    }
10924
 
3430 rajveer 10925
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10926
    public boolean isSet(_Fields field) {
10927
      if (field == null) {
10928
        throw new IllegalArgumentException();
10929
      }
495 rajveer 10930
 
10931
      switch (field) {
10932
      case USERNAME:
10933
        return isSetUsername();
10934
      case PASSWORD:
10935
        return isSetPassword();
10936
      }
10937
      throw new IllegalStateException();
10938
    }
10939
 
10940
    @Override
10941
    public boolean equals(Object that) {
10942
      if (that == null)
10943
        return false;
2443 chandransh 10944
      if (that instanceof authenticateDashboardUser_args)
10945
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 10946
      return false;
10947
    }
10948
 
2443 chandransh 10949
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 10950
      if (that == null)
10951
        return false;
10952
 
10953
      boolean this_present_username = true && this.isSetUsername();
10954
      boolean that_present_username = true && that.isSetUsername();
10955
      if (this_present_username || that_present_username) {
10956
        if (!(this_present_username && that_present_username))
10957
          return false;
10958
        if (!this.username.equals(that.username))
10959
          return false;
10960
      }
10961
 
10962
      boolean this_present_password = true && this.isSetPassword();
10963
      boolean that_present_password = true && that.isSetPassword();
10964
      if (this_present_password || that_present_password) {
10965
        if (!(this_present_password && that_present_password))
10966
          return false;
10967
        if (!this.password.equals(that.password))
10968
          return false;
10969
      }
10970
 
10971
      return true;
10972
    }
10973
 
10974
    @Override
10975
    public int hashCode() {
10976
      return 0;
10977
    }
10978
 
2443 chandransh 10979
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 10980
      if (!getClass().equals(other.getClass())) {
10981
        return getClass().getName().compareTo(other.getClass().getName());
10982
      }
10983
 
10984
      int lastComparison = 0;
2443 chandransh 10985
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 10986
 
3430 rajveer 10987
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10988
      if (lastComparison != 0) {
10989
        return lastComparison;
10990
      }
3430 rajveer 10991
      if (isSetUsername()) {
10992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10993
        if (lastComparison != 0) {
10994
          return lastComparison;
10995
        }
495 rajveer 10996
      }
3430 rajveer 10997
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10998
      if (lastComparison != 0) {
10999
        return lastComparison;
11000
      }
3430 rajveer 11001
      if (isSetPassword()) {
11002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11003
        if (lastComparison != 0) {
11004
          return lastComparison;
11005
        }
495 rajveer 11006
      }
11007
      return 0;
11008
    }
11009
 
3430 rajveer 11010
    public _Fields fieldForId(int fieldId) {
11011
      return _Fields.findByThriftId(fieldId);
11012
    }
11013
 
11014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11015
      org.apache.thrift.protocol.TField field;
495 rajveer 11016
      iprot.readStructBegin();
11017
      while (true)
11018
      {
11019
        field = iprot.readFieldBegin();
3430 rajveer 11020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11021
          break;
11022
        }
3430 rajveer 11023
        switch (field.id) {
11024
          case 1: // USERNAME
11025
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11026
              this.username = iprot.readString();
11027
            } else { 
11028
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11029
            }
11030
            break;
11031
          case 2: // PASSWORD
11032
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11033
              this.password = iprot.readString();
11034
            } else { 
11035
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11036
            }
11037
            break;
11038
          default:
11039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11040
        }
3430 rajveer 11041
        iprot.readFieldEnd();
495 rajveer 11042
      }
11043
      iprot.readStructEnd();
11044
      validate();
11045
    }
11046
 
3430 rajveer 11047
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11048
      validate();
11049
 
11050
      oprot.writeStructBegin(STRUCT_DESC);
11051
      if (this.username != null) {
11052
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11053
        oprot.writeString(this.username);
11054
        oprot.writeFieldEnd();
11055
      }
11056
      if (this.password != null) {
11057
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11058
        oprot.writeString(this.password);
11059
        oprot.writeFieldEnd();
11060
      }
11061
      oprot.writeFieldStop();
11062
      oprot.writeStructEnd();
11063
    }
11064
 
11065
    @Override
11066
    public String toString() {
2443 chandransh 11067
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 11068
      boolean first = true;
11069
 
11070
      sb.append("username:");
11071
      if (this.username == null) {
11072
        sb.append("null");
11073
      } else {
11074
        sb.append(this.username);
11075
      }
11076
      first = false;
11077
      if (!first) sb.append(", ");
11078
      sb.append("password:");
11079
      if (this.password == null) {
11080
        sb.append("null");
11081
      } else {
11082
        sb.append(this.password);
11083
      }
11084
      first = false;
11085
      sb.append(")");
11086
      return sb.toString();
11087
    }
11088
 
3430 rajveer 11089
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11090
      // check for required fields
11091
    }
11092
 
3430 rajveer 11093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11094
      try {
11095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11096
      } catch (org.apache.thrift.TException te) {
11097
        throw new java.io.IOException(te);
11098
      }
11099
    }
11100
 
11101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11102
      try {
11103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11104
      } catch (org.apache.thrift.TException te) {
11105
        throw new java.io.IOException(te);
11106
      }
11107
    }
11108
 
495 rajveer 11109
  }
11110
 
3430 rajveer 11111
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11113
 
3430 rajveer 11114
    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);
11115
    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 11116
 
3430 rajveer 11117
    private DashboardUser success; // required
11118
    private HelperServiceException se; // required
495 rajveer 11119
 
11120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11122
      SUCCESS((short)0, "success"),
11123
      SE((short)1, "se");
11124
 
11125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11126
 
11127
      static {
11128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11129
          byName.put(field.getFieldName(), field);
11130
        }
11131
      }
11132
 
11133
      /**
11134
       * Find the _Fields constant that matches fieldId, or null if its not found.
11135
       */
11136
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11137
        switch(fieldId) {
11138
          case 0: // SUCCESS
11139
            return SUCCESS;
11140
          case 1: // SE
11141
            return SE;
11142
          default:
11143
            return null;
11144
        }
495 rajveer 11145
      }
11146
 
11147
      /**
11148
       * Find the _Fields constant that matches fieldId, throwing an exception
11149
       * if it is not found.
11150
       */
11151
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11152
        _Fields fields = findByThriftId(fieldId);
11153
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11154
        return fields;
11155
      }
11156
 
11157
      /**
11158
       * Find the _Fields constant that matches name, or null if its not found.
11159
       */
11160
      public static _Fields findByName(String name) {
11161
        return byName.get(name);
11162
      }
11163
 
11164
      private final short _thriftId;
11165
      private final String _fieldName;
11166
 
11167
      _Fields(short thriftId, String fieldName) {
11168
        _thriftId = thriftId;
11169
        _fieldName = fieldName;
11170
      }
11171
 
11172
      public short getThriftFieldId() {
11173
        return _thriftId;
11174
      }
11175
 
11176
      public String getFieldName() {
11177
        return _fieldName;
11178
      }
11179
    }
11180
 
11181
    // isset id assignments
11182
 
3430 rajveer 11183
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11184
    static {
3430 rajveer 11185
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11186
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11187
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11188
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11189
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11190
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11191
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11192
    }
11193
 
2443 chandransh 11194
    public authenticateDashboardUser_result() {
495 rajveer 11195
    }
11196
 
2443 chandransh 11197
    public authenticateDashboardUser_result(
11198
      DashboardUser success,
495 rajveer 11199
      HelperServiceException se)
11200
    {
11201
      this();
11202
      this.success = success;
11203
      this.se = se;
11204
    }
11205
 
11206
    /**
11207
     * Performs a deep copy on <i>other</i>.
11208
     */
2443 chandransh 11209
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11210
      if (other.isSetSuccess()) {
11211
        this.success = new DashboardUser(other.success);
11212
      }
495 rajveer 11213
      if (other.isSetSe()) {
11214
        this.se = new HelperServiceException(other.se);
11215
      }
11216
    }
11217
 
2443 chandransh 11218
    public authenticateDashboardUser_result deepCopy() {
11219
      return new authenticateDashboardUser_result(this);
495 rajveer 11220
    }
11221
 
3430 rajveer 11222
    @Override
11223
    public void clear() {
11224
      this.success = null;
11225
      this.se = null;
495 rajveer 11226
    }
11227
 
2443 chandransh 11228
    public DashboardUser getSuccess() {
495 rajveer 11229
      return this.success;
11230
    }
11231
 
3430 rajveer 11232
    public void setSuccess(DashboardUser success) {
495 rajveer 11233
      this.success = success;
11234
    }
11235
 
11236
    public void unsetSuccess() {
2443 chandransh 11237
      this.success = null;
495 rajveer 11238
    }
11239
 
3430 rajveer 11240
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11241
    public boolean isSetSuccess() {
2443 chandransh 11242
      return this.success != null;
495 rajveer 11243
    }
11244
 
11245
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11246
      if (!value) {
11247
        this.success = null;
11248
      }
495 rajveer 11249
    }
11250
 
11251
    public HelperServiceException getSe() {
11252
      return this.se;
11253
    }
11254
 
3430 rajveer 11255
    public void setSe(HelperServiceException se) {
495 rajveer 11256
      this.se = se;
11257
    }
11258
 
11259
    public void unsetSe() {
11260
      this.se = null;
11261
    }
11262
 
3430 rajveer 11263
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11264
    public boolean isSetSe() {
11265
      return this.se != null;
11266
    }
11267
 
11268
    public void setSeIsSet(boolean value) {
11269
      if (!value) {
11270
        this.se = null;
11271
      }
11272
    }
11273
 
11274
    public void setFieldValue(_Fields field, Object value) {
11275
      switch (field) {
11276
      case SUCCESS:
11277
        if (value == null) {
11278
          unsetSuccess();
11279
        } else {
2443 chandransh 11280
          setSuccess((DashboardUser)value);
495 rajveer 11281
        }
11282
        break;
11283
 
11284
      case SE:
11285
        if (value == null) {
11286
          unsetSe();
11287
        } else {
11288
          setSe((HelperServiceException)value);
11289
        }
11290
        break;
11291
 
11292
      }
11293
    }
11294
 
11295
    public Object getFieldValue(_Fields field) {
11296
      switch (field) {
11297
      case SUCCESS:
2443 chandransh 11298
        return getSuccess();
495 rajveer 11299
 
11300
      case SE:
11301
        return getSe();
11302
 
11303
      }
11304
      throw new IllegalStateException();
11305
    }
11306
 
3430 rajveer 11307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11308
    public boolean isSet(_Fields field) {
11309
      if (field == null) {
11310
        throw new IllegalArgumentException();
11311
      }
495 rajveer 11312
 
11313
      switch (field) {
11314
      case SUCCESS:
11315
        return isSetSuccess();
11316
      case SE:
11317
        return isSetSe();
11318
      }
11319
      throw new IllegalStateException();
11320
    }
11321
 
11322
    @Override
11323
    public boolean equals(Object that) {
11324
      if (that == null)
11325
        return false;
2443 chandransh 11326
      if (that instanceof authenticateDashboardUser_result)
11327
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11328
      return false;
11329
    }
11330
 
2443 chandransh 11331
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11332
      if (that == null)
11333
        return false;
11334
 
2443 chandransh 11335
      boolean this_present_success = true && this.isSetSuccess();
11336
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11337
      if (this_present_success || that_present_success) {
11338
        if (!(this_present_success && that_present_success))
11339
          return false;
2443 chandransh 11340
        if (!this.success.equals(that.success))
495 rajveer 11341
          return false;
11342
      }
11343
 
11344
      boolean this_present_se = true && this.isSetSe();
11345
      boolean that_present_se = true && that.isSetSe();
11346
      if (this_present_se || that_present_se) {
11347
        if (!(this_present_se && that_present_se))
11348
          return false;
11349
        if (!this.se.equals(that.se))
11350
          return false;
11351
      }
11352
 
11353
      return true;
11354
    }
11355
 
11356
    @Override
11357
    public int hashCode() {
11358
      return 0;
11359
    }
11360
 
2443 chandransh 11361
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11362
      if (!getClass().equals(other.getClass())) {
11363
        return getClass().getName().compareTo(other.getClass().getName());
11364
      }
11365
 
11366
      int lastComparison = 0;
2443 chandransh 11367
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11368
 
3430 rajveer 11369
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11370
      if (lastComparison != 0) {
11371
        return lastComparison;
11372
      }
3430 rajveer 11373
      if (isSetSuccess()) {
11374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11375
        if (lastComparison != 0) {
11376
          return lastComparison;
11377
        }
495 rajveer 11378
      }
3430 rajveer 11379
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11380
      if (lastComparison != 0) {
11381
        return lastComparison;
11382
      }
3430 rajveer 11383
      if (isSetSe()) {
11384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11385
        if (lastComparison != 0) {
11386
          return lastComparison;
11387
        }
495 rajveer 11388
      }
11389
      return 0;
11390
    }
11391
 
3430 rajveer 11392
    public _Fields fieldForId(int fieldId) {
11393
      return _Fields.findByThriftId(fieldId);
11394
    }
11395
 
11396
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11397
      org.apache.thrift.protocol.TField field;
495 rajveer 11398
      iprot.readStructBegin();
11399
      while (true)
11400
      {
11401
        field = iprot.readFieldBegin();
3430 rajveer 11402
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11403
          break;
11404
        }
3430 rajveer 11405
        switch (field.id) {
11406
          case 0: // SUCCESS
11407
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11408
              this.success = new DashboardUser();
11409
              this.success.read(iprot);
11410
            } else { 
11411
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11412
            }
11413
            break;
11414
          case 1: // SE
11415
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11416
              this.se = new HelperServiceException();
11417
              this.se.read(iprot);
11418
            } else { 
11419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11420
            }
11421
            break;
11422
          default:
11423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11424
        }
3430 rajveer 11425
        iprot.readFieldEnd();
495 rajveer 11426
      }
11427
      iprot.readStructEnd();
11428
      validate();
11429
    }
11430
 
3430 rajveer 11431
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11432
      oprot.writeStructBegin(STRUCT_DESC);
11433
 
11434
      if (this.isSetSuccess()) {
11435
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11436
        this.success.write(oprot);
495 rajveer 11437
        oprot.writeFieldEnd();
11438
      } else if (this.isSetSe()) {
11439
        oprot.writeFieldBegin(SE_FIELD_DESC);
11440
        this.se.write(oprot);
11441
        oprot.writeFieldEnd();
11442
      }
11443
      oprot.writeFieldStop();
11444
      oprot.writeStructEnd();
11445
    }
11446
 
11447
    @Override
11448
    public String toString() {
2443 chandransh 11449
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11450
      boolean first = true;
11451
 
11452
      sb.append("success:");
2443 chandransh 11453
      if (this.success == null) {
11454
        sb.append("null");
11455
      } else {
11456
        sb.append(this.success);
11457
      }
495 rajveer 11458
      first = false;
11459
      if (!first) sb.append(", ");
11460
      sb.append("se:");
11461
      if (this.se == null) {
11462
        sb.append("null");
11463
      } else {
11464
        sb.append(this.se);
11465
      }
11466
      first = false;
11467
      sb.append(")");
11468
      return sb.toString();
11469
    }
11470
 
3430 rajveer 11471
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11472
      // check for required fields
11473
    }
11474
 
3430 rajveer 11475
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11476
      try {
11477
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11478
      } catch (org.apache.thrift.TException te) {
11479
        throw new java.io.IOException(te);
11480
      }
11481
    }
11482
 
11483
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11484
      try {
11485
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11486
      } catch (org.apache.thrift.TException te) {
11487
        throw new java.io.IOException(te);
11488
      }
11489
    }
11490
 
495 rajveer 11491
  }
11492
 
3430 rajveer 11493
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11494
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11495
 
3430 rajveer 11496
    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);
11497
    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);
11498
    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 11499
 
3430 rajveer 11500
    private String username; // required
11501
    private String oldPassword; // required
11502
    private String newPassword; // required
495 rajveer 11503
 
11504
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11505
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11506
      USERNAME((short)1, "username"),
11507
      OLD_PASSWORD((short)2, "oldPassword"),
11508
      NEW_PASSWORD((short)3, "newPassword");
11509
 
11510
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11511
 
11512
      static {
11513
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11514
          byName.put(field.getFieldName(), field);
11515
        }
11516
      }
11517
 
11518
      /**
11519
       * Find the _Fields constant that matches fieldId, or null if its not found.
11520
       */
11521
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11522
        switch(fieldId) {
11523
          case 1: // USERNAME
11524
            return USERNAME;
11525
          case 2: // OLD_PASSWORD
11526
            return OLD_PASSWORD;
11527
          case 3: // NEW_PASSWORD
11528
            return NEW_PASSWORD;
11529
          default:
11530
            return null;
11531
        }
495 rajveer 11532
      }
11533
 
11534
      /**
11535
       * Find the _Fields constant that matches fieldId, throwing an exception
11536
       * if it is not found.
11537
       */
11538
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11539
        _Fields fields = findByThriftId(fieldId);
11540
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11541
        return fields;
11542
      }
11543
 
11544
      /**
11545
       * Find the _Fields constant that matches name, or null if its not found.
11546
       */
11547
      public static _Fields findByName(String name) {
11548
        return byName.get(name);
11549
      }
11550
 
11551
      private final short _thriftId;
11552
      private final String _fieldName;
11553
 
11554
      _Fields(short thriftId, String fieldName) {
11555
        _thriftId = thriftId;
11556
        _fieldName = fieldName;
11557
      }
11558
 
11559
      public short getThriftFieldId() {
11560
        return _thriftId;
11561
      }
11562
 
11563
      public String getFieldName() {
11564
        return _fieldName;
11565
      }
11566
    }
11567
 
11568
    // isset id assignments
11569
 
3430 rajveer 11570
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11571
    static {
3430 rajveer 11572
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11573
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11574
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11575
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11576
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11577
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11579
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11580
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11581
    }
11582
 
11583
    public updatePassword_args() {
11584
    }
11585
 
11586
    public updatePassword_args(
11587
      String username,
11588
      String oldPassword,
11589
      String newPassword)
11590
    {
11591
      this();
11592
      this.username = username;
11593
      this.oldPassword = oldPassword;
11594
      this.newPassword = newPassword;
11595
    }
11596
 
11597
    /**
11598
     * Performs a deep copy on <i>other</i>.
11599
     */
11600
    public updatePassword_args(updatePassword_args other) {
11601
      if (other.isSetUsername()) {
11602
        this.username = other.username;
11603
      }
11604
      if (other.isSetOldPassword()) {
11605
        this.oldPassword = other.oldPassword;
11606
      }
11607
      if (other.isSetNewPassword()) {
11608
        this.newPassword = other.newPassword;
11609
      }
11610
    }
11611
 
11612
    public updatePassword_args deepCopy() {
11613
      return new updatePassword_args(this);
11614
    }
11615
 
3430 rajveer 11616
    @Override
11617
    public void clear() {
11618
      this.username = null;
11619
      this.oldPassword = null;
11620
      this.newPassword = null;
495 rajveer 11621
    }
11622
 
11623
    public String getUsername() {
11624
      return this.username;
11625
    }
11626
 
3430 rajveer 11627
    public void setUsername(String username) {
495 rajveer 11628
      this.username = username;
11629
    }
11630
 
11631
    public void unsetUsername() {
11632
      this.username = null;
11633
    }
11634
 
3430 rajveer 11635
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11636
    public boolean isSetUsername() {
11637
      return this.username != null;
11638
    }
11639
 
11640
    public void setUsernameIsSet(boolean value) {
11641
      if (!value) {
11642
        this.username = null;
11643
      }
11644
    }
11645
 
11646
    public String getOldPassword() {
11647
      return this.oldPassword;
11648
    }
11649
 
3430 rajveer 11650
    public void setOldPassword(String oldPassword) {
495 rajveer 11651
      this.oldPassword = oldPassword;
11652
    }
11653
 
11654
    public void unsetOldPassword() {
11655
      this.oldPassword = null;
11656
    }
11657
 
3430 rajveer 11658
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11659
    public boolean isSetOldPassword() {
11660
      return this.oldPassword != null;
11661
    }
11662
 
11663
    public void setOldPasswordIsSet(boolean value) {
11664
      if (!value) {
11665
        this.oldPassword = null;
11666
      }
11667
    }
11668
 
11669
    public String getNewPassword() {
11670
      return this.newPassword;
11671
    }
11672
 
3430 rajveer 11673
    public void setNewPassword(String newPassword) {
495 rajveer 11674
      this.newPassword = newPassword;
11675
    }
11676
 
11677
    public void unsetNewPassword() {
11678
      this.newPassword = null;
11679
    }
11680
 
3430 rajveer 11681
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11682
    public boolean isSetNewPassword() {
11683
      return this.newPassword != null;
11684
    }
11685
 
11686
    public void setNewPasswordIsSet(boolean value) {
11687
      if (!value) {
11688
        this.newPassword = null;
11689
      }
11690
    }
11691
 
11692
    public void setFieldValue(_Fields field, Object value) {
11693
      switch (field) {
11694
      case USERNAME:
11695
        if (value == null) {
11696
          unsetUsername();
11697
        } else {
11698
          setUsername((String)value);
11699
        }
11700
        break;
11701
 
11702
      case OLD_PASSWORD:
11703
        if (value == null) {
11704
          unsetOldPassword();
11705
        } else {
11706
          setOldPassword((String)value);
11707
        }
11708
        break;
11709
 
11710
      case NEW_PASSWORD:
11711
        if (value == null) {
11712
          unsetNewPassword();
11713
        } else {
11714
          setNewPassword((String)value);
11715
        }
11716
        break;
11717
 
11718
      }
11719
    }
11720
 
11721
    public Object getFieldValue(_Fields field) {
11722
      switch (field) {
11723
      case USERNAME:
11724
        return getUsername();
11725
 
11726
      case OLD_PASSWORD:
11727
        return getOldPassword();
11728
 
11729
      case NEW_PASSWORD:
11730
        return getNewPassword();
11731
 
11732
      }
11733
      throw new IllegalStateException();
11734
    }
11735
 
3430 rajveer 11736
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11737
    public boolean isSet(_Fields field) {
11738
      if (field == null) {
11739
        throw new IllegalArgumentException();
11740
      }
495 rajveer 11741
 
11742
      switch (field) {
11743
      case USERNAME:
11744
        return isSetUsername();
11745
      case OLD_PASSWORD:
11746
        return isSetOldPassword();
11747
      case NEW_PASSWORD:
11748
        return isSetNewPassword();
11749
      }
11750
      throw new IllegalStateException();
11751
    }
11752
 
11753
    @Override
11754
    public boolean equals(Object that) {
11755
      if (that == null)
11756
        return false;
11757
      if (that instanceof updatePassword_args)
11758
        return this.equals((updatePassword_args)that);
11759
      return false;
11760
    }
11761
 
11762
    public boolean equals(updatePassword_args that) {
11763
      if (that == null)
11764
        return false;
11765
 
11766
      boolean this_present_username = true && this.isSetUsername();
11767
      boolean that_present_username = true && that.isSetUsername();
11768
      if (this_present_username || that_present_username) {
11769
        if (!(this_present_username && that_present_username))
11770
          return false;
11771
        if (!this.username.equals(that.username))
11772
          return false;
11773
      }
11774
 
11775
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11776
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11777
      if (this_present_oldPassword || that_present_oldPassword) {
11778
        if (!(this_present_oldPassword && that_present_oldPassword))
11779
          return false;
11780
        if (!this.oldPassword.equals(that.oldPassword))
11781
          return false;
11782
      }
11783
 
11784
      boolean this_present_newPassword = true && this.isSetNewPassword();
11785
      boolean that_present_newPassword = true && that.isSetNewPassword();
11786
      if (this_present_newPassword || that_present_newPassword) {
11787
        if (!(this_present_newPassword && that_present_newPassword))
11788
          return false;
11789
        if (!this.newPassword.equals(that.newPassword))
11790
          return false;
11791
      }
11792
 
11793
      return true;
11794
    }
11795
 
11796
    @Override
11797
    public int hashCode() {
11798
      return 0;
11799
    }
11800
 
11801
    public int compareTo(updatePassword_args other) {
11802
      if (!getClass().equals(other.getClass())) {
11803
        return getClass().getName().compareTo(other.getClass().getName());
11804
      }
11805
 
11806
      int lastComparison = 0;
11807
      updatePassword_args typedOther = (updatePassword_args)other;
11808
 
3430 rajveer 11809
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11810
      if (lastComparison != 0) {
11811
        return lastComparison;
11812
      }
3430 rajveer 11813
      if (isSetUsername()) {
11814
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11815
        if (lastComparison != 0) {
11816
          return lastComparison;
11817
        }
495 rajveer 11818
      }
3430 rajveer 11819
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11820
      if (lastComparison != 0) {
11821
        return lastComparison;
11822
      }
3430 rajveer 11823
      if (isSetOldPassword()) {
11824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11825
        if (lastComparison != 0) {
11826
          return lastComparison;
11827
        }
495 rajveer 11828
      }
3430 rajveer 11829
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11830
      if (lastComparison != 0) {
11831
        return lastComparison;
11832
      }
3430 rajveer 11833
      if (isSetNewPassword()) {
11834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11835
        if (lastComparison != 0) {
11836
          return lastComparison;
11837
        }
495 rajveer 11838
      }
11839
      return 0;
11840
    }
11841
 
3430 rajveer 11842
    public _Fields fieldForId(int fieldId) {
11843
      return _Fields.findByThriftId(fieldId);
11844
    }
11845
 
11846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11847
      org.apache.thrift.protocol.TField field;
495 rajveer 11848
      iprot.readStructBegin();
11849
      while (true)
11850
      {
11851
        field = iprot.readFieldBegin();
3430 rajveer 11852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11853
          break;
11854
        }
3430 rajveer 11855
        switch (field.id) {
11856
          case 1: // USERNAME
11857
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11858
              this.username = iprot.readString();
11859
            } else { 
11860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11861
            }
11862
            break;
11863
          case 2: // OLD_PASSWORD
11864
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11865
              this.oldPassword = iprot.readString();
11866
            } else { 
11867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11868
            }
11869
            break;
11870
          case 3: // NEW_PASSWORD
11871
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11872
              this.newPassword = iprot.readString();
11873
            } else { 
11874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11875
            }
11876
            break;
11877
          default:
11878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11879
        }
3430 rajveer 11880
        iprot.readFieldEnd();
495 rajveer 11881
      }
11882
      iprot.readStructEnd();
11883
      validate();
11884
    }
11885
 
3430 rajveer 11886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11887
      validate();
11888
 
11889
      oprot.writeStructBegin(STRUCT_DESC);
11890
      if (this.username != null) {
11891
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11892
        oprot.writeString(this.username);
11893
        oprot.writeFieldEnd();
11894
      }
11895
      if (this.oldPassword != null) {
11896
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11897
        oprot.writeString(this.oldPassword);
11898
        oprot.writeFieldEnd();
11899
      }
11900
      if (this.newPassword != null) {
11901
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11902
        oprot.writeString(this.newPassword);
11903
        oprot.writeFieldEnd();
11904
      }
11905
      oprot.writeFieldStop();
11906
      oprot.writeStructEnd();
11907
    }
11908
 
11909
    @Override
11910
    public String toString() {
11911
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11912
      boolean first = true;
11913
 
11914
      sb.append("username:");
11915
      if (this.username == null) {
11916
        sb.append("null");
11917
      } else {
11918
        sb.append(this.username);
11919
      }
11920
      first = false;
11921
      if (!first) sb.append(", ");
11922
      sb.append("oldPassword:");
11923
      if (this.oldPassword == null) {
11924
        sb.append("null");
11925
      } else {
11926
        sb.append(this.oldPassword);
11927
      }
11928
      first = false;
11929
      if (!first) sb.append(", ");
11930
      sb.append("newPassword:");
11931
      if (this.newPassword == null) {
11932
        sb.append("null");
11933
      } else {
11934
        sb.append(this.newPassword);
11935
      }
11936
      first = false;
11937
      sb.append(")");
11938
      return sb.toString();
11939
    }
11940
 
3430 rajveer 11941
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11942
      // check for required fields
11943
    }
11944
 
3430 rajveer 11945
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11946
      try {
11947
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11948
      } catch (org.apache.thrift.TException te) {
11949
        throw new java.io.IOException(te);
11950
      }
11951
    }
11952
 
11953
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11954
      try {
11955
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11956
      } catch (org.apache.thrift.TException te) {
11957
        throw new java.io.IOException(te);
11958
      }
11959
    }
11960
 
495 rajveer 11961
  }
11962
 
3430 rajveer 11963
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
11964
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 11965
 
3430 rajveer 11966
    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);
11967
    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 11968
 
3430 rajveer 11969
    private boolean success; // required
11970
    private HelperServiceException se; // required
495 rajveer 11971
 
11972
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11973
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11974
      SUCCESS((short)0, "success"),
11975
      SE((short)1, "se");
11976
 
11977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11978
 
11979
      static {
11980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11981
          byName.put(field.getFieldName(), field);
11982
        }
11983
      }
11984
 
11985
      /**
11986
       * Find the _Fields constant that matches fieldId, or null if its not found.
11987
       */
11988
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11989
        switch(fieldId) {
11990
          case 0: // SUCCESS
11991
            return SUCCESS;
11992
          case 1: // SE
11993
            return SE;
11994
          default:
11995
            return null;
11996
        }
495 rajveer 11997
      }
11998
 
11999
      /**
12000
       * Find the _Fields constant that matches fieldId, throwing an exception
12001
       * if it is not found.
12002
       */
12003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12004
        _Fields fields = findByThriftId(fieldId);
12005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12006
        return fields;
12007
      }
12008
 
12009
      /**
12010
       * Find the _Fields constant that matches name, or null if its not found.
12011
       */
12012
      public static _Fields findByName(String name) {
12013
        return byName.get(name);
12014
      }
12015
 
12016
      private final short _thriftId;
12017
      private final String _fieldName;
12018
 
12019
      _Fields(short thriftId, String fieldName) {
12020
        _thriftId = thriftId;
12021
        _fieldName = fieldName;
12022
      }
12023
 
12024
      public short getThriftFieldId() {
12025
        return _thriftId;
12026
      }
12027
 
12028
      public String getFieldName() {
12029
        return _fieldName;
12030
      }
12031
    }
12032
 
12033
    // isset id assignments
12034
    private static final int __SUCCESS_ISSET_ID = 0;
12035
    private BitSet __isset_bit_vector = new BitSet(1);
12036
 
3430 rajveer 12037
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12038
    static {
3430 rajveer 12039
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12040
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12041
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12042
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12043
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12044
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12045
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 12046
    }
12047
 
12048
    public updatePassword_result() {
12049
    }
12050
 
12051
    public updatePassword_result(
12052
      boolean success,
12053
      HelperServiceException se)
12054
    {
12055
      this();
12056
      this.success = success;
12057
      setSuccessIsSet(true);
12058
      this.se = se;
12059
    }
12060
 
12061
    /**
12062
     * Performs a deep copy on <i>other</i>.
12063
     */
12064
    public updatePassword_result(updatePassword_result other) {
12065
      __isset_bit_vector.clear();
12066
      __isset_bit_vector.or(other.__isset_bit_vector);
12067
      this.success = other.success;
12068
      if (other.isSetSe()) {
12069
        this.se = new HelperServiceException(other.se);
12070
      }
12071
    }
12072
 
12073
    public updatePassword_result deepCopy() {
12074
      return new updatePassword_result(this);
12075
    }
12076
 
3430 rajveer 12077
    @Override
12078
    public void clear() {
12079
      setSuccessIsSet(false);
12080
      this.success = false;
12081
      this.se = null;
495 rajveer 12082
    }
12083
 
12084
    public boolean isSuccess() {
12085
      return this.success;
12086
    }
12087
 
3430 rajveer 12088
    public void setSuccess(boolean success) {
495 rajveer 12089
      this.success = success;
12090
      setSuccessIsSet(true);
12091
    }
12092
 
12093
    public void unsetSuccess() {
12094
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12095
    }
12096
 
3430 rajveer 12097
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12098
    public boolean isSetSuccess() {
12099
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12100
    }
12101
 
12102
    public void setSuccessIsSet(boolean value) {
12103
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12104
    }
12105
 
12106
    public HelperServiceException getSe() {
12107
      return this.se;
12108
    }
12109
 
3430 rajveer 12110
    public void setSe(HelperServiceException se) {
495 rajveer 12111
      this.se = se;
12112
    }
12113
 
12114
    public void unsetSe() {
12115
      this.se = null;
12116
    }
12117
 
3430 rajveer 12118
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12119
    public boolean isSetSe() {
12120
      return this.se != null;
12121
    }
12122
 
12123
    public void setSeIsSet(boolean value) {
12124
      if (!value) {
12125
        this.se = null;
12126
      }
12127
    }
12128
 
12129
    public void setFieldValue(_Fields field, Object value) {
12130
      switch (field) {
12131
      case SUCCESS:
12132
        if (value == null) {
12133
          unsetSuccess();
12134
        } else {
12135
          setSuccess((Boolean)value);
12136
        }
12137
        break;
12138
 
12139
      case SE:
12140
        if (value == null) {
12141
          unsetSe();
12142
        } else {
12143
          setSe((HelperServiceException)value);
12144
        }
12145
        break;
12146
 
12147
      }
12148
    }
12149
 
12150
    public Object getFieldValue(_Fields field) {
12151
      switch (field) {
12152
      case SUCCESS:
3430 rajveer 12153
        return Boolean.valueOf(isSuccess());
495 rajveer 12154
 
12155
      case SE:
12156
        return getSe();
12157
 
12158
      }
12159
      throw new IllegalStateException();
12160
    }
12161
 
3430 rajveer 12162
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12163
    public boolean isSet(_Fields field) {
12164
      if (field == null) {
12165
        throw new IllegalArgumentException();
12166
      }
495 rajveer 12167
 
12168
      switch (field) {
12169
      case SUCCESS:
12170
        return isSetSuccess();
12171
      case SE:
12172
        return isSetSe();
12173
      }
12174
      throw new IllegalStateException();
12175
    }
12176
 
12177
    @Override
12178
    public boolean equals(Object that) {
12179
      if (that == null)
12180
        return false;
12181
      if (that instanceof updatePassword_result)
12182
        return this.equals((updatePassword_result)that);
12183
      return false;
12184
    }
12185
 
12186
    public boolean equals(updatePassword_result that) {
12187
      if (that == null)
12188
        return false;
12189
 
12190
      boolean this_present_success = true;
12191
      boolean that_present_success = true;
12192
      if (this_present_success || that_present_success) {
12193
        if (!(this_present_success && that_present_success))
12194
          return false;
12195
        if (this.success != that.success)
12196
          return false;
12197
      }
12198
 
12199
      boolean this_present_se = true && this.isSetSe();
12200
      boolean that_present_se = true && that.isSetSe();
12201
      if (this_present_se || that_present_se) {
12202
        if (!(this_present_se && that_present_se))
12203
          return false;
12204
        if (!this.se.equals(that.se))
12205
          return false;
12206
      }
12207
 
12208
      return true;
12209
    }
12210
 
12211
    @Override
12212
    public int hashCode() {
12213
      return 0;
12214
    }
12215
 
12216
    public int compareTo(updatePassword_result other) {
12217
      if (!getClass().equals(other.getClass())) {
12218
        return getClass().getName().compareTo(other.getClass().getName());
12219
      }
12220
 
12221
      int lastComparison = 0;
12222
      updatePassword_result typedOther = (updatePassword_result)other;
12223
 
3430 rajveer 12224
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12225
      if (lastComparison != 0) {
12226
        return lastComparison;
12227
      }
3430 rajveer 12228
      if (isSetSuccess()) {
12229
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12230
        if (lastComparison != 0) {
12231
          return lastComparison;
12232
        }
495 rajveer 12233
      }
3430 rajveer 12234
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12235
      if (lastComparison != 0) {
12236
        return lastComparison;
12237
      }
3430 rajveer 12238
      if (isSetSe()) {
12239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12240
        if (lastComparison != 0) {
12241
          return lastComparison;
12242
        }
495 rajveer 12243
      }
12244
      return 0;
12245
    }
12246
 
3430 rajveer 12247
    public _Fields fieldForId(int fieldId) {
12248
      return _Fields.findByThriftId(fieldId);
12249
    }
12250
 
12251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12252
      org.apache.thrift.protocol.TField field;
495 rajveer 12253
      iprot.readStructBegin();
12254
      while (true)
12255
      {
12256
        field = iprot.readFieldBegin();
3430 rajveer 12257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12258
          break;
12259
        }
3430 rajveer 12260
        switch (field.id) {
12261
          case 0: // SUCCESS
12262
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12263
              this.success = iprot.readBool();
12264
              setSuccessIsSet(true);
12265
            } else { 
12266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12267
            }
12268
            break;
12269
          case 1: // SE
12270
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12271
              this.se = new HelperServiceException();
12272
              this.se.read(iprot);
12273
            } else { 
12274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12275
            }
12276
            break;
12277
          default:
12278
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12279
        }
3430 rajveer 12280
        iprot.readFieldEnd();
495 rajveer 12281
      }
12282
      iprot.readStructEnd();
12283
      validate();
12284
    }
12285
 
3430 rajveer 12286
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12287
      oprot.writeStructBegin(STRUCT_DESC);
12288
 
12289
      if (this.isSetSuccess()) {
12290
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12291
        oprot.writeBool(this.success);
12292
        oprot.writeFieldEnd();
12293
      } else if (this.isSetSe()) {
12294
        oprot.writeFieldBegin(SE_FIELD_DESC);
12295
        this.se.write(oprot);
12296
        oprot.writeFieldEnd();
12297
      }
12298
      oprot.writeFieldStop();
12299
      oprot.writeStructEnd();
12300
    }
12301
 
12302
    @Override
12303
    public String toString() {
12304
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12305
      boolean first = true;
12306
 
12307
      sb.append("success:");
12308
      sb.append(this.success);
12309
      first = false;
12310
      if (!first) sb.append(", ");
12311
      sb.append("se:");
12312
      if (this.se == null) {
12313
        sb.append("null");
12314
      } else {
12315
        sb.append(this.se);
12316
      }
12317
      first = false;
12318
      sb.append(")");
12319
      return sb.toString();
12320
    }
12321
 
3430 rajveer 12322
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12323
      // check for required fields
12324
    }
12325
 
3430 rajveer 12326
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12327
      try {
12328
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12329
      } catch (org.apache.thrift.TException te) {
12330
        throw new java.io.IOException(te);
12331
      }
12332
    }
12333
 
12334
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12335
      try {
12336
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12337
      } catch (org.apache.thrift.TException te) {
12338
        throw new java.io.IOException(te);
12339
      }
12340
    }
12341
 
495 rajveer 12342
  }
12343
 
3430 rajveer 12344
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12345
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12346
 
3430 rajveer 12347
    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);
12348
    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 12349
 
3430 rajveer 12350
    private String username; // required
12351
    private String password; // required
750 chandransh 12352
 
12353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12355
      USERNAME((short)1, "username"),
12356
      PASSWORD((short)2, "password");
12357
 
12358
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12359
 
12360
      static {
12361
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12362
          byName.put(field.getFieldName(), field);
12363
        }
12364
      }
12365
 
12366
      /**
12367
       * Find the _Fields constant that matches fieldId, or null if its not found.
12368
       */
12369
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12370
        switch(fieldId) {
12371
          case 1: // USERNAME
12372
            return USERNAME;
12373
          case 2: // PASSWORD
12374
            return PASSWORD;
12375
          default:
12376
            return null;
12377
        }
750 chandransh 12378
      }
12379
 
12380
      /**
12381
       * Find the _Fields constant that matches fieldId, throwing an exception
12382
       * if it is not found.
12383
       */
12384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12385
        _Fields fields = findByThriftId(fieldId);
12386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12387
        return fields;
12388
      }
12389
 
12390
      /**
12391
       * Find the _Fields constant that matches name, or null if its not found.
12392
       */
12393
      public static _Fields findByName(String name) {
12394
        return byName.get(name);
12395
      }
12396
 
12397
      private final short _thriftId;
12398
      private final String _fieldName;
12399
 
12400
      _Fields(short thriftId, String fieldName) {
12401
        _thriftId = thriftId;
12402
        _fieldName = fieldName;
12403
      }
12404
 
12405
      public short getThriftFieldId() {
12406
        return _thriftId;
12407
      }
12408
 
12409
      public String getFieldName() {
12410
        return _fieldName;
12411
      }
12412
    }
12413
 
12414
    // isset id assignments
12415
 
3430 rajveer 12416
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12417
    static {
3430 rajveer 12418
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12419
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12420
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12421
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12422
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12425
    }
12426
 
12427
    public authenticateLogisticsUser_args() {
12428
    }
12429
 
12430
    public authenticateLogisticsUser_args(
12431
      String username,
12432
      String password)
12433
    {
12434
      this();
12435
      this.username = username;
12436
      this.password = password;
12437
    }
12438
 
12439
    /**
12440
     * Performs a deep copy on <i>other</i>.
12441
     */
12442
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12443
      if (other.isSetUsername()) {
12444
        this.username = other.username;
12445
      }
12446
      if (other.isSetPassword()) {
12447
        this.password = other.password;
12448
      }
12449
    }
12450
 
12451
    public authenticateLogisticsUser_args deepCopy() {
12452
      return new authenticateLogisticsUser_args(this);
12453
    }
12454
 
3430 rajveer 12455
    @Override
12456
    public void clear() {
12457
      this.username = null;
12458
      this.password = null;
750 chandransh 12459
    }
12460
 
12461
    public String getUsername() {
12462
      return this.username;
12463
    }
12464
 
3430 rajveer 12465
    public void setUsername(String username) {
750 chandransh 12466
      this.username = username;
12467
    }
12468
 
12469
    public void unsetUsername() {
12470
      this.username = null;
12471
    }
12472
 
3430 rajveer 12473
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12474
    public boolean isSetUsername() {
12475
      return this.username != null;
12476
    }
12477
 
12478
    public void setUsernameIsSet(boolean value) {
12479
      if (!value) {
12480
        this.username = null;
12481
      }
12482
    }
12483
 
12484
    public String getPassword() {
12485
      return this.password;
12486
    }
12487
 
3430 rajveer 12488
    public void setPassword(String password) {
750 chandransh 12489
      this.password = password;
12490
    }
12491
 
12492
    public void unsetPassword() {
12493
      this.password = null;
12494
    }
12495
 
3430 rajveer 12496
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12497
    public boolean isSetPassword() {
12498
      return this.password != null;
12499
    }
12500
 
12501
    public void setPasswordIsSet(boolean value) {
12502
      if (!value) {
12503
        this.password = null;
12504
      }
12505
    }
12506
 
12507
    public void setFieldValue(_Fields field, Object value) {
12508
      switch (field) {
12509
      case USERNAME:
12510
        if (value == null) {
12511
          unsetUsername();
12512
        } else {
12513
          setUsername((String)value);
12514
        }
12515
        break;
12516
 
12517
      case PASSWORD:
12518
        if (value == null) {
12519
          unsetPassword();
12520
        } else {
12521
          setPassword((String)value);
12522
        }
12523
        break;
12524
 
12525
      }
12526
    }
12527
 
12528
    public Object getFieldValue(_Fields field) {
12529
      switch (field) {
12530
      case USERNAME:
12531
        return getUsername();
12532
 
12533
      case PASSWORD:
12534
        return getPassword();
12535
 
12536
      }
12537
      throw new IllegalStateException();
12538
    }
12539
 
3430 rajveer 12540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12541
    public boolean isSet(_Fields field) {
12542
      if (field == null) {
12543
        throw new IllegalArgumentException();
12544
      }
750 chandransh 12545
 
12546
      switch (field) {
12547
      case USERNAME:
12548
        return isSetUsername();
12549
      case PASSWORD:
12550
        return isSetPassword();
12551
      }
12552
      throw new IllegalStateException();
12553
    }
12554
 
12555
    @Override
12556
    public boolean equals(Object that) {
12557
      if (that == null)
12558
        return false;
12559
      if (that instanceof authenticateLogisticsUser_args)
12560
        return this.equals((authenticateLogisticsUser_args)that);
12561
      return false;
12562
    }
12563
 
12564
    public boolean equals(authenticateLogisticsUser_args that) {
12565
      if (that == null)
12566
        return false;
12567
 
12568
      boolean this_present_username = true && this.isSetUsername();
12569
      boolean that_present_username = true && that.isSetUsername();
12570
      if (this_present_username || that_present_username) {
12571
        if (!(this_present_username && that_present_username))
12572
          return false;
12573
        if (!this.username.equals(that.username))
12574
          return false;
12575
      }
12576
 
12577
      boolean this_present_password = true && this.isSetPassword();
12578
      boolean that_present_password = true && that.isSetPassword();
12579
      if (this_present_password || that_present_password) {
12580
        if (!(this_present_password && that_present_password))
12581
          return false;
12582
        if (!this.password.equals(that.password))
12583
          return false;
12584
      }
12585
 
12586
      return true;
12587
    }
12588
 
12589
    @Override
12590
    public int hashCode() {
12591
      return 0;
12592
    }
12593
 
12594
    public int compareTo(authenticateLogisticsUser_args other) {
12595
      if (!getClass().equals(other.getClass())) {
12596
        return getClass().getName().compareTo(other.getClass().getName());
12597
      }
12598
 
12599
      int lastComparison = 0;
12600
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12601
 
3430 rajveer 12602
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12603
      if (lastComparison != 0) {
12604
        return lastComparison;
12605
      }
3430 rajveer 12606
      if (isSetUsername()) {
12607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12608
        if (lastComparison != 0) {
12609
          return lastComparison;
12610
        }
750 chandransh 12611
      }
3430 rajveer 12612
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12613
      if (lastComparison != 0) {
12614
        return lastComparison;
12615
      }
3430 rajveer 12616
      if (isSetPassword()) {
12617
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12618
        if (lastComparison != 0) {
12619
          return lastComparison;
12620
        }
750 chandransh 12621
      }
12622
      return 0;
12623
    }
12624
 
3430 rajveer 12625
    public _Fields fieldForId(int fieldId) {
12626
      return _Fields.findByThriftId(fieldId);
12627
    }
12628
 
12629
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12630
      org.apache.thrift.protocol.TField field;
750 chandransh 12631
      iprot.readStructBegin();
12632
      while (true)
12633
      {
12634
        field = iprot.readFieldBegin();
3430 rajveer 12635
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12636
          break;
12637
        }
3430 rajveer 12638
        switch (field.id) {
12639
          case 1: // USERNAME
12640
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12641
              this.username = iprot.readString();
12642
            } else { 
12643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12644
            }
12645
            break;
12646
          case 2: // PASSWORD
12647
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12648
              this.password = iprot.readString();
12649
            } else { 
12650
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12651
            }
12652
            break;
12653
          default:
12654
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12655
        }
3430 rajveer 12656
        iprot.readFieldEnd();
750 chandransh 12657
      }
12658
      iprot.readStructEnd();
12659
      validate();
12660
    }
12661
 
3430 rajveer 12662
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12663
      validate();
12664
 
12665
      oprot.writeStructBegin(STRUCT_DESC);
12666
      if (this.username != null) {
12667
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12668
        oprot.writeString(this.username);
12669
        oprot.writeFieldEnd();
12670
      }
12671
      if (this.password != null) {
12672
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12673
        oprot.writeString(this.password);
12674
        oprot.writeFieldEnd();
12675
      }
12676
      oprot.writeFieldStop();
12677
      oprot.writeStructEnd();
12678
    }
12679
 
12680
    @Override
12681
    public String toString() {
12682
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12683
      boolean first = true;
12684
 
12685
      sb.append("username:");
12686
      if (this.username == null) {
12687
        sb.append("null");
12688
      } else {
12689
        sb.append(this.username);
12690
      }
12691
      first = false;
12692
      if (!first) sb.append(", ");
12693
      sb.append("password:");
12694
      if (this.password == null) {
12695
        sb.append("null");
12696
      } else {
12697
        sb.append(this.password);
12698
      }
12699
      first = false;
12700
      sb.append(")");
12701
      return sb.toString();
12702
    }
12703
 
3430 rajveer 12704
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12705
      // check for required fields
12706
    }
12707
 
3430 rajveer 12708
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12709
      try {
12710
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12711
      } catch (org.apache.thrift.TException te) {
12712
        throw new java.io.IOException(te);
12713
      }
12714
    }
12715
 
12716
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12717
      try {
12718
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12719
      } catch (org.apache.thrift.TException te) {
12720
        throw new java.io.IOException(te);
12721
      }
12722
    }
12723
 
750 chandransh 12724
  }
12725
 
3430 rajveer 12726
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12727
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12728
 
3430 rajveer 12729
    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);
12730
    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 12731
 
3430 rajveer 12732
    private LogisticsUser success; // required
12733
    private HelperServiceException hse; // required
750 chandransh 12734
 
12735
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12736
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12737
      SUCCESS((short)0, "success"),
12738
      HSE((short)1, "hse");
12739
 
12740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12741
 
12742
      static {
12743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12744
          byName.put(field.getFieldName(), field);
12745
        }
12746
      }
12747
 
12748
      /**
12749
       * Find the _Fields constant that matches fieldId, or null if its not found.
12750
       */
12751
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12752
        switch(fieldId) {
12753
          case 0: // SUCCESS
12754
            return SUCCESS;
12755
          case 1: // HSE
12756
            return HSE;
12757
          default:
12758
            return null;
12759
        }
750 chandransh 12760
      }
12761
 
12762
      /**
12763
       * Find the _Fields constant that matches fieldId, throwing an exception
12764
       * if it is not found.
12765
       */
12766
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12767
        _Fields fields = findByThriftId(fieldId);
12768
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12769
        return fields;
12770
      }
12771
 
12772
      /**
12773
       * Find the _Fields constant that matches name, or null if its not found.
12774
       */
12775
      public static _Fields findByName(String name) {
12776
        return byName.get(name);
12777
      }
12778
 
12779
      private final short _thriftId;
12780
      private final String _fieldName;
12781
 
12782
      _Fields(short thriftId, String fieldName) {
12783
        _thriftId = thriftId;
12784
        _fieldName = fieldName;
12785
      }
12786
 
12787
      public short getThriftFieldId() {
12788
        return _thriftId;
12789
      }
12790
 
12791
      public String getFieldName() {
12792
        return _fieldName;
12793
      }
12794
    }
12795
 
12796
    // isset id assignments
12797
 
3430 rajveer 12798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12799
    static {
3430 rajveer 12800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12801
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12802
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12803
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12804
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12807
    }
12808
 
12809
    public authenticateLogisticsUser_result() {
12810
    }
12811
 
12812
    public authenticateLogisticsUser_result(
12813
      LogisticsUser success,
12814
      HelperServiceException hse)
12815
    {
12816
      this();
12817
      this.success = success;
12818
      this.hse = hse;
12819
    }
12820
 
12821
    /**
12822
     * Performs a deep copy on <i>other</i>.
12823
     */
12824
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12825
      if (other.isSetSuccess()) {
12826
        this.success = new LogisticsUser(other.success);
12827
      }
12828
      if (other.isSetHse()) {
12829
        this.hse = new HelperServiceException(other.hse);
12830
      }
12831
    }
12832
 
12833
    public authenticateLogisticsUser_result deepCopy() {
12834
      return new authenticateLogisticsUser_result(this);
12835
    }
12836
 
3430 rajveer 12837
    @Override
12838
    public void clear() {
12839
      this.success = null;
12840
      this.hse = null;
750 chandransh 12841
    }
12842
 
12843
    public LogisticsUser getSuccess() {
12844
      return this.success;
12845
    }
12846
 
3430 rajveer 12847
    public void setSuccess(LogisticsUser success) {
750 chandransh 12848
      this.success = success;
12849
    }
12850
 
12851
    public void unsetSuccess() {
12852
      this.success = null;
12853
    }
12854
 
3430 rajveer 12855
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12856
    public boolean isSetSuccess() {
12857
      return this.success != null;
12858
    }
12859
 
12860
    public void setSuccessIsSet(boolean value) {
12861
      if (!value) {
12862
        this.success = null;
12863
      }
12864
    }
12865
 
12866
    public HelperServiceException getHse() {
12867
      return this.hse;
12868
    }
12869
 
3430 rajveer 12870
    public void setHse(HelperServiceException hse) {
750 chandransh 12871
      this.hse = hse;
12872
    }
12873
 
12874
    public void unsetHse() {
12875
      this.hse = null;
12876
    }
12877
 
3430 rajveer 12878
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12879
    public boolean isSetHse() {
12880
      return this.hse != null;
12881
    }
12882
 
12883
    public void setHseIsSet(boolean value) {
12884
      if (!value) {
12885
        this.hse = null;
12886
      }
12887
    }
12888
 
12889
    public void setFieldValue(_Fields field, Object value) {
12890
      switch (field) {
12891
      case SUCCESS:
12892
        if (value == null) {
12893
          unsetSuccess();
12894
        } else {
12895
          setSuccess((LogisticsUser)value);
12896
        }
12897
        break;
12898
 
12899
      case HSE:
12900
        if (value == null) {
12901
          unsetHse();
12902
        } else {
12903
          setHse((HelperServiceException)value);
12904
        }
12905
        break;
12906
 
12907
      }
12908
    }
12909
 
12910
    public Object getFieldValue(_Fields field) {
12911
      switch (field) {
12912
      case SUCCESS:
12913
        return getSuccess();
12914
 
12915
      case HSE:
12916
        return getHse();
12917
 
12918
      }
12919
      throw new IllegalStateException();
12920
    }
12921
 
3430 rajveer 12922
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12923
    public boolean isSet(_Fields field) {
12924
      if (field == null) {
12925
        throw new IllegalArgumentException();
12926
      }
750 chandransh 12927
 
12928
      switch (field) {
12929
      case SUCCESS:
12930
        return isSetSuccess();
12931
      case HSE:
12932
        return isSetHse();
12933
      }
12934
      throw new IllegalStateException();
12935
    }
12936
 
12937
    @Override
12938
    public boolean equals(Object that) {
12939
      if (that == null)
12940
        return false;
12941
      if (that instanceof authenticateLogisticsUser_result)
12942
        return this.equals((authenticateLogisticsUser_result)that);
12943
      return false;
12944
    }
12945
 
12946
    public boolean equals(authenticateLogisticsUser_result that) {
12947
      if (that == null)
12948
        return false;
12949
 
12950
      boolean this_present_success = true && this.isSetSuccess();
12951
      boolean that_present_success = true && that.isSetSuccess();
12952
      if (this_present_success || that_present_success) {
12953
        if (!(this_present_success && that_present_success))
12954
          return false;
12955
        if (!this.success.equals(that.success))
12956
          return false;
12957
      }
12958
 
12959
      boolean this_present_hse = true && this.isSetHse();
12960
      boolean that_present_hse = true && that.isSetHse();
12961
      if (this_present_hse || that_present_hse) {
12962
        if (!(this_present_hse && that_present_hse))
12963
          return false;
12964
        if (!this.hse.equals(that.hse))
12965
          return false;
12966
      }
12967
 
12968
      return true;
12969
    }
12970
 
12971
    @Override
12972
    public int hashCode() {
12973
      return 0;
12974
    }
12975
 
12976
    public int compareTo(authenticateLogisticsUser_result other) {
12977
      if (!getClass().equals(other.getClass())) {
12978
        return getClass().getName().compareTo(other.getClass().getName());
12979
      }
12980
 
12981
      int lastComparison = 0;
12982
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
12983
 
3430 rajveer 12984
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 12985
      if (lastComparison != 0) {
12986
        return lastComparison;
12987
      }
3430 rajveer 12988
      if (isSetSuccess()) {
12989
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12990
        if (lastComparison != 0) {
12991
          return lastComparison;
12992
        }
750 chandransh 12993
      }
3430 rajveer 12994
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 12995
      if (lastComparison != 0) {
12996
        return lastComparison;
12997
      }
3430 rajveer 12998
      if (isSetHse()) {
12999
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13000
        if (lastComparison != 0) {
13001
          return lastComparison;
13002
        }
750 chandransh 13003
      }
13004
      return 0;
13005
    }
13006
 
3430 rajveer 13007
    public _Fields fieldForId(int fieldId) {
13008
      return _Fields.findByThriftId(fieldId);
13009
    }
13010
 
13011
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13012
      org.apache.thrift.protocol.TField field;
750 chandransh 13013
      iprot.readStructBegin();
13014
      while (true)
13015
      {
13016
        field = iprot.readFieldBegin();
3430 rajveer 13017
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13018
          break;
13019
        }
3430 rajveer 13020
        switch (field.id) {
13021
          case 0: // SUCCESS
13022
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13023
              this.success = new LogisticsUser();
13024
              this.success.read(iprot);
13025
            } else { 
13026
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13027
            }
13028
            break;
13029
          case 1: // HSE
13030
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13031
              this.hse = new HelperServiceException();
13032
              this.hse.read(iprot);
13033
            } else { 
13034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13035
            }
13036
            break;
13037
          default:
13038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13039
        }
3430 rajveer 13040
        iprot.readFieldEnd();
750 chandransh 13041
      }
13042
      iprot.readStructEnd();
13043
      validate();
13044
    }
13045
 
3430 rajveer 13046
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13047
      oprot.writeStructBegin(STRUCT_DESC);
13048
 
13049
      if (this.isSetSuccess()) {
13050
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13051
        this.success.write(oprot);
13052
        oprot.writeFieldEnd();
13053
      } else if (this.isSetHse()) {
13054
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13055
        this.hse.write(oprot);
13056
        oprot.writeFieldEnd();
13057
      }
13058
      oprot.writeFieldStop();
13059
      oprot.writeStructEnd();
13060
    }
13061
 
13062
    @Override
13063
    public String toString() {
13064
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
13065
      boolean first = true;
13066
 
13067
      sb.append("success:");
13068
      if (this.success == null) {
13069
        sb.append("null");
13070
      } else {
13071
        sb.append(this.success);
13072
      }
13073
      first = false;
13074
      if (!first) sb.append(", ");
13075
      sb.append("hse:");
13076
      if (this.hse == null) {
13077
        sb.append("null");
13078
      } else {
13079
        sb.append(this.hse);
13080
      }
13081
      first = false;
13082
      sb.append(")");
13083
      return sb.toString();
13084
    }
13085
 
3430 rajveer 13086
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13087
      // check for required fields
13088
    }
13089
 
3430 rajveer 13090
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13091
      try {
13092
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13093
      } catch (org.apache.thrift.TException te) {
13094
        throw new java.io.IOException(te);
13095
      }
13096
    }
13097
 
13098
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13099
      try {
13100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13101
      } catch (org.apache.thrift.TException te) {
13102
        throw new java.io.IOException(te);
13103
      }
13104
    }
13105
 
750 chandransh 13106
  }
13107
 
3430 rajveer 13108
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13110
 
3430 rajveer 13111
    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);
13112
    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 13113
 
3430 rajveer 13114
    private String username; // required
13115
    private String password; // required
1611 ankur.sing 13116
 
13117
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13118
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13119
      USERNAME((short)1, "username"),
13120
      PASSWORD((short)2, "password");
13121
 
13122
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13123
 
13124
      static {
13125
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13126
          byName.put(field.getFieldName(), field);
13127
        }
13128
      }
13129
 
13130
      /**
13131
       * Find the _Fields constant that matches fieldId, or null if its not found.
13132
       */
13133
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13134
        switch(fieldId) {
13135
          case 1: // USERNAME
13136
            return USERNAME;
13137
          case 2: // PASSWORD
13138
            return PASSWORD;
13139
          default:
13140
            return null;
13141
        }
1611 ankur.sing 13142
      }
13143
 
13144
      /**
13145
       * Find the _Fields constant that matches fieldId, throwing an exception
13146
       * if it is not found.
13147
       */
13148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13149
        _Fields fields = findByThriftId(fieldId);
13150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13151
        return fields;
13152
      }
13153
 
13154
      /**
13155
       * Find the _Fields constant that matches name, or null if its not found.
13156
       */
13157
      public static _Fields findByName(String name) {
13158
        return byName.get(name);
13159
      }
13160
 
13161
      private final short _thriftId;
13162
      private final String _fieldName;
13163
 
13164
      _Fields(short thriftId, String fieldName) {
13165
        _thriftId = thriftId;
13166
        _fieldName = fieldName;
13167
      }
13168
 
13169
      public short getThriftFieldId() {
13170
        return _thriftId;
13171
      }
13172
 
13173
      public String getFieldName() {
13174
        return _fieldName;
13175
      }
13176
    }
13177
 
13178
    // isset id assignments
13179
 
3430 rajveer 13180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13181
    static {
3430 rajveer 13182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13183
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13184
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13185
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13186
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13187
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13188
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13189
    }
13190
 
13191
    public authenticateStatisticsUser_args() {
13192
    }
13193
 
13194
    public authenticateStatisticsUser_args(
13195
      String username,
13196
      String password)
13197
    {
13198
      this();
13199
      this.username = username;
13200
      this.password = password;
13201
    }
13202
 
13203
    /**
13204
     * Performs a deep copy on <i>other</i>.
13205
     */
13206
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13207
      if (other.isSetUsername()) {
13208
        this.username = other.username;
13209
      }
13210
      if (other.isSetPassword()) {
13211
        this.password = other.password;
13212
      }
13213
    }
13214
 
13215
    public authenticateStatisticsUser_args deepCopy() {
13216
      return new authenticateStatisticsUser_args(this);
13217
    }
13218
 
3430 rajveer 13219
    @Override
13220
    public void clear() {
13221
      this.username = null;
13222
      this.password = null;
1611 ankur.sing 13223
    }
13224
 
13225
    public String getUsername() {
13226
      return this.username;
13227
    }
13228
 
3430 rajveer 13229
    public void setUsername(String username) {
1611 ankur.sing 13230
      this.username = username;
13231
    }
13232
 
13233
    public void unsetUsername() {
13234
      this.username = null;
13235
    }
13236
 
3430 rajveer 13237
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13238
    public boolean isSetUsername() {
13239
      return this.username != null;
13240
    }
13241
 
13242
    public void setUsernameIsSet(boolean value) {
13243
      if (!value) {
13244
        this.username = null;
13245
      }
13246
    }
13247
 
13248
    public String getPassword() {
13249
      return this.password;
13250
    }
13251
 
3430 rajveer 13252
    public void setPassword(String password) {
1611 ankur.sing 13253
      this.password = password;
13254
    }
13255
 
13256
    public void unsetPassword() {
13257
      this.password = null;
13258
    }
13259
 
3430 rajveer 13260
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13261
    public boolean isSetPassword() {
13262
      return this.password != null;
13263
    }
13264
 
13265
    public void setPasswordIsSet(boolean value) {
13266
      if (!value) {
13267
        this.password = null;
13268
      }
13269
    }
13270
 
13271
    public void setFieldValue(_Fields field, Object value) {
13272
      switch (field) {
13273
      case USERNAME:
13274
        if (value == null) {
13275
          unsetUsername();
13276
        } else {
13277
          setUsername((String)value);
13278
        }
13279
        break;
13280
 
13281
      case PASSWORD:
13282
        if (value == null) {
13283
          unsetPassword();
13284
        } else {
13285
          setPassword((String)value);
13286
        }
13287
        break;
13288
 
13289
      }
13290
    }
13291
 
13292
    public Object getFieldValue(_Fields field) {
13293
      switch (field) {
13294
      case USERNAME:
13295
        return getUsername();
13296
 
13297
      case PASSWORD:
13298
        return getPassword();
13299
 
13300
      }
13301
      throw new IllegalStateException();
13302
    }
13303
 
3430 rajveer 13304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13305
    public boolean isSet(_Fields field) {
13306
      if (field == null) {
13307
        throw new IllegalArgumentException();
13308
      }
1611 ankur.sing 13309
 
13310
      switch (field) {
13311
      case USERNAME:
13312
        return isSetUsername();
13313
      case PASSWORD:
13314
        return isSetPassword();
13315
      }
13316
      throw new IllegalStateException();
13317
    }
13318
 
13319
    @Override
13320
    public boolean equals(Object that) {
13321
      if (that == null)
13322
        return false;
13323
      if (that instanceof authenticateStatisticsUser_args)
13324
        return this.equals((authenticateStatisticsUser_args)that);
13325
      return false;
13326
    }
13327
 
13328
    public boolean equals(authenticateStatisticsUser_args that) {
13329
      if (that == null)
13330
        return false;
13331
 
13332
      boolean this_present_username = true && this.isSetUsername();
13333
      boolean that_present_username = true && that.isSetUsername();
13334
      if (this_present_username || that_present_username) {
13335
        if (!(this_present_username && that_present_username))
13336
          return false;
13337
        if (!this.username.equals(that.username))
13338
          return false;
13339
      }
13340
 
13341
      boolean this_present_password = true && this.isSetPassword();
13342
      boolean that_present_password = true && that.isSetPassword();
13343
      if (this_present_password || that_present_password) {
13344
        if (!(this_present_password && that_present_password))
13345
          return false;
13346
        if (!this.password.equals(that.password))
13347
          return false;
13348
      }
13349
 
13350
      return true;
13351
    }
13352
 
13353
    @Override
13354
    public int hashCode() {
13355
      return 0;
13356
    }
13357
 
13358
    public int compareTo(authenticateStatisticsUser_args other) {
13359
      if (!getClass().equals(other.getClass())) {
13360
        return getClass().getName().compareTo(other.getClass().getName());
13361
      }
13362
 
13363
      int lastComparison = 0;
13364
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13365
 
3430 rajveer 13366
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13367
      if (lastComparison != 0) {
13368
        return lastComparison;
13369
      }
3430 rajveer 13370
      if (isSetUsername()) {
13371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13372
        if (lastComparison != 0) {
13373
          return lastComparison;
13374
        }
1611 ankur.sing 13375
      }
3430 rajveer 13376
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13377
      if (lastComparison != 0) {
13378
        return lastComparison;
13379
      }
3430 rajveer 13380
      if (isSetPassword()) {
13381
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13382
        if (lastComparison != 0) {
13383
          return lastComparison;
13384
        }
1611 ankur.sing 13385
      }
13386
      return 0;
13387
    }
13388
 
3430 rajveer 13389
    public _Fields fieldForId(int fieldId) {
13390
      return _Fields.findByThriftId(fieldId);
13391
    }
13392
 
13393
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13394
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13395
      iprot.readStructBegin();
13396
      while (true)
13397
      {
13398
        field = iprot.readFieldBegin();
3430 rajveer 13399
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13400
          break;
13401
        }
3430 rajveer 13402
        switch (field.id) {
13403
          case 1: // USERNAME
13404
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13405
              this.username = iprot.readString();
13406
            } else { 
13407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13408
            }
13409
            break;
13410
          case 2: // PASSWORD
13411
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13412
              this.password = iprot.readString();
13413
            } else { 
13414
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13415
            }
13416
            break;
13417
          default:
13418
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13419
        }
3430 rajveer 13420
        iprot.readFieldEnd();
1611 ankur.sing 13421
      }
13422
      iprot.readStructEnd();
13423
      validate();
13424
    }
13425
 
3430 rajveer 13426
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13427
      validate();
13428
 
13429
      oprot.writeStructBegin(STRUCT_DESC);
13430
      if (this.username != null) {
13431
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13432
        oprot.writeString(this.username);
13433
        oprot.writeFieldEnd();
13434
      }
13435
      if (this.password != null) {
13436
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13437
        oprot.writeString(this.password);
13438
        oprot.writeFieldEnd();
13439
      }
13440
      oprot.writeFieldStop();
13441
      oprot.writeStructEnd();
13442
    }
13443
 
13444
    @Override
13445
    public String toString() {
13446
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13447
      boolean first = true;
13448
 
13449
      sb.append("username:");
13450
      if (this.username == null) {
13451
        sb.append("null");
13452
      } else {
13453
        sb.append(this.username);
13454
      }
13455
      first = false;
13456
      if (!first) sb.append(", ");
13457
      sb.append("password:");
13458
      if (this.password == null) {
13459
        sb.append("null");
13460
      } else {
13461
        sb.append(this.password);
13462
      }
13463
      first = false;
13464
      sb.append(")");
13465
      return sb.toString();
13466
    }
13467
 
3430 rajveer 13468
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13469
      // check for required fields
13470
    }
13471
 
3430 rajveer 13472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13473
      try {
13474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13475
      } catch (org.apache.thrift.TException te) {
13476
        throw new java.io.IOException(te);
13477
      }
13478
    }
13479
 
13480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13481
      try {
13482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13483
      } catch (org.apache.thrift.TException te) {
13484
        throw new java.io.IOException(te);
13485
      }
13486
    }
13487
 
1611 ankur.sing 13488
  }
13489
 
3430 rajveer 13490
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13492
 
3430 rajveer 13493
    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);
13494
    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 13495
 
3430 rajveer 13496
    private StatisticsUser success; // required
13497
    private HelperServiceException hse; // required
1611 ankur.sing 13498
 
13499
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13500
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13501
      SUCCESS((short)0, "success"),
13502
      HSE((short)1, "hse");
13503
 
13504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13505
 
13506
      static {
13507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13508
          byName.put(field.getFieldName(), field);
13509
        }
13510
      }
13511
 
13512
      /**
13513
       * Find the _Fields constant that matches fieldId, or null if its not found.
13514
       */
13515
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13516
        switch(fieldId) {
13517
          case 0: // SUCCESS
13518
            return SUCCESS;
13519
          case 1: // HSE
13520
            return HSE;
13521
          default:
13522
            return null;
13523
        }
1611 ankur.sing 13524
      }
13525
 
13526
      /**
13527
       * Find the _Fields constant that matches fieldId, throwing an exception
13528
       * if it is not found.
13529
       */
13530
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13531
        _Fields fields = findByThriftId(fieldId);
13532
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13533
        return fields;
13534
      }
13535
 
13536
      /**
13537
       * Find the _Fields constant that matches name, or null if its not found.
13538
       */
13539
      public static _Fields findByName(String name) {
13540
        return byName.get(name);
13541
      }
13542
 
13543
      private final short _thriftId;
13544
      private final String _fieldName;
13545
 
13546
      _Fields(short thriftId, String fieldName) {
13547
        _thriftId = thriftId;
13548
        _fieldName = fieldName;
13549
      }
13550
 
13551
      public short getThriftFieldId() {
13552
        return _thriftId;
13553
      }
13554
 
13555
      public String getFieldName() {
13556
        return _fieldName;
13557
      }
13558
    }
13559
 
13560
    // isset id assignments
13561
 
3430 rajveer 13562
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13563
    static {
3430 rajveer 13564
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13565
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13566
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13567
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13568
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13569
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13570
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13571
    }
13572
 
13573
    public authenticateStatisticsUser_result() {
13574
    }
13575
 
13576
    public authenticateStatisticsUser_result(
13577
      StatisticsUser success,
13578
      HelperServiceException hse)
13579
    {
13580
      this();
13581
      this.success = success;
13582
      this.hse = hse;
13583
    }
13584
 
13585
    /**
13586
     * Performs a deep copy on <i>other</i>.
13587
     */
13588
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13589
      if (other.isSetSuccess()) {
13590
        this.success = new StatisticsUser(other.success);
13591
      }
13592
      if (other.isSetHse()) {
13593
        this.hse = new HelperServiceException(other.hse);
13594
      }
13595
    }
13596
 
13597
    public authenticateStatisticsUser_result deepCopy() {
13598
      return new authenticateStatisticsUser_result(this);
13599
    }
13600
 
3430 rajveer 13601
    @Override
13602
    public void clear() {
13603
      this.success = null;
13604
      this.hse = null;
1611 ankur.sing 13605
    }
13606
 
13607
    public StatisticsUser getSuccess() {
13608
      return this.success;
13609
    }
13610
 
3430 rajveer 13611
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13612
      this.success = success;
13613
    }
13614
 
13615
    public void unsetSuccess() {
13616
      this.success = null;
13617
    }
13618
 
3430 rajveer 13619
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13620
    public boolean isSetSuccess() {
13621
      return this.success != null;
13622
    }
13623
 
13624
    public void setSuccessIsSet(boolean value) {
13625
      if (!value) {
13626
        this.success = null;
13627
      }
13628
    }
13629
 
13630
    public HelperServiceException getHse() {
13631
      return this.hse;
13632
    }
13633
 
3430 rajveer 13634
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13635
      this.hse = hse;
13636
    }
13637
 
13638
    public void unsetHse() {
13639
      this.hse = null;
13640
    }
13641
 
3430 rajveer 13642
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13643
    public boolean isSetHse() {
13644
      return this.hse != null;
13645
    }
13646
 
13647
    public void setHseIsSet(boolean value) {
13648
      if (!value) {
13649
        this.hse = null;
13650
      }
13651
    }
13652
 
13653
    public void setFieldValue(_Fields field, Object value) {
13654
      switch (field) {
13655
      case SUCCESS:
13656
        if (value == null) {
13657
          unsetSuccess();
13658
        } else {
13659
          setSuccess((StatisticsUser)value);
13660
        }
13661
        break;
13662
 
13663
      case HSE:
13664
        if (value == null) {
13665
          unsetHse();
13666
        } else {
13667
          setHse((HelperServiceException)value);
13668
        }
13669
        break;
13670
 
13671
      }
13672
    }
13673
 
13674
    public Object getFieldValue(_Fields field) {
13675
      switch (field) {
13676
      case SUCCESS:
13677
        return getSuccess();
13678
 
13679
      case HSE:
13680
        return getHse();
13681
 
13682
      }
13683
      throw new IllegalStateException();
13684
    }
13685
 
3430 rajveer 13686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13687
    public boolean isSet(_Fields field) {
13688
      if (field == null) {
13689
        throw new IllegalArgumentException();
13690
      }
1611 ankur.sing 13691
 
13692
      switch (field) {
13693
      case SUCCESS:
13694
        return isSetSuccess();
13695
      case HSE:
13696
        return isSetHse();
13697
      }
13698
      throw new IllegalStateException();
13699
    }
13700
 
13701
    @Override
13702
    public boolean equals(Object that) {
13703
      if (that == null)
13704
        return false;
13705
      if (that instanceof authenticateStatisticsUser_result)
13706
        return this.equals((authenticateStatisticsUser_result)that);
13707
      return false;
13708
    }
13709
 
13710
    public boolean equals(authenticateStatisticsUser_result that) {
13711
      if (that == null)
13712
        return false;
13713
 
13714
      boolean this_present_success = true && this.isSetSuccess();
13715
      boolean that_present_success = true && that.isSetSuccess();
13716
      if (this_present_success || that_present_success) {
13717
        if (!(this_present_success && that_present_success))
13718
          return false;
13719
        if (!this.success.equals(that.success))
13720
          return false;
13721
      }
13722
 
13723
      boolean this_present_hse = true && this.isSetHse();
13724
      boolean that_present_hse = true && that.isSetHse();
13725
      if (this_present_hse || that_present_hse) {
13726
        if (!(this_present_hse && that_present_hse))
13727
          return false;
13728
        if (!this.hse.equals(that.hse))
13729
          return false;
13730
      }
13731
 
13732
      return true;
13733
    }
13734
 
13735
    @Override
13736
    public int hashCode() {
13737
      return 0;
13738
    }
13739
 
13740
    public int compareTo(authenticateStatisticsUser_result other) {
13741
      if (!getClass().equals(other.getClass())) {
13742
        return getClass().getName().compareTo(other.getClass().getName());
13743
      }
13744
 
13745
      int lastComparison = 0;
13746
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13747
 
3430 rajveer 13748
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13749
      if (lastComparison != 0) {
13750
        return lastComparison;
13751
      }
3430 rajveer 13752
      if (isSetSuccess()) {
13753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13754
        if (lastComparison != 0) {
13755
          return lastComparison;
13756
        }
1611 ankur.sing 13757
      }
3430 rajveer 13758
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13759
      if (lastComparison != 0) {
13760
        return lastComparison;
13761
      }
3430 rajveer 13762
      if (isSetHse()) {
13763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13764
        if (lastComparison != 0) {
13765
          return lastComparison;
13766
        }
1611 ankur.sing 13767
      }
13768
      return 0;
13769
    }
13770
 
3430 rajveer 13771
    public _Fields fieldForId(int fieldId) {
13772
      return _Fields.findByThriftId(fieldId);
13773
    }
13774
 
13775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13776
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13777
      iprot.readStructBegin();
13778
      while (true)
13779
      {
13780
        field = iprot.readFieldBegin();
3430 rajveer 13781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13782
          break;
13783
        }
3430 rajveer 13784
        switch (field.id) {
13785
          case 0: // SUCCESS
13786
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13787
              this.success = new StatisticsUser();
13788
              this.success.read(iprot);
13789
            } else { 
13790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13791
            }
13792
            break;
13793
          case 1: // HSE
13794
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13795
              this.hse = new HelperServiceException();
13796
              this.hse.read(iprot);
13797
            } else { 
13798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13799
            }
13800
            break;
13801
          default:
13802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13803
        }
3430 rajveer 13804
        iprot.readFieldEnd();
1611 ankur.sing 13805
      }
13806
      iprot.readStructEnd();
13807
      validate();
13808
    }
13809
 
3430 rajveer 13810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13811
      oprot.writeStructBegin(STRUCT_DESC);
13812
 
13813
      if (this.isSetSuccess()) {
13814
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13815
        this.success.write(oprot);
13816
        oprot.writeFieldEnd();
13817
      } else if (this.isSetHse()) {
13818
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13819
        this.hse.write(oprot);
13820
        oprot.writeFieldEnd();
13821
      }
13822
      oprot.writeFieldStop();
13823
      oprot.writeStructEnd();
13824
    }
13825
 
13826
    @Override
13827
    public String toString() {
13828
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13829
      boolean first = true;
13830
 
13831
      sb.append("success:");
13832
      if (this.success == null) {
13833
        sb.append("null");
13834
      } else {
13835
        sb.append(this.success);
13836
      }
13837
      first = false;
13838
      if (!first) sb.append(", ");
13839
      sb.append("hse:");
13840
      if (this.hse == null) {
13841
        sb.append("null");
13842
      } else {
13843
        sb.append(this.hse);
13844
      }
13845
      first = false;
13846
      sb.append(")");
13847
      return sb.toString();
13848
    }
13849
 
3430 rajveer 13850
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13851
      // check for required fields
13852
    }
13853
 
3430 rajveer 13854
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13855
      try {
13856
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13857
      } catch (org.apache.thrift.TException te) {
13858
        throw new java.io.IOException(te);
13859
      }
13860
    }
13861
 
13862
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13863
      try {
13864
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13865
      } catch (org.apache.thrift.TException te) {
13866
        throw new java.io.IOException(te);
13867
      }
13868
    }
13869
 
1611 ankur.sing 13870
  }
13871
 
3430 rajveer 13872
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13873
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13874
 
3430 rajveer 13875
    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);
13876
    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 13877
 
3430 rajveer 13878
    private String username; // required
13879
    private String password; // required
1891 ankur.sing 13880
 
13881
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13882
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13883
      USERNAME((short)1, "username"),
13884
      PASSWORD((short)2, "password");
13885
 
13886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13887
 
13888
      static {
13889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13890
          byName.put(field.getFieldName(), field);
13891
        }
13892
      }
13893
 
13894
      /**
13895
       * Find the _Fields constant that matches fieldId, or null if its not found.
13896
       */
13897
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13898
        switch(fieldId) {
13899
          case 1: // USERNAME
13900
            return USERNAME;
13901
          case 2: // PASSWORD
13902
            return PASSWORD;
13903
          default:
13904
            return null;
13905
        }
1891 ankur.sing 13906
      }
13907
 
13908
      /**
13909
       * Find the _Fields constant that matches fieldId, throwing an exception
13910
       * if it is not found.
13911
       */
13912
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13913
        _Fields fields = findByThriftId(fieldId);
13914
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13915
        return fields;
13916
      }
13917
 
13918
      /**
13919
       * Find the _Fields constant that matches name, or null if its not found.
13920
       */
13921
      public static _Fields findByName(String name) {
13922
        return byName.get(name);
13923
      }
13924
 
13925
      private final short _thriftId;
13926
      private final String _fieldName;
13927
 
13928
      _Fields(short thriftId, String fieldName) {
13929
        _thriftId = thriftId;
13930
        _fieldName = fieldName;
13931
      }
13932
 
13933
      public short getThriftFieldId() {
13934
        return _thriftId;
13935
      }
13936
 
13937
      public String getFieldName() {
13938
        return _fieldName;
13939
      }
13940
    }
13941
 
13942
    // isset id assignments
13943
 
3430 rajveer 13944
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 13945
    static {
3430 rajveer 13946
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13947
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13948
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13949
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13950
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13951
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13952
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 13953
    }
13954
 
13955
    public authenticateReportUser_args() {
13956
    }
13957
 
13958
    public authenticateReportUser_args(
13959
      String username,
13960
      String password)
13961
    {
13962
      this();
13963
      this.username = username;
13964
      this.password = password;
13965
    }
13966
 
13967
    /**
13968
     * Performs a deep copy on <i>other</i>.
13969
     */
13970
    public authenticateReportUser_args(authenticateReportUser_args other) {
13971
      if (other.isSetUsername()) {
13972
        this.username = other.username;
13973
      }
13974
      if (other.isSetPassword()) {
13975
        this.password = other.password;
13976
      }
13977
    }
13978
 
13979
    public authenticateReportUser_args deepCopy() {
13980
      return new authenticateReportUser_args(this);
13981
    }
13982
 
3430 rajveer 13983
    @Override
13984
    public void clear() {
13985
      this.username = null;
13986
      this.password = null;
1891 ankur.sing 13987
    }
13988
 
13989
    public String getUsername() {
13990
      return this.username;
13991
    }
13992
 
3430 rajveer 13993
    public void setUsername(String username) {
1891 ankur.sing 13994
      this.username = username;
13995
    }
13996
 
13997
    public void unsetUsername() {
13998
      this.username = null;
13999
    }
14000
 
3430 rajveer 14001
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14002
    public boolean isSetUsername() {
14003
      return this.username != null;
14004
    }
14005
 
14006
    public void setUsernameIsSet(boolean value) {
14007
      if (!value) {
14008
        this.username = null;
14009
      }
14010
    }
14011
 
14012
    public String getPassword() {
14013
      return this.password;
14014
    }
14015
 
3430 rajveer 14016
    public void setPassword(String password) {
1891 ankur.sing 14017
      this.password = password;
14018
    }
14019
 
14020
    public void unsetPassword() {
14021
      this.password = null;
14022
    }
14023
 
3430 rajveer 14024
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14025
    public boolean isSetPassword() {
14026
      return this.password != null;
14027
    }
14028
 
14029
    public void setPasswordIsSet(boolean value) {
14030
      if (!value) {
14031
        this.password = null;
14032
      }
14033
    }
14034
 
14035
    public void setFieldValue(_Fields field, Object value) {
14036
      switch (field) {
14037
      case USERNAME:
14038
        if (value == null) {
14039
          unsetUsername();
14040
        } else {
14041
          setUsername((String)value);
14042
        }
14043
        break;
14044
 
14045
      case PASSWORD:
14046
        if (value == null) {
14047
          unsetPassword();
14048
        } else {
14049
          setPassword((String)value);
14050
        }
14051
        break;
14052
 
14053
      }
14054
    }
14055
 
14056
    public Object getFieldValue(_Fields field) {
14057
      switch (field) {
14058
      case USERNAME:
14059
        return getUsername();
14060
 
14061
      case PASSWORD:
14062
        return getPassword();
14063
 
14064
      }
14065
      throw new IllegalStateException();
14066
    }
14067
 
3430 rajveer 14068
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14069
    public boolean isSet(_Fields field) {
14070
      if (field == null) {
14071
        throw new IllegalArgumentException();
14072
      }
1891 ankur.sing 14073
 
14074
      switch (field) {
14075
      case USERNAME:
14076
        return isSetUsername();
14077
      case PASSWORD:
14078
        return isSetPassword();
14079
      }
14080
      throw new IllegalStateException();
14081
    }
14082
 
14083
    @Override
14084
    public boolean equals(Object that) {
14085
      if (that == null)
14086
        return false;
14087
      if (that instanceof authenticateReportUser_args)
14088
        return this.equals((authenticateReportUser_args)that);
14089
      return false;
14090
    }
14091
 
14092
    public boolean equals(authenticateReportUser_args that) {
14093
      if (that == null)
14094
        return false;
14095
 
14096
      boolean this_present_username = true && this.isSetUsername();
14097
      boolean that_present_username = true && that.isSetUsername();
14098
      if (this_present_username || that_present_username) {
14099
        if (!(this_present_username && that_present_username))
14100
          return false;
14101
        if (!this.username.equals(that.username))
14102
          return false;
14103
      }
14104
 
14105
      boolean this_present_password = true && this.isSetPassword();
14106
      boolean that_present_password = true && that.isSetPassword();
14107
      if (this_present_password || that_present_password) {
14108
        if (!(this_present_password && that_present_password))
14109
          return false;
14110
        if (!this.password.equals(that.password))
14111
          return false;
14112
      }
14113
 
14114
      return true;
14115
    }
14116
 
14117
    @Override
14118
    public int hashCode() {
14119
      return 0;
14120
    }
14121
 
14122
    public int compareTo(authenticateReportUser_args other) {
14123
      if (!getClass().equals(other.getClass())) {
14124
        return getClass().getName().compareTo(other.getClass().getName());
14125
      }
14126
 
14127
      int lastComparison = 0;
14128
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14129
 
3430 rajveer 14130
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14131
      if (lastComparison != 0) {
14132
        return lastComparison;
14133
      }
3430 rajveer 14134
      if (isSetUsername()) {
14135
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14136
        if (lastComparison != 0) {
14137
          return lastComparison;
14138
        }
1891 ankur.sing 14139
      }
3430 rajveer 14140
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14141
      if (lastComparison != 0) {
14142
        return lastComparison;
14143
      }
3430 rajveer 14144
      if (isSetPassword()) {
14145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14146
        if (lastComparison != 0) {
14147
          return lastComparison;
14148
        }
1891 ankur.sing 14149
      }
14150
      return 0;
14151
    }
14152
 
3430 rajveer 14153
    public _Fields fieldForId(int fieldId) {
14154
      return _Fields.findByThriftId(fieldId);
14155
    }
14156
 
14157
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14158
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14159
      iprot.readStructBegin();
14160
      while (true)
14161
      {
14162
        field = iprot.readFieldBegin();
3430 rajveer 14163
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14164
          break;
14165
        }
3430 rajveer 14166
        switch (field.id) {
14167
          case 1: // USERNAME
14168
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14169
              this.username = iprot.readString();
14170
            } else { 
14171
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14172
            }
14173
            break;
14174
          case 2: // PASSWORD
14175
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14176
              this.password = iprot.readString();
14177
            } else { 
14178
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14179
            }
14180
            break;
14181
          default:
14182
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14183
        }
3430 rajveer 14184
        iprot.readFieldEnd();
1891 ankur.sing 14185
      }
14186
      iprot.readStructEnd();
14187
      validate();
14188
    }
14189
 
3430 rajveer 14190
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14191
      validate();
14192
 
14193
      oprot.writeStructBegin(STRUCT_DESC);
14194
      if (this.username != null) {
14195
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14196
        oprot.writeString(this.username);
14197
        oprot.writeFieldEnd();
14198
      }
14199
      if (this.password != null) {
14200
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14201
        oprot.writeString(this.password);
14202
        oprot.writeFieldEnd();
14203
      }
14204
      oprot.writeFieldStop();
14205
      oprot.writeStructEnd();
14206
    }
14207
 
14208
    @Override
14209
    public String toString() {
14210
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14211
      boolean first = true;
14212
 
14213
      sb.append("username:");
14214
      if (this.username == null) {
14215
        sb.append("null");
14216
      } else {
14217
        sb.append(this.username);
14218
      }
14219
      first = false;
14220
      if (!first) sb.append(", ");
14221
      sb.append("password:");
14222
      if (this.password == null) {
14223
        sb.append("null");
14224
      } else {
14225
        sb.append(this.password);
14226
      }
14227
      first = false;
14228
      sb.append(")");
14229
      return sb.toString();
14230
    }
14231
 
3430 rajveer 14232
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14233
      // check for required fields
14234
    }
14235
 
3430 rajveer 14236
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14237
      try {
14238
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14239
      } catch (org.apache.thrift.TException te) {
14240
        throw new java.io.IOException(te);
14241
      }
14242
    }
14243
 
14244
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14245
      try {
14246
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14247
      } catch (org.apache.thrift.TException te) {
14248
        throw new java.io.IOException(te);
14249
      }
14250
    }
14251
 
1891 ankur.sing 14252
  }
14253
 
3430 rajveer 14254
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14255
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14256
 
3430 rajveer 14257
    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);
14258
    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 14259
 
3430 rajveer 14260
    private ReportUser success; // required
14261
    private HelperServiceException hse; // required
1891 ankur.sing 14262
 
14263
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14264
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14265
      SUCCESS((short)0, "success"),
14266
      HSE((short)1, "hse");
14267
 
14268
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14269
 
14270
      static {
14271
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14272
          byName.put(field.getFieldName(), field);
14273
        }
14274
      }
14275
 
14276
      /**
14277
       * Find the _Fields constant that matches fieldId, or null if its not found.
14278
       */
14279
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14280
        switch(fieldId) {
14281
          case 0: // SUCCESS
14282
            return SUCCESS;
14283
          case 1: // HSE
14284
            return HSE;
14285
          default:
14286
            return null;
14287
        }
1891 ankur.sing 14288
      }
14289
 
14290
      /**
14291
       * Find the _Fields constant that matches fieldId, throwing an exception
14292
       * if it is not found.
14293
       */
14294
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14295
        _Fields fields = findByThriftId(fieldId);
14296
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14297
        return fields;
14298
      }
14299
 
14300
      /**
14301
       * Find the _Fields constant that matches name, or null if its not found.
14302
       */
14303
      public static _Fields findByName(String name) {
14304
        return byName.get(name);
14305
      }
14306
 
14307
      private final short _thriftId;
14308
      private final String _fieldName;
14309
 
14310
      _Fields(short thriftId, String fieldName) {
14311
        _thriftId = thriftId;
14312
        _fieldName = fieldName;
14313
      }
14314
 
14315
      public short getThriftFieldId() {
14316
        return _thriftId;
14317
      }
14318
 
14319
      public String getFieldName() {
14320
        return _fieldName;
14321
      }
14322
    }
14323
 
14324
    // isset id assignments
14325
 
3430 rajveer 14326
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14327
    static {
3430 rajveer 14328
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14329
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14330
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14331
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14332
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14333
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14334
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14335
    }
14336
 
14337
    public authenticateReportUser_result() {
14338
    }
14339
 
14340
    public authenticateReportUser_result(
14341
      ReportUser success,
14342
      HelperServiceException hse)
14343
    {
14344
      this();
14345
      this.success = success;
14346
      this.hse = hse;
14347
    }
14348
 
14349
    /**
14350
     * Performs a deep copy on <i>other</i>.
14351
     */
14352
    public authenticateReportUser_result(authenticateReportUser_result other) {
14353
      if (other.isSetSuccess()) {
14354
        this.success = new ReportUser(other.success);
14355
      }
14356
      if (other.isSetHse()) {
14357
        this.hse = new HelperServiceException(other.hse);
14358
      }
14359
    }
14360
 
14361
    public authenticateReportUser_result deepCopy() {
14362
      return new authenticateReportUser_result(this);
14363
    }
14364
 
3430 rajveer 14365
    @Override
14366
    public void clear() {
14367
      this.success = null;
14368
      this.hse = null;
1891 ankur.sing 14369
    }
14370
 
14371
    public ReportUser getSuccess() {
14372
      return this.success;
14373
    }
14374
 
3430 rajveer 14375
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14376
      this.success = success;
14377
    }
14378
 
14379
    public void unsetSuccess() {
14380
      this.success = null;
14381
    }
14382
 
3430 rajveer 14383
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14384
    public boolean isSetSuccess() {
14385
      return this.success != null;
14386
    }
14387
 
14388
    public void setSuccessIsSet(boolean value) {
14389
      if (!value) {
14390
        this.success = null;
14391
      }
14392
    }
14393
 
14394
    public HelperServiceException getHse() {
14395
      return this.hse;
14396
    }
14397
 
3430 rajveer 14398
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14399
      this.hse = hse;
14400
    }
14401
 
14402
    public void unsetHse() {
14403
      this.hse = null;
14404
    }
14405
 
3430 rajveer 14406
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14407
    public boolean isSetHse() {
14408
      return this.hse != null;
14409
    }
14410
 
14411
    public void setHseIsSet(boolean value) {
14412
      if (!value) {
14413
        this.hse = null;
14414
      }
14415
    }
14416
 
14417
    public void setFieldValue(_Fields field, Object value) {
14418
      switch (field) {
14419
      case SUCCESS:
14420
        if (value == null) {
14421
          unsetSuccess();
14422
        } else {
14423
          setSuccess((ReportUser)value);
14424
        }
14425
        break;
14426
 
14427
      case HSE:
14428
        if (value == null) {
14429
          unsetHse();
14430
        } else {
14431
          setHse((HelperServiceException)value);
14432
        }
14433
        break;
14434
 
14435
      }
14436
    }
14437
 
14438
    public Object getFieldValue(_Fields field) {
14439
      switch (field) {
14440
      case SUCCESS:
14441
        return getSuccess();
14442
 
14443
      case HSE:
14444
        return getHse();
14445
 
14446
      }
14447
      throw new IllegalStateException();
14448
    }
14449
 
3430 rajveer 14450
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14451
    public boolean isSet(_Fields field) {
14452
      if (field == null) {
14453
        throw new IllegalArgumentException();
14454
      }
1891 ankur.sing 14455
 
14456
      switch (field) {
14457
      case SUCCESS:
14458
        return isSetSuccess();
14459
      case HSE:
14460
        return isSetHse();
14461
      }
14462
      throw new IllegalStateException();
14463
    }
14464
 
14465
    @Override
14466
    public boolean equals(Object that) {
14467
      if (that == null)
14468
        return false;
14469
      if (that instanceof authenticateReportUser_result)
14470
        return this.equals((authenticateReportUser_result)that);
14471
      return false;
14472
    }
14473
 
14474
    public boolean equals(authenticateReportUser_result that) {
14475
      if (that == null)
14476
        return false;
14477
 
14478
      boolean this_present_success = true && this.isSetSuccess();
14479
      boolean that_present_success = true && that.isSetSuccess();
14480
      if (this_present_success || that_present_success) {
14481
        if (!(this_present_success && that_present_success))
14482
          return false;
14483
        if (!this.success.equals(that.success))
14484
          return false;
14485
      }
14486
 
14487
      boolean this_present_hse = true && this.isSetHse();
14488
      boolean that_present_hse = true && that.isSetHse();
14489
      if (this_present_hse || that_present_hse) {
14490
        if (!(this_present_hse && that_present_hse))
14491
          return false;
14492
        if (!this.hse.equals(that.hse))
14493
          return false;
14494
      }
14495
 
14496
      return true;
14497
    }
14498
 
14499
    @Override
14500
    public int hashCode() {
14501
      return 0;
14502
    }
14503
 
14504
    public int compareTo(authenticateReportUser_result other) {
14505
      if (!getClass().equals(other.getClass())) {
14506
        return getClass().getName().compareTo(other.getClass().getName());
14507
      }
14508
 
14509
      int lastComparison = 0;
14510
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14511
 
3430 rajveer 14512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14513
      if (lastComparison != 0) {
14514
        return lastComparison;
14515
      }
3430 rajveer 14516
      if (isSetSuccess()) {
14517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14518
        if (lastComparison != 0) {
14519
          return lastComparison;
14520
        }
1891 ankur.sing 14521
      }
3430 rajveer 14522
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14523
      if (lastComparison != 0) {
14524
        return lastComparison;
14525
      }
3430 rajveer 14526
      if (isSetHse()) {
14527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14528
        if (lastComparison != 0) {
14529
          return lastComparison;
14530
        }
1891 ankur.sing 14531
      }
14532
      return 0;
14533
    }
14534
 
3430 rajveer 14535
    public _Fields fieldForId(int fieldId) {
14536
      return _Fields.findByThriftId(fieldId);
14537
    }
14538
 
14539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14540
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14541
      iprot.readStructBegin();
14542
      while (true)
14543
      {
14544
        field = iprot.readFieldBegin();
3430 rajveer 14545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14546
          break;
14547
        }
3430 rajveer 14548
        switch (field.id) {
14549
          case 0: // SUCCESS
14550
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14551
              this.success = new ReportUser();
14552
              this.success.read(iprot);
14553
            } else { 
14554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14555
            }
14556
            break;
14557
          case 1: // HSE
14558
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14559
              this.hse = new HelperServiceException();
14560
              this.hse.read(iprot);
14561
            } else { 
14562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14563
            }
14564
            break;
14565
          default:
14566
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14567
        }
3430 rajveer 14568
        iprot.readFieldEnd();
1891 ankur.sing 14569
      }
14570
      iprot.readStructEnd();
14571
      validate();
14572
    }
14573
 
3430 rajveer 14574
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14575
      oprot.writeStructBegin(STRUCT_DESC);
14576
 
14577
      if (this.isSetSuccess()) {
14578
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14579
        this.success.write(oprot);
14580
        oprot.writeFieldEnd();
14581
      } else if (this.isSetHse()) {
14582
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14583
        this.hse.write(oprot);
14584
        oprot.writeFieldEnd();
14585
      }
14586
      oprot.writeFieldStop();
14587
      oprot.writeStructEnd();
14588
    }
14589
 
14590
    @Override
14591
    public String toString() {
14592
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14593
      boolean first = true;
14594
 
14595
      sb.append("success:");
14596
      if (this.success == null) {
14597
        sb.append("null");
14598
      } else {
14599
        sb.append(this.success);
14600
      }
14601
      first = false;
14602
      if (!first) sb.append(", ");
14603
      sb.append("hse:");
14604
      if (this.hse == null) {
14605
        sb.append("null");
14606
      } else {
14607
        sb.append(this.hse);
14608
      }
14609
      first = false;
14610
      sb.append(")");
14611
      return sb.toString();
14612
    }
14613
 
3430 rajveer 14614
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14615
      // check for required fields
14616
    }
14617
 
3430 rajveer 14618
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14619
      try {
14620
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14621
      } catch (org.apache.thrift.TException te) {
14622
        throw new java.io.IOException(te);
14623
      }
14624
    }
14625
 
14626
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14627
      try {
14628
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14629
      } catch (org.apache.thrift.TException te) {
14630
        throw new java.io.IOException(te);
14631
      }
14632
    }
14633
 
1891 ankur.sing 14634
  }
14635
 
3430 rajveer 14636
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14637
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14638
 
3430 rajveer 14639
    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 14640
 
3430 rajveer 14641
    private long role; // required
1891 ankur.sing 14642
 
14643
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14644
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14645
      ROLE((short)1, "role");
14646
 
14647
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14648
 
14649
      static {
14650
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14651
          byName.put(field.getFieldName(), field);
14652
        }
14653
      }
14654
 
14655
      /**
14656
       * Find the _Fields constant that matches fieldId, or null if its not found.
14657
       */
14658
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14659
        switch(fieldId) {
14660
          case 1: // ROLE
14661
            return ROLE;
14662
          default:
14663
            return null;
14664
        }
1891 ankur.sing 14665
      }
14666
 
14667
      /**
14668
       * Find the _Fields constant that matches fieldId, throwing an exception
14669
       * if it is not found.
14670
       */
14671
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14672
        _Fields fields = findByThriftId(fieldId);
14673
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14674
        return fields;
14675
      }
14676
 
14677
      /**
14678
       * Find the _Fields constant that matches name, or null if its not found.
14679
       */
14680
      public static _Fields findByName(String name) {
14681
        return byName.get(name);
14682
      }
14683
 
14684
      private final short _thriftId;
14685
      private final String _fieldName;
14686
 
14687
      _Fields(short thriftId, String fieldName) {
14688
        _thriftId = thriftId;
14689
        _fieldName = fieldName;
14690
      }
14691
 
14692
      public short getThriftFieldId() {
14693
        return _thriftId;
14694
      }
14695
 
14696
      public String getFieldName() {
14697
        return _fieldName;
14698
      }
14699
    }
14700
 
14701
    // isset id assignments
14702
    private static final int __ROLE_ISSET_ID = 0;
14703
    private BitSet __isset_bit_vector = new BitSet(1);
14704
 
3430 rajveer 14705
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14706
    static {
3430 rajveer 14707
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14708
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14709
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14710
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14711
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14712
    }
14713
 
14714
    public getReports_args() {
14715
    }
14716
 
14717
    public getReports_args(
14718
      long role)
14719
    {
14720
      this();
14721
      this.role = role;
14722
      setRoleIsSet(true);
14723
    }
14724
 
14725
    /**
14726
     * Performs a deep copy on <i>other</i>.
14727
     */
14728
    public getReports_args(getReports_args other) {
14729
      __isset_bit_vector.clear();
14730
      __isset_bit_vector.or(other.__isset_bit_vector);
14731
      this.role = other.role;
14732
    }
14733
 
14734
    public getReports_args deepCopy() {
14735
      return new getReports_args(this);
14736
    }
14737
 
3430 rajveer 14738
    @Override
14739
    public void clear() {
14740
      setRoleIsSet(false);
14741
      this.role = 0;
1891 ankur.sing 14742
    }
14743
 
14744
    public long getRole() {
14745
      return this.role;
14746
    }
14747
 
3430 rajveer 14748
    public void setRole(long role) {
1891 ankur.sing 14749
      this.role = role;
14750
      setRoleIsSet(true);
14751
    }
14752
 
14753
    public void unsetRole() {
14754
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14755
    }
14756
 
3430 rajveer 14757
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14758
    public boolean isSetRole() {
14759
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14760
    }
14761
 
14762
    public void setRoleIsSet(boolean value) {
14763
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14764
    }
14765
 
14766
    public void setFieldValue(_Fields field, Object value) {
14767
      switch (field) {
14768
      case ROLE:
14769
        if (value == null) {
14770
          unsetRole();
14771
        } else {
14772
          setRole((Long)value);
14773
        }
14774
        break;
14775
 
14776
      }
14777
    }
14778
 
14779
    public Object getFieldValue(_Fields field) {
14780
      switch (field) {
14781
      case ROLE:
3430 rajveer 14782
        return Long.valueOf(getRole());
1891 ankur.sing 14783
 
14784
      }
14785
      throw new IllegalStateException();
14786
    }
14787
 
3430 rajveer 14788
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14789
    public boolean isSet(_Fields field) {
14790
      if (field == null) {
14791
        throw new IllegalArgumentException();
14792
      }
1891 ankur.sing 14793
 
14794
      switch (field) {
14795
      case ROLE:
14796
        return isSetRole();
14797
      }
14798
      throw new IllegalStateException();
14799
    }
14800
 
14801
    @Override
14802
    public boolean equals(Object that) {
14803
      if (that == null)
14804
        return false;
14805
      if (that instanceof getReports_args)
14806
        return this.equals((getReports_args)that);
14807
      return false;
14808
    }
14809
 
14810
    public boolean equals(getReports_args that) {
14811
      if (that == null)
14812
        return false;
14813
 
14814
      boolean this_present_role = true;
14815
      boolean that_present_role = true;
14816
      if (this_present_role || that_present_role) {
14817
        if (!(this_present_role && that_present_role))
14818
          return false;
14819
        if (this.role != that.role)
14820
          return false;
14821
      }
14822
 
14823
      return true;
14824
    }
14825
 
14826
    @Override
14827
    public int hashCode() {
14828
      return 0;
14829
    }
14830
 
14831
    public int compareTo(getReports_args other) {
14832
      if (!getClass().equals(other.getClass())) {
14833
        return getClass().getName().compareTo(other.getClass().getName());
14834
      }
14835
 
14836
      int lastComparison = 0;
14837
      getReports_args typedOther = (getReports_args)other;
14838
 
3430 rajveer 14839
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14840
      if (lastComparison != 0) {
14841
        return lastComparison;
14842
      }
3430 rajveer 14843
      if (isSetRole()) {
14844
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14845
        if (lastComparison != 0) {
14846
          return lastComparison;
14847
        }
1891 ankur.sing 14848
      }
14849
      return 0;
14850
    }
14851
 
3430 rajveer 14852
    public _Fields fieldForId(int fieldId) {
14853
      return _Fields.findByThriftId(fieldId);
14854
    }
14855
 
14856
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14857
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14858
      iprot.readStructBegin();
14859
      while (true)
14860
      {
14861
        field = iprot.readFieldBegin();
3430 rajveer 14862
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14863
          break;
14864
        }
3430 rajveer 14865
        switch (field.id) {
14866
          case 1: // ROLE
14867
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14868
              this.role = iprot.readI64();
14869
              setRoleIsSet(true);
14870
            } else { 
14871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14872
            }
14873
            break;
14874
          default:
14875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14876
        }
3430 rajveer 14877
        iprot.readFieldEnd();
1891 ankur.sing 14878
      }
14879
      iprot.readStructEnd();
14880
      validate();
14881
    }
14882
 
3430 rajveer 14883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14884
      validate();
14885
 
14886
      oprot.writeStructBegin(STRUCT_DESC);
14887
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14888
      oprot.writeI64(this.role);
14889
      oprot.writeFieldEnd();
14890
      oprot.writeFieldStop();
14891
      oprot.writeStructEnd();
14892
    }
14893
 
14894
    @Override
14895
    public String toString() {
14896
      StringBuilder sb = new StringBuilder("getReports_args(");
14897
      boolean first = true;
14898
 
14899
      sb.append("role:");
14900
      sb.append(this.role);
14901
      first = false;
14902
      sb.append(")");
14903
      return sb.toString();
14904
    }
14905
 
3430 rajveer 14906
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14907
      // check for required fields
14908
    }
14909
 
3430 rajveer 14910
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14911
      try {
14912
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14913
      } catch (org.apache.thrift.TException te) {
14914
        throw new java.io.IOException(te);
14915
      }
14916
    }
14917
 
14918
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14919
      try {
14920
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14921
        __isset_bit_vector = new BitSet(1);
14922
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14923
      } catch (org.apache.thrift.TException te) {
14924
        throw new java.io.IOException(te);
14925
      }
14926
    }
14927
 
1891 ankur.sing 14928
  }
14929
 
3430 rajveer 14930
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
14931
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 14932
 
3430 rajveer 14933
    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 14934
 
3430 rajveer 14935
    private List<Report> success; // required
1891 ankur.sing 14936
 
14937
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14938
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14939
      SUCCESS((short)0, "success");
14940
 
14941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14942
 
14943
      static {
14944
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14945
          byName.put(field.getFieldName(), field);
14946
        }
14947
      }
14948
 
14949
      /**
14950
       * Find the _Fields constant that matches fieldId, or null if its not found.
14951
       */
14952
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14953
        switch(fieldId) {
14954
          case 0: // SUCCESS
14955
            return SUCCESS;
14956
          default:
14957
            return null;
14958
        }
1891 ankur.sing 14959
      }
14960
 
14961
      /**
14962
       * Find the _Fields constant that matches fieldId, throwing an exception
14963
       * if it is not found.
14964
       */
14965
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14966
        _Fields fields = findByThriftId(fieldId);
14967
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14968
        return fields;
14969
      }
14970
 
14971
      /**
14972
       * Find the _Fields constant that matches name, or null if its not found.
14973
       */
14974
      public static _Fields findByName(String name) {
14975
        return byName.get(name);
14976
      }
14977
 
14978
      private final short _thriftId;
14979
      private final String _fieldName;
14980
 
14981
      _Fields(short thriftId, String fieldName) {
14982
        _thriftId = thriftId;
14983
        _fieldName = fieldName;
14984
      }
14985
 
14986
      public short getThriftFieldId() {
14987
        return _thriftId;
14988
      }
14989
 
14990
      public String getFieldName() {
14991
        return _fieldName;
14992
      }
14993
    }
14994
 
14995
    // isset id assignments
14996
 
3430 rajveer 14997
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14998
    static {
3430 rajveer 14999
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15000
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15001
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15002
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
15003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 15005
    }
15006
 
15007
    public getReports_result() {
15008
    }
15009
 
15010
    public getReports_result(
15011
      List<Report> success)
15012
    {
15013
      this();
15014
      this.success = success;
15015
    }
15016
 
15017
    /**
15018
     * Performs a deep copy on <i>other</i>.
15019
     */
15020
    public getReports_result(getReports_result other) {
15021
      if (other.isSetSuccess()) {
15022
        List<Report> __this__success = new ArrayList<Report>();
15023
        for (Report other_element : other.success) {
15024
          __this__success.add(new Report(other_element));
15025
        }
15026
        this.success = __this__success;
15027
      }
15028
    }
15029
 
15030
    public getReports_result deepCopy() {
15031
      return new getReports_result(this);
15032
    }
15033
 
3430 rajveer 15034
    @Override
15035
    public void clear() {
15036
      this.success = null;
1891 ankur.sing 15037
    }
15038
 
15039
    public int getSuccessSize() {
15040
      return (this.success == null) ? 0 : this.success.size();
15041
    }
15042
 
15043
    public java.util.Iterator<Report> getSuccessIterator() {
15044
      return (this.success == null) ? null : this.success.iterator();
15045
    }
15046
 
15047
    public void addToSuccess(Report elem) {
15048
      if (this.success == null) {
15049
        this.success = new ArrayList<Report>();
15050
      }
15051
      this.success.add(elem);
15052
    }
15053
 
15054
    public List<Report> getSuccess() {
15055
      return this.success;
15056
    }
15057
 
3430 rajveer 15058
    public void setSuccess(List<Report> success) {
1891 ankur.sing 15059
      this.success = success;
15060
    }
15061
 
15062
    public void unsetSuccess() {
15063
      this.success = null;
15064
    }
15065
 
3430 rajveer 15066
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15067
    public boolean isSetSuccess() {
15068
      return this.success != null;
15069
    }
15070
 
15071
    public void setSuccessIsSet(boolean value) {
15072
      if (!value) {
15073
        this.success = null;
15074
      }
15075
    }
15076
 
15077
    public void setFieldValue(_Fields field, Object value) {
15078
      switch (field) {
15079
      case SUCCESS:
15080
        if (value == null) {
15081
          unsetSuccess();
15082
        } else {
15083
          setSuccess((List<Report>)value);
15084
        }
15085
        break;
15086
 
15087
      }
15088
    }
15089
 
15090
    public Object getFieldValue(_Fields field) {
15091
      switch (field) {
15092
      case SUCCESS:
15093
        return getSuccess();
15094
 
15095
      }
15096
      throw new IllegalStateException();
15097
    }
15098
 
3430 rajveer 15099
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15100
    public boolean isSet(_Fields field) {
15101
      if (field == null) {
15102
        throw new IllegalArgumentException();
15103
      }
1891 ankur.sing 15104
 
15105
      switch (field) {
15106
      case SUCCESS:
15107
        return isSetSuccess();
15108
      }
15109
      throw new IllegalStateException();
15110
    }
15111
 
15112
    @Override
15113
    public boolean equals(Object that) {
15114
      if (that == null)
15115
        return false;
15116
      if (that instanceof getReports_result)
15117
        return this.equals((getReports_result)that);
15118
      return false;
15119
    }
15120
 
15121
    public boolean equals(getReports_result that) {
15122
      if (that == null)
15123
        return false;
15124
 
15125
      boolean this_present_success = true && this.isSetSuccess();
15126
      boolean that_present_success = true && that.isSetSuccess();
15127
      if (this_present_success || that_present_success) {
15128
        if (!(this_present_success && that_present_success))
15129
          return false;
15130
        if (!this.success.equals(that.success))
15131
          return false;
15132
      }
15133
 
15134
      return true;
15135
    }
15136
 
15137
    @Override
15138
    public int hashCode() {
15139
      return 0;
15140
    }
15141
 
15142
    public int compareTo(getReports_result other) {
15143
      if (!getClass().equals(other.getClass())) {
15144
        return getClass().getName().compareTo(other.getClass().getName());
15145
      }
15146
 
15147
      int lastComparison = 0;
15148
      getReports_result typedOther = (getReports_result)other;
15149
 
3430 rajveer 15150
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15151
      if (lastComparison != 0) {
15152
        return lastComparison;
15153
      }
3430 rajveer 15154
      if (isSetSuccess()) {
15155
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15156
        if (lastComparison != 0) {
15157
          return lastComparison;
15158
        }
1891 ankur.sing 15159
      }
15160
      return 0;
15161
    }
15162
 
3430 rajveer 15163
    public _Fields fieldForId(int fieldId) {
15164
      return _Fields.findByThriftId(fieldId);
15165
    }
15166
 
15167
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15168
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15169
      iprot.readStructBegin();
15170
      while (true)
15171
      {
15172
        field = iprot.readFieldBegin();
3430 rajveer 15173
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15174
          break;
15175
        }
3430 rajveer 15176
        switch (field.id) {
15177
          case 0: // SUCCESS
15178
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15179
              {
5864 rajveer 15180
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15181
                this.success = new ArrayList<Report>(_list41.size);
15182
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15183
                {
5864 rajveer 15184
                  Report _elem43; // required
15185
                  _elem43 = new Report();
15186
                  _elem43.read(iprot);
15187
                  this.success.add(_elem43);
1891 ankur.sing 15188
                }
3430 rajveer 15189
                iprot.readListEnd();
1891 ankur.sing 15190
              }
3430 rajveer 15191
            } else { 
15192
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15193
            }
15194
            break;
15195
          default:
15196
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15197
        }
3430 rajveer 15198
        iprot.readFieldEnd();
1891 ankur.sing 15199
      }
15200
      iprot.readStructEnd();
15201
      validate();
15202
    }
15203
 
3430 rajveer 15204
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15205
      oprot.writeStructBegin(STRUCT_DESC);
15206
 
15207
      if (this.isSetSuccess()) {
15208
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15209
        {
3430 rajveer 15210
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15211
          for (Report _iter44 : this.success)
1891 ankur.sing 15212
          {
5864 rajveer 15213
            _iter44.write(oprot);
1891 ankur.sing 15214
          }
15215
          oprot.writeListEnd();
15216
        }
15217
        oprot.writeFieldEnd();
15218
      }
15219
      oprot.writeFieldStop();
15220
      oprot.writeStructEnd();
15221
    }
15222
 
15223
    @Override
15224
    public String toString() {
15225
      StringBuilder sb = new StringBuilder("getReports_result(");
15226
      boolean first = true;
15227
 
15228
      sb.append("success:");
15229
      if (this.success == null) {
15230
        sb.append("null");
15231
      } else {
15232
        sb.append(this.success);
15233
      }
15234
      first = false;
15235
      sb.append(")");
15236
      return sb.toString();
15237
    }
15238
 
3430 rajveer 15239
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15240
      // check for required fields
15241
    }
15242
 
3430 rajveer 15243
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15244
      try {
15245
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15246
      } catch (org.apache.thrift.TException te) {
15247
        throw new java.io.IOException(te);
15248
      }
15249
    }
15250
 
15251
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15252
      try {
15253
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15254
      } catch (org.apache.thrift.TException te) {
15255
        throw new java.io.IOException(te);
15256
      }
15257
    }
15258
 
1891 ankur.sing 15259
  }
15260
 
3430 rajveer 15261
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15262
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15263
 
3430 rajveer 15264
    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);
15265
    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 15266
 
3430 rajveer 15267
    private String username; // required
15268
    private String password; // required
2024 ankur.sing 15269
 
15270
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15271
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15272
      USERNAME((short)1, "username"),
6788 rajveer 15273
      PASSWORD((short)2, "password");
2024 ankur.sing 15274
 
15275
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15276
 
15277
      static {
15278
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15279
          byName.put(field.getFieldName(), field);
15280
        }
15281
      }
15282
 
15283
      /**
15284
       * Find the _Fields constant that matches fieldId, or null if its not found.
15285
       */
15286
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15287
        switch(fieldId) {
15288
          case 1: // USERNAME
15289
            return USERNAME;
15290
          case 2: // PASSWORD
15291
            return PASSWORD;
15292
          default:
15293
            return null;
15294
        }
2024 ankur.sing 15295
      }
15296
 
15297
      /**
15298
       * Find the _Fields constant that matches fieldId, throwing an exception
15299
       * if it is not found.
15300
       */
15301
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15302
        _Fields fields = findByThriftId(fieldId);
15303
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15304
        return fields;
15305
      }
15306
 
15307
      /**
15308
       * Find the _Fields constant that matches name, or null if its not found.
15309
       */
15310
      public static _Fields findByName(String name) {
15311
        return byName.get(name);
15312
      }
15313
 
15314
      private final short _thriftId;
15315
      private final String _fieldName;
15316
 
15317
      _Fields(short thriftId, String fieldName) {
15318
        _thriftId = thriftId;
15319
        _fieldName = fieldName;
15320
      }
15321
 
15322
      public short getThriftFieldId() {
15323
        return _thriftId;
15324
      }
15325
 
15326
      public String getFieldName() {
15327
        return _fieldName;
15328
      }
15329
    }
15330
 
15331
    // isset id assignments
15332
 
3430 rajveer 15333
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15334
    static {
3430 rajveer 15335
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15336
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15337
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15338
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15339
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15340
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15341
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15342
    }
15343
 
15344
    public authenticateCatalogUser_args() {
15345
    }
15346
 
15347
    public authenticateCatalogUser_args(
15348
      String username,
6788 rajveer 15349
      String password)
2024 ankur.sing 15350
    {
15351
      this();
15352
      this.username = username;
15353
      this.password = password;
15354
    }
15355
 
15356
    /**
15357
     * Performs a deep copy on <i>other</i>.
15358
     */
15359
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
15360
      if (other.isSetUsername()) {
15361
        this.username = other.username;
15362
      }
15363
      if (other.isSetPassword()) {
15364
        this.password = other.password;
15365
      }
15366
    }
15367
 
15368
    public authenticateCatalogUser_args deepCopy() {
15369
      return new authenticateCatalogUser_args(this);
15370
    }
15371
 
3430 rajveer 15372
    @Override
15373
    public void clear() {
15374
      this.username = null;
15375
      this.password = null;
2024 ankur.sing 15376
    }
15377
 
15378
    public String getUsername() {
15379
      return this.username;
15380
    }
15381
 
3430 rajveer 15382
    public void setUsername(String username) {
2024 ankur.sing 15383
      this.username = username;
15384
    }
15385
 
15386
    public void unsetUsername() {
15387
      this.username = null;
15388
    }
15389
 
3430 rajveer 15390
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15391
    public boolean isSetUsername() {
15392
      return this.username != null;
15393
    }
15394
 
15395
    public void setUsernameIsSet(boolean value) {
15396
      if (!value) {
15397
        this.username = null;
15398
      }
15399
    }
15400
 
15401
    public String getPassword() {
15402
      return this.password;
15403
    }
15404
 
3430 rajveer 15405
    public void setPassword(String password) {
2024 ankur.sing 15406
      this.password = password;
15407
    }
15408
 
15409
    public void unsetPassword() {
15410
      this.password = null;
15411
    }
15412
 
3430 rajveer 15413
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15414
    public boolean isSetPassword() {
15415
      return this.password != null;
15416
    }
15417
 
15418
    public void setPasswordIsSet(boolean value) {
15419
      if (!value) {
15420
        this.password = null;
15421
      }
15422
    }
15423
 
15424
    public void setFieldValue(_Fields field, Object value) {
15425
      switch (field) {
15426
      case USERNAME:
15427
        if (value == null) {
15428
          unsetUsername();
15429
        } else {
15430
          setUsername((String)value);
15431
        }
15432
        break;
15433
 
15434
      case PASSWORD:
15435
        if (value == null) {
15436
          unsetPassword();
15437
        } else {
15438
          setPassword((String)value);
15439
        }
15440
        break;
15441
 
15442
      }
15443
    }
15444
 
15445
    public Object getFieldValue(_Fields field) {
15446
      switch (field) {
15447
      case USERNAME:
15448
        return getUsername();
15449
 
15450
      case PASSWORD:
15451
        return getPassword();
15452
 
15453
      }
15454
      throw new IllegalStateException();
15455
    }
15456
 
3430 rajveer 15457
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15458
    public boolean isSet(_Fields field) {
15459
      if (field == null) {
15460
        throw new IllegalArgumentException();
15461
      }
2024 ankur.sing 15462
 
15463
      switch (field) {
15464
      case USERNAME:
15465
        return isSetUsername();
15466
      case PASSWORD:
15467
        return isSetPassword();
15468
      }
15469
      throw new IllegalStateException();
15470
    }
15471
 
15472
    @Override
15473
    public boolean equals(Object that) {
15474
      if (that == null)
15475
        return false;
15476
      if (that instanceof authenticateCatalogUser_args)
15477
        return this.equals((authenticateCatalogUser_args)that);
15478
      return false;
15479
    }
15480
 
15481
    public boolean equals(authenticateCatalogUser_args that) {
15482
      if (that == null)
15483
        return false;
15484
 
15485
      boolean this_present_username = true && this.isSetUsername();
15486
      boolean that_present_username = true && that.isSetUsername();
15487
      if (this_present_username || that_present_username) {
15488
        if (!(this_present_username && that_present_username))
15489
          return false;
15490
        if (!this.username.equals(that.username))
15491
          return false;
15492
      }
15493
 
15494
      boolean this_present_password = true && this.isSetPassword();
15495
      boolean that_present_password = true && that.isSetPassword();
15496
      if (this_present_password || that_present_password) {
15497
        if (!(this_present_password && that_present_password))
15498
          return false;
15499
        if (!this.password.equals(that.password))
15500
          return false;
15501
      }
15502
 
15503
      return true;
15504
    }
15505
 
15506
    @Override
15507
    public int hashCode() {
15508
      return 0;
15509
    }
15510
 
15511
    public int compareTo(authenticateCatalogUser_args other) {
15512
      if (!getClass().equals(other.getClass())) {
15513
        return getClass().getName().compareTo(other.getClass().getName());
15514
      }
15515
 
15516
      int lastComparison = 0;
15517
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15518
 
3430 rajveer 15519
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15520
      if (lastComparison != 0) {
15521
        return lastComparison;
15522
      }
3430 rajveer 15523
      if (isSetUsername()) {
15524
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15525
        if (lastComparison != 0) {
15526
          return lastComparison;
15527
        }
2024 ankur.sing 15528
      }
3430 rajveer 15529
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15530
      if (lastComparison != 0) {
15531
        return lastComparison;
15532
      }
3430 rajveer 15533
      if (isSetPassword()) {
15534
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15535
        if (lastComparison != 0) {
15536
          return lastComparison;
15537
        }
2024 ankur.sing 15538
      }
15539
      return 0;
15540
    }
15541
 
3430 rajveer 15542
    public _Fields fieldForId(int fieldId) {
15543
      return _Fields.findByThriftId(fieldId);
15544
    }
15545
 
15546
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15547
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15548
      iprot.readStructBegin();
15549
      while (true)
15550
      {
15551
        field = iprot.readFieldBegin();
3430 rajveer 15552
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15553
          break;
15554
        }
3430 rajveer 15555
        switch (field.id) {
15556
          case 1: // USERNAME
15557
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15558
              this.username = iprot.readString();
15559
            } else { 
15560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15561
            }
15562
            break;
15563
          case 2: // PASSWORD
15564
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15565
              this.password = iprot.readString();
15566
            } else { 
15567
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15568
            }
15569
            break;
15570
          default:
15571
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15572
        }
3430 rajveer 15573
        iprot.readFieldEnd();
2024 ankur.sing 15574
      }
15575
      iprot.readStructEnd();
15576
      validate();
15577
    }
15578
 
3430 rajveer 15579
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15580
      validate();
15581
 
15582
      oprot.writeStructBegin(STRUCT_DESC);
15583
      if (this.username != null) {
15584
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15585
        oprot.writeString(this.username);
15586
        oprot.writeFieldEnd();
15587
      }
15588
      if (this.password != null) {
15589
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15590
        oprot.writeString(this.password);
15591
        oprot.writeFieldEnd();
15592
      }
15593
      oprot.writeFieldStop();
15594
      oprot.writeStructEnd();
15595
    }
15596
 
15597
    @Override
15598
    public String toString() {
15599
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15600
      boolean first = true;
15601
 
15602
      sb.append("username:");
15603
      if (this.username == null) {
15604
        sb.append("null");
15605
      } else {
15606
        sb.append(this.username);
15607
      }
15608
      first = false;
15609
      if (!first) sb.append(", ");
15610
      sb.append("password:");
15611
      if (this.password == null) {
15612
        sb.append("null");
15613
      } else {
15614
        sb.append(this.password);
15615
      }
15616
      first = false;
15617
      sb.append(")");
15618
      return sb.toString();
15619
    }
15620
 
3430 rajveer 15621
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15622
      // check for required fields
15623
    }
15624
 
3430 rajveer 15625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15626
      try {
15627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15628
      } catch (org.apache.thrift.TException te) {
15629
        throw new java.io.IOException(te);
15630
      }
15631
    }
15632
 
15633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15634
      try {
15635
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15636
      } catch (org.apache.thrift.TException te) {
15637
        throw new java.io.IOException(te);
15638
      }
15639
    }
15640
 
2024 ankur.sing 15641
  }
15642
 
3430 rajveer 15643
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15644
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15645
 
3430 rajveer 15646
    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);
15647
    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 15648
 
3430 rajveer 15649
    private CatalogDashboardUser success; // required
15650
    private HelperServiceException hse; // required
2024 ankur.sing 15651
 
15652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15654
      SUCCESS((short)0, "success"),
15655
      HSE((short)1, "hse");
15656
 
15657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15658
 
15659
      static {
15660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15661
          byName.put(field.getFieldName(), field);
15662
        }
15663
      }
15664
 
15665
      /**
15666
       * Find the _Fields constant that matches fieldId, or null if its not found.
15667
       */
15668
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15669
        switch(fieldId) {
15670
          case 0: // SUCCESS
15671
            return SUCCESS;
15672
          case 1: // HSE
15673
            return HSE;
15674
          default:
15675
            return null;
15676
        }
2024 ankur.sing 15677
      }
15678
 
15679
      /**
15680
       * Find the _Fields constant that matches fieldId, throwing an exception
15681
       * if it is not found.
15682
       */
15683
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15684
        _Fields fields = findByThriftId(fieldId);
15685
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15686
        return fields;
15687
      }
15688
 
15689
      /**
15690
       * Find the _Fields constant that matches name, or null if its not found.
15691
       */
15692
      public static _Fields findByName(String name) {
15693
        return byName.get(name);
15694
      }
15695
 
15696
      private final short _thriftId;
15697
      private final String _fieldName;
15698
 
15699
      _Fields(short thriftId, String fieldName) {
15700
        _thriftId = thriftId;
15701
        _fieldName = fieldName;
15702
      }
15703
 
15704
      public short getThriftFieldId() {
15705
        return _thriftId;
15706
      }
15707
 
15708
      public String getFieldName() {
15709
        return _fieldName;
15710
      }
15711
    }
15712
 
15713
    // isset id assignments
15714
 
3430 rajveer 15715
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15716
    static {
3430 rajveer 15717
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15718
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15719
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15720
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15721
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15724
    }
15725
 
15726
    public authenticateCatalogUser_result() {
15727
    }
15728
 
15729
    public authenticateCatalogUser_result(
15730
      CatalogDashboardUser success,
15731
      HelperServiceException hse)
15732
    {
15733
      this();
15734
      this.success = success;
15735
      this.hse = hse;
15736
    }
15737
 
15738
    /**
15739
     * Performs a deep copy on <i>other</i>.
15740
     */
15741
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15742
      if (other.isSetSuccess()) {
15743
        this.success = new CatalogDashboardUser(other.success);
15744
      }
15745
      if (other.isSetHse()) {
15746
        this.hse = new HelperServiceException(other.hse);
15747
      }
15748
    }
15749
 
15750
    public authenticateCatalogUser_result deepCopy() {
15751
      return new authenticateCatalogUser_result(this);
15752
    }
15753
 
3430 rajveer 15754
    @Override
15755
    public void clear() {
15756
      this.success = null;
15757
      this.hse = null;
2024 ankur.sing 15758
    }
15759
 
15760
    public CatalogDashboardUser getSuccess() {
15761
      return this.success;
15762
    }
15763
 
3430 rajveer 15764
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15765
      this.success = success;
15766
    }
15767
 
15768
    public void unsetSuccess() {
15769
      this.success = null;
15770
    }
15771
 
3430 rajveer 15772
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15773
    public boolean isSetSuccess() {
15774
      return this.success != null;
15775
    }
15776
 
15777
    public void setSuccessIsSet(boolean value) {
15778
      if (!value) {
15779
        this.success = null;
15780
      }
15781
    }
15782
 
15783
    public HelperServiceException getHse() {
15784
      return this.hse;
15785
    }
15786
 
3430 rajveer 15787
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15788
      this.hse = hse;
15789
    }
15790
 
15791
    public void unsetHse() {
15792
      this.hse = null;
15793
    }
15794
 
3430 rajveer 15795
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15796
    public boolean isSetHse() {
15797
      return this.hse != null;
15798
    }
15799
 
15800
    public void setHseIsSet(boolean value) {
15801
      if (!value) {
15802
        this.hse = null;
15803
      }
15804
    }
15805
 
15806
    public void setFieldValue(_Fields field, Object value) {
15807
      switch (field) {
15808
      case SUCCESS:
15809
        if (value == null) {
15810
          unsetSuccess();
15811
        } else {
15812
          setSuccess((CatalogDashboardUser)value);
15813
        }
15814
        break;
15815
 
15816
      case HSE:
15817
        if (value == null) {
15818
          unsetHse();
15819
        } else {
15820
          setHse((HelperServiceException)value);
15821
        }
15822
        break;
15823
 
15824
      }
15825
    }
15826
 
15827
    public Object getFieldValue(_Fields field) {
15828
      switch (field) {
15829
      case SUCCESS:
15830
        return getSuccess();
15831
 
15832
      case HSE:
15833
        return getHse();
15834
 
15835
      }
15836
      throw new IllegalStateException();
15837
    }
15838
 
3430 rajveer 15839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15840
    public boolean isSet(_Fields field) {
15841
      if (field == null) {
15842
        throw new IllegalArgumentException();
15843
      }
2024 ankur.sing 15844
 
15845
      switch (field) {
15846
      case SUCCESS:
15847
        return isSetSuccess();
15848
      case HSE:
15849
        return isSetHse();
15850
      }
15851
      throw new IllegalStateException();
15852
    }
15853
 
15854
    @Override
15855
    public boolean equals(Object that) {
15856
      if (that == null)
15857
        return false;
15858
      if (that instanceof authenticateCatalogUser_result)
15859
        return this.equals((authenticateCatalogUser_result)that);
15860
      return false;
15861
    }
15862
 
15863
    public boolean equals(authenticateCatalogUser_result that) {
15864
      if (that == null)
15865
        return false;
15866
 
15867
      boolean this_present_success = true && this.isSetSuccess();
15868
      boolean that_present_success = true && that.isSetSuccess();
15869
      if (this_present_success || that_present_success) {
15870
        if (!(this_present_success && that_present_success))
15871
          return false;
15872
        if (!this.success.equals(that.success))
15873
          return false;
15874
      }
15875
 
15876
      boolean this_present_hse = true && this.isSetHse();
15877
      boolean that_present_hse = true && that.isSetHse();
15878
      if (this_present_hse || that_present_hse) {
15879
        if (!(this_present_hse && that_present_hse))
15880
          return false;
15881
        if (!this.hse.equals(that.hse))
15882
          return false;
15883
      }
15884
 
15885
      return true;
15886
    }
15887
 
15888
    @Override
15889
    public int hashCode() {
15890
      return 0;
15891
    }
15892
 
15893
    public int compareTo(authenticateCatalogUser_result other) {
15894
      if (!getClass().equals(other.getClass())) {
15895
        return getClass().getName().compareTo(other.getClass().getName());
15896
      }
15897
 
15898
      int lastComparison = 0;
15899
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15900
 
3430 rajveer 15901
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15902
      if (lastComparison != 0) {
15903
        return lastComparison;
15904
      }
3430 rajveer 15905
      if (isSetSuccess()) {
15906
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15907
        if (lastComparison != 0) {
15908
          return lastComparison;
15909
        }
2024 ankur.sing 15910
      }
3430 rajveer 15911
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15912
      if (lastComparison != 0) {
15913
        return lastComparison;
15914
      }
3430 rajveer 15915
      if (isSetHse()) {
15916
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15917
        if (lastComparison != 0) {
15918
          return lastComparison;
15919
        }
2024 ankur.sing 15920
      }
15921
      return 0;
15922
    }
15923
 
3430 rajveer 15924
    public _Fields fieldForId(int fieldId) {
15925
      return _Fields.findByThriftId(fieldId);
15926
    }
15927
 
15928
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15929
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15930
      iprot.readStructBegin();
15931
      while (true)
15932
      {
15933
        field = iprot.readFieldBegin();
3430 rajveer 15934
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15935
          break;
15936
        }
3430 rajveer 15937
        switch (field.id) {
15938
          case 0: // SUCCESS
15939
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15940
              this.success = new CatalogDashboardUser();
15941
              this.success.read(iprot);
15942
            } else { 
15943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15944
            }
15945
            break;
15946
          case 1: // HSE
15947
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15948
              this.hse = new HelperServiceException();
15949
              this.hse.read(iprot);
15950
            } else { 
15951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15952
            }
15953
            break;
15954
          default:
15955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15956
        }
3430 rajveer 15957
        iprot.readFieldEnd();
2024 ankur.sing 15958
      }
15959
      iprot.readStructEnd();
15960
      validate();
15961
    }
15962
 
3430 rajveer 15963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15964
      oprot.writeStructBegin(STRUCT_DESC);
15965
 
15966
      if (this.isSetSuccess()) {
15967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15968
        this.success.write(oprot);
15969
        oprot.writeFieldEnd();
15970
      } else if (this.isSetHse()) {
15971
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15972
        this.hse.write(oprot);
15973
        oprot.writeFieldEnd();
15974
      }
15975
      oprot.writeFieldStop();
15976
      oprot.writeStructEnd();
15977
    }
15978
 
15979
    @Override
15980
    public String toString() {
15981
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
15982
      boolean first = true;
15983
 
15984
      sb.append("success:");
15985
      if (this.success == null) {
15986
        sb.append("null");
15987
      } else {
15988
        sb.append(this.success);
15989
      }
15990
      first = false;
15991
      if (!first) sb.append(", ");
15992
      sb.append("hse:");
15993
      if (this.hse == null) {
15994
        sb.append("null");
15995
      } else {
15996
        sb.append(this.hse);
15997
      }
15998
      first = false;
15999
      sb.append(")");
16000
      return sb.toString();
16001
    }
16002
 
3430 rajveer 16003
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16004
      // check for required fields
16005
    }
16006
 
3430 rajveer 16007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16008
      try {
16009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16010
      } catch (org.apache.thrift.TException te) {
16011
        throw new java.io.IOException(te);
16012
      }
16013
    }
16014
 
16015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16016
      try {
16017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16018
      } catch (org.apache.thrift.TException te) {
16019
        throw new java.io.IOException(te);
16020
      }
16021
    }
16022
 
2024 ankur.sing 16023
  }
16024
 
4544 varun.gupt 16025
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
16026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
16027
 
16028
    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);
16029
    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);
16030
 
16031
    private List<Long> entityIds; // required
16032
    private String email; // required
16033
 
16034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16036
      ENTITY_IDS((short)1, "entityIds"),
16037
      EMAIL((short)2, "email");
16038
 
16039
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16040
 
16041
      static {
16042
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16043
          byName.put(field.getFieldName(), field);
16044
        }
16045
      }
16046
 
16047
      /**
16048
       * Find the _Fields constant that matches fieldId, or null if its not found.
16049
       */
16050
      public static _Fields findByThriftId(int fieldId) {
16051
        switch(fieldId) {
16052
          case 1: // ENTITY_IDS
16053
            return ENTITY_IDS;
16054
          case 2: // EMAIL
16055
            return EMAIL;
16056
          default:
16057
            return null;
16058
        }
16059
      }
16060
 
16061
      /**
16062
       * Find the _Fields constant that matches fieldId, throwing an exception
16063
       * if it is not found.
16064
       */
16065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16066
        _Fields fields = findByThriftId(fieldId);
16067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16068
        return fields;
16069
      }
16070
 
16071
      /**
16072
       * Find the _Fields constant that matches name, or null if its not found.
16073
       */
16074
      public static _Fields findByName(String name) {
16075
        return byName.get(name);
16076
      }
16077
 
16078
      private final short _thriftId;
16079
      private final String _fieldName;
16080
 
16081
      _Fields(short thriftId, String fieldName) {
16082
        _thriftId = thriftId;
16083
        _fieldName = fieldName;
16084
      }
16085
 
16086
      public short getThriftFieldId() {
16087
        return _thriftId;
16088
      }
16089
 
16090
      public String getFieldName() {
16091
        return _fieldName;
16092
      }
16093
    }
16094
 
16095
    // isset id assignments
16096
 
16097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16098
    static {
16099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16100
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16101
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16102
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16103
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16104
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16105
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16106
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16107
    }
16108
 
16109
    public shareEntities_args() {
16110
    }
16111
 
16112
    public shareEntities_args(
16113
      List<Long> entityIds,
16114
      String email)
16115
    {
16116
      this();
16117
      this.entityIds = entityIds;
16118
      this.email = email;
16119
    }
16120
 
16121
    /**
16122
     * Performs a deep copy on <i>other</i>.
16123
     */
16124
    public shareEntities_args(shareEntities_args other) {
16125
      if (other.isSetEntityIds()) {
16126
        List<Long> __this__entityIds = new ArrayList<Long>();
16127
        for (Long other_element : other.entityIds) {
16128
          __this__entityIds.add(other_element);
16129
        }
16130
        this.entityIds = __this__entityIds;
16131
      }
16132
      if (other.isSetEmail()) {
16133
        this.email = other.email;
16134
      }
16135
    }
16136
 
16137
    public shareEntities_args deepCopy() {
16138
      return new shareEntities_args(this);
16139
    }
16140
 
16141
    @Override
16142
    public void clear() {
16143
      this.entityIds = null;
16144
      this.email = null;
16145
    }
16146
 
16147
    public int getEntityIdsSize() {
16148
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16149
    }
16150
 
16151
    public java.util.Iterator<Long> getEntityIdsIterator() {
16152
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16153
    }
16154
 
16155
    public void addToEntityIds(long elem) {
16156
      if (this.entityIds == null) {
16157
        this.entityIds = new ArrayList<Long>();
16158
      }
16159
      this.entityIds.add(elem);
16160
    }
16161
 
16162
    public List<Long> getEntityIds() {
16163
      return this.entityIds;
16164
    }
16165
 
16166
    public void setEntityIds(List<Long> entityIds) {
16167
      this.entityIds = entityIds;
16168
    }
16169
 
16170
    public void unsetEntityIds() {
16171
      this.entityIds = null;
16172
    }
16173
 
16174
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16175
    public boolean isSetEntityIds() {
16176
      return this.entityIds != null;
16177
    }
16178
 
16179
    public void setEntityIdsIsSet(boolean value) {
16180
      if (!value) {
16181
        this.entityIds = null;
16182
      }
16183
    }
16184
 
16185
    public String getEmail() {
16186
      return this.email;
16187
    }
16188
 
16189
    public void setEmail(String email) {
16190
      this.email = email;
16191
    }
16192
 
16193
    public void unsetEmail() {
16194
      this.email = null;
16195
    }
16196
 
16197
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16198
    public boolean isSetEmail() {
16199
      return this.email != null;
16200
    }
16201
 
16202
    public void setEmailIsSet(boolean value) {
16203
      if (!value) {
16204
        this.email = null;
16205
      }
16206
    }
16207
 
16208
    public void setFieldValue(_Fields field, Object value) {
16209
      switch (field) {
16210
      case ENTITY_IDS:
16211
        if (value == null) {
16212
          unsetEntityIds();
16213
        } else {
16214
          setEntityIds((List<Long>)value);
16215
        }
16216
        break;
16217
 
16218
      case EMAIL:
16219
        if (value == null) {
16220
          unsetEmail();
16221
        } else {
16222
          setEmail((String)value);
16223
        }
16224
        break;
16225
 
16226
      }
16227
    }
16228
 
16229
    public Object getFieldValue(_Fields field) {
16230
      switch (field) {
16231
      case ENTITY_IDS:
16232
        return getEntityIds();
16233
 
16234
      case EMAIL:
16235
        return getEmail();
16236
 
16237
      }
16238
      throw new IllegalStateException();
16239
    }
16240
 
16241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16242
    public boolean isSet(_Fields field) {
16243
      if (field == null) {
16244
        throw new IllegalArgumentException();
16245
      }
16246
 
16247
      switch (field) {
16248
      case ENTITY_IDS:
16249
        return isSetEntityIds();
16250
      case EMAIL:
16251
        return isSetEmail();
16252
      }
16253
      throw new IllegalStateException();
16254
    }
16255
 
16256
    @Override
16257
    public boolean equals(Object that) {
16258
      if (that == null)
16259
        return false;
16260
      if (that instanceof shareEntities_args)
16261
        return this.equals((shareEntities_args)that);
16262
      return false;
16263
    }
16264
 
16265
    public boolean equals(shareEntities_args that) {
16266
      if (that == null)
16267
        return false;
16268
 
16269
      boolean this_present_entityIds = true && this.isSetEntityIds();
16270
      boolean that_present_entityIds = true && that.isSetEntityIds();
16271
      if (this_present_entityIds || that_present_entityIds) {
16272
        if (!(this_present_entityIds && that_present_entityIds))
16273
          return false;
16274
        if (!this.entityIds.equals(that.entityIds))
16275
          return false;
16276
      }
16277
 
16278
      boolean this_present_email = true && this.isSetEmail();
16279
      boolean that_present_email = true && that.isSetEmail();
16280
      if (this_present_email || that_present_email) {
16281
        if (!(this_present_email && that_present_email))
16282
          return false;
16283
        if (!this.email.equals(that.email))
16284
          return false;
16285
      }
16286
 
16287
      return true;
16288
    }
16289
 
16290
    @Override
16291
    public int hashCode() {
16292
      return 0;
16293
    }
16294
 
16295
    public int compareTo(shareEntities_args other) {
16296
      if (!getClass().equals(other.getClass())) {
16297
        return getClass().getName().compareTo(other.getClass().getName());
16298
      }
16299
 
16300
      int lastComparison = 0;
16301
      shareEntities_args typedOther = (shareEntities_args)other;
16302
 
16303
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16304
      if (lastComparison != 0) {
16305
        return lastComparison;
16306
      }
16307
      if (isSetEntityIds()) {
16308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16309
        if (lastComparison != 0) {
16310
          return lastComparison;
16311
        }
16312
      }
16313
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16314
      if (lastComparison != 0) {
16315
        return lastComparison;
16316
      }
16317
      if (isSetEmail()) {
16318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16319
        if (lastComparison != 0) {
16320
          return lastComparison;
16321
        }
16322
      }
16323
      return 0;
16324
    }
16325
 
16326
    public _Fields fieldForId(int fieldId) {
16327
      return _Fields.findByThriftId(fieldId);
16328
    }
16329
 
16330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16331
      org.apache.thrift.protocol.TField field;
16332
      iprot.readStructBegin();
16333
      while (true)
16334
      {
16335
        field = iprot.readFieldBegin();
16336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16337
          break;
16338
        }
16339
        switch (field.id) {
16340
          case 1: // ENTITY_IDS
16341
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16342
              {
5864 rajveer 16343
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16344
                this.entityIds = new ArrayList<Long>(_list45.size);
16345
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16346
                {
5864 rajveer 16347
                  long _elem47; // required
16348
                  _elem47 = iprot.readI64();
16349
                  this.entityIds.add(_elem47);
4544 varun.gupt 16350
                }
16351
                iprot.readListEnd();
16352
              }
16353
            } else { 
16354
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16355
            }
16356
            break;
16357
          case 2: // EMAIL
16358
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16359
              this.email = iprot.readString();
16360
            } else { 
16361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16362
            }
16363
            break;
16364
          default:
16365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16366
        }
16367
        iprot.readFieldEnd();
16368
      }
16369
      iprot.readStructEnd();
16370
      validate();
16371
    }
16372
 
16373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16374
      validate();
16375
 
16376
      oprot.writeStructBegin(STRUCT_DESC);
16377
      if (this.entityIds != null) {
16378
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16379
        {
16380
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16381
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16382
          {
5864 rajveer 16383
            oprot.writeI64(_iter48);
4544 varun.gupt 16384
          }
16385
          oprot.writeListEnd();
16386
        }
16387
        oprot.writeFieldEnd();
16388
      }
16389
      if (this.email != null) {
16390
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16391
        oprot.writeString(this.email);
16392
        oprot.writeFieldEnd();
16393
      }
16394
      oprot.writeFieldStop();
16395
      oprot.writeStructEnd();
16396
    }
16397
 
16398
    @Override
16399
    public String toString() {
16400
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16401
      boolean first = true;
16402
 
16403
      sb.append("entityIds:");
16404
      if (this.entityIds == null) {
16405
        sb.append("null");
16406
      } else {
16407
        sb.append(this.entityIds);
16408
      }
16409
      first = false;
16410
      if (!first) sb.append(", ");
16411
      sb.append("email:");
16412
      if (this.email == null) {
16413
        sb.append("null");
16414
      } else {
16415
        sb.append(this.email);
16416
      }
16417
      first = false;
16418
      sb.append(")");
16419
      return sb.toString();
16420
    }
16421
 
16422
    public void validate() throws org.apache.thrift.TException {
16423
      // check for required fields
16424
    }
16425
 
16426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16427
      try {
16428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16429
      } catch (org.apache.thrift.TException te) {
16430
        throw new java.io.IOException(te);
16431
      }
16432
    }
16433
 
16434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16435
      try {
16436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16437
      } catch (org.apache.thrift.TException te) {
16438
        throw new java.io.IOException(te);
16439
      }
16440
    }
16441
 
16442
  }
16443
 
16444
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16446
 
16447
    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);
16448
 
16449
    private HelperServiceException hse; // required
16450
 
16451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16453
      HSE((short)1, "hse");
16454
 
16455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16456
 
16457
      static {
16458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16459
          byName.put(field.getFieldName(), field);
16460
        }
16461
      }
16462
 
16463
      /**
16464
       * Find the _Fields constant that matches fieldId, or null if its not found.
16465
       */
16466
      public static _Fields findByThriftId(int fieldId) {
16467
        switch(fieldId) {
16468
          case 1: // HSE
16469
            return HSE;
16470
          default:
16471
            return null;
16472
        }
16473
      }
16474
 
16475
      /**
16476
       * Find the _Fields constant that matches fieldId, throwing an exception
16477
       * if it is not found.
16478
       */
16479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16480
        _Fields fields = findByThriftId(fieldId);
16481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16482
        return fields;
16483
      }
16484
 
16485
      /**
16486
       * Find the _Fields constant that matches name, or null if its not found.
16487
       */
16488
      public static _Fields findByName(String name) {
16489
        return byName.get(name);
16490
      }
16491
 
16492
      private final short _thriftId;
16493
      private final String _fieldName;
16494
 
16495
      _Fields(short thriftId, String fieldName) {
16496
        _thriftId = thriftId;
16497
        _fieldName = fieldName;
16498
      }
16499
 
16500
      public short getThriftFieldId() {
16501
        return _thriftId;
16502
      }
16503
 
16504
      public String getFieldName() {
16505
        return _fieldName;
16506
      }
16507
    }
16508
 
16509
    // isset id assignments
16510
 
16511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16512
    static {
16513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16514
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16515
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16518
    }
16519
 
16520
    public shareEntities_result() {
16521
    }
16522
 
16523
    public shareEntities_result(
16524
      HelperServiceException hse)
16525
    {
16526
      this();
16527
      this.hse = hse;
16528
    }
16529
 
16530
    /**
16531
     * Performs a deep copy on <i>other</i>.
16532
     */
16533
    public shareEntities_result(shareEntities_result other) {
16534
      if (other.isSetHse()) {
16535
        this.hse = new HelperServiceException(other.hse);
16536
      }
16537
    }
16538
 
16539
    public shareEntities_result deepCopy() {
16540
      return new shareEntities_result(this);
16541
    }
16542
 
16543
    @Override
16544
    public void clear() {
16545
      this.hse = null;
16546
    }
16547
 
16548
    public HelperServiceException getHse() {
16549
      return this.hse;
16550
    }
16551
 
16552
    public void setHse(HelperServiceException hse) {
16553
      this.hse = hse;
16554
    }
16555
 
16556
    public void unsetHse() {
16557
      this.hse = null;
16558
    }
16559
 
16560
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16561
    public boolean isSetHse() {
16562
      return this.hse != null;
16563
    }
16564
 
16565
    public void setHseIsSet(boolean value) {
16566
      if (!value) {
16567
        this.hse = null;
16568
      }
16569
    }
16570
 
16571
    public void setFieldValue(_Fields field, Object value) {
16572
      switch (field) {
16573
      case HSE:
16574
        if (value == null) {
16575
          unsetHse();
16576
        } else {
16577
          setHse((HelperServiceException)value);
16578
        }
16579
        break;
16580
 
16581
      }
16582
    }
16583
 
16584
    public Object getFieldValue(_Fields field) {
16585
      switch (field) {
16586
      case HSE:
16587
        return getHse();
16588
 
16589
      }
16590
      throw new IllegalStateException();
16591
    }
16592
 
16593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16594
    public boolean isSet(_Fields field) {
16595
      if (field == null) {
16596
        throw new IllegalArgumentException();
16597
      }
16598
 
16599
      switch (field) {
16600
      case HSE:
16601
        return isSetHse();
16602
      }
16603
      throw new IllegalStateException();
16604
    }
16605
 
16606
    @Override
16607
    public boolean equals(Object that) {
16608
      if (that == null)
16609
        return false;
16610
      if (that instanceof shareEntities_result)
16611
        return this.equals((shareEntities_result)that);
16612
      return false;
16613
    }
16614
 
16615
    public boolean equals(shareEntities_result that) {
16616
      if (that == null)
16617
        return false;
16618
 
16619
      boolean this_present_hse = true && this.isSetHse();
16620
      boolean that_present_hse = true && that.isSetHse();
16621
      if (this_present_hse || that_present_hse) {
16622
        if (!(this_present_hse && that_present_hse))
16623
          return false;
16624
        if (!this.hse.equals(that.hse))
16625
          return false;
16626
      }
16627
 
16628
      return true;
16629
    }
16630
 
16631
    @Override
16632
    public int hashCode() {
16633
      return 0;
16634
    }
16635
 
16636
    public int compareTo(shareEntities_result other) {
16637
      if (!getClass().equals(other.getClass())) {
16638
        return getClass().getName().compareTo(other.getClass().getName());
16639
      }
16640
 
16641
      int lastComparison = 0;
16642
      shareEntities_result typedOther = (shareEntities_result)other;
16643
 
16644
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16645
      if (lastComparison != 0) {
16646
        return lastComparison;
16647
      }
16648
      if (isSetHse()) {
16649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16650
        if (lastComparison != 0) {
16651
          return lastComparison;
16652
        }
16653
      }
16654
      return 0;
16655
    }
16656
 
16657
    public _Fields fieldForId(int fieldId) {
16658
      return _Fields.findByThriftId(fieldId);
16659
    }
16660
 
16661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16662
      org.apache.thrift.protocol.TField field;
16663
      iprot.readStructBegin();
16664
      while (true)
16665
      {
16666
        field = iprot.readFieldBegin();
16667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16668
          break;
16669
        }
16670
        switch (field.id) {
16671
          case 1: // HSE
16672
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16673
              this.hse = new HelperServiceException();
16674
              this.hse.read(iprot);
16675
            } else { 
16676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16677
            }
16678
            break;
16679
          default:
16680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16681
        }
16682
        iprot.readFieldEnd();
16683
      }
16684
      iprot.readStructEnd();
16685
      validate();
16686
    }
16687
 
16688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16689
      oprot.writeStructBegin(STRUCT_DESC);
16690
 
16691
      if (this.isSetHse()) {
16692
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16693
        this.hse.write(oprot);
16694
        oprot.writeFieldEnd();
16695
      }
16696
      oprot.writeFieldStop();
16697
      oprot.writeStructEnd();
16698
    }
16699
 
16700
    @Override
16701
    public String toString() {
16702
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16703
      boolean first = true;
16704
 
16705
      sb.append("hse:");
16706
      if (this.hse == null) {
16707
        sb.append("null");
16708
      } else {
16709
        sb.append(this.hse);
16710
      }
16711
      first = false;
16712
      sb.append(")");
16713
      return sb.toString();
16714
    }
16715
 
16716
    public void validate() throws org.apache.thrift.TException {
16717
      // check for required fields
16718
    }
16719
 
16720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16721
      try {
16722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16723
      } catch (org.apache.thrift.TException te) {
16724
        throw new java.io.IOException(te);
16725
      }
16726
    }
16727
 
16728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16729
      try {
16730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16731
      } catch (org.apache.thrift.TException te) {
16732
        throw new java.io.IOException(te);
16733
      }
16734
    }
16735
 
16736
  }
16737
 
4693 mandeep.dh 16738
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16740
 
16741
 
16742
 
16743
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16744
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16745
;
16746
 
16747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16748
 
16749
      static {
16750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16751
          byName.put(field.getFieldName(), field);
16752
        }
16753
      }
16754
 
16755
      /**
16756
       * Find the _Fields constant that matches fieldId, or null if its not found.
16757
       */
16758
      public static _Fields findByThriftId(int fieldId) {
16759
        switch(fieldId) {
16760
          default:
16761
            return null;
16762
        }
16763
      }
16764
 
16765
      /**
16766
       * Find the _Fields constant that matches fieldId, throwing an exception
16767
       * if it is not found.
16768
       */
16769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16770
        _Fields fields = findByThriftId(fieldId);
16771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16772
        return fields;
16773
      }
16774
 
16775
      /**
16776
       * Find the _Fields constant that matches name, or null if its not found.
16777
       */
16778
      public static _Fields findByName(String name) {
16779
        return byName.get(name);
16780
      }
16781
 
16782
      private final short _thriftId;
16783
      private final String _fieldName;
16784
 
16785
      _Fields(short thriftId, String fieldName) {
16786
        _thriftId = thriftId;
16787
        _fieldName = fieldName;
16788
      }
16789
 
16790
      public short getThriftFieldId() {
16791
        return _thriftId;
16792
      }
16793
 
16794
      public String getFieldName() {
16795
        return _fieldName;
16796
      }
16797
    }
16798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16799
    static {
16800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16803
    }
16804
 
16805
    public getAgents_args() {
16806
    }
16807
 
16808
    /**
16809
     * Performs a deep copy on <i>other</i>.
16810
     */
16811
    public getAgents_args(getAgents_args other) {
16812
    }
16813
 
16814
    public getAgents_args deepCopy() {
16815
      return new getAgents_args(this);
16816
    }
16817
 
16818
    @Override
16819
    public void clear() {
16820
    }
16821
 
16822
    public void setFieldValue(_Fields field, Object value) {
16823
      switch (field) {
16824
      }
16825
    }
16826
 
16827
    public Object getFieldValue(_Fields field) {
16828
      switch (field) {
16829
      }
16830
      throw new IllegalStateException();
16831
    }
16832
 
16833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16834
    public boolean isSet(_Fields field) {
16835
      if (field == null) {
16836
        throw new IllegalArgumentException();
16837
      }
16838
 
16839
      switch (field) {
16840
      }
16841
      throw new IllegalStateException();
16842
    }
16843
 
16844
    @Override
16845
    public boolean equals(Object that) {
16846
      if (that == null)
16847
        return false;
16848
      if (that instanceof getAgents_args)
16849
        return this.equals((getAgents_args)that);
16850
      return false;
16851
    }
16852
 
16853
    public boolean equals(getAgents_args that) {
16854
      if (that == null)
16855
        return false;
16856
 
16857
      return true;
16858
    }
16859
 
16860
    @Override
16861
    public int hashCode() {
16862
      return 0;
16863
    }
16864
 
16865
    public int compareTo(getAgents_args other) {
16866
      if (!getClass().equals(other.getClass())) {
16867
        return getClass().getName().compareTo(other.getClass().getName());
16868
      }
16869
 
16870
      int lastComparison = 0;
16871
      getAgents_args typedOther = (getAgents_args)other;
16872
 
16873
      return 0;
16874
    }
16875
 
16876
    public _Fields fieldForId(int fieldId) {
16877
      return _Fields.findByThriftId(fieldId);
16878
    }
16879
 
16880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16881
      org.apache.thrift.protocol.TField field;
16882
      iprot.readStructBegin();
16883
      while (true)
16884
      {
16885
        field = iprot.readFieldBegin();
16886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16887
          break;
16888
        }
16889
        switch (field.id) {
16890
          default:
16891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16892
        }
16893
        iprot.readFieldEnd();
16894
      }
16895
      iprot.readStructEnd();
16896
      validate();
16897
    }
16898
 
16899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16900
      validate();
16901
 
16902
      oprot.writeStructBegin(STRUCT_DESC);
16903
      oprot.writeFieldStop();
16904
      oprot.writeStructEnd();
16905
    }
16906
 
16907
    @Override
16908
    public String toString() {
16909
      StringBuilder sb = new StringBuilder("getAgents_args(");
16910
      boolean first = true;
16911
 
16912
      sb.append(")");
16913
      return sb.toString();
16914
    }
16915
 
16916
    public void validate() throws org.apache.thrift.TException {
16917
      // check for required fields
16918
    }
16919
 
16920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16921
      try {
16922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16923
      } catch (org.apache.thrift.TException te) {
16924
        throw new java.io.IOException(te);
16925
      }
16926
    }
16927
 
16928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16929
      try {
16930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16931
      } catch (org.apache.thrift.TException te) {
16932
        throw new java.io.IOException(te);
16933
      }
16934
    }
16935
 
16936
  }
16937
 
16938
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
16939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
16940
 
16941
    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);
16942
 
16943
    private List<Agent> success; // required
16944
 
16945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16947
      SUCCESS((short)0, "success");
16948
 
16949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16950
 
16951
      static {
16952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16953
          byName.put(field.getFieldName(), field);
16954
        }
16955
      }
16956
 
16957
      /**
16958
       * Find the _Fields constant that matches fieldId, or null if its not found.
16959
       */
16960
      public static _Fields findByThriftId(int fieldId) {
16961
        switch(fieldId) {
16962
          case 0: // SUCCESS
16963
            return SUCCESS;
16964
          default:
16965
            return null;
16966
        }
16967
      }
16968
 
16969
      /**
16970
       * Find the _Fields constant that matches fieldId, throwing an exception
16971
       * if it is not found.
16972
       */
16973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16974
        _Fields fields = findByThriftId(fieldId);
16975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16976
        return fields;
16977
      }
16978
 
16979
      /**
16980
       * Find the _Fields constant that matches name, or null if its not found.
16981
       */
16982
      public static _Fields findByName(String name) {
16983
        return byName.get(name);
16984
      }
16985
 
16986
      private final short _thriftId;
16987
      private final String _fieldName;
16988
 
16989
      _Fields(short thriftId, String fieldName) {
16990
        _thriftId = thriftId;
16991
        _fieldName = fieldName;
16992
      }
16993
 
16994
      public short getThriftFieldId() {
16995
        return _thriftId;
16996
      }
16997
 
16998
      public String getFieldName() {
16999
        return _fieldName;
17000
      }
17001
    }
17002
 
17003
    // isset id assignments
17004
 
17005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17006
    static {
17007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17008
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17009
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17010
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
17011
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17012
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
17013
    }
17014
 
17015
    public getAgents_result() {
17016
    }
17017
 
17018
    public getAgents_result(
17019
      List<Agent> success)
17020
    {
17021
      this();
17022
      this.success = success;
17023
    }
17024
 
17025
    /**
17026
     * Performs a deep copy on <i>other</i>.
17027
     */
17028
    public getAgents_result(getAgents_result other) {
17029
      if (other.isSetSuccess()) {
17030
        List<Agent> __this__success = new ArrayList<Agent>();
17031
        for (Agent other_element : other.success) {
17032
          __this__success.add(new Agent(other_element));
17033
        }
17034
        this.success = __this__success;
17035
      }
17036
    }
17037
 
17038
    public getAgents_result deepCopy() {
17039
      return new getAgents_result(this);
17040
    }
17041
 
17042
    @Override
17043
    public void clear() {
17044
      this.success = null;
17045
    }
17046
 
17047
    public int getSuccessSize() {
17048
      return (this.success == null) ? 0 : this.success.size();
17049
    }
17050
 
17051
    public java.util.Iterator<Agent> getSuccessIterator() {
17052
      return (this.success == null) ? null : this.success.iterator();
17053
    }
17054
 
17055
    public void addToSuccess(Agent elem) {
17056
      if (this.success == null) {
17057
        this.success = new ArrayList<Agent>();
17058
      }
17059
      this.success.add(elem);
17060
    }
17061
 
17062
    public List<Agent> getSuccess() {
17063
      return this.success;
17064
    }
17065
 
17066
    public void setSuccess(List<Agent> success) {
17067
      this.success = success;
17068
    }
17069
 
17070
    public void unsetSuccess() {
17071
      this.success = null;
17072
    }
17073
 
17074
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17075
    public boolean isSetSuccess() {
17076
      return this.success != null;
17077
    }
17078
 
17079
    public void setSuccessIsSet(boolean value) {
17080
      if (!value) {
17081
        this.success = null;
17082
      }
17083
    }
17084
 
17085
    public void setFieldValue(_Fields field, Object value) {
17086
      switch (field) {
17087
      case SUCCESS:
17088
        if (value == null) {
17089
          unsetSuccess();
17090
        } else {
17091
          setSuccess((List<Agent>)value);
17092
        }
17093
        break;
17094
 
17095
      }
17096
    }
17097
 
17098
    public Object getFieldValue(_Fields field) {
17099
      switch (field) {
17100
      case SUCCESS:
17101
        return getSuccess();
17102
 
17103
      }
17104
      throw new IllegalStateException();
17105
    }
17106
 
17107
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17108
    public boolean isSet(_Fields field) {
17109
      if (field == null) {
17110
        throw new IllegalArgumentException();
17111
      }
17112
 
17113
      switch (field) {
17114
      case SUCCESS:
17115
        return isSetSuccess();
17116
      }
17117
      throw new IllegalStateException();
17118
    }
17119
 
17120
    @Override
17121
    public boolean equals(Object that) {
17122
      if (that == null)
17123
        return false;
17124
      if (that instanceof getAgents_result)
17125
        return this.equals((getAgents_result)that);
17126
      return false;
17127
    }
17128
 
17129
    public boolean equals(getAgents_result that) {
17130
      if (that == null)
17131
        return false;
17132
 
17133
      boolean this_present_success = true && this.isSetSuccess();
17134
      boolean that_present_success = true && that.isSetSuccess();
17135
      if (this_present_success || that_present_success) {
17136
        if (!(this_present_success && that_present_success))
17137
          return false;
17138
        if (!this.success.equals(that.success))
17139
          return false;
17140
      }
17141
 
17142
      return true;
17143
    }
17144
 
17145
    @Override
17146
    public int hashCode() {
17147
      return 0;
17148
    }
17149
 
17150
    public int compareTo(getAgents_result other) {
17151
      if (!getClass().equals(other.getClass())) {
17152
        return getClass().getName().compareTo(other.getClass().getName());
17153
      }
17154
 
17155
      int lastComparison = 0;
17156
      getAgents_result typedOther = (getAgents_result)other;
17157
 
17158
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17159
      if (lastComparison != 0) {
17160
        return lastComparison;
17161
      }
17162
      if (isSetSuccess()) {
17163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17164
        if (lastComparison != 0) {
17165
          return lastComparison;
17166
        }
17167
      }
17168
      return 0;
17169
    }
17170
 
17171
    public _Fields fieldForId(int fieldId) {
17172
      return _Fields.findByThriftId(fieldId);
17173
    }
17174
 
17175
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17176
      org.apache.thrift.protocol.TField field;
17177
      iprot.readStructBegin();
17178
      while (true)
17179
      {
17180
        field = iprot.readFieldBegin();
17181
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17182
          break;
17183
        }
17184
        switch (field.id) {
17185
          case 0: // SUCCESS
17186
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17187
              {
5864 rajveer 17188
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17189
                this.success = new ArrayList<Agent>(_list49.size);
17190
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17191
                {
5864 rajveer 17192
                  Agent _elem51; // required
17193
                  _elem51 = new Agent();
17194
                  _elem51.read(iprot);
17195
                  this.success.add(_elem51);
4693 mandeep.dh 17196
                }
17197
                iprot.readListEnd();
17198
              }
17199
            } else { 
17200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17201
            }
17202
            break;
17203
          default:
17204
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17205
        }
17206
        iprot.readFieldEnd();
17207
      }
17208
      iprot.readStructEnd();
17209
      validate();
17210
    }
17211
 
17212
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17213
      oprot.writeStructBegin(STRUCT_DESC);
17214
 
17215
      if (this.isSetSuccess()) {
17216
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17217
        {
17218
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17219
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17220
          {
5864 rajveer 17221
            _iter52.write(oprot);
4693 mandeep.dh 17222
          }
17223
          oprot.writeListEnd();
17224
        }
17225
        oprot.writeFieldEnd();
17226
      }
17227
      oprot.writeFieldStop();
17228
      oprot.writeStructEnd();
17229
    }
17230
 
17231
    @Override
17232
    public String toString() {
17233
      StringBuilder sb = new StringBuilder("getAgents_result(");
17234
      boolean first = true;
17235
 
17236
      sb.append("success:");
17237
      if (this.success == null) {
17238
        sb.append("null");
17239
      } else {
17240
        sb.append(this.success);
17241
      }
17242
      first = false;
17243
      sb.append(")");
17244
      return sb.toString();
17245
    }
17246
 
17247
    public void validate() throws org.apache.thrift.TException {
17248
      // check for required fields
17249
    }
17250
 
17251
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17252
      try {
17253
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17254
      } catch (org.apache.thrift.TException te) {
17255
        throw new java.io.IOException(te);
17256
      }
17257
    }
17258
 
17259
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17260
      try {
17261
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17262
      } catch (org.apache.thrift.TException te) {
17263
        throw new java.io.IOException(te);
17264
      }
17265
    }
17266
 
17267
  }
17268
 
17269
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17270
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17271
 
17272
    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);
17273
    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);
17274
 
17275
    private String emailId; // required
17276
    private String password; // required
17277
 
17278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17279
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17280
      EMAIL_ID((short)1, "emailId"),
17281
      PASSWORD((short)2, "password");
17282
 
17283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17284
 
17285
      static {
17286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17287
          byName.put(field.getFieldName(), field);
17288
        }
17289
      }
17290
 
17291
      /**
17292
       * Find the _Fields constant that matches fieldId, or null if its not found.
17293
       */
17294
      public static _Fields findByThriftId(int fieldId) {
17295
        switch(fieldId) {
17296
          case 1: // EMAIL_ID
17297
            return EMAIL_ID;
17298
          case 2: // PASSWORD
17299
            return PASSWORD;
17300
          default:
17301
            return null;
17302
        }
17303
      }
17304
 
17305
      /**
17306
       * Find the _Fields constant that matches fieldId, throwing an exception
17307
       * if it is not found.
17308
       */
17309
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17310
        _Fields fields = findByThriftId(fieldId);
17311
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17312
        return fields;
17313
      }
17314
 
17315
      /**
17316
       * Find the _Fields constant that matches name, or null if its not found.
17317
       */
17318
      public static _Fields findByName(String name) {
17319
        return byName.get(name);
17320
      }
17321
 
17322
      private final short _thriftId;
17323
      private final String _fieldName;
17324
 
17325
      _Fields(short thriftId, String fieldName) {
17326
        _thriftId = thriftId;
17327
        _fieldName = fieldName;
17328
      }
17329
 
17330
      public short getThriftFieldId() {
17331
        return _thriftId;
17332
      }
17333
 
17334
      public String getFieldName() {
17335
        return _fieldName;
17336
      }
17337
    }
17338
 
17339
    // isset id assignments
17340
 
17341
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17342
    static {
17343
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17344
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17345
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17346
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17347
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17350
    }
17351
 
17352
    public validateLogIn_args() {
17353
    }
17354
 
17355
    public validateLogIn_args(
17356
      String emailId,
17357
      String password)
17358
    {
17359
      this();
17360
      this.emailId = emailId;
17361
      this.password = password;
17362
    }
17363
 
17364
    /**
17365
     * Performs a deep copy on <i>other</i>.
17366
     */
17367
    public validateLogIn_args(validateLogIn_args other) {
17368
      if (other.isSetEmailId()) {
17369
        this.emailId = other.emailId;
17370
      }
17371
      if (other.isSetPassword()) {
17372
        this.password = other.password;
17373
      }
17374
    }
17375
 
17376
    public validateLogIn_args deepCopy() {
17377
      return new validateLogIn_args(this);
17378
    }
17379
 
17380
    @Override
17381
    public void clear() {
17382
      this.emailId = null;
17383
      this.password = null;
17384
    }
17385
 
17386
    public String getEmailId() {
17387
      return this.emailId;
17388
    }
17389
 
17390
    public void setEmailId(String emailId) {
17391
      this.emailId = emailId;
17392
    }
17393
 
17394
    public void unsetEmailId() {
17395
      this.emailId = null;
17396
    }
17397
 
17398
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17399
    public boolean isSetEmailId() {
17400
      return this.emailId != null;
17401
    }
17402
 
17403
    public void setEmailIdIsSet(boolean value) {
17404
      if (!value) {
17405
        this.emailId = null;
17406
      }
17407
    }
17408
 
17409
    public String getPassword() {
17410
      return this.password;
17411
    }
17412
 
17413
    public void setPassword(String password) {
17414
      this.password = password;
17415
    }
17416
 
17417
    public void unsetPassword() {
17418
      this.password = null;
17419
    }
17420
 
17421
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17422
    public boolean isSetPassword() {
17423
      return this.password != null;
17424
    }
17425
 
17426
    public void setPasswordIsSet(boolean value) {
17427
      if (!value) {
17428
        this.password = null;
17429
      }
17430
    }
17431
 
17432
    public void setFieldValue(_Fields field, Object value) {
17433
      switch (field) {
17434
      case EMAIL_ID:
17435
        if (value == null) {
17436
          unsetEmailId();
17437
        } else {
17438
          setEmailId((String)value);
17439
        }
17440
        break;
17441
 
17442
      case PASSWORD:
17443
        if (value == null) {
17444
          unsetPassword();
17445
        } else {
17446
          setPassword((String)value);
17447
        }
17448
        break;
17449
 
17450
      }
17451
    }
17452
 
17453
    public Object getFieldValue(_Fields field) {
17454
      switch (field) {
17455
      case EMAIL_ID:
17456
        return getEmailId();
17457
 
17458
      case PASSWORD:
17459
        return getPassword();
17460
 
17461
      }
17462
      throw new IllegalStateException();
17463
    }
17464
 
17465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17466
    public boolean isSet(_Fields field) {
17467
      if (field == null) {
17468
        throw new IllegalArgumentException();
17469
      }
17470
 
17471
      switch (field) {
17472
      case EMAIL_ID:
17473
        return isSetEmailId();
17474
      case PASSWORD:
17475
        return isSetPassword();
17476
      }
17477
      throw new IllegalStateException();
17478
    }
17479
 
17480
    @Override
17481
    public boolean equals(Object that) {
17482
      if (that == null)
17483
        return false;
17484
      if (that instanceof validateLogIn_args)
17485
        return this.equals((validateLogIn_args)that);
17486
      return false;
17487
    }
17488
 
17489
    public boolean equals(validateLogIn_args that) {
17490
      if (that == null)
17491
        return false;
17492
 
17493
      boolean this_present_emailId = true && this.isSetEmailId();
17494
      boolean that_present_emailId = true && that.isSetEmailId();
17495
      if (this_present_emailId || that_present_emailId) {
17496
        if (!(this_present_emailId && that_present_emailId))
17497
          return false;
17498
        if (!this.emailId.equals(that.emailId))
17499
          return false;
17500
      }
17501
 
17502
      boolean this_present_password = true && this.isSetPassword();
17503
      boolean that_present_password = true && that.isSetPassword();
17504
      if (this_present_password || that_present_password) {
17505
        if (!(this_present_password && that_present_password))
17506
          return false;
17507
        if (!this.password.equals(that.password))
17508
          return false;
17509
      }
17510
 
17511
      return true;
17512
    }
17513
 
17514
    @Override
17515
    public int hashCode() {
17516
      return 0;
17517
    }
17518
 
17519
    public int compareTo(validateLogIn_args other) {
17520
      if (!getClass().equals(other.getClass())) {
17521
        return getClass().getName().compareTo(other.getClass().getName());
17522
      }
17523
 
17524
      int lastComparison = 0;
17525
      validateLogIn_args typedOther = (validateLogIn_args)other;
17526
 
17527
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17528
      if (lastComparison != 0) {
17529
        return lastComparison;
17530
      }
17531
      if (isSetEmailId()) {
17532
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17533
        if (lastComparison != 0) {
17534
          return lastComparison;
17535
        }
17536
      }
17537
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17538
      if (lastComparison != 0) {
17539
        return lastComparison;
17540
      }
17541
      if (isSetPassword()) {
17542
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17543
        if (lastComparison != 0) {
17544
          return lastComparison;
17545
        }
17546
      }
17547
      return 0;
17548
    }
17549
 
17550
    public _Fields fieldForId(int fieldId) {
17551
      return _Fields.findByThriftId(fieldId);
17552
    }
17553
 
17554
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17555
      org.apache.thrift.protocol.TField field;
17556
      iprot.readStructBegin();
17557
      while (true)
17558
      {
17559
        field = iprot.readFieldBegin();
17560
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17561
          break;
17562
        }
17563
        switch (field.id) {
17564
          case 1: // EMAIL_ID
17565
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17566
              this.emailId = iprot.readString();
17567
            } else { 
17568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17569
            }
17570
            break;
17571
          case 2: // PASSWORD
17572
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17573
              this.password = iprot.readString();
17574
            } else { 
17575
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17576
            }
17577
            break;
17578
          default:
17579
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17580
        }
17581
        iprot.readFieldEnd();
17582
      }
17583
      iprot.readStructEnd();
17584
      validate();
17585
    }
17586
 
17587
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17588
      validate();
17589
 
17590
      oprot.writeStructBegin(STRUCT_DESC);
17591
      if (this.emailId != null) {
17592
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17593
        oprot.writeString(this.emailId);
17594
        oprot.writeFieldEnd();
17595
      }
17596
      if (this.password != null) {
17597
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17598
        oprot.writeString(this.password);
17599
        oprot.writeFieldEnd();
17600
      }
17601
      oprot.writeFieldStop();
17602
      oprot.writeStructEnd();
17603
    }
17604
 
17605
    @Override
17606
    public String toString() {
17607
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17608
      boolean first = true;
17609
 
17610
      sb.append("emailId:");
17611
      if (this.emailId == null) {
17612
        sb.append("null");
17613
      } else {
17614
        sb.append(this.emailId);
17615
      }
17616
      first = false;
17617
      if (!first) sb.append(", ");
17618
      sb.append("password:");
17619
      if (this.password == null) {
17620
        sb.append("null");
17621
      } else {
17622
        sb.append(this.password);
17623
      }
17624
      first = false;
17625
      sb.append(")");
17626
      return sb.toString();
17627
    }
17628
 
17629
    public void validate() throws org.apache.thrift.TException {
17630
      // check for required fields
17631
    }
17632
 
17633
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17634
      try {
17635
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17636
      } catch (org.apache.thrift.TException te) {
17637
        throw new java.io.IOException(te);
17638
      }
17639
    }
17640
 
17641
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17642
      try {
17643
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17644
      } catch (org.apache.thrift.TException te) {
17645
        throw new java.io.IOException(te);
17646
      }
17647
    }
17648
 
17649
  }
17650
 
17651
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17652
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17653
 
17654
    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);
17655
 
17656
    private boolean success; // required
17657
 
17658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17660
      SUCCESS((short)0, "success");
17661
 
17662
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17663
 
17664
      static {
17665
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17666
          byName.put(field.getFieldName(), field);
17667
        }
17668
      }
17669
 
17670
      /**
17671
       * Find the _Fields constant that matches fieldId, or null if its not found.
17672
       */
17673
      public static _Fields findByThriftId(int fieldId) {
17674
        switch(fieldId) {
17675
          case 0: // SUCCESS
17676
            return SUCCESS;
17677
          default:
17678
            return null;
17679
        }
17680
      }
17681
 
17682
      /**
17683
       * Find the _Fields constant that matches fieldId, throwing an exception
17684
       * if it is not found.
17685
       */
17686
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17687
        _Fields fields = findByThriftId(fieldId);
17688
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17689
        return fields;
17690
      }
17691
 
17692
      /**
17693
       * Find the _Fields constant that matches name, or null if its not found.
17694
       */
17695
      public static _Fields findByName(String name) {
17696
        return byName.get(name);
17697
      }
17698
 
17699
      private final short _thriftId;
17700
      private final String _fieldName;
17701
 
17702
      _Fields(short thriftId, String fieldName) {
17703
        _thriftId = thriftId;
17704
        _fieldName = fieldName;
17705
      }
17706
 
17707
      public short getThriftFieldId() {
17708
        return _thriftId;
17709
      }
17710
 
17711
      public String getFieldName() {
17712
        return _fieldName;
17713
      }
17714
    }
17715
 
17716
    // isset id assignments
17717
    private static final int __SUCCESS_ISSET_ID = 0;
17718
    private BitSet __isset_bit_vector = new BitSet(1);
17719
 
17720
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17721
    static {
17722
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17723
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17724
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17725
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17726
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17727
    }
17728
 
17729
    public validateLogIn_result() {
17730
    }
17731
 
17732
    public validateLogIn_result(
17733
      boolean success)
17734
    {
17735
      this();
17736
      this.success = success;
17737
      setSuccessIsSet(true);
17738
    }
17739
 
17740
    /**
17741
     * Performs a deep copy on <i>other</i>.
17742
     */
17743
    public validateLogIn_result(validateLogIn_result other) {
17744
      __isset_bit_vector.clear();
17745
      __isset_bit_vector.or(other.__isset_bit_vector);
17746
      this.success = other.success;
17747
    }
17748
 
17749
    public validateLogIn_result deepCopy() {
17750
      return new validateLogIn_result(this);
17751
    }
17752
 
17753
    @Override
17754
    public void clear() {
17755
      setSuccessIsSet(false);
17756
      this.success = false;
17757
    }
17758
 
17759
    public boolean isSuccess() {
17760
      return this.success;
17761
    }
17762
 
17763
    public void setSuccess(boolean success) {
17764
      this.success = success;
17765
      setSuccessIsSet(true);
17766
    }
17767
 
17768
    public void unsetSuccess() {
17769
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17770
    }
17771
 
17772
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17773
    public boolean isSetSuccess() {
17774
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17775
    }
17776
 
17777
    public void setSuccessIsSet(boolean value) {
17778
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17779
    }
17780
 
17781
    public void setFieldValue(_Fields field, Object value) {
17782
      switch (field) {
17783
      case SUCCESS:
17784
        if (value == null) {
17785
          unsetSuccess();
17786
        } else {
17787
          setSuccess((Boolean)value);
17788
        }
17789
        break;
17790
 
17791
      }
17792
    }
17793
 
17794
    public Object getFieldValue(_Fields field) {
17795
      switch (field) {
17796
      case SUCCESS:
17797
        return Boolean.valueOf(isSuccess());
17798
 
17799
      }
17800
      throw new IllegalStateException();
17801
    }
17802
 
17803
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17804
    public boolean isSet(_Fields field) {
17805
      if (field == null) {
17806
        throw new IllegalArgumentException();
17807
      }
17808
 
17809
      switch (field) {
17810
      case SUCCESS:
17811
        return isSetSuccess();
17812
      }
17813
      throw new IllegalStateException();
17814
    }
17815
 
17816
    @Override
17817
    public boolean equals(Object that) {
17818
      if (that == null)
17819
        return false;
17820
      if (that instanceof validateLogIn_result)
17821
        return this.equals((validateLogIn_result)that);
17822
      return false;
17823
    }
17824
 
17825
    public boolean equals(validateLogIn_result that) {
17826
      if (that == null)
17827
        return false;
17828
 
17829
      boolean this_present_success = true;
17830
      boolean that_present_success = true;
17831
      if (this_present_success || that_present_success) {
17832
        if (!(this_present_success && that_present_success))
17833
          return false;
17834
        if (this.success != that.success)
17835
          return false;
17836
      }
17837
 
17838
      return true;
17839
    }
17840
 
17841
    @Override
17842
    public int hashCode() {
17843
      return 0;
17844
    }
17845
 
17846
    public int compareTo(validateLogIn_result other) {
17847
      if (!getClass().equals(other.getClass())) {
17848
        return getClass().getName().compareTo(other.getClass().getName());
17849
      }
17850
 
17851
      int lastComparison = 0;
17852
      validateLogIn_result typedOther = (validateLogIn_result)other;
17853
 
17854
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17855
      if (lastComparison != 0) {
17856
        return lastComparison;
17857
      }
17858
      if (isSetSuccess()) {
17859
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17860
        if (lastComparison != 0) {
17861
          return lastComparison;
17862
        }
17863
      }
17864
      return 0;
17865
    }
17866
 
17867
    public _Fields fieldForId(int fieldId) {
17868
      return _Fields.findByThriftId(fieldId);
17869
    }
17870
 
17871
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17872
      org.apache.thrift.protocol.TField field;
17873
      iprot.readStructBegin();
17874
      while (true)
17875
      {
17876
        field = iprot.readFieldBegin();
17877
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17878
          break;
17879
        }
17880
        switch (field.id) {
17881
          case 0: // SUCCESS
17882
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17883
              this.success = iprot.readBool();
17884
              setSuccessIsSet(true);
17885
            } else { 
17886
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17887
            }
17888
            break;
17889
          default:
17890
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17891
        }
17892
        iprot.readFieldEnd();
17893
      }
17894
      iprot.readStructEnd();
17895
      validate();
17896
    }
17897
 
17898
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17899
      oprot.writeStructBegin(STRUCT_DESC);
17900
 
17901
      if (this.isSetSuccess()) {
17902
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17903
        oprot.writeBool(this.success);
17904
        oprot.writeFieldEnd();
17905
      }
17906
      oprot.writeFieldStop();
17907
      oprot.writeStructEnd();
17908
    }
17909
 
17910
    @Override
17911
    public String toString() {
17912
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17913
      boolean first = true;
17914
 
17915
      sb.append("success:");
17916
      sb.append(this.success);
17917
      first = false;
17918
      sb.append(")");
17919
      return sb.toString();
17920
    }
17921
 
17922
    public void validate() throws org.apache.thrift.TException {
17923
      // check for required fields
17924
    }
17925
 
17926
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17927
      try {
17928
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17929
      } catch (org.apache.thrift.TException te) {
17930
        throw new java.io.IOException(te);
17931
      }
17932
    }
17933
 
17934
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17935
      try {
17936
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17937
      } catch (org.apache.thrift.TException te) {
17938
        throw new java.io.IOException(te);
17939
      }
17940
    }
17941
 
17942
  }
17943
 
17944
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
17945
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
17946
 
17947
    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);
17948
    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);
17949
 
17950
    private String agentEmailId; // required
17951
    private String password; // required
17952
 
17953
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17954
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17955
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
17956
      PASSWORD((short)2, "password");
17957
 
17958
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17959
 
17960
      static {
17961
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17962
          byName.put(field.getFieldName(), field);
17963
        }
17964
      }
17965
 
17966
      /**
17967
       * Find the _Fields constant that matches fieldId, or null if its not found.
17968
       */
17969
      public static _Fields findByThriftId(int fieldId) {
17970
        switch(fieldId) {
17971
          case 1: // AGENT_EMAIL_ID
17972
            return AGENT_EMAIL_ID;
17973
          case 2: // PASSWORD
17974
            return PASSWORD;
17975
          default:
17976
            return null;
17977
        }
17978
      }
17979
 
17980
      /**
17981
       * Find the _Fields constant that matches fieldId, throwing an exception
17982
       * if it is not found.
17983
       */
17984
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17985
        _Fields fields = findByThriftId(fieldId);
17986
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17987
        return fields;
17988
      }
17989
 
17990
      /**
17991
       * Find the _Fields constant that matches name, or null if its not found.
17992
       */
17993
      public static _Fields findByName(String name) {
17994
        return byName.get(name);
17995
      }
17996
 
17997
      private final short _thriftId;
17998
      private final String _fieldName;
17999
 
18000
      _Fields(short thriftId, String fieldName) {
18001
        _thriftId = thriftId;
18002
        _fieldName = fieldName;
18003
      }
18004
 
18005
      public short getThriftFieldId() {
18006
        return _thriftId;
18007
      }
18008
 
18009
      public String getFieldName() {
18010
        return _fieldName;
18011
      }
18012
    }
18013
 
18014
    // isset id assignments
18015
 
18016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18017
    static {
18018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18019
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18021
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
18025
    }
18026
 
18027
    public updatePasswordForAgent_args() {
18028
    }
18029
 
18030
    public updatePasswordForAgent_args(
18031
      String agentEmailId,
18032
      String password)
18033
    {
18034
      this();
18035
      this.agentEmailId = agentEmailId;
18036
      this.password = password;
18037
    }
18038
 
18039
    /**
18040
     * Performs a deep copy on <i>other</i>.
18041
     */
18042
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
18043
      if (other.isSetAgentEmailId()) {
18044
        this.agentEmailId = other.agentEmailId;
18045
      }
18046
      if (other.isSetPassword()) {
18047
        this.password = other.password;
18048
      }
18049
    }
18050
 
18051
    public updatePasswordForAgent_args deepCopy() {
18052
      return new updatePasswordForAgent_args(this);
18053
    }
18054
 
18055
    @Override
18056
    public void clear() {
18057
      this.agentEmailId = null;
18058
      this.password = null;
18059
    }
18060
 
18061
    public String getAgentEmailId() {
18062
      return this.agentEmailId;
18063
    }
18064
 
18065
    public void setAgentEmailId(String agentEmailId) {
18066
      this.agentEmailId = agentEmailId;
18067
    }
18068
 
18069
    public void unsetAgentEmailId() {
18070
      this.agentEmailId = null;
18071
    }
18072
 
18073
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18074
    public boolean isSetAgentEmailId() {
18075
      return this.agentEmailId != null;
18076
    }
18077
 
18078
    public void setAgentEmailIdIsSet(boolean value) {
18079
      if (!value) {
18080
        this.agentEmailId = null;
18081
      }
18082
    }
18083
 
18084
    public String getPassword() {
18085
      return this.password;
18086
    }
18087
 
18088
    public void setPassword(String password) {
18089
      this.password = password;
18090
    }
18091
 
18092
    public void unsetPassword() {
18093
      this.password = null;
18094
    }
18095
 
18096
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18097
    public boolean isSetPassword() {
18098
      return this.password != null;
18099
    }
18100
 
18101
    public void setPasswordIsSet(boolean value) {
18102
      if (!value) {
18103
        this.password = null;
18104
      }
18105
    }
18106
 
18107
    public void setFieldValue(_Fields field, Object value) {
18108
      switch (field) {
18109
      case AGENT_EMAIL_ID:
18110
        if (value == null) {
18111
          unsetAgentEmailId();
18112
        } else {
18113
          setAgentEmailId((String)value);
18114
        }
18115
        break;
18116
 
18117
      case PASSWORD:
18118
        if (value == null) {
18119
          unsetPassword();
18120
        } else {
18121
          setPassword((String)value);
18122
        }
18123
        break;
18124
 
18125
      }
18126
    }
18127
 
18128
    public Object getFieldValue(_Fields field) {
18129
      switch (field) {
18130
      case AGENT_EMAIL_ID:
18131
        return getAgentEmailId();
18132
 
18133
      case PASSWORD:
18134
        return getPassword();
18135
 
18136
      }
18137
      throw new IllegalStateException();
18138
    }
18139
 
18140
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18141
    public boolean isSet(_Fields field) {
18142
      if (field == null) {
18143
        throw new IllegalArgumentException();
18144
      }
18145
 
18146
      switch (field) {
18147
      case AGENT_EMAIL_ID:
18148
        return isSetAgentEmailId();
18149
      case PASSWORD:
18150
        return isSetPassword();
18151
      }
18152
      throw new IllegalStateException();
18153
    }
18154
 
18155
    @Override
18156
    public boolean equals(Object that) {
18157
      if (that == null)
18158
        return false;
18159
      if (that instanceof updatePasswordForAgent_args)
18160
        return this.equals((updatePasswordForAgent_args)that);
18161
      return false;
18162
    }
18163
 
18164
    public boolean equals(updatePasswordForAgent_args that) {
18165
      if (that == null)
18166
        return false;
18167
 
18168
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18169
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18170
      if (this_present_agentEmailId || that_present_agentEmailId) {
18171
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18172
          return false;
18173
        if (!this.agentEmailId.equals(that.agentEmailId))
18174
          return false;
18175
      }
18176
 
18177
      boolean this_present_password = true && this.isSetPassword();
18178
      boolean that_present_password = true && that.isSetPassword();
18179
      if (this_present_password || that_present_password) {
18180
        if (!(this_present_password && that_present_password))
18181
          return false;
18182
        if (!this.password.equals(that.password))
18183
          return false;
18184
      }
18185
 
18186
      return true;
18187
    }
18188
 
18189
    @Override
18190
    public int hashCode() {
18191
      return 0;
18192
    }
18193
 
18194
    public int compareTo(updatePasswordForAgent_args other) {
18195
      if (!getClass().equals(other.getClass())) {
18196
        return getClass().getName().compareTo(other.getClass().getName());
18197
      }
18198
 
18199
      int lastComparison = 0;
18200
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18201
 
18202
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18203
      if (lastComparison != 0) {
18204
        return lastComparison;
18205
      }
18206
      if (isSetAgentEmailId()) {
18207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18208
        if (lastComparison != 0) {
18209
          return lastComparison;
18210
        }
18211
      }
18212
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18213
      if (lastComparison != 0) {
18214
        return lastComparison;
18215
      }
18216
      if (isSetPassword()) {
18217
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18218
        if (lastComparison != 0) {
18219
          return lastComparison;
18220
        }
18221
      }
18222
      return 0;
18223
    }
18224
 
18225
    public _Fields fieldForId(int fieldId) {
18226
      return _Fields.findByThriftId(fieldId);
18227
    }
18228
 
18229
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18230
      org.apache.thrift.protocol.TField field;
18231
      iprot.readStructBegin();
18232
      while (true)
18233
      {
18234
        field = iprot.readFieldBegin();
18235
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18236
          break;
18237
        }
18238
        switch (field.id) {
18239
          case 1: // AGENT_EMAIL_ID
18240
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18241
              this.agentEmailId = iprot.readString();
18242
            } else { 
18243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18244
            }
18245
            break;
18246
          case 2: // PASSWORD
18247
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18248
              this.password = iprot.readString();
18249
            } else { 
18250
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18251
            }
18252
            break;
18253
          default:
18254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18255
        }
18256
        iprot.readFieldEnd();
18257
      }
18258
      iprot.readStructEnd();
18259
      validate();
18260
    }
18261
 
18262
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18263
      validate();
18264
 
18265
      oprot.writeStructBegin(STRUCT_DESC);
18266
      if (this.agentEmailId != null) {
18267
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18268
        oprot.writeString(this.agentEmailId);
18269
        oprot.writeFieldEnd();
18270
      }
18271
      if (this.password != null) {
18272
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18273
        oprot.writeString(this.password);
18274
        oprot.writeFieldEnd();
18275
      }
18276
      oprot.writeFieldStop();
18277
      oprot.writeStructEnd();
18278
    }
18279
 
18280
    @Override
18281
    public String toString() {
18282
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18283
      boolean first = true;
18284
 
18285
      sb.append("agentEmailId:");
18286
      if (this.agentEmailId == null) {
18287
        sb.append("null");
18288
      } else {
18289
        sb.append(this.agentEmailId);
18290
      }
18291
      first = false;
18292
      if (!first) sb.append(", ");
18293
      sb.append("password:");
18294
      if (this.password == null) {
18295
        sb.append("null");
18296
      } else {
18297
        sb.append(this.password);
18298
      }
18299
      first = false;
18300
      sb.append(")");
18301
      return sb.toString();
18302
    }
18303
 
18304
    public void validate() throws org.apache.thrift.TException {
18305
      // check for required fields
18306
    }
18307
 
18308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18309
      try {
18310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18311
      } catch (org.apache.thrift.TException te) {
18312
        throw new java.io.IOException(te);
18313
      }
18314
    }
18315
 
18316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18317
      try {
18318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18319
      } catch (org.apache.thrift.TException te) {
18320
        throw new java.io.IOException(te);
18321
      }
18322
    }
18323
 
18324
  }
18325
 
18326
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18328
 
18329
 
18330
 
18331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18333
;
18334
 
18335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18336
 
18337
      static {
18338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18339
          byName.put(field.getFieldName(), field);
18340
        }
18341
      }
18342
 
18343
      /**
18344
       * Find the _Fields constant that matches fieldId, or null if its not found.
18345
       */
18346
      public static _Fields findByThriftId(int fieldId) {
18347
        switch(fieldId) {
18348
          default:
18349
            return null;
18350
        }
18351
      }
18352
 
18353
      /**
18354
       * Find the _Fields constant that matches fieldId, throwing an exception
18355
       * if it is not found.
18356
       */
18357
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18358
        _Fields fields = findByThriftId(fieldId);
18359
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18360
        return fields;
18361
      }
18362
 
18363
      /**
18364
       * Find the _Fields constant that matches name, or null if its not found.
18365
       */
18366
      public static _Fields findByName(String name) {
18367
        return byName.get(name);
18368
      }
18369
 
18370
      private final short _thriftId;
18371
      private final String _fieldName;
18372
 
18373
      _Fields(short thriftId, String fieldName) {
18374
        _thriftId = thriftId;
18375
        _fieldName = fieldName;
18376
      }
18377
 
18378
      public short getThriftFieldId() {
18379
        return _thriftId;
18380
      }
18381
 
18382
      public String getFieldName() {
18383
        return _fieldName;
18384
      }
18385
    }
18386
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18387
    static {
18388
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18389
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18390
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18391
    }
18392
 
18393
    public updatePasswordForAgent_result() {
18394
    }
18395
 
18396
    /**
18397
     * Performs a deep copy on <i>other</i>.
18398
     */
18399
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18400
    }
18401
 
18402
    public updatePasswordForAgent_result deepCopy() {
18403
      return new updatePasswordForAgent_result(this);
18404
    }
18405
 
18406
    @Override
18407
    public void clear() {
18408
    }
18409
 
18410
    public void setFieldValue(_Fields field, Object value) {
18411
      switch (field) {
18412
      }
18413
    }
18414
 
18415
    public Object getFieldValue(_Fields field) {
18416
      switch (field) {
18417
      }
18418
      throw new IllegalStateException();
18419
    }
18420
 
18421
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18422
    public boolean isSet(_Fields field) {
18423
      if (field == null) {
18424
        throw new IllegalArgumentException();
18425
      }
18426
 
18427
      switch (field) {
18428
      }
18429
      throw new IllegalStateException();
18430
    }
18431
 
18432
    @Override
18433
    public boolean equals(Object that) {
18434
      if (that == null)
18435
        return false;
18436
      if (that instanceof updatePasswordForAgent_result)
18437
        return this.equals((updatePasswordForAgent_result)that);
18438
      return false;
18439
    }
18440
 
18441
    public boolean equals(updatePasswordForAgent_result that) {
18442
      if (that == null)
18443
        return false;
18444
 
18445
      return true;
18446
    }
18447
 
18448
    @Override
18449
    public int hashCode() {
18450
      return 0;
18451
    }
18452
 
18453
    public int compareTo(updatePasswordForAgent_result other) {
18454
      if (!getClass().equals(other.getClass())) {
18455
        return getClass().getName().compareTo(other.getClass().getName());
18456
      }
18457
 
18458
      int lastComparison = 0;
18459
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18460
 
18461
      return 0;
18462
    }
18463
 
18464
    public _Fields fieldForId(int fieldId) {
18465
      return _Fields.findByThriftId(fieldId);
18466
    }
18467
 
18468
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18469
      org.apache.thrift.protocol.TField field;
18470
      iprot.readStructBegin();
18471
      while (true)
18472
      {
18473
        field = iprot.readFieldBegin();
18474
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18475
          break;
18476
        }
18477
        switch (field.id) {
18478
          default:
18479
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18480
        }
18481
        iprot.readFieldEnd();
18482
      }
18483
      iprot.readStructEnd();
18484
      validate();
18485
    }
18486
 
18487
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18488
      oprot.writeStructBegin(STRUCT_DESC);
18489
 
18490
      oprot.writeFieldStop();
18491
      oprot.writeStructEnd();
18492
    }
18493
 
18494
    @Override
18495
    public String toString() {
18496
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18497
      boolean first = true;
18498
 
18499
      sb.append(")");
18500
      return sb.toString();
18501
    }
18502
 
18503
    public void validate() throws org.apache.thrift.TException {
18504
      // check for required fields
18505
    }
18506
 
18507
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18508
      try {
18509
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18510
      } catch (org.apache.thrift.TException te) {
18511
        throw new java.io.IOException(te);
18512
      }
18513
    }
18514
 
18515
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18516
      try {
18517
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18518
      } catch (org.apache.thrift.TException te) {
18519
        throw new java.io.IOException(te);
18520
      }
18521
    }
18522
 
18523
  }
18524
 
18525
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18527
 
18528
    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);
18529
 
18530
    private String agentEmailId; // required
18531
 
18532
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18533
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18534
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18535
 
18536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18537
 
18538
      static {
18539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18540
          byName.put(field.getFieldName(), field);
18541
        }
18542
      }
18543
 
18544
      /**
18545
       * Find the _Fields constant that matches fieldId, or null if its not found.
18546
       */
18547
      public static _Fields findByThriftId(int fieldId) {
18548
        switch(fieldId) {
18549
          case 1: // AGENT_EMAIL_ID
18550
            return AGENT_EMAIL_ID;
18551
          default:
18552
            return null;
18553
        }
18554
      }
18555
 
18556
      /**
18557
       * Find the _Fields constant that matches fieldId, throwing an exception
18558
       * if it is not found.
18559
       */
18560
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18561
        _Fields fields = findByThriftId(fieldId);
18562
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18563
        return fields;
18564
      }
18565
 
18566
      /**
18567
       * Find the _Fields constant that matches name, or null if its not found.
18568
       */
18569
      public static _Fields findByName(String name) {
18570
        return byName.get(name);
18571
      }
18572
 
18573
      private final short _thriftId;
18574
      private final String _fieldName;
18575
 
18576
      _Fields(short thriftId, String fieldName) {
18577
        _thriftId = thriftId;
18578
        _fieldName = fieldName;
18579
      }
18580
 
18581
      public short getThriftFieldId() {
18582
        return _thriftId;
18583
      }
18584
 
18585
      public String getFieldName() {
18586
        return _fieldName;
18587
      }
18588
    }
18589
 
18590
    // isset id assignments
18591
 
18592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18593
    static {
18594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18595
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18599
    }
18600
 
18601
    public getRoleNamesForAgent_args() {
18602
    }
18603
 
18604
    public getRoleNamesForAgent_args(
18605
      String agentEmailId)
18606
    {
18607
      this();
18608
      this.agentEmailId = agentEmailId;
18609
    }
18610
 
18611
    /**
18612
     * Performs a deep copy on <i>other</i>.
18613
     */
18614
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18615
      if (other.isSetAgentEmailId()) {
18616
        this.agentEmailId = other.agentEmailId;
18617
      }
18618
    }
18619
 
18620
    public getRoleNamesForAgent_args deepCopy() {
18621
      return new getRoleNamesForAgent_args(this);
18622
    }
18623
 
18624
    @Override
18625
    public void clear() {
18626
      this.agentEmailId = null;
18627
    }
18628
 
18629
    public String getAgentEmailId() {
18630
      return this.agentEmailId;
18631
    }
18632
 
18633
    public void setAgentEmailId(String agentEmailId) {
18634
      this.agentEmailId = agentEmailId;
18635
    }
18636
 
18637
    public void unsetAgentEmailId() {
18638
      this.agentEmailId = null;
18639
    }
18640
 
18641
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18642
    public boolean isSetAgentEmailId() {
18643
      return this.agentEmailId != null;
18644
    }
18645
 
18646
    public void setAgentEmailIdIsSet(boolean value) {
18647
      if (!value) {
18648
        this.agentEmailId = null;
18649
      }
18650
    }
18651
 
18652
    public void setFieldValue(_Fields field, Object value) {
18653
      switch (field) {
18654
      case AGENT_EMAIL_ID:
18655
        if (value == null) {
18656
          unsetAgentEmailId();
18657
        } else {
18658
          setAgentEmailId((String)value);
18659
        }
18660
        break;
18661
 
18662
      }
18663
    }
18664
 
18665
    public Object getFieldValue(_Fields field) {
18666
      switch (field) {
18667
      case AGENT_EMAIL_ID:
18668
        return getAgentEmailId();
18669
 
18670
      }
18671
      throw new IllegalStateException();
18672
    }
18673
 
18674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18675
    public boolean isSet(_Fields field) {
18676
      if (field == null) {
18677
        throw new IllegalArgumentException();
18678
      }
18679
 
18680
      switch (field) {
18681
      case AGENT_EMAIL_ID:
18682
        return isSetAgentEmailId();
18683
      }
18684
      throw new IllegalStateException();
18685
    }
18686
 
18687
    @Override
18688
    public boolean equals(Object that) {
18689
      if (that == null)
18690
        return false;
18691
      if (that instanceof getRoleNamesForAgent_args)
18692
        return this.equals((getRoleNamesForAgent_args)that);
18693
      return false;
18694
    }
18695
 
18696
    public boolean equals(getRoleNamesForAgent_args that) {
18697
      if (that == null)
18698
        return false;
18699
 
18700
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18701
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18702
      if (this_present_agentEmailId || that_present_agentEmailId) {
18703
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18704
          return false;
18705
        if (!this.agentEmailId.equals(that.agentEmailId))
18706
          return false;
18707
      }
18708
 
18709
      return true;
18710
    }
18711
 
18712
    @Override
18713
    public int hashCode() {
18714
      return 0;
18715
    }
18716
 
18717
    public int compareTo(getRoleNamesForAgent_args other) {
18718
      if (!getClass().equals(other.getClass())) {
18719
        return getClass().getName().compareTo(other.getClass().getName());
18720
      }
18721
 
18722
      int lastComparison = 0;
18723
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18724
 
18725
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18726
      if (lastComparison != 0) {
18727
        return lastComparison;
18728
      }
18729
      if (isSetAgentEmailId()) {
18730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18731
        if (lastComparison != 0) {
18732
          return lastComparison;
18733
        }
18734
      }
18735
      return 0;
18736
    }
18737
 
18738
    public _Fields fieldForId(int fieldId) {
18739
      return _Fields.findByThriftId(fieldId);
18740
    }
18741
 
18742
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18743
      org.apache.thrift.protocol.TField field;
18744
      iprot.readStructBegin();
18745
      while (true)
18746
      {
18747
        field = iprot.readFieldBegin();
18748
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18749
          break;
18750
        }
18751
        switch (field.id) {
18752
          case 1: // AGENT_EMAIL_ID
18753
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18754
              this.agentEmailId = iprot.readString();
18755
            } else { 
18756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18757
            }
18758
            break;
18759
          default:
18760
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18761
        }
18762
        iprot.readFieldEnd();
18763
      }
18764
      iprot.readStructEnd();
18765
      validate();
18766
    }
18767
 
18768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18769
      validate();
18770
 
18771
      oprot.writeStructBegin(STRUCT_DESC);
18772
      if (this.agentEmailId != null) {
18773
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18774
        oprot.writeString(this.agentEmailId);
18775
        oprot.writeFieldEnd();
18776
      }
18777
      oprot.writeFieldStop();
18778
      oprot.writeStructEnd();
18779
    }
18780
 
18781
    @Override
18782
    public String toString() {
18783
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18784
      boolean first = true;
18785
 
18786
      sb.append("agentEmailId:");
18787
      if (this.agentEmailId == null) {
18788
        sb.append("null");
18789
      } else {
18790
        sb.append(this.agentEmailId);
18791
      }
18792
      first = false;
18793
      sb.append(")");
18794
      return sb.toString();
18795
    }
18796
 
18797
    public void validate() throws org.apache.thrift.TException {
18798
      // check for required fields
18799
    }
18800
 
18801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18802
      try {
18803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18804
      } catch (org.apache.thrift.TException te) {
18805
        throw new java.io.IOException(te);
18806
      }
18807
    }
18808
 
18809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18810
      try {
18811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18812
      } catch (org.apache.thrift.TException te) {
18813
        throw new java.io.IOException(te);
18814
      }
18815
    }
18816
 
18817
  }
18818
 
18819
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18821
 
18822
    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);
18823
 
18824
    private List<String> success; // required
18825
 
18826
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18827
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18828
      SUCCESS((short)0, "success");
18829
 
18830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18831
 
18832
      static {
18833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18834
          byName.put(field.getFieldName(), field);
18835
        }
18836
      }
18837
 
18838
      /**
18839
       * Find the _Fields constant that matches fieldId, or null if its not found.
18840
       */
18841
      public static _Fields findByThriftId(int fieldId) {
18842
        switch(fieldId) {
18843
          case 0: // SUCCESS
18844
            return SUCCESS;
18845
          default:
18846
            return null;
18847
        }
18848
      }
18849
 
18850
      /**
18851
       * Find the _Fields constant that matches fieldId, throwing an exception
18852
       * if it is not found.
18853
       */
18854
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18855
        _Fields fields = findByThriftId(fieldId);
18856
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18857
        return fields;
18858
      }
18859
 
18860
      /**
18861
       * Find the _Fields constant that matches name, or null if its not found.
18862
       */
18863
      public static _Fields findByName(String name) {
18864
        return byName.get(name);
18865
      }
18866
 
18867
      private final short _thriftId;
18868
      private final String _fieldName;
18869
 
18870
      _Fields(short thriftId, String fieldName) {
18871
        _thriftId = thriftId;
18872
        _fieldName = fieldName;
18873
      }
18874
 
18875
      public short getThriftFieldId() {
18876
        return _thriftId;
18877
      }
18878
 
18879
      public String getFieldName() {
18880
        return _fieldName;
18881
      }
18882
    }
18883
 
18884
    // isset id assignments
18885
 
18886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18887
    static {
18888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18889
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18890
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18891
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18894
    }
18895
 
18896
    public getRoleNamesForAgent_result() {
18897
    }
18898
 
18899
    public getRoleNamesForAgent_result(
18900
      List<String> success)
18901
    {
18902
      this();
18903
      this.success = success;
18904
    }
18905
 
18906
    /**
18907
     * Performs a deep copy on <i>other</i>.
18908
     */
18909
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18910
      if (other.isSetSuccess()) {
18911
        List<String> __this__success = new ArrayList<String>();
18912
        for (String other_element : other.success) {
18913
          __this__success.add(other_element);
18914
        }
18915
        this.success = __this__success;
18916
      }
18917
    }
18918
 
18919
    public getRoleNamesForAgent_result deepCopy() {
18920
      return new getRoleNamesForAgent_result(this);
18921
    }
18922
 
18923
    @Override
18924
    public void clear() {
18925
      this.success = null;
18926
    }
18927
 
18928
    public int getSuccessSize() {
18929
      return (this.success == null) ? 0 : this.success.size();
18930
    }
18931
 
18932
    public java.util.Iterator<String> getSuccessIterator() {
18933
      return (this.success == null) ? null : this.success.iterator();
18934
    }
18935
 
18936
    public void addToSuccess(String elem) {
18937
      if (this.success == null) {
18938
        this.success = new ArrayList<String>();
18939
      }
18940
      this.success.add(elem);
18941
    }
18942
 
18943
    public List<String> getSuccess() {
18944
      return this.success;
18945
    }
18946
 
18947
    public void setSuccess(List<String> success) {
18948
      this.success = success;
18949
    }
18950
 
18951
    public void unsetSuccess() {
18952
      this.success = null;
18953
    }
18954
 
18955
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18956
    public boolean isSetSuccess() {
18957
      return this.success != null;
18958
    }
18959
 
18960
    public void setSuccessIsSet(boolean value) {
18961
      if (!value) {
18962
        this.success = null;
18963
      }
18964
    }
18965
 
18966
    public void setFieldValue(_Fields field, Object value) {
18967
      switch (field) {
18968
      case SUCCESS:
18969
        if (value == null) {
18970
          unsetSuccess();
18971
        } else {
18972
          setSuccess((List<String>)value);
18973
        }
18974
        break;
18975
 
18976
      }
18977
    }
18978
 
18979
    public Object getFieldValue(_Fields field) {
18980
      switch (field) {
18981
      case SUCCESS:
18982
        return getSuccess();
18983
 
18984
      }
18985
      throw new IllegalStateException();
18986
    }
18987
 
18988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18989
    public boolean isSet(_Fields field) {
18990
      if (field == null) {
18991
        throw new IllegalArgumentException();
18992
      }
18993
 
18994
      switch (field) {
18995
      case SUCCESS:
18996
        return isSetSuccess();
18997
      }
18998
      throw new IllegalStateException();
18999
    }
19000
 
19001
    @Override
19002
    public boolean equals(Object that) {
19003
      if (that == null)
19004
        return false;
19005
      if (that instanceof getRoleNamesForAgent_result)
19006
        return this.equals((getRoleNamesForAgent_result)that);
19007
      return false;
19008
    }
19009
 
19010
    public boolean equals(getRoleNamesForAgent_result that) {
19011
      if (that == null)
19012
        return false;
19013
 
19014
      boolean this_present_success = true && this.isSetSuccess();
19015
      boolean that_present_success = true && that.isSetSuccess();
19016
      if (this_present_success || that_present_success) {
19017
        if (!(this_present_success && that_present_success))
19018
          return false;
19019
        if (!this.success.equals(that.success))
19020
          return false;
19021
      }
19022
 
19023
      return true;
19024
    }
19025
 
19026
    @Override
19027
    public int hashCode() {
19028
      return 0;
19029
    }
19030
 
19031
    public int compareTo(getRoleNamesForAgent_result other) {
19032
      if (!getClass().equals(other.getClass())) {
19033
        return getClass().getName().compareTo(other.getClass().getName());
19034
      }
19035
 
19036
      int lastComparison = 0;
19037
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
19038
 
19039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19040
      if (lastComparison != 0) {
19041
        return lastComparison;
19042
      }
19043
      if (isSetSuccess()) {
19044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19045
        if (lastComparison != 0) {
19046
          return lastComparison;
19047
        }
19048
      }
19049
      return 0;
19050
    }
19051
 
19052
    public _Fields fieldForId(int fieldId) {
19053
      return _Fields.findByThriftId(fieldId);
19054
    }
19055
 
19056
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19057
      org.apache.thrift.protocol.TField field;
19058
      iprot.readStructBegin();
19059
      while (true)
19060
      {
19061
        field = iprot.readFieldBegin();
19062
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19063
          break;
19064
        }
19065
        switch (field.id) {
19066
          case 0: // SUCCESS
19067
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19068
              {
5864 rajveer 19069
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19070
                this.success = new ArrayList<String>(_list53.size);
19071
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19072
                {
5864 rajveer 19073
                  String _elem55; // required
19074
                  _elem55 = iprot.readString();
19075
                  this.success.add(_elem55);
4693 mandeep.dh 19076
                }
19077
                iprot.readListEnd();
19078
              }
19079
            } else { 
19080
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19081
            }
19082
            break;
19083
          default:
19084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19085
        }
19086
        iprot.readFieldEnd();
19087
      }
19088
      iprot.readStructEnd();
19089
      validate();
19090
    }
19091
 
19092
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19093
      oprot.writeStructBegin(STRUCT_DESC);
19094
 
19095
      if (this.isSetSuccess()) {
19096
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19097
        {
19098
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19099
          for (String _iter56 : this.success)
4693 mandeep.dh 19100
          {
5864 rajveer 19101
            oprot.writeString(_iter56);
4693 mandeep.dh 19102
          }
19103
          oprot.writeListEnd();
19104
        }
19105
        oprot.writeFieldEnd();
19106
      }
19107
      oprot.writeFieldStop();
19108
      oprot.writeStructEnd();
19109
    }
19110
 
19111
    @Override
19112
    public String toString() {
19113
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19114
      boolean first = true;
19115
 
19116
      sb.append("success:");
19117
      if (this.success == null) {
19118
        sb.append("null");
19119
      } else {
19120
        sb.append(this.success);
19121
      }
19122
      first = false;
19123
      sb.append(")");
19124
      return sb.toString();
19125
    }
19126
 
19127
    public void validate() throws org.apache.thrift.TException {
19128
      // check for required fields
19129
    }
19130
 
19131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19132
      try {
19133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19134
      } catch (org.apache.thrift.TException te) {
19135
        throw new java.io.IOException(te);
19136
      }
19137
    }
19138
 
19139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19140
      try {
19141
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19142
      } catch (org.apache.thrift.TException te) {
19143
        throw new java.io.IOException(te);
19144
      }
19145
    }
19146
 
19147
  }
19148
 
19149
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19150
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19151
 
19152
    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);
19153
 
19154
    private String roleName; // required
19155
 
19156
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19157
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19158
      ROLE_NAME((short)1, "roleName");
19159
 
19160
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19161
 
19162
      static {
19163
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19164
          byName.put(field.getFieldName(), field);
19165
        }
19166
      }
19167
 
19168
      /**
19169
       * Find the _Fields constant that matches fieldId, or null if its not found.
19170
       */
19171
      public static _Fields findByThriftId(int fieldId) {
19172
        switch(fieldId) {
19173
          case 1: // ROLE_NAME
19174
            return ROLE_NAME;
19175
          default:
19176
            return null;
19177
        }
19178
      }
19179
 
19180
      /**
19181
       * Find the _Fields constant that matches fieldId, throwing an exception
19182
       * if it is not found.
19183
       */
19184
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19185
        _Fields fields = findByThriftId(fieldId);
19186
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19187
        return fields;
19188
      }
19189
 
19190
      /**
19191
       * Find the _Fields constant that matches name, or null if its not found.
19192
       */
19193
      public static _Fields findByName(String name) {
19194
        return byName.get(name);
19195
      }
19196
 
19197
      private final short _thriftId;
19198
      private final String _fieldName;
19199
 
19200
      _Fields(short thriftId, String fieldName) {
19201
        _thriftId = thriftId;
19202
        _fieldName = fieldName;
19203
      }
19204
 
19205
      public short getThriftFieldId() {
19206
        return _thriftId;
19207
      }
19208
 
19209
      public String getFieldName() {
19210
        return _fieldName;
19211
      }
19212
    }
19213
 
19214
    // isset id assignments
19215
 
19216
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19217
    static {
19218
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19219
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19223
    }
19224
 
19225
    public getPermissionsForRoleName_args() {
19226
    }
19227
 
19228
    public getPermissionsForRoleName_args(
19229
      String roleName)
19230
    {
19231
      this();
19232
      this.roleName = roleName;
19233
    }
19234
 
19235
    /**
19236
     * Performs a deep copy on <i>other</i>.
19237
     */
19238
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19239
      if (other.isSetRoleName()) {
19240
        this.roleName = other.roleName;
19241
      }
19242
    }
19243
 
19244
    public getPermissionsForRoleName_args deepCopy() {
19245
      return new getPermissionsForRoleName_args(this);
19246
    }
19247
 
19248
    @Override
19249
    public void clear() {
19250
      this.roleName = null;
19251
    }
19252
 
19253
    public String getRoleName() {
19254
      return this.roleName;
19255
    }
19256
 
19257
    public void setRoleName(String roleName) {
19258
      this.roleName = roleName;
19259
    }
19260
 
19261
    public void unsetRoleName() {
19262
      this.roleName = null;
19263
    }
19264
 
19265
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19266
    public boolean isSetRoleName() {
19267
      return this.roleName != null;
19268
    }
19269
 
19270
    public void setRoleNameIsSet(boolean value) {
19271
      if (!value) {
19272
        this.roleName = null;
19273
      }
19274
    }
19275
 
19276
    public void setFieldValue(_Fields field, Object value) {
19277
      switch (field) {
19278
      case ROLE_NAME:
19279
        if (value == null) {
19280
          unsetRoleName();
19281
        } else {
19282
          setRoleName((String)value);
19283
        }
19284
        break;
19285
 
19286
      }
19287
    }
19288
 
19289
    public Object getFieldValue(_Fields field) {
19290
      switch (field) {
19291
      case ROLE_NAME:
19292
        return getRoleName();
19293
 
19294
      }
19295
      throw new IllegalStateException();
19296
    }
19297
 
19298
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19299
    public boolean isSet(_Fields field) {
19300
      if (field == null) {
19301
        throw new IllegalArgumentException();
19302
      }
19303
 
19304
      switch (field) {
19305
      case ROLE_NAME:
19306
        return isSetRoleName();
19307
      }
19308
      throw new IllegalStateException();
19309
    }
19310
 
19311
    @Override
19312
    public boolean equals(Object that) {
19313
      if (that == null)
19314
        return false;
19315
      if (that instanceof getPermissionsForRoleName_args)
19316
        return this.equals((getPermissionsForRoleName_args)that);
19317
      return false;
19318
    }
19319
 
19320
    public boolean equals(getPermissionsForRoleName_args that) {
19321
      if (that == null)
19322
        return false;
19323
 
19324
      boolean this_present_roleName = true && this.isSetRoleName();
19325
      boolean that_present_roleName = true && that.isSetRoleName();
19326
      if (this_present_roleName || that_present_roleName) {
19327
        if (!(this_present_roleName && that_present_roleName))
19328
          return false;
19329
        if (!this.roleName.equals(that.roleName))
19330
          return false;
19331
      }
19332
 
19333
      return true;
19334
    }
19335
 
19336
    @Override
19337
    public int hashCode() {
19338
      return 0;
19339
    }
19340
 
19341
    public int compareTo(getPermissionsForRoleName_args other) {
19342
      if (!getClass().equals(other.getClass())) {
19343
        return getClass().getName().compareTo(other.getClass().getName());
19344
      }
19345
 
19346
      int lastComparison = 0;
19347
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19348
 
19349
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19350
      if (lastComparison != 0) {
19351
        return lastComparison;
19352
      }
19353
      if (isSetRoleName()) {
19354
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19355
        if (lastComparison != 0) {
19356
          return lastComparison;
19357
        }
19358
      }
19359
      return 0;
19360
    }
19361
 
19362
    public _Fields fieldForId(int fieldId) {
19363
      return _Fields.findByThriftId(fieldId);
19364
    }
19365
 
19366
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19367
      org.apache.thrift.protocol.TField field;
19368
      iprot.readStructBegin();
19369
      while (true)
19370
      {
19371
        field = iprot.readFieldBegin();
19372
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19373
          break;
19374
        }
19375
        switch (field.id) {
19376
          case 1: // ROLE_NAME
19377
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19378
              this.roleName = iprot.readString();
19379
            } else { 
19380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19381
            }
19382
            break;
19383
          default:
19384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19385
        }
19386
        iprot.readFieldEnd();
19387
      }
19388
      iprot.readStructEnd();
19389
      validate();
19390
    }
19391
 
19392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19393
      validate();
19394
 
19395
      oprot.writeStructBegin(STRUCT_DESC);
19396
      if (this.roleName != null) {
19397
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19398
        oprot.writeString(this.roleName);
19399
        oprot.writeFieldEnd();
19400
      }
19401
      oprot.writeFieldStop();
19402
      oprot.writeStructEnd();
19403
    }
19404
 
19405
    @Override
19406
    public String toString() {
19407
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19408
      boolean first = true;
19409
 
19410
      sb.append("roleName:");
19411
      if (this.roleName == null) {
19412
        sb.append("null");
19413
      } else {
19414
        sb.append(this.roleName);
19415
      }
19416
      first = false;
19417
      sb.append(")");
19418
      return sb.toString();
19419
    }
19420
 
19421
    public void validate() throws org.apache.thrift.TException {
19422
      // check for required fields
19423
    }
19424
 
19425
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19426
      try {
19427
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19428
      } catch (org.apache.thrift.TException te) {
19429
        throw new java.io.IOException(te);
19430
      }
19431
    }
19432
 
19433
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19434
      try {
19435
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19436
      } catch (org.apache.thrift.TException te) {
19437
        throw new java.io.IOException(te);
19438
      }
19439
    }
19440
 
19441
  }
19442
 
19443
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19444
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19445
 
19446
    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);
19447
 
19448
    private List<String> success; // required
19449
 
19450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19452
      SUCCESS((short)0, "success");
19453
 
19454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19455
 
19456
      static {
19457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19458
          byName.put(field.getFieldName(), field);
19459
        }
19460
      }
19461
 
19462
      /**
19463
       * Find the _Fields constant that matches fieldId, or null if its not found.
19464
       */
19465
      public static _Fields findByThriftId(int fieldId) {
19466
        switch(fieldId) {
19467
          case 0: // SUCCESS
19468
            return SUCCESS;
19469
          default:
19470
            return null;
19471
        }
19472
      }
19473
 
19474
      /**
19475
       * Find the _Fields constant that matches fieldId, throwing an exception
19476
       * if it is not found.
19477
       */
19478
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19479
        _Fields fields = findByThriftId(fieldId);
19480
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19481
        return fields;
19482
      }
19483
 
19484
      /**
19485
       * Find the _Fields constant that matches name, or null if its not found.
19486
       */
19487
      public static _Fields findByName(String name) {
19488
        return byName.get(name);
19489
      }
19490
 
19491
      private final short _thriftId;
19492
      private final String _fieldName;
19493
 
19494
      _Fields(short thriftId, String fieldName) {
19495
        _thriftId = thriftId;
19496
        _fieldName = fieldName;
19497
      }
19498
 
19499
      public short getThriftFieldId() {
19500
        return _thriftId;
19501
      }
19502
 
19503
      public String getFieldName() {
19504
        return _fieldName;
19505
      }
19506
    }
19507
 
19508
    // isset id assignments
19509
 
19510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19511
    static {
19512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19513
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19514
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19515
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19518
    }
19519
 
19520
    public getPermissionsForRoleName_result() {
19521
    }
19522
 
19523
    public getPermissionsForRoleName_result(
19524
      List<String> success)
19525
    {
19526
      this();
19527
      this.success = success;
19528
    }
19529
 
19530
    /**
19531
     * Performs a deep copy on <i>other</i>.
19532
     */
19533
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19534
      if (other.isSetSuccess()) {
19535
        List<String> __this__success = new ArrayList<String>();
19536
        for (String other_element : other.success) {
19537
          __this__success.add(other_element);
19538
        }
19539
        this.success = __this__success;
19540
      }
19541
    }
19542
 
19543
    public getPermissionsForRoleName_result deepCopy() {
19544
      return new getPermissionsForRoleName_result(this);
19545
    }
19546
 
19547
    @Override
19548
    public void clear() {
19549
      this.success = null;
19550
    }
19551
 
19552
    public int getSuccessSize() {
19553
      return (this.success == null) ? 0 : this.success.size();
19554
    }
19555
 
19556
    public java.util.Iterator<String> getSuccessIterator() {
19557
      return (this.success == null) ? null : this.success.iterator();
19558
    }
19559
 
19560
    public void addToSuccess(String elem) {
19561
      if (this.success == null) {
19562
        this.success = new ArrayList<String>();
19563
      }
19564
      this.success.add(elem);
19565
    }
19566
 
19567
    public List<String> getSuccess() {
19568
      return this.success;
19569
    }
19570
 
19571
    public void setSuccess(List<String> success) {
19572
      this.success = success;
19573
    }
19574
 
19575
    public void unsetSuccess() {
19576
      this.success = null;
19577
    }
19578
 
19579
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19580
    public boolean isSetSuccess() {
19581
      return this.success != null;
19582
    }
19583
 
19584
    public void setSuccessIsSet(boolean value) {
19585
      if (!value) {
19586
        this.success = null;
19587
      }
19588
    }
19589
 
19590
    public void setFieldValue(_Fields field, Object value) {
19591
      switch (field) {
19592
      case SUCCESS:
19593
        if (value == null) {
19594
          unsetSuccess();
19595
        } else {
19596
          setSuccess((List<String>)value);
19597
        }
19598
        break;
19599
 
19600
      }
19601
    }
19602
 
19603
    public Object getFieldValue(_Fields field) {
19604
      switch (field) {
19605
      case SUCCESS:
19606
        return getSuccess();
19607
 
19608
      }
19609
      throw new IllegalStateException();
19610
    }
19611
 
19612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19613
    public boolean isSet(_Fields field) {
19614
      if (field == null) {
19615
        throw new IllegalArgumentException();
19616
      }
19617
 
19618
      switch (field) {
19619
      case SUCCESS:
19620
        return isSetSuccess();
19621
      }
19622
      throw new IllegalStateException();
19623
    }
19624
 
19625
    @Override
19626
    public boolean equals(Object that) {
19627
      if (that == null)
19628
        return false;
19629
      if (that instanceof getPermissionsForRoleName_result)
19630
        return this.equals((getPermissionsForRoleName_result)that);
19631
      return false;
19632
    }
19633
 
19634
    public boolean equals(getPermissionsForRoleName_result that) {
19635
      if (that == null)
19636
        return false;
19637
 
19638
      boolean this_present_success = true && this.isSetSuccess();
19639
      boolean that_present_success = true && that.isSetSuccess();
19640
      if (this_present_success || that_present_success) {
19641
        if (!(this_present_success && that_present_success))
19642
          return false;
19643
        if (!this.success.equals(that.success))
19644
          return false;
19645
      }
19646
 
19647
      return true;
19648
    }
19649
 
19650
    @Override
19651
    public int hashCode() {
19652
      return 0;
19653
    }
19654
 
19655
    public int compareTo(getPermissionsForRoleName_result other) {
19656
      if (!getClass().equals(other.getClass())) {
19657
        return getClass().getName().compareTo(other.getClass().getName());
19658
      }
19659
 
19660
      int lastComparison = 0;
19661
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19662
 
19663
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19664
      if (lastComparison != 0) {
19665
        return lastComparison;
19666
      }
19667
      if (isSetSuccess()) {
19668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19669
        if (lastComparison != 0) {
19670
          return lastComparison;
19671
        }
19672
      }
19673
      return 0;
19674
    }
19675
 
19676
    public _Fields fieldForId(int fieldId) {
19677
      return _Fields.findByThriftId(fieldId);
19678
    }
19679
 
19680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19681
      org.apache.thrift.protocol.TField field;
19682
      iprot.readStructBegin();
19683
      while (true)
19684
      {
19685
        field = iprot.readFieldBegin();
19686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19687
          break;
19688
        }
19689
        switch (field.id) {
19690
          case 0: // SUCCESS
19691
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19692
              {
5864 rajveer 19693
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19694
                this.success = new ArrayList<String>(_list57.size);
19695
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19696
                {
5864 rajveer 19697
                  String _elem59; // required
19698
                  _elem59 = iprot.readString();
19699
                  this.success.add(_elem59);
4693 mandeep.dh 19700
                }
19701
                iprot.readListEnd();
19702
              }
19703
            } else { 
19704
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19705
            }
19706
            break;
19707
          default:
19708
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19709
        }
19710
        iprot.readFieldEnd();
19711
      }
19712
      iprot.readStructEnd();
19713
      validate();
19714
    }
19715
 
19716
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19717
      oprot.writeStructBegin(STRUCT_DESC);
19718
 
19719
      if (this.isSetSuccess()) {
19720
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19721
        {
19722
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19723
          for (String _iter60 : this.success)
4693 mandeep.dh 19724
          {
5864 rajveer 19725
            oprot.writeString(_iter60);
4693 mandeep.dh 19726
          }
19727
          oprot.writeListEnd();
19728
        }
19729
        oprot.writeFieldEnd();
19730
      }
19731
      oprot.writeFieldStop();
19732
      oprot.writeStructEnd();
19733
    }
19734
 
19735
    @Override
19736
    public String toString() {
19737
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19738
      boolean first = true;
19739
 
19740
      sb.append("success:");
19741
      if (this.success == null) {
19742
        sb.append("null");
19743
      } else {
19744
        sb.append(this.success);
19745
      }
19746
      first = false;
19747
      sb.append(")");
19748
      return sb.toString();
19749
    }
19750
 
19751
    public void validate() throws org.apache.thrift.TException {
19752
      // check for required fields
19753
    }
19754
 
19755
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19756
      try {
19757
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19758
      } catch (org.apache.thrift.TException te) {
19759
        throw new java.io.IOException(te);
19760
      }
19761
    }
19762
 
19763
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19764
      try {
19765
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19766
      } catch (org.apache.thrift.TException te) {
19767
        throw new java.io.IOException(te);
19768
      }
19769
    }
19770
 
19771
  }
19772
 
4806 varun.gupt 19773
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19774
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19775
 
19776
    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);
19777
    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);
19778
 
19779
    private String url; // required
19780
    private String text; // required
19781
 
19782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19784
      URL((short)1, "url"),
19785
      TEXT((short)2, "text");
19786
 
19787
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19788
 
19789
      static {
19790
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19791
          byName.put(field.getFieldName(), field);
19792
        }
19793
      }
19794
 
19795
      /**
19796
       * Find the _Fields constant that matches fieldId, or null if its not found.
19797
       */
19798
      public static _Fields findByThriftId(int fieldId) {
19799
        switch(fieldId) {
19800
          case 1: // URL
19801
            return URL;
19802
          case 2: // TEXT
19803
            return TEXT;
19804
          default:
19805
            return null;
19806
        }
19807
      }
19808
 
19809
      /**
19810
       * Find the _Fields constant that matches fieldId, throwing an exception
19811
       * if it is not found.
19812
       */
19813
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19814
        _Fields fields = findByThriftId(fieldId);
19815
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19816
        return fields;
19817
      }
19818
 
19819
      /**
19820
       * Find the _Fields constant that matches name, or null if its not found.
19821
       */
19822
      public static _Fields findByName(String name) {
19823
        return byName.get(name);
19824
      }
19825
 
19826
      private final short _thriftId;
19827
      private final String _fieldName;
19828
 
19829
      _Fields(short thriftId, String fieldName) {
19830
        _thriftId = thriftId;
19831
        _fieldName = fieldName;
19832
      }
19833
 
19834
      public short getThriftFieldId() {
19835
        return _thriftId;
19836
      }
19837
 
19838
      public String getFieldName() {
19839
        return _fieldName;
19840
      }
19841
    }
19842
 
19843
    // isset id assignments
19844
 
19845
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19846
    static {
19847
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19848
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19849
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19850
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19851
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19852
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19853
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19854
    }
19855
 
19856
    public saveQuickLink_args() {
19857
    }
19858
 
19859
    public saveQuickLink_args(
19860
      String url,
19861
      String text)
19862
    {
19863
      this();
19864
      this.url = url;
19865
      this.text = text;
19866
    }
19867
 
19868
    /**
19869
     * Performs a deep copy on <i>other</i>.
19870
     */
19871
    public saveQuickLink_args(saveQuickLink_args other) {
19872
      if (other.isSetUrl()) {
19873
        this.url = other.url;
19874
      }
19875
      if (other.isSetText()) {
19876
        this.text = other.text;
19877
      }
19878
    }
19879
 
19880
    public saveQuickLink_args deepCopy() {
19881
      return new saveQuickLink_args(this);
19882
    }
19883
 
19884
    @Override
19885
    public void clear() {
19886
      this.url = null;
19887
      this.text = null;
19888
    }
19889
 
19890
    public String getUrl() {
19891
      return this.url;
19892
    }
19893
 
19894
    public void setUrl(String url) {
19895
      this.url = url;
19896
    }
19897
 
19898
    public void unsetUrl() {
19899
      this.url = null;
19900
    }
19901
 
19902
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19903
    public boolean isSetUrl() {
19904
      return this.url != null;
19905
    }
19906
 
19907
    public void setUrlIsSet(boolean value) {
19908
      if (!value) {
19909
        this.url = null;
19910
      }
19911
    }
19912
 
19913
    public String getText() {
19914
      return this.text;
19915
    }
19916
 
19917
    public void setText(String text) {
19918
      this.text = text;
19919
    }
19920
 
19921
    public void unsetText() {
19922
      this.text = null;
19923
    }
19924
 
19925
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
19926
    public boolean isSetText() {
19927
      return this.text != null;
19928
    }
19929
 
19930
    public void setTextIsSet(boolean value) {
19931
      if (!value) {
19932
        this.text = null;
19933
      }
19934
    }
19935
 
19936
    public void setFieldValue(_Fields field, Object value) {
19937
      switch (field) {
19938
      case URL:
19939
        if (value == null) {
19940
          unsetUrl();
19941
        } else {
19942
          setUrl((String)value);
19943
        }
19944
        break;
19945
 
19946
      case TEXT:
19947
        if (value == null) {
19948
          unsetText();
19949
        } else {
19950
          setText((String)value);
19951
        }
19952
        break;
19953
 
19954
      }
19955
    }
19956
 
19957
    public Object getFieldValue(_Fields field) {
19958
      switch (field) {
19959
      case URL:
19960
        return getUrl();
19961
 
19962
      case TEXT:
19963
        return getText();
19964
 
19965
      }
19966
      throw new IllegalStateException();
19967
    }
19968
 
19969
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19970
    public boolean isSet(_Fields field) {
19971
      if (field == null) {
19972
        throw new IllegalArgumentException();
19973
      }
19974
 
19975
      switch (field) {
19976
      case URL:
19977
        return isSetUrl();
19978
      case TEXT:
19979
        return isSetText();
19980
      }
19981
      throw new IllegalStateException();
19982
    }
19983
 
19984
    @Override
19985
    public boolean equals(Object that) {
19986
      if (that == null)
19987
        return false;
19988
      if (that instanceof saveQuickLink_args)
19989
        return this.equals((saveQuickLink_args)that);
19990
      return false;
19991
    }
19992
 
19993
    public boolean equals(saveQuickLink_args that) {
19994
      if (that == null)
19995
        return false;
19996
 
19997
      boolean this_present_url = true && this.isSetUrl();
19998
      boolean that_present_url = true && that.isSetUrl();
19999
      if (this_present_url || that_present_url) {
20000
        if (!(this_present_url && that_present_url))
20001
          return false;
20002
        if (!this.url.equals(that.url))
20003
          return false;
20004
      }
20005
 
20006
      boolean this_present_text = true && this.isSetText();
20007
      boolean that_present_text = true && that.isSetText();
20008
      if (this_present_text || that_present_text) {
20009
        if (!(this_present_text && that_present_text))
20010
          return false;
20011
        if (!this.text.equals(that.text))
20012
          return false;
20013
      }
20014
 
20015
      return true;
20016
    }
20017
 
20018
    @Override
20019
    public int hashCode() {
20020
      return 0;
20021
    }
20022
 
20023
    public int compareTo(saveQuickLink_args other) {
20024
      if (!getClass().equals(other.getClass())) {
20025
        return getClass().getName().compareTo(other.getClass().getName());
20026
      }
20027
 
20028
      int lastComparison = 0;
20029
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
20030
 
20031
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20032
      if (lastComparison != 0) {
20033
        return lastComparison;
20034
      }
20035
      if (isSetUrl()) {
20036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20037
        if (lastComparison != 0) {
20038
          return lastComparison;
20039
        }
20040
      }
20041
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20042
      if (lastComparison != 0) {
20043
        return lastComparison;
20044
      }
20045
      if (isSetText()) {
20046
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20047
        if (lastComparison != 0) {
20048
          return lastComparison;
20049
        }
20050
      }
20051
      return 0;
20052
    }
20053
 
20054
    public _Fields fieldForId(int fieldId) {
20055
      return _Fields.findByThriftId(fieldId);
20056
    }
20057
 
20058
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20059
      org.apache.thrift.protocol.TField field;
20060
      iprot.readStructBegin();
20061
      while (true)
20062
      {
20063
        field = iprot.readFieldBegin();
20064
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20065
          break;
20066
        }
20067
        switch (field.id) {
20068
          case 1: // URL
20069
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20070
              this.url = iprot.readString();
20071
            } else { 
20072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20073
            }
20074
            break;
20075
          case 2: // TEXT
20076
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20077
              this.text = iprot.readString();
20078
            } else { 
20079
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20080
            }
20081
            break;
20082
          default:
20083
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20084
        }
20085
        iprot.readFieldEnd();
20086
      }
20087
      iprot.readStructEnd();
20088
      validate();
20089
    }
20090
 
20091
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20092
      validate();
20093
 
20094
      oprot.writeStructBegin(STRUCT_DESC);
20095
      if (this.url != null) {
20096
        oprot.writeFieldBegin(URL_FIELD_DESC);
20097
        oprot.writeString(this.url);
20098
        oprot.writeFieldEnd();
20099
      }
20100
      if (this.text != null) {
20101
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20102
        oprot.writeString(this.text);
20103
        oprot.writeFieldEnd();
20104
      }
20105
      oprot.writeFieldStop();
20106
      oprot.writeStructEnd();
20107
    }
20108
 
20109
    @Override
20110
    public String toString() {
20111
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20112
      boolean first = true;
20113
 
20114
      sb.append("url:");
20115
      if (this.url == null) {
20116
        sb.append("null");
20117
      } else {
20118
        sb.append(this.url);
20119
      }
20120
      first = false;
20121
      if (!first) sb.append(", ");
20122
      sb.append("text:");
20123
      if (this.text == null) {
20124
        sb.append("null");
20125
      } else {
20126
        sb.append(this.text);
20127
      }
20128
      first = false;
20129
      sb.append(")");
20130
      return sb.toString();
20131
    }
20132
 
20133
    public void validate() throws org.apache.thrift.TException {
20134
      // check for required fields
20135
    }
20136
 
20137
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20138
      try {
20139
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20140
      } catch (org.apache.thrift.TException te) {
20141
        throw new java.io.IOException(te);
20142
      }
20143
    }
20144
 
20145
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20146
      try {
20147
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20148
      } catch (org.apache.thrift.TException te) {
20149
        throw new java.io.IOException(te);
20150
      }
20151
    }
20152
 
20153
  }
20154
 
20155
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20156
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20157
 
20158
    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);
20159
 
20160
    private HelperServiceException hse; // required
20161
 
20162
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20163
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20164
      HSE((short)1, "hse");
20165
 
20166
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20167
 
20168
      static {
20169
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20170
          byName.put(field.getFieldName(), field);
20171
        }
20172
      }
20173
 
20174
      /**
20175
       * Find the _Fields constant that matches fieldId, or null if its not found.
20176
       */
20177
      public static _Fields findByThriftId(int fieldId) {
20178
        switch(fieldId) {
20179
          case 1: // HSE
20180
            return HSE;
20181
          default:
20182
            return null;
20183
        }
20184
      }
20185
 
20186
      /**
20187
       * Find the _Fields constant that matches fieldId, throwing an exception
20188
       * if it is not found.
20189
       */
20190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20191
        _Fields fields = findByThriftId(fieldId);
20192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20193
        return fields;
20194
      }
20195
 
20196
      /**
20197
       * Find the _Fields constant that matches name, or null if its not found.
20198
       */
20199
      public static _Fields findByName(String name) {
20200
        return byName.get(name);
20201
      }
20202
 
20203
      private final short _thriftId;
20204
      private final String _fieldName;
20205
 
20206
      _Fields(short thriftId, String fieldName) {
20207
        _thriftId = thriftId;
20208
        _fieldName = fieldName;
20209
      }
20210
 
20211
      public short getThriftFieldId() {
20212
        return _thriftId;
20213
      }
20214
 
20215
      public String getFieldName() {
20216
        return _fieldName;
20217
      }
20218
    }
20219
 
20220
    // isset id assignments
20221
 
20222
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20223
    static {
20224
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20225
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20226
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20229
    }
20230
 
20231
    public saveQuickLink_result() {
20232
    }
20233
 
20234
    public saveQuickLink_result(
20235
      HelperServiceException hse)
20236
    {
20237
      this();
20238
      this.hse = hse;
20239
    }
20240
 
20241
    /**
20242
     * Performs a deep copy on <i>other</i>.
20243
     */
20244
    public saveQuickLink_result(saveQuickLink_result other) {
20245
      if (other.isSetHse()) {
20246
        this.hse = new HelperServiceException(other.hse);
20247
      }
20248
    }
20249
 
20250
    public saveQuickLink_result deepCopy() {
20251
      return new saveQuickLink_result(this);
20252
    }
20253
 
20254
    @Override
20255
    public void clear() {
20256
      this.hse = null;
20257
    }
20258
 
20259
    public HelperServiceException getHse() {
20260
      return this.hse;
20261
    }
20262
 
20263
    public void setHse(HelperServiceException hse) {
20264
      this.hse = hse;
20265
    }
20266
 
20267
    public void unsetHse() {
20268
      this.hse = null;
20269
    }
20270
 
20271
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20272
    public boolean isSetHse() {
20273
      return this.hse != null;
20274
    }
20275
 
20276
    public void setHseIsSet(boolean value) {
20277
      if (!value) {
20278
        this.hse = null;
20279
      }
20280
    }
20281
 
20282
    public void setFieldValue(_Fields field, Object value) {
20283
      switch (field) {
20284
      case HSE:
20285
        if (value == null) {
20286
          unsetHse();
20287
        } else {
20288
          setHse((HelperServiceException)value);
20289
        }
20290
        break;
20291
 
20292
      }
20293
    }
20294
 
20295
    public Object getFieldValue(_Fields field) {
20296
      switch (field) {
20297
      case HSE:
20298
        return getHse();
20299
 
20300
      }
20301
      throw new IllegalStateException();
20302
    }
20303
 
20304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20305
    public boolean isSet(_Fields field) {
20306
      if (field == null) {
20307
        throw new IllegalArgumentException();
20308
      }
20309
 
20310
      switch (field) {
20311
      case HSE:
20312
        return isSetHse();
20313
      }
20314
      throw new IllegalStateException();
20315
    }
20316
 
20317
    @Override
20318
    public boolean equals(Object that) {
20319
      if (that == null)
20320
        return false;
20321
      if (that instanceof saveQuickLink_result)
20322
        return this.equals((saveQuickLink_result)that);
20323
      return false;
20324
    }
20325
 
20326
    public boolean equals(saveQuickLink_result that) {
20327
      if (that == null)
20328
        return false;
20329
 
20330
      boolean this_present_hse = true && this.isSetHse();
20331
      boolean that_present_hse = true && that.isSetHse();
20332
      if (this_present_hse || that_present_hse) {
20333
        if (!(this_present_hse && that_present_hse))
20334
          return false;
20335
        if (!this.hse.equals(that.hse))
20336
          return false;
20337
      }
20338
 
20339
      return true;
20340
    }
20341
 
20342
    @Override
20343
    public int hashCode() {
20344
      return 0;
20345
    }
20346
 
20347
    public int compareTo(saveQuickLink_result other) {
20348
      if (!getClass().equals(other.getClass())) {
20349
        return getClass().getName().compareTo(other.getClass().getName());
20350
      }
20351
 
20352
      int lastComparison = 0;
20353
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20354
 
20355
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20356
      if (lastComparison != 0) {
20357
        return lastComparison;
20358
      }
20359
      if (isSetHse()) {
20360
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20361
        if (lastComparison != 0) {
20362
          return lastComparison;
20363
        }
20364
      }
20365
      return 0;
20366
    }
20367
 
20368
    public _Fields fieldForId(int fieldId) {
20369
      return _Fields.findByThriftId(fieldId);
20370
    }
20371
 
20372
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20373
      org.apache.thrift.protocol.TField field;
20374
      iprot.readStructBegin();
20375
      while (true)
20376
      {
20377
        field = iprot.readFieldBegin();
20378
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20379
          break;
20380
        }
20381
        switch (field.id) {
20382
          case 1: // HSE
20383
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20384
              this.hse = new HelperServiceException();
20385
              this.hse.read(iprot);
20386
            } else { 
20387
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20388
            }
20389
            break;
20390
          default:
20391
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20392
        }
20393
        iprot.readFieldEnd();
20394
      }
20395
      iprot.readStructEnd();
20396
      validate();
20397
    }
20398
 
20399
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20400
      oprot.writeStructBegin(STRUCT_DESC);
20401
 
20402
      if (this.isSetHse()) {
20403
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20404
        this.hse.write(oprot);
20405
        oprot.writeFieldEnd();
20406
      }
20407
      oprot.writeFieldStop();
20408
      oprot.writeStructEnd();
20409
    }
20410
 
20411
    @Override
20412
    public String toString() {
20413
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20414
      boolean first = true;
20415
 
20416
      sb.append("hse:");
20417
      if (this.hse == null) {
20418
        sb.append("null");
20419
      } else {
20420
        sb.append(this.hse);
20421
      }
20422
      first = false;
20423
      sb.append(")");
20424
      return sb.toString();
20425
    }
20426
 
20427
    public void validate() throws org.apache.thrift.TException {
20428
      // check for required fields
20429
    }
20430
 
20431
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20432
      try {
20433
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20434
      } catch (org.apache.thrift.TException te) {
20435
        throw new java.io.IOException(te);
20436
      }
20437
    }
20438
 
20439
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20440
      try {
20441
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20442
      } catch (org.apache.thrift.TException te) {
20443
        throw new java.io.IOException(te);
20444
      }
20445
    }
20446
 
20447
  }
20448
 
20449
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20450
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20451
 
20452
 
20453
 
20454
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20455
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20456
;
20457
 
20458
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20459
 
20460
      static {
20461
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20462
          byName.put(field.getFieldName(), field);
20463
        }
20464
      }
20465
 
20466
      /**
20467
       * Find the _Fields constant that matches fieldId, or null if its not found.
20468
       */
20469
      public static _Fields findByThriftId(int fieldId) {
20470
        switch(fieldId) {
20471
          default:
20472
            return null;
20473
        }
20474
      }
20475
 
20476
      /**
20477
       * Find the _Fields constant that matches fieldId, throwing an exception
20478
       * if it is not found.
20479
       */
20480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20481
        _Fields fields = findByThriftId(fieldId);
20482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20483
        return fields;
20484
      }
20485
 
20486
      /**
20487
       * Find the _Fields constant that matches name, or null if its not found.
20488
       */
20489
      public static _Fields findByName(String name) {
20490
        return byName.get(name);
20491
      }
20492
 
20493
      private final short _thriftId;
20494
      private final String _fieldName;
20495
 
20496
      _Fields(short thriftId, String fieldName) {
20497
        _thriftId = thriftId;
20498
        _fieldName = fieldName;
20499
      }
20500
 
20501
      public short getThriftFieldId() {
20502
        return _thriftId;
20503
      }
20504
 
20505
      public String getFieldName() {
20506
        return _fieldName;
20507
      }
20508
    }
20509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20510
    static {
20511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20512
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20513
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20514
    }
20515
 
20516
    public getQuickLinks_args() {
20517
    }
20518
 
20519
    /**
20520
     * Performs a deep copy on <i>other</i>.
20521
     */
20522
    public getQuickLinks_args(getQuickLinks_args other) {
20523
    }
20524
 
20525
    public getQuickLinks_args deepCopy() {
20526
      return new getQuickLinks_args(this);
20527
    }
20528
 
20529
    @Override
20530
    public void clear() {
20531
    }
20532
 
20533
    public void setFieldValue(_Fields field, Object value) {
20534
      switch (field) {
20535
      }
20536
    }
20537
 
20538
    public Object getFieldValue(_Fields field) {
20539
      switch (field) {
20540
      }
20541
      throw new IllegalStateException();
20542
    }
20543
 
20544
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20545
    public boolean isSet(_Fields field) {
20546
      if (field == null) {
20547
        throw new IllegalArgumentException();
20548
      }
20549
 
20550
      switch (field) {
20551
      }
20552
      throw new IllegalStateException();
20553
    }
20554
 
20555
    @Override
20556
    public boolean equals(Object that) {
20557
      if (that == null)
20558
        return false;
20559
      if (that instanceof getQuickLinks_args)
20560
        return this.equals((getQuickLinks_args)that);
20561
      return false;
20562
    }
20563
 
20564
    public boolean equals(getQuickLinks_args that) {
20565
      if (that == null)
20566
        return false;
20567
 
20568
      return true;
20569
    }
20570
 
20571
    @Override
20572
    public int hashCode() {
20573
      return 0;
20574
    }
20575
 
20576
    public int compareTo(getQuickLinks_args other) {
20577
      if (!getClass().equals(other.getClass())) {
20578
        return getClass().getName().compareTo(other.getClass().getName());
20579
      }
20580
 
20581
      int lastComparison = 0;
20582
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20583
 
20584
      return 0;
20585
    }
20586
 
20587
    public _Fields fieldForId(int fieldId) {
20588
      return _Fields.findByThriftId(fieldId);
20589
    }
20590
 
20591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20592
      org.apache.thrift.protocol.TField field;
20593
      iprot.readStructBegin();
20594
      while (true)
20595
      {
20596
        field = iprot.readFieldBegin();
20597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20598
          break;
20599
        }
20600
        switch (field.id) {
20601
          default:
20602
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20603
        }
20604
        iprot.readFieldEnd();
20605
      }
20606
      iprot.readStructEnd();
20607
      validate();
20608
    }
20609
 
20610
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20611
      validate();
20612
 
20613
      oprot.writeStructBegin(STRUCT_DESC);
20614
      oprot.writeFieldStop();
20615
      oprot.writeStructEnd();
20616
    }
20617
 
20618
    @Override
20619
    public String toString() {
20620
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20621
      boolean first = true;
20622
 
20623
      sb.append(")");
20624
      return sb.toString();
20625
    }
20626
 
20627
    public void validate() throws org.apache.thrift.TException {
20628
      // check for required fields
20629
    }
20630
 
20631
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20632
      try {
20633
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20634
      } catch (org.apache.thrift.TException te) {
20635
        throw new java.io.IOException(te);
20636
      }
20637
    }
20638
 
20639
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20640
      try {
20641
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20642
      } catch (org.apache.thrift.TException te) {
20643
        throw new java.io.IOException(te);
20644
      }
20645
    }
20646
 
20647
  }
20648
 
20649
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20650
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20651
 
20652
    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);
20653
    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);
20654
 
20655
    private List<QuickLink> success; // required
20656
    private HelperServiceException hse; // required
20657
 
20658
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20659
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20660
      SUCCESS((short)0, "success"),
20661
      HSE((short)1, "hse");
20662
 
20663
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20664
 
20665
      static {
20666
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20667
          byName.put(field.getFieldName(), field);
20668
        }
20669
      }
20670
 
20671
      /**
20672
       * Find the _Fields constant that matches fieldId, or null if its not found.
20673
       */
20674
      public static _Fields findByThriftId(int fieldId) {
20675
        switch(fieldId) {
20676
          case 0: // SUCCESS
20677
            return SUCCESS;
20678
          case 1: // HSE
20679
            return HSE;
20680
          default:
20681
            return null;
20682
        }
20683
      }
20684
 
20685
      /**
20686
       * Find the _Fields constant that matches fieldId, throwing an exception
20687
       * if it is not found.
20688
       */
20689
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20690
        _Fields fields = findByThriftId(fieldId);
20691
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20692
        return fields;
20693
      }
20694
 
20695
      /**
20696
       * Find the _Fields constant that matches name, or null if its not found.
20697
       */
20698
      public static _Fields findByName(String name) {
20699
        return byName.get(name);
20700
      }
20701
 
20702
      private final short _thriftId;
20703
      private final String _fieldName;
20704
 
20705
      _Fields(short thriftId, String fieldName) {
20706
        _thriftId = thriftId;
20707
        _fieldName = fieldName;
20708
      }
20709
 
20710
      public short getThriftFieldId() {
20711
        return _thriftId;
20712
      }
20713
 
20714
      public String getFieldName() {
20715
        return _fieldName;
20716
      }
20717
    }
20718
 
20719
    // isset id assignments
20720
 
20721
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20722
    static {
20723
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20724
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20725
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20726
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20727
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20728
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20729
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20730
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20731
    }
20732
 
20733
    public getQuickLinks_result() {
20734
    }
20735
 
20736
    public getQuickLinks_result(
20737
      List<QuickLink> success,
20738
      HelperServiceException hse)
20739
    {
20740
      this();
20741
      this.success = success;
20742
      this.hse = hse;
20743
    }
20744
 
20745
    /**
20746
     * Performs a deep copy on <i>other</i>.
20747
     */
20748
    public getQuickLinks_result(getQuickLinks_result other) {
20749
      if (other.isSetSuccess()) {
20750
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20751
        for (QuickLink other_element : other.success) {
20752
          __this__success.add(new QuickLink(other_element));
20753
        }
20754
        this.success = __this__success;
20755
      }
20756
      if (other.isSetHse()) {
20757
        this.hse = new HelperServiceException(other.hse);
20758
      }
20759
    }
20760
 
20761
    public getQuickLinks_result deepCopy() {
20762
      return new getQuickLinks_result(this);
20763
    }
20764
 
20765
    @Override
20766
    public void clear() {
20767
      this.success = null;
20768
      this.hse = null;
20769
    }
20770
 
20771
    public int getSuccessSize() {
20772
      return (this.success == null) ? 0 : this.success.size();
20773
    }
20774
 
20775
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20776
      return (this.success == null) ? null : this.success.iterator();
20777
    }
20778
 
20779
    public void addToSuccess(QuickLink elem) {
20780
      if (this.success == null) {
20781
        this.success = new ArrayList<QuickLink>();
20782
      }
20783
      this.success.add(elem);
20784
    }
20785
 
20786
    public List<QuickLink> getSuccess() {
20787
      return this.success;
20788
    }
20789
 
20790
    public void setSuccess(List<QuickLink> success) {
20791
      this.success = success;
20792
    }
20793
 
20794
    public void unsetSuccess() {
20795
      this.success = null;
20796
    }
20797
 
20798
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20799
    public boolean isSetSuccess() {
20800
      return this.success != null;
20801
    }
20802
 
20803
    public void setSuccessIsSet(boolean value) {
20804
      if (!value) {
20805
        this.success = null;
20806
      }
20807
    }
20808
 
20809
    public HelperServiceException getHse() {
20810
      return this.hse;
20811
    }
20812
 
20813
    public void setHse(HelperServiceException hse) {
20814
      this.hse = hse;
20815
    }
20816
 
20817
    public void unsetHse() {
20818
      this.hse = null;
20819
    }
20820
 
20821
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20822
    public boolean isSetHse() {
20823
      return this.hse != null;
20824
    }
20825
 
20826
    public void setHseIsSet(boolean value) {
20827
      if (!value) {
20828
        this.hse = null;
20829
      }
20830
    }
20831
 
20832
    public void setFieldValue(_Fields field, Object value) {
20833
      switch (field) {
20834
      case SUCCESS:
20835
        if (value == null) {
20836
          unsetSuccess();
20837
        } else {
20838
          setSuccess((List<QuickLink>)value);
20839
        }
20840
        break;
20841
 
20842
      case HSE:
20843
        if (value == null) {
20844
          unsetHse();
20845
        } else {
20846
          setHse((HelperServiceException)value);
20847
        }
20848
        break;
20849
 
20850
      }
20851
    }
20852
 
20853
    public Object getFieldValue(_Fields field) {
20854
      switch (field) {
20855
      case SUCCESS:
20856
        return getSuccess();
20857
 
20858
      case HSE:
20859
        return getHse();
20860
 
20861
      }
20862
      throw new IllegalStateException();
20863
    }
20864
 
20865
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20866
    public boolean isSet(_Fields field) {
20867
      if (field == null) {
20868
        throw new IllegalArgumentException();
20869
      }
20870
 
20871
      switch (field) {
20872
      case SUCCESS:
20873
        return isSetSuccess();
20874
      case HSE:
20875
        return isSetHse();
20876
      }
20877
      throw new IllegalStateException();
20878
    }
20879
 
20880
    @Override
20881
    public boolean equals(Object that) {
20882
      if (that == null)
20883
        return false;
20884
      if (that instanceof getQuickLinks_result)
20885
        return this.equals((getQuickLinks_result)that);
20886
      return false;
20887
    }
20888
 
20889
    public boolean equals(getQuickLinks_result that) {
20890
      if (that == null)
20891
        return false;
20892
 
20893
      boolean this_present_success = true && this.isSetSuccess();
20894
      boolean that_present_success = true && that.isSetSuccess();
20895
      if (this_present_success || that_present_success) {
20896
        if (!(this_present_success && that_present_success))
20897
          return false;
20898
        if (!this.success.equals(that.success))
20899
          return false;
20900
      }
20901
 
20902
      boolean this_present_hse = true && this.isSetHse();
20903
      boolean that_present_hse = true && that.isSetHse();
20904
      if (this_present_hse || that_present_hse) {
20905
        if (!(this_present_hse && that_present_hse))
20906
          return false;
20907
        if (!this.hse.equals(that.hse))
20908
          return false;
20909
      }
20910
 
20911
      return true;
20912
    }
20913
 
20914
    @Override
20915
    public int hashCode() {
20916
      return 0;
20917
    }
20918
 
20919
    public int compareTo(getQuickLinks_result other) {
20920
      if (!getClass().equals(other.getClass())) {
20921
        return getClass().getName().compareTo(other.getClass().getName());
20922
      }
20923
 
20924
      int lastComparison = 0;
20925
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
20926
 
20927
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20928
      if (lastComparison != 0) {
20929
        return lastComparison;
20930
      }
20931
      if (isSetSuccess()) {
20932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20933
        if (lastComparison != 0) {
20934
          return lastComparison;
20935
        }
20936
      }
20937
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20938
      if (lastComparison != 0) {
20939
        return lastComparison;
20940
      }
20941
      if (isSetHse()) {
20942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20943
        if (lastComparison != 0) {
20944
          return lastComparison;
20945
        }
20946
      }
20947
      return 0;
20948
    }
20949
 
20950
    public _Fields fieldForId(int fieldId) {
20951
      return _Fields.findByThriftId(fieldId);
20952
    }
20953
 
20954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20955
      org.apache.thrift.protocol.TField field;
20956
      iprot.readStructBegin();
20957
      while (true)
20958
      {
20959
        field = iprot.readFieldBegin();
20960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20961
          break;
20962
        }
20963
        switch (field.id) {
20964
          case 0: // SUCCESS
20965
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20966
              {
5864 rajveer 20967
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
20968
                this.success = new ArrayList<QuickLink>(_list61.size);
20969
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 20970
                {
5864 rajveer 20971
                  QuickLink _elem63; // required
20972
                  _elem63 = new QuickLink();
20973
                  _elem63.read(iprot);
20974
                  this.success.add(_elem63);
4806 varun.gupt 20975
                }
20976
                iprot.readListEnd();
20977
              }
20978
            } else { 
20979
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20980
            }
20981
            break;
20982
          case 1: // HSE
20983
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20984
              this.hse = new HelperServiceException();
20985
              this.hse.read(iprot);
20986
            } else { 
20987
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20988
            }
20989
            break;
20990
          default:
20991
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20992
        }
20993
        iprot.readFieldEnd();
20994
      }
20995
      iprot.readStructEnd();
20996
      validate();
20997
    }
20998
 
20999
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21000
      oprot.writeStructBegin(STRUCT_DESC);
21001
 
21002
      if (this.isSetSuccess()) {
21003
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21004
        {
21005
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 21006
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 21007
          {
5864 rajveer 21008
            _iter64.write(oprot);
4806 varun.gupt 21009
          }
21010
          oprot.writeListEnd();
21011
        }
21012
        oprot.writeFieldEnd();
21013
      } else if (this.isSetHse()) {
21014
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21015
        this.hse.write(oprot);
21016
        oprot.writeFieldEnd();
21017
      }
21018
      oprot.writeFieldStop();
21019
      oprot.writeStructEnd();
21020
    }
21021
 
21022
    @Override
21023
    public String toString() {
21024
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
21025
      boolean first = true;
21026
 
21027
      sb.append("success:");
21028
      if (this.success == null) {
21029
        sb.append("null");
21030
      } else {
21031
        sb.append(this.success);
21032
      }
21033
      first = false;
21034
      if (!first) sb.append(", ");
21035
      sb.append("hse:");
21036
      if (this.hse == null) {
21037
        sb.append("null");
21038
      } else {
21039
        sb.append(this.hse);
21040
      }
21041
      first = false;
21042
      sb.append(")");
21043
      return sb.toString();
21044
    }
21045
 
21046
    public void validate() throws org.apache.thrift.TException {
21047
      // check for required fields
21048
    }
21049
 
21050
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21051
      try {
21052
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21053
      } catch (org.apache.thrift.TException te) {
21054
        throw new java.io.IOException(te);
21055
      }
21056
    }
21057
 
21058
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21059
      try {
21060
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21061
      } catch (org.apache.thrift.TException te) {
21062
        throw new java.io.IOException(te);
21063
      }
21064
    }
21065
 
21066
  }
21067
 
4996 varun.gupt 21068
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21069
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21070
 
21071
    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);
21072
    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);
21073
    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);
21074
 
21075
    private long id; // required
21076
    private String url; // required
21077
    private String text; // required
21078
 
21079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21080
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21081
      ID((short)1, "id"),
21082
      URL((short)2, "url"),
21083
      TEXT((short)3, "text");
21084
 
21085
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21086
 
21087
      static {
21088
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21089
          byName.put(field.getFieldName(), field);
21090
        }
21091
      }
21092
 
21093
      /**
21094
       * Find the _Fields constant that matches fieldId, or null if its not found.
21095
       */
21096
      public static _Fields findByThriftId(int fieldId) {
21097
        switch(fieldId) {
21098
          case 1: // ID
21099
            return ID;
21100
          case 2: // URL
21101
            return URL;
21102
          case 3: // TEXT
21103
            return TEXT;
21104
          default:
21105
            return null;
21106
        }
21107
      }
21108
 
21109
      /**
21110
       * Find the _Fields constant that matches fieldId, throwing an exception
21111
       * if it is not found.
21112
       */
21113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21114
        _Fields fields = findByThriftId(fieldId);
21115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21116
        return fields;
21117
      }
21118
 
21119
      /**
21120
       * Find the _Fields constant that matches name, or null if its not found.
21121
       */
21122
      public static _Fields findByName(String name) {
21123
        return byName.get(name);
21124
      }
21125
 
21126
      private final short _thriftId;
21127
      private final String _fieldName;
21128
 
21129
      _Fields(short thriftId, String fieldName) {
21130
        _thriftId = thriftId;
21131
        _fieldName = fieldName;
21132
      }
21133
 
21134
      public short getThriftFieldId() {
21135
        return _thriftId;
21136
      }
21137
 
21138
      public String getFieldName() {
21139
        return _fieldName;
21140
      }
21141
    }
21142
 
21143
    // isset id assignments
21144
    private static final int __ID_ISSET_ID = 0;
21145
    private BitSet __isset_bit_vector = new BitSet(1);
21146
 
21147
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21148
    static {
21149
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21150
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21151
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21152
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21153
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21154
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21155
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21158
    }
21159
 
21160
    public updateQuickLink_args() {
21161
    }
21162
 
21163
    public updateQuickLink_args(
21164
      long id,
21165
      String url,
21166
      String text)
21167
    {
21168
      this();
21169
      this.id = id;
21170
      setIdIsSet(true);
21171
      this.url = url;
21172
      this.text = text;
21173
    }
21174
 
21175
    /**
21176
     * Performs a deep copy on <i>other</i>.
21177
     */
21178
    public updateQuickLink_args(updateQuickLink_args other) {
21179
      __isset_bit_vector.clear();
21180
      __isset_bit_vector.or(other.__isset_bit_vector);
21181
      this.id = other.id;
21182
      if (other.isSetUrl()) {
21183
        this.url = other.url;
21184
      }
21185
      if (other.isSetText()) {
21186
        this.text = other.text;
21187
      }
21188
    }
21189
 
21190
    public updateQuickLink_args deepCopy() {
21191
      return new updateQuickLink_args(this);
21192
    }
21193
 
21194
    @Override
21195
    public void clear() {
21196
      setIdIsSet(false);
21197
      this.id = 0;
21198
      this.url = null;
21199
      this.text = null;
21200
    }
21201
 
21202
    public long getId() {
21203
      return this.id;
21204
    }
21205
 
21206
    public void setId(long id) {
21207
      this.id = id;
21208
      setIdIsSet(true);
21209
    }
21210
 
21211
    public void unsetId() {
21212
      __isset_bit_vector.clear(__ID_ISSET_ID);
21213
    }
21214
 
21215
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21216
    public boolean isSetId() {
21217
      return __isset_bit_vector.get(__ID_ISSET_ID);
21218
    }
21219
 
21220
    public void setIdIsSet(boolean value) {
21221
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21222
    }
21223
 
21224
    public String getUrl() {
21225
      return this.url;
21226
    }
21227
 
21228
    public void setUrl(String url) {
21229
      this.url = url;
21230
    }
21231
 
21232
    public void unsetUrl() {
21233
      this.url = null;
21234
    }
21235
 
21236
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21237
    public boolean isSetUrl() {
21238
      return this.url != null;
21239
    }
21240
 
21241
    public void setUrlIsSet(boolean value) {
21242
      if (!value) {
21243
        this.url = null;
21244
      }
21245
    }
21246
 
21247
    public String getText() {
21248
      return this.text;
21249
    }
21250
 
21251
    public void setText(String text) {
21252
      this.text = text;
21253
    }
21254
 
21255
    public void unsetText() {
21256
      this.text = null;
21257
    }
21258
 
21259
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21260
    public boolean isSetText() {
21261
      return this.text != null;
21262
    }
21263
 
21264
    public void setTextIsSet(boolean value) {
21265
      if (!value) {
21266
        this.text = null;
21267
      }
21268
    }
21269
 
21270
    public void setFieldValue(_Fields field, Object value) {
21271
      switch (field) {
21272
      case ID:
21273
        if (value == null) {
21274
          unsetId();
21275
        } else {
21276
          setId((Long)value);
21277
        }
21278
        break;
21279
 
21280
      case URL:
21281
        if (value == null) {
21282
          unsetUrl();
21283
        } else {
21284
          setUrl((String)value);
21285
        }
21286
        break;
21287
 
21288
      case TEXT:
21289
        if (value == null) {
21290
          unsetText();
21291
        } else {
21292
          setText((String)value);
21293
        }
21294
        break;
21295
 
21296
      }
21297
    }
21298
 
21299
    public Object getFieldValue(_Fields field) {
21300
      switch (field) {
21301
      case ID:
21302
        return Long.valueOf(getId());
21303
 
21304
      case URL:
21305
        return getUrl();
21306
 
21307
      case TEXT:
21308
        return getText();
21309
 
21310
      }
21311
      throw new IllegalStateException();
21312
    }
21313
 
21314
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21315
    public boolean isSet(_Fields field) {
21316
      if (field == null) {
21317
        throw new IllegalArgumentException();
21318
      }
21319
 
21320
      switch (field) {
21321
      case ID:
21322
        return isSetId();
21323
      case URL:
21324
        return isSetUrl();
21325
      case TEXT:
21326
        return isSetText();
21327
      }
21328
      throw new IllegalStateException();
21329
    }
21330
 
21331
    @Override
21332
    public boolean equals(Object that) {
21333
      if (that == null)
21334
        return false;
21335
      if (that instanceof updateQuickLink_args)
21336
        return this.equals((updateQuickLink_args)that);
21337
      return false;
21338
    }
21339
 
21340
    public boolean equals(updateQuickLink_args that) {
21341
      if (that == null)
21342
        return false;
21343
 
21344
      boolean this_present_id = true;
21345
      boolean that_present_id = true;
21346
      if (this_present_id || that_present_id) {
21347
        if (!(this_present_id && that_present_id))
21348
          return false;
21349
        if (this.id != that.id)
21350
          return false;
21351
      }
21352
 
21353
      boolean this_present_url = true && this.isSetUrl();
21354
      boolean that_present_url = true && that.isSetUrl();
21355
      if (this_present_url || that_present_url) {
21356
        if (!(this_present_url && that_present_url))
21357
          return false;
21358
        if (!this.url.equals(that.url))
21359
          return false;
21360
      }
21361
 
21362
      boolean this_present_text = true && this.isSetText();
21363
      boolean that_present_text = true && that.isSetText();
21364
      if (this_present_text || that_present_text) {
21365
        if (!(this_present_text && that_present_text))
21366
          return false;
21367
        if (!this.text.equals(that.text))
21368
          return false;
21369
      }
21370
 
21371
      return true;
21372
    }
21373
 
21374
    @Override
21375
    public int hashCode() {
21376
      return 0;
21377
    }
21378
 
21379
    public int compareTo(updateQuickLink_args other) {
21380
      if (!getClass().equals(other.getClass())) {
21381
        return getClass().getName().compareTo(other.getClass().getName());
21382
      }
21383
 
21384
      int lastComparison = 0;
21385
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21386
 
21387
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21388
      if (lastComparison != 0) {
21389
        return lastComparison;
21390
      }
21391
      if (isSetId()) {
21392
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21393
        if (lastComparison != 0) {
21394
          return lastComparison;
21395
        }
21396
      }
21397
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21398
      if (lastComparison != 0) {
21399
        return lastComparison;
21400
      }
21401
      if (isSetUrl()) {
21402
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21403
        if (lastComparison != 0) {
21404
          return lastComparison;
21405
        }
21406
      }
21407
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21408
      if (lastComparison != 0) {
21409
        return lastComparison;
21410
      }
21411
      if (isSetText()) {
21412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21413
        if (lastComparison != 0) {
21414
          return lastComparison;
21415
        }
21416
      }
21417
      return 0;
21418
    }
21419
 
21420
    public _Fields fieldForId(int fieldId) {
21421
      return _Fields.findByThriftId(fieldId);
21422
    }
21423
 
21424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21425
      org.apache.thrift.protocol.TField field;
21426
      iprot.readStructBegin();
21427
      while (true)
21428
      {
21429
        field = iprot.readFieldBegin();
21430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21431
          break;
21432
        }
21433
        switch (field.id) {
21434
          case 1: // ID
21435
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21436
              this.id = iprot.readI64();
21437
              setIdIsSet(true);
21438
            } else { 
21439
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21440
            }
21441
            break;
21442
          case 2: // URL
21443
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21444
              this.url = iprot.readString();
21445
            } else { 
21446
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21447
            }
21448
            break;
21449
          case 3: // TEXT
21450
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21451
              this.text = iprot.readString();
21452
            } else { 
21453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21454
            }
21455
            break;
21456
          default:
21457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21458
        }
21459
        iprot.readFieldEnd();
21460
      }
21461
      iprot.readStructEnd();
21462
      validate();
21463
    }
21464
 
21465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21466
      validate();
21467
 
21468
      oprot.writeStructBegin(STRUCT_DESC);
21469
      oprot.writeFieldBegin(ID_FIELD_DESC);
21470
      oprot.writeI64(this.id);
21471
      oprot.writeFieldEnd();
21472
      if (this.url != null) {
21473
        oprot.writeFieldBegin(URL_FIELD_DESC);
21474
        oprot.writeString(this.url);
21475
        oprot.writeFieldEnd();
21476
      }
21477
      if (this.text != null) {
21478
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21479
        oprot.writeString(this.text);
21480
        oprot.writeFieldEnd();
21481
      }
21482
      oprot.writeFieldStop();
21483
      oprot.writeStructEnd();
21484
    }
21485
 
21486
    @Override
21487
    public String toString() {
21488
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21489
      boolean first = true;
21490
 
21491
      sb.append("id:");
21492
      sb.append(this.id);
21493
      first = false;
21494
      if (!first) sb.append(", ");
21495
      sb.append("url:");
21496
      if (this.url == null) {
21497
        sb.append("null");
21498
      } else {
21499
        sb.append(this.url);
21500
      }
21501
      first = false;
21502
      if (!first) sb.append(", ");
21503
      sb.append("text:");
21504
      if (this.text == null) {
21505
        sb.append("null");
21506
      } else {
21507
        sb.append(this.text);
21508
      }
21509
      first = false;
21510
      sb.append(")");
21511
      return sb.toString();
21512
    }
21513
 
21514
    public void validate() throws org.apache.thrift.TException {
21515
      // check for required fields
21516
    }
21517
 
21518
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21519
      try {
21520
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21521
      } catch (org.apache.thrift.TException te) {
21522
        throw new java.io.IOException(te);
21523
      }
21524
    }
21525
 
21526
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21527
      try {
21528
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21529
        __isset_bit_vector = new BitSet(1);
21530
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21531
      } catch (org.apache.thrift.TException te) {
21532
        throw new java.io.IOException(te);
21533
      }
21534
    }
21535
 
21536
  }
21537
 
21538
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21539
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21540
 
21541
    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);
21542
 
21543
    private HelperServiceException hse; // required
21544
 
21545
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21546
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21547
      HSE((short)1, "hse");
21548
 
21549
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21550
 
21551
      static {
21552
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21553
          byName.put(field.getFieldName(), field);
21554
        }
21555
      }
21556
 
21557
      /**
21558
       * Find the _Fields constant that matches fieldId, or null if its not found.
21559
       */
21560
      public static _Fields findByThriftId(int fieldId) {
21561
        switch(fieldId) {
21562
          case 1: // HSE
21563
            return HSE;
21564
          default:
21565
            return null;
21566
        }
21567
      }
21568
 
21569
      /**
21570
       * Find the _Fields constant that matches fieldId, throwing an exception
21571
       * if it is not found.
21572
       */
21573
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21574
        _Fields fields = findByThriftId(fieldId);
21575
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21576
        return fields;
21577
      }
21578
 
21579
      /**
21580
       * Find the _Fields constant that matches name, or null if its not found.
21581
       */
21582
      public static _Fields findByName(String name) {
21583
        return byName.get(name);
21584
      }
21585
 
21586
      private final short _thriftId;
21587
      private final String _fieldName;
21588
 
21589
      _Fields(short thriftId, String fieldName) {
21590
        _thriftId = thriftId;
21591
        _fieldName = fieldName;
21592
      }
21593
 
21594
      public short getThriftFieldId() {
21595
        return _thriftId;
21596
      }
21597
 
21598
      public String getFieldName() {
21599
        return _fieldName;
21600
      }
21601
    }
21602
 
21603
    // isset id assignments
21604
 
21605
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21606
    static {
21607
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21608
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21609
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21610
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21611
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21612
    }
21613
 
21614
    public updateQuickLink_result() {
21615
    }
21616
 
21617
    public updateQuickLink_result(
21618
      HelperServiceException hse)
21619
    {
21620
      this();
21621
      this.hse = hse;
21622
    }
21623
 
21624
    /**
21625
     * Performs a deep copy on <i>other</i>.
21626
     */
21627
    public updateQuickLink_result(updateQuickLink_result other) {
21628
      if (other.isSetHse()) {
21629
        this.hse = new HelperServiceException(other.hse);
21630
      }
21631
    }
21632
 
21633
    public updateQuickLink_result deepCopy() {
21634
      return new updateQuickLink_result(this);
21635
    }
21636
 
21637
    @Override
21638
    public void clear() {
21639
      this.hse = null;
21640
    }
21641
 
21642
    public HelperServiceException getHse() {
21643
      return this.hse;
21644
    }
21645
 
21646
    public void setHse(HelperServiceException hse) {
21647
      this.hse = hse;
21648
    }
21649
 
21650
    public void unsetHse() {
21651
      this.hse = null;
21652
    }
21653
 
21654
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21655
    public boolean isSetHse() {
21656
      return this.hse != null;
21657
    }
21658
 
21659
    public void setHseIsSet(boolean value) {
21660
      if (!value) {
21661
        this.hse = null;
21662
      }
21663
    }
21664
 
21665
    public void setFieldValue(_Fields field, Object value) {
21666
      switch (field) {
21667
      case HSE:
21668
        if (value == null) {
21669
          unsetHse();
21670
        } else {
21671
          setHse((HelperServiceException)value);
21672
        }
21673
        break;
21674
 
21675
      }
21676
    }
21677
 
21678
    public Object getFieldValue(_Fields field) {
21679
      switch (field) {
21680
      case HSE:
21681
        return getHse();
21682
 
21683
      }
21684
      throw new IllegalStateException();
21685
    }
21686
 
21687
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21688
    public boolean isSet(_Fields field) {
21689
      if (field == null) {
21690
        throw new IllegalArgumentException();
21691
      }
21692
 
21693
      switch (field) {
21694
      case HSE:
21695
        return isSetHse();
21696
      }
21697
      throw new IllegalStateException();
21698
    }
21699
 
21700
    @Override
21701
    public boolean equals(Object that) {
21702
      if (that == null)
21703
        return false;
21704
      if (that instanceof updateQuickLink_result)
21705
        return this.equals((updateQuickLink_result)that);
21706
      return false;
21707
    }
21708
 
21709
    public boolean equals(updateQuickLink_result that) {
21710
      if (that == null)
21711
        return false;
21712
 
21713
      boolean this_present_hse = true && this.isSetHse();
21714
      boolean that_present_hse = true && that.isSetHse();
21715
      if (this_present_hse || that_present_hse) {
21716
        if (!(this_present_hse && that_present_hse))
21717
          return false;
21718
        if (!this.hse.equals(that.hse))
21719
          return false;
21720
      }
21721
 
21722
      return true;
21723
    }
21724
 
21725
    @Override
21726
    public int hashCode() {
21727
      return 0;
21728
    }
21729
 
21730
    public int compareTo(updateQuickLink_result other) {
21731
      if (!getClass().equals(other.getClass())) {
21732
        return getClass().getName().compareTo(other.getClass().getName());
21733
      }
21734
 
21735
      int lastComparison = 0;
21736
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21737
 
21738
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21739
      if (lastComparison != 0) {
21740
        return lastComparison;
21741
      }
21742
      if (isSetHse()) {
21743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21744
        if (lastComparison != 0) {
21745
          return lastComparison;
21746
        }
21747
      }
21748
      return 0;
21749
    }
21750
 
21751
    public _Fields fieldForId(int fieldId) {
21752
      return _Fields.findByThriftId(fieldId);
21753
    }
21754
 
21755
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21756
      org.apache.thrift.protocol.TField field;
21757
      iprot.readStructBegin();
21758
      while (true)
21759
      {
21760
        field = iprot.readFieldBegin();
21761
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21762
          break;
21763
        }
21764
        switch (field.id) {
21765
          case 1: // HSE
21766
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21767
              this.hse = new HelperServiceException();
21768
              this.hse.read(iprot);
21769
            } else { 
21770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21771
            }
21772
            break;
21773
          default:
21774
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21775
        }
21776
        iprot.readFieldEnd();
21777
      }
21778
      iprot.readStructEnd();
21779
      validate();
21780
    }
21781
 
21782
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21783
      oprot.writeStructBegin(STRUCT_DESC);
21784
 
21785
      if (this.isSetHse()) {
21786
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21787
        this.hse.write(oprot);
21788
        oprot.writeFieldEnd();
21789
      }
21790
      oprot.writeFieldStop();
21791
      oprot.writeStructEnd();
21792
    }
21793
 
21794
    @Override
21795
    public String toString() {
21796
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21797
      boolean first = true;
21798
 
21799
      sb.append("hse:");
21800
      if (this.hse == null) {
21801
        sb.append("null");
21802
      } else {
21803
        sb.append(this.hse);
21804
      }
21805
      first = false;
21806
      sb.append(")");
21807
      return sb.toString();
21808
    }
21809
 
21810
    public void validate() throws org.apache.thrift.TException {
21811
      // check for required fields
21812
    }
21813
 
21814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21815
      try {
21816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21817
      } catch (org.apache.thrift.TException te) {
21818
        throw new java.io.IOException(te);
21819
      }
21820
    }
21821
 
21822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21823
      try {
21824
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21825
      } catch (org.apache.thrift.TException te) {
21826
        throw new java.io.IOException(te);
21827
      }
21828
    }
21829
 
21830
  }
21831
 
5055 varun.gupt 21832
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21833
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21834
 
21835
    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);
21836
    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);
21837
 
21838
    private long startDatetime; // required
21839
    private long endDatetime; // required
21840
 
21841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21842
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21843
      START_DATETIME((short)1, "startDatetime"),
21844
      END_DATETIME((short)2, "endDatetime");
21845
 
21846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21847
 
21848
      static {
21849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21850
          byName.put(field.getFieldName(), field);
21851
        }
21852
      }
21853
 
21854
      /**
21855
       * Find the _Fields constant that matches fieldId, or null if its not found.
21856
       */
21857
      public static _Fields findByThriftId(int fieldId) {
21858
        switch(fieldId) {
21859
          case 1: // START_DATETIME
21860
            return START_DATETIME;
21861
          case 2: // END_DATETIME
21862
            return END_DATETIME;
21863
          default:
21864
            return null;
21865
        }
21866
      }
21867
 
21868
      /**
21869
       * Find the _Fields constant that matches fieldId, throwing an exception
21870
       * if it is not found.
21871
       */
21872
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21873
        _Fields fields = findByThriftId(fieldId);
21874
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21875
        return fields;
21876
      }
21877
 
21878
      /**
21879
       * Find the _Fields constant that matches name, or null if its not found.
21880
       */
21881
      public static _Fields findByName(String name) {
21882
        return byName.get(name);
21883
      }
21884
 
21885
      private final short _thriftId;
21886
      private final String _fieldName;
21887
 
21888
      _Fields(short thriftId, String fieldName) {
21889
        _thriftId = thriftId;
21890
        _fieldName = fieldName;
21891
      }
21892
 
21893
      public short getThriftFieldId() {
21894
        return _thriftId;
21895
      }
21896
 
21897
      public String getFieldName() {
21898
        return _fieldName;
21899
      }
21900
    }
21901
 
21902
    // isset id assignments
21903
    private static final int __STARTDATETIME_ISSET_ID = 0;
21904
    private static final int __ENDDATETIME_ISSET_ID = 1;
21905
    private BitSet __isset_bit_vector = new BitSet(2);
21906
 
21907
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21908
    static {
21909
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21910
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21911
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21912
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21916
    }
21917
 
21918
    public getEmailsForNotificationsSent_args() {
21919
    }
21920
 
21921
    public getEmailsForNotificationsSent_args(
21922
      long startDatetime,
21923
      long endDatetime)
21924
    {
21925
      this();
21926
      this.startDatetime = startDatetime;
21927
      setStartDatetimeIsSet(true);
21928
      this.endDatetime = endDatetime;
21929
      setEndDatetimeIsSet(true);
21930
    }
21931
 
21932
    /**
21933
     * Performs a deep copy on <i>other</i>.
21934
     */
21935
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
21936
      __isset_bit_vector.clear();
21937
      __isset_bit_vector.or(other.__isset_bit_vector);
21938
      this.startDatetime = other.startDatetime;
21939
      this.endDatetime = other.endDatetime;
21940
    }
21941
 
21942
    public getEmailsForNotificationsSent_args deepCopy() {
21943
      return new getEmailsForNotificationsSent_args(this);
21944
    }
21945
 
21946
    @Override
21947
    public void clear() {
21948
      setStartDatetimeIsSet(false);
21949
      this.startDatetime = 0;
21950
      setEndDatetimeIsSet(false);
21951
      this.endDatetime = 0;
21952
    }
21953
 
21954
    public long getStartDatetime() {
21955
      return this.startDatetime;
21956
    }
21957
 
21958
    public void setStartDatetime(long startDatetime) {
21959
      this.startDatetime = startDatetime;
21960
      setStartDatetimeIsSet(true);
21961
    }
21962
 
21963
    public void unsetStartDatetime() {
21964
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
21965
    }
21966
 
21967
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
21968
    public boolean isSetStartDatetime() {
21969
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
21970
    }
21971
 
21972
    public void setStartDatetimeIsSet(boolean value) {
21973
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
21974
    }
21975
 
21976
    public long getEndDatetime() {
21977
      return this.endDatetime;
21978
    }
21979
 
21980
    public void setEndDatetime(long endDatetime) {
21981
      this.endDatetime = endDatetime;
21982
      setEndDatetimeIsSet(true);
21983
    }
21984
 
21985
    public void unsetEndDatetime() {
21986
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
21987
    }
21988
 
21989
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
21990
    public boolean isSetEndDatetime() {
21991
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
21992
    }
21993
 
21994
    public void setEndDatetimeIsSet(boolean value) {
21995
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
21996
    }
21997
 
21998
    public void setFieldValue(_Fields field, Object value) {
21999
      switch (field) {
22000
      case START_DATETIME:
22001
        if (value == null) {
22002
          unsetStartDatetime();
22003
        } else {
22004
          setStartDatetime((Long)value);
22005
        }
22006
        break;
22007
 
22008
      case END_DATETIME:
22009
        if (value == null) {
22010
          unsetEndDatetime();
22011
        } else {
22012
          setEndDatetime((Long)value);
22013
        }
22014
        break;
22015
 
22016
      }
22017
    }
22018
 
22019
    public Object getFieldValue(_Fields field) {
22020
      switch (field) {
22021
      case START_DATETIME:
22022
        return Long.valueOf(getStartDatetime());
22023
 
22024
      case END_DATETIME:
22025
        return Long.valueOf(getEndDatetime());
22026
 
22027
      }
22028
      throw new IllegalStateException();
22029
    }
22030
 
22031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22032
    public boolean isSet(_Fields field) {
22033
      if (field == null) {
22034
        throw new IllegalArgumentException();
22035
      }
22036
 
22037
      switch (field) {
22038
      case START_DATETIME:
22039
        return isSetStartDatetime();
22040
      case END_DATETIME:
22041
        return isSetEndDatetime();
22042
      }
22043
      throw new IllegalStateException();
22044
    }
22045
 
22046
    @Override
22047
    public boolean equals(Object that) {
22048
      if (that == null)
22049
        return false;
22050
      if (that instanceof getEmailsForNotificationsSent_args)
22051
        return this.equals((getEmailsForNotificationsSent_args)that);
22052
      return false;
22053
    }
22054
 
22055
    public boolean equals(getEmailsForNotificationsSent_args that) {
22056
      if (that == null)
22057
        return false;
22058
 
22059
      boolean this_present_startDatetime = true;
22060
      boolean that_present_startDatetime = true;
22061
      if (this_present_startDatetime || that_present_startDatetime) {
22062
        if (!(this_present_startDatetime && that_present_startDatetime))
22063
          return false;
22064
        if (this.startDatetime != that.startDatetime)
22065
          return false;
22066
      }
22067
 
22068
      boolean this_present_endDatetime = true;
22069
      boolean that_present_endDatetime = true;
22070
      if (this_present_endDatetime || that_present_endDatetime) {
22071
        if (!(this_present_endDatetime && that_present_endDatetime))
22072
          return false;
22073
        if (this.endDatetime != that.endDatetime)
22074
          return false;
22075
      }
22076
 
22077
      return true;
22078
    }
22079
 
22080
    @Override
22081
    public int hashCode() {
22082
      return 0;
22083
    }
22084
 
22085
    public int compareTo(getEmailsForNotificationsSent_args other) {
22086
      if (!getClass().equals(other.getClass())) {
22087
        return getClass().getName().compareTo(other.getClass().getName());
22088
      }
22089
 
22090
      int lastComparison = 0;
22091
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22092
 
22093
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22094
      if (lastComparison != 0) {
22095
        return lastComparison;
22096
      }
22097
      if (isSetStartDatetime()) {
22098
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22099
        if (lastComparison != 0) {
22100
          return lastComparison;
22101
        }
22102
      }
22103
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22104
      if (lastComparison != 0) {
22105
        return lastComparison;
22106
      }
22107
      if (isSetEndDatetime()) {
22108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22109
        if (lastComparison != 0) {
22110
          return lastComparison;
22111
        }
22112
      }
22113
      return 0;
22114
    }
22115
 
22116
    public _Fields fieldForId(int fieldId) {
22117
      return _Fields.findByThriftId(fieldId);
22118
    }
22119
 
22120
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22121
      org.apache.thrift.protocol.TField field;
22122
      iprot.readStructBegin();
22123
      while (true)
22124
      {
22125
        field = iprot.readFieldBegin();
22126
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22127
          break;
22128
        }
22129
        switch (field.id) {
22130
          case 1: // START_DATETIME
22131
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22132
              this.startDatetime = iprot.readI64();
22133
              setStartDatetimeIsSet(true);
22134
            } else { 
22135
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22136
            }
22137
            break;
22138
          case 2: // END_DATETIME
22139
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22140
              this.endDatetime = iprot.readI64();
22141
              setEndDatetimeIsSet(true);
22142
            } else { 
22143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22144
            }
22145
            break;
22146
          default:
22147
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22148
        }
22149
        iprot.readFieldEnd();
22150
      }
22151
      iprot.readStructEnd();
22152
      validate();
22153
    }
22154
 
22155
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22156
      validate();
22157
 
22158
      oprot.writeStructBegin(STRUCT_DESC);
22159
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22160
      oprot.writeI64(this.startDatetime);
22161
      oprot.writeFieldEnd();
22162
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22163
      oprot.writeI64(this.endDatetime);
22164
      oprot.writeFieldEnd();
22165
      oprot.writeFieldStop();
22166
      oprot.writeStructEnd();
22167
    }
22168
 
22169
    @Override
22170
    public String toString() {
22171
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22172
      boolean first = true;
22173
 
22174
      sb.append("startDatetime:");
22175
      sb.append(this.startDatetime);
22176
      first = false;
22177
      if (!first) sb.append(", ");
22178
      sb.append("endDatetime:");
22179
      sb.append(this.endDatetime);
22180
      first = false;
22181
      sb.append(")");
22182
      return sb.toString();
22183
    }
22184
 
22185
    public void validate() throws org.apache.thrift.TException {
22186
      // check for required fields
22187
    }
22188
 
22189
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22190
      try {
22191
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22192
      } catch (org.apache.thrift.TException te) {
22193
        throw new java.io.IOException(te);
22194
      }
22195
    }
22196
 
22197
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22198
      try {
22199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22200
      } catch (org.apache.thrift.TException te) {
22201
        throw new java.io.IOException(te);
22202
      }
22203
    }
22204
 
22205
  }
22206
 
22207
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22208
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22209
 
22210
    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);
22211
    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);
22212
 
22213
    private List<String> success; // required
22214
    private HelperServiceException hse; // required
22215
 
22216
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22217
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22218
      SUCCESS((short)0, "success"),
22219
      HSE((short)1, "hse");
22220
 
22221
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22222
 
22223
      static {
22224
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22225
          byName.put(field.getFieldName(), field);
22226
        }
22227
      }
22228
 
22229
      /**
22230
       * Find the _Fields constant that matches fieldId, or null if its not found.
22231
       */
22232
      public static _Fields findByThriftId(int fieldId) {
22233
        switch(fieldId) {
22234
          case 0: // SUCCESS
22235
            return SUCCESS;
22236
          case 1: // HSE
22237
            return HSE;
22238
          default:
22239
            return null;
22240
        }
22241
      }
22242
 
22243
      /**
22244
       * Find the _Fields constant that matches fieldId, throwing an exception
22245
       * if it is not found.
22246
       */
22247
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22248
        _Fields fields = findByThriftId(fieldId);
22249
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22250
        return fields;
22251
      }
22252
 
22253
      /**
22254
       * Find the _Fields constant that matches name, or null if its not found.
22255
       */
22256
      public static _Fields findByName(String name) {
22257
        return byName.get(name);
22258
      }
22259
 
22260
      private final short _thriftId;
22261
      private final String _fieldName;
22262
 
22263
      _Fields(short thriftId, String fieldName) {
22264
        _thriftId = thriftId;
22265
        _fieldName = fieldName;
22266
      }
22267
 
22268
      public short getThriftFieldId() {
22269
        return _thriftId;
22270
      }
22271
 
22272
      public String getFieldName() {
22273
        return _fieldName;
22274
      }
22275
    }
22276
 
22277
    // isset id assignments
22278
 
22279
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22280
    static {
22281
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22282
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22283
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22284
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22285
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22286
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22287
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22288
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22289
    }
22290
 
22291
    public getEmailsForNotificationsSent_result() {
22292
    }
22293
 
22294
    public getEmailsForNotificationsSent_result(
22295
      List<String> success,
22296
      HelperServiceException hse)
22297
    {
22298
      this();
22299
      this.success = success;
22300
      this.hse = hse;
22301
    }
22302
 
22303
    /**
22304
     * Performs a deep copy on <i>other</i>.
22305
     */
22306
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22307
      if (other.isSetSuccess()) {
22308
        List<String> __this__success = new ArrayList<String>();
22309
        for (String other_element : other.success) {
22310
          __this__success.add(other_element);
22311
        }
22312
        this.success = __this__success;
22313
      }
22314
      if (other.isSetHse()) {
22315
        this.hse = new HelperServiceException(other.hse);
22316
      }
22317
    }
22318
 
22319
    public getEmailsForNotificationsSent_result deepCopy() {
22320
      return new getEmailsForNotificationsSent_result(this);
22321
    }
22322
 
22323
    @Override
22324
    public void clear() {
22325
      this.success = null;
22326
      this.hse = null;
22327
    }
22328
 
22329
    public int getSuccessSize() {
22330
      return (this.success == null) ? 0 : this.success.size();
22331
    }
22332
 
22333
    public java.util.Iterator<String> getSuccessIterator() {
22334
      return (this.success == null) ? null : this.success.iterator();
22335
    }
22336
 
22337
    public void addToSuccess(String elem) {
22338
      if (this.success == null) {
22339
        this.success = new ArrayList<String>();
22340
      }
22341
      this.success.add(elem);
22342
    }
22343
 
22344
    public List<String> getSuccess() {
22345
      return this.success;
22346
    }
22347
 
22348
    public void setSuccess(List<String> success) {
22349
      this.success = success;
22350
    }
22351
 
22352
    public void unsetSuccess() {
22353
      this.success = null;
22354
    }
22355
 
22356
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22357
    public boolean isSetSuccess() {
22358
      return this.success != null;
22359
    }
22360
 
22361
    public void setSuccessIsSet(boolean value) {
22362
      if (!value) {
22363
        this.success = null;
22364
      }
22365
    }
22366
 
22367
    public HelperServiceException getHse() {
22368
      return this.hse;
22369
    }
22370
 
22371
    public void setHse(HelperServiceException hse) {
22372
      this.hse = hse;
22373
    }
22374
 
22375
    public void unsetHse() {
22376
      this.hse = null;
22377
    }
22378
 
22379
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22380
    public boolean isSetHse() {
22381
      return this.hse != null;
22382
    }
22383
 
22384
    public void setHseIsSet(boolean value) {
22385
      if (!value) {
22386
        this.hse = null;
22387
      }
22388
    }
22389
 
22390
    public void setFieldValue(_Fields field, Object value) {
22391
      switch (field) {
22392
      case SUCCESS:
22393
        if (value == null) {
22394
          unsetSuccess();
22395
        } else {
22396
          setSuccess((List<String>)value);
22397
        }
22398
        break;
22399
 
22400
      case HSE:
22401
        if (value == null) {
22402
          unsetHse();
22403
        } else {
22404
          setHse((HelperServiceException)value);
22405
        }
22406
        break;
22407
 
22408
      }
22409
    }
22410
 
22411
    public Object getFieldValue(_Fields field) {
22412
      switch (field) {
22413
      case SUCCESS:
22414
        return getSuccess();
22415
 
22416
      case HSE:
22417
        return getHse();
22418
 
22419
      }
22420
      throw new IllegalStateException();
22421
    }
22422
 
22423
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22424
    public boolean isSet(_Fields field) {
22425
      if (field == null) {
22426
        throw new IllegalArgumentException();
22427
      }
22428
 
22429
      switch (field) {
22430
      case SUCCESS:
22431
        return isSetSuccess();
22432
      case HSE:
22433
        return isSetHse();
22434
      }
22435
      throw new IllegalStateException();
22436
    }
22437
 
22438
    @Override
22439
    public boolean equals(Object that) {
22440
      if (that == null)
22441
        return false;
22442
      if (that instanceof getEmailsForNotificationsSent_result)
22443
        return this.equals((getEmailsForNotificationsSent_result)that);
22444
      return false;
22445
    }
22446
 
22447
    public boolean equals(getEmailsForNotificationsSent_result that) {
22448
      if (that == null)
22449
        return false;
22450
 
22451
      boolean this_present_success = true && this.isSetSuccess();
22452
      boolean that_present_success = true && that.isSetSuccess();
22453
      if (this_present_success || that_present_success) {
22454
        if (!(this_present_success && that_present_success))
22455
          return false;
22456
        if (!this.success.equals(that.success))
22457
          return false;
22458
      }
22459
 
22460
      boolean this_present_hse = true && this.isSetHse();
22461
      boolean that_present_hse = true && that.isSetHse();
22462
      if (this_present_hse || that_present_hse) {
22463
        if (!(this_present_hse && that_present_hse))
22464
          return false;
22465
        if (!this.hse.equals(that.hse))
22466
          return false;
22467
      }
22468
 
22469
      return true;
22470
    }
22471
 
22472
    @Override
22473
    public int hashCode() {
22474
      return 0;
22475
    }
22476
 
22477
    public int compareTo(getEmailsForNotificationsSent_result other) {
22478
      if (!getClass().equals(other.getClass())) {
22479
        return getClass().getName().compareTo(other.getClass().getName());
22480
      }
22481
 
22482
      int lastComparison = 0;
22483
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22484
 
22485
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22486
      if (lastComparison != 0) {
22487
        return lastComparison;
22488
      }
22489
      if (isSetSuccess()) {
22490
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22491
        if (lastComparison != 0) {
22492
          return lastComparison;
22493
        }
22494
      }
22495
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22496
      if (lastComparison != 0) {
22497
        return lastComparison;
22498
      }
22499
      if (isSetHse()) {
22500
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22501
        if (lastComparison != 0) {
22502
          return lastComparison;
22503
        }
22504
      }
22505
      return 0;
22506
    }
22507
 
22508
    public _Fields fieldForId(int fieldId) {
22509
      return _Fields.findByThriftId(fieldId);
22510
    }
22511
 
22512
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22513
      org.apache.thrift.protocol.TField field;
22514
      iprot.readStructBegin();
22515
      while (true)
22516
      {
22517
        field = iprot.readFieldBegin();
22518
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22519
          break;
22520
        }
22521
        switch (field.id) {
22522
          case 0: // SUCCESS
22523
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22524
              {
5864 rajveer 22525
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22526
                this.success = new ArrayList<String>(_list65.size);
22527
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22528
                {
5864 rajveer 22529
                  String _elem67; // required
22530
                  _elem67 = iprot.readString();
22531
                  this.success.add(_elem67);
5055 varun.gupt 22532
                }
22533
                iprot.readListEnd();
22534
              }
22535
            } else { 
22536
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22537
            }
22538
            break;
22539
          case 1: // HSE
22540
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22541
              this.hse = new HelperServiceException();
22542
              this.hse.read(iprot);
22543
            } else { 
22544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22545
            }
22546
            break;
22547
          default:
22548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22549
        }
22550
        iprot.readFieldEnd();
22551
      }
22552
      iprot.readStructEnd();
22553
      validate();
22554
    }
22555
 
22556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22557
      oprot.writeStructBegin(STRUCT_DESC);
22558
 
22559
      if (this.isSetSuccess()) {
22560
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22561
        {
22562
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22563
          for (String _iter68 : this.success)
5055 varun.gupt 22564
          {
5864 rajveer 22565
            oprot.writeString(_iter68);
5055 varun.gupt 22566
          }
22567
          oprot.writeListEnd();
22568
        }
22569
        oprot.writeFieldEnd();
22570
      } else if (this.isSetHse()) {
22571
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22572
        this.hse.write(oprot);
22573
        oprot.writeFieldEnd();
22574
      }
22575
      oprot.writeFieldStop();
22576
      oprot.writeStructEnd();
22577
    }
22578
 
22579
    @Override
22580
    public String toString() {
22581
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22582
      boolean first = true;
22583
 
22584
      sb.append("success:");
22585
      if (this.success == null) {
22586
        sb.append("null");
22587
      } else {
22588
        sb.append(this.success);
22589
      }
22590
      first = false;
22591
      if (!first) sb.append(", ");
22592
      sb.append("hse:");
22593
      if (this.hse == null) {
22594
        sb.append("null");
22595
      } else {
22596
        sb.append(this.hse);
22597
      }
22598
      first = false;
22599
      sb.append(")");
22600
      return sb.toString();
22601
    }
22602
 
22603
    public void validate() throws org.apache.thrift.TException {
22604
      // check for required fields
22605
    }
22606
 
22607
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22608
      try {
22609
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22610
      } catch (org.apache.thrift.TException te) {
22611
        throw new java.io.IOException(te);
22612
      }
22613
    }
22614
 
22615
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22616
      try {
22617
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22618
      } catch (org.apache.thrift.TException te) {
22619
        throw new java.io.IOException(te);
22620
      }
22621
    }
22622
 
22623
  }
22624
 
6322 amar.kumar 22625
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22626
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22627
 
22628
    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);
22629
 
22630
    private long orderId; // required
22631
 
22632
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22633
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22634
      ORDER_ID((short)1, "orderId");
22635
 
22636
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22637
 
22638
      static {
22639
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22640
          byName.put(field.getFieldName(), field);
22641
        }
22642
      }
22643
 
22644
      /**
22645
       * Find the _Fields constant that matches fieldId, or null if its not found.
22646
       */
22647
      public static _Fields findByThriftId(int fieldId) {
22648
        switch(fieldId) {
22649
          case 1: // ORDER_ID
22650
            return ORDER_ID;
22651
          default:
22652
            return null;
22653
        }
22654
      }
22655
 
22656
      /**
22657
       * Find the _Fields constant that matches fieldId, throwing an exception
22658
       * if it is not found.
22659
       */
22660
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22661
        _Fields fields = findByThriftId(fieldId);
22662
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22663
        return fields;
22664
      }
22665
 
22666
      /**
22667
       * Find the _Fields constant that matches name, or null if its not found.
22668
       */
22669
      public static _Fields findByName(String name) {
22670
        return byName.get(name);
22671
      }
22672
 
22673
      private final short _thriftId;
22674
      private final String _fieldName;
22675
 
22676
      _Fields(short thriftId, String fieldName) {
22677
        _thriftId = thriftId;
22678
        _fieldName = fieldName;
22679
      }
22680
 
22681
      public short getThriftFieldId() {
22682
        return _thriftId;
22683
      }
22684
 
22685
      public String getFieldName() {
22686
        return _fieldName;
22687
      }
22688
    }
22689
 
22690
    // isset id assignments
22691
    private static final int __ORDERID_ISSET_ID = 0;
22692
    private BitSet __isset_bit_vector = new BitSet(1);
22693
 
22694
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22695
    static {
22696
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22697
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22698
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22699
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22700
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22701
    }
22702
 
22703
    public getOrderConfirmationMail_args() {
22704
    }
22705
 
22706
    public getOrderConfirmationMail_args(
22707
      long orderId)
22708
    {
22709
      this();
22710
      this.orderId = orderId;
22711
      setOrderIdIsSet(true);
22712
    }
22713
 
22714
    /**
22715
     * Performs a deep copy on <i>other</i>.
22716
     */
22717
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22718
      __isset_bit_vector.clear();
22719
      __isset_bit_vector.or(other.__isset_bit_vector);
22720
      this.orderId = other.orderId;
22721
    }
22722
 
22723
    public getOrderConfirmationMail_args deepCopy() {
22724
      return new getOrderConfirmationMail_args(this);
22725
    }
22726
 
22727
    @Override
22728
    public void clear() {
22729
      setOrderIdIsSet(false);
22730
      this.orderId = 0;
22731
    }
22732
 
22733
    public long getOrderId() {
22734
      return this.orderId;
22735
    }
22736
 
22737
    public void setOrderId(long orderId) {
22738
      this.orderId = orderId;
22739
      setOrderIdIsSet(true);
22740
    }
22741
 
22742
    public void unsetOrderId() {
22743
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22744
    }
22745
 
22746
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22747
    public boolean isSetOrderId() {
22748
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22749
    }
22750
 
22751
    public void setOrderIdIsSet(boolean value) {
22752
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22753
    }
22754
 
22755
    public void setFieldValue(_Fields field, Object value) {
22756
      switch (field) {
22757
      case ORDER_ID:
22758
        if (value == null) {
22759
          unsetOrderId();
22760
        } else {
22761
          setOrderId((Long)value);
22762
        }
22763
        break;
22764
 
22765
      }
22766
    }
22767
 
22768
    public Object getFieldValue(_Fields field) {
22769
      switch (field) {
22770
      case ORDER_ID:
22771
        return Long.valueOf(getOrderId());
22772
 
22773
      }
22774
      throw new IllegalStateException();
22775
    }
22776
 
22777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22778
    public boolean isSet(_Fields field) {
22779
      if (field == null) {
22780
        throw new IllegalArgumentException();
22781
      }
22782
 
22783
      switch (field) {
22784
      case ORDER_ID:
22785
        return isSetOrderId();
22786
      }
22787
      throw new IllegalStateException();
22788
    }
22789
 
22790
    @Override
22791
    public boolean equals(Object that) {
22792
      if (that == null)
22793
        return false;
22794
      if (that instanceof getOrderConfirmationMail_args)
22795
        return this.equals((getOrderConfirmationMail_args)that);
22796
      return false;
22797
    }
22798
 
22799
    public boolean equals(getOrderConfirmationMail_args that) {
22800
      if (that == null)
22801
        return false;
22802
 
22803
      boolean this_present_orderId = true;
22804
      boolean that_present_orderId = true;
22805
      if (this_present_orderId || that_present_orderId) {
22806
        if (!(this_present_orderId && that_present_orderId))
22807
          return false;
22808
        if (this.orderId != that.orderId)
22809
          return false;
22810
      }
22811
 
22812
      return true;
22813
    }
22814
 
22815
    @Override
22816
    public int hashCode() {
22817
      return 0;
22818
    }
22819
 
22820
    public int compareTo(getOrderConfirmationMail_args other) {
22821
      if (!getClass().equals(other.getClass())) {
22822
        return getClass().getName().compareTo(other.getClass().getName());
22823
      }
22824
 
22825
      int lastComparison = 0;
22826
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22827
 
22828
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22829
      if (lastComparison != 0) {
22830
        return lastComparison;
22831
      }
22832
      if (isSetOrderId()) {
22833
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22834
        if (lastComparison != 0) {
22835
          return lastComparison;
22836
        }
22837
      }
22838
      return 0;
22839
    }
22840
 
22841
    public _Fields fieldForId(int fieldId) {
22842
      return _Fields.findByThriftId(fieldId);
22843
    }
22844
 
22845
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22846
      org.apache.thrift.protocol.TField field;
22847
      iprot.readStructBegin();
22848
      while (true)
22849
      {
22850
        field = iprot.readFieldBegin();
22851
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22852
          break;
22853
        }
22854
        switch (field.id) {
22855
          case 1: // ORDER_ID
22856
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22857
              this.orderId = iprot.readI64();
22858
              setOrderIdIsSet(true);
22859
            } else { 
22860
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22861
            }
22862
            break;
22863
          default:
22864
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22865
        }
22866
        iprot.readFieldEnd();
22867
      }
22868
      iprot.readStructEnd();
22869
      validate();
22870
    }
22871
 
22872
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22873
      validate();
22874
 
22875
      oprot.writeStructBegin(STRUCT_DESC);
22876
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22877
      oprot.writeI64(this.orderId);
22878
      oprot.writeFieldEnd();
22879
      oprot.writeFieldStop();
22880
      oprot.writeStructEnd();
22881
    }
22882
 
22883
    @Override
22884
    public String toString() {
22885
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
22886
      boolean first = true;
22887
 
22888
      sb.append("orderId:");
22889
      sb.append(this.orderId);
22890
      first = false;
22891
      sb.append(")");
22892
      return sb.toString();
22893
    }
22894
 
22895
    public void validate() throws org.apache.thrift.TException {
22896
      // check for required fields
22897
    }
22898
 
22899
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22900
      try {
22901
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22902
      } catch (org.apache.thrift.TException te) {
22903
        throw new java.io.IOException(te);
22904
      }
22905
    }
22906
 
22907
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22908
      try {
22909
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22910
        __isset_bit_vector = new BitSet(1);
22911
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22912
      } catch (org.apache.thrift.TException te) {
22913
        throw new java.io.IOException(te);
22914
      }
22915
    }
22916
 
22917
  }
22918
 
22919
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
22920
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
22921
 
22922
    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);
22923
 
22924
    private String success; // required
22925
 
22926
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22927
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22928
      SUCCESS((short)0, "success");
22929
 
22930
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22931
 
22932
      static {
22933
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22934
          byName.put(field.getFieldName(), field);
22935
        }
22936
      }
22937
 
22938
      /**
22939
       * Find the _Fields constant that matches fieldId, or null if its not found.
22940
       */
22941
      public static _Fields findByThriftId(int fieldId) {
22942
        switch(fieldId) {
22943
          case 0: // SUCCESS
22944
            return SUCCESS;
22945
          default:
22946
            return null;
22947
        }
22948
      }
22949
 
22950
      /**
22951
       * Find the _Fields constant that matches fieldId, throwing an exception
22952
       * if it is not found.
22953
       */
22954
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22955
        _Fields fields = findByThriftId(fieldId);
22956
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22957
        return fields;
22958
      }
22959
 
22960
      /**
22961
       * Find the _Fields constant that matches name, or null if its not found.
22962
       */
22963
      public static _Fields findByName(String name) {
22964
        return byName.get(name);
22965
      }
22966
 
22967
      private final short _thriftId;
22968
      private final String _fieldName;
22969
 
22970
      _Fields(short thriftId, String fieldName) {
22971
        _thriftId = thriftId;
22972
        _fieldName = fieldName;
22973
      }
22974
 
22975
      public short getThriftFieldId() {
22976
        return _thriftId;
22977
      }
22978
 
22979
      public String getFieldName() {
22980
        return _fieldName;
22981
      }
22982
    }
22983
 
22984
    // isset id assignments
22985
 
22986
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22987
    static {
22988
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22989
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
22993
    }
22994
 
22995
    public getOrderConfirmationMail_result() {
22996
    }
22997
 
22998
    public getOrderConfirmationMail_result(
22999
      String success)
23000
    {
23001
      this();
23002
      this.success = success;
23003
    }
23004
 
23005
    /**
23006
     * Performs a deep copy on <i>other</i>.
23007
     */
23008
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
23009
      if (other.isSetSuccess()) {
23010
        this.success = other.success;
23011
      }
23012
    }
23013
 
23014
    public getOrderConfirmationMail_result deepCopy() {
23015
      return new getOrderConfirmationMail_result(this);
23016
    }
23017
 
23018
    @Override
23019
    public void clear() {
23020
      this.success = null;
23021
    }
23022
 
23023
    public String getSuccess() {
23024
      return this.success;
23025
    }
23026
 
23027
    public void setSuccess(String success) {
23028
      this.success = success;
23029
    }
23030
 
23031
    public void unsetSuccess() {
23032
      this.success = null;
23033
    }
23034
 
23035
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23036
    public boolean isSetSuccess() {
23037
      return this.success != null;
23038
    }
23039
 
23040
    public void setSuccessIsSet(boolean value) {
23041
      if (!value) {
23042
        this.success = null;
23043
      }
23044
    }
23045
 
23046
    public void setFieldValue(_Fields field, Object value) {
23047
      switch (field) {
23048
      case SUCCESS:
23049
        if (value == null) {
23050
          unsetSuccess();
23051
        } else {
23052
          setSuccess((String)value);
23053
        }
23054
        break;
23055
 
23056
      }
23057
    }
23058
 
23059
    public Object getFieldValue(_Fields field) {
23060
      switch (field) {
23061
      case SUCCESS:
23062
        return getSuccess();
23063
 
23064
      }
23065
      throw new IllegalStateException();
23066
    }
23067
 
23068
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23069
    public boolean isSet(_Fields field) {
23070
      if (field == null) {
23071
        throw new IllegalArgumentException();
23072
      }
23073
 
23074
      switch (field) {
23075
      case SUCCESS:
23076
        return isSetSuccess();
23077
      }
23078
      throw new IllegalStateException();
23079
    }
23080
 
23081
    @Override
23082
    public boolean equals(Object that) {
23083
      if (that == null)
23084
        return false;
23085
      if (that instanceof getOrderConfirmationMail_result)
23086
        return this.equals((getOrderConfirmationMail_result)that);
23087
      return false;
23088
    }
23089
 
23090
    public boolean equals(getOrderConfirmationMail_result that) {
23091
      if (that == null)
23092
        return false;
23093
 
23094
      boolean this_present_success = true && this.isSetSuccess();
23095
      boolean that_present_success = true && that.isSetSuccess();
23096
      if (this_present_success || that_present_success) {
23097
        if (!(this_present_success && that_present_success))
23098
          return false;
23099
        if (!this.success.equals(that.success))
23100
          return false;
23101
      }
23102
 
23103
      return true;
23104
    }
23105
 
23106
    @Override
23107
    public int hashCode() {
23108
      return 0;
23109
    }
23110
 
23111
    public int compareTo(getOrderConfirmationMail_result other) {
23112
      if (!getClass().equals(other.getClass())) {
23113
        return getClass().getName().compareTo(other.getClass().getName());
23114
      }
23115
 
23116
      int lastComparison = 0;
23117
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23118
 
23119
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23120
      if (lastComparison != 0) {
23121
        return lastComparison;
23122
      }
23123
      if (isSetSuccess()) {
23124
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23125
        if (lastComparison != 0) {
23126
          return lastComparison;
23127
        }
23128
      }
23129
      return 0;
23130
    }
23131
 
23132
    public _Fields fieldForId(int fieldId) {
23133
      return _Fields.findByThriftId(fieldId);
23134
    }
23135
 
23136
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23137
      org.apache.thrift.protocol.TField field;
23138
      iprot.readStructBegin();
23139
      while (true)
23140
      {
23141
        field = iprot.readFieldBegin();
23142
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23143
          break;
23144
        }
23145
        switch (field.id) {
23146
          case 0: // SUCCESS
23147
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23148
              this.success = iprot.readString();
23149
            } else { 
23150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23151
            }
23152
            break;
23153
          default:
23154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23155
        }
23156
        iprot.readFieldEnd();
23157
      }
23158
      iprot.readStructEnd();
23159
      validate();
23160
    }
23161
 
23162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23163
      oprot.writeStructBegin(STRUCT_DESC);
23164
 
23165
      if (this.isSetSuccess()) {
23166
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23167
        oprot.writeString(this.success);
23168
        oprot.writeFieldEnd();
23169
      }
23170
      oprot.writeFieldStop();
23171
      oprot.writeStructEnd();
23172
    }
23173
 
23174
    @Override
23175
    public String toString() {
23176
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23177
      boolean first = true;
23178
 
23179
      sb.append("success:");
23180
      if (this.success == null) {
23181
        sb.append("null");
23182
      } else {
23183
        sb.append(this.success);
23184
      }
23185
      first = false;
23186
      sb.append(")");
23187
      return sb.toString();
23188
    }
23189
 
23190
    public void validate() throws org.apache.thrift.TException {
23191
      // check for required fields
23192
    }
23193
 
23194
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23195
      try {
23196
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23197
      } catch (org.apache.thrift.TException te) {
23198
        throw new java.io.IOException(te);
23199
      }
23200
    }
23201
 
23202
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23203
      try {
23204
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23205
      } catch (org.apache.thrift.TException te) {
23206
        throw new java.io.IOException(te);
23207
      }
23208
    }
23209
 
23210
  }
23211
 
7221 kshitij.so 23212
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
23213
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
23214
 
23215
    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);
23216
 
23217
    private long orderId; // required
23218
 
23219
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23220
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23221
      ORDER_ID((short)1, "orderId");
23222
 
23223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23224
 
23225
      static {
23226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23227
          byName.put(field.getFieldName(), field);
23228
        }
23229
      }
23230
 
23231
      /**
23232
       * Find the _Fields constant that matches fieldId, or null if its not found.
23233
       */
23234
      public static _Fields findByThriftId(int fieldId) {
23235
        switch(fieldId) {
23236
          case 1: // ORDER_ID
23237
            return ORDER_ID;
23238
          default:
23239
            return null;
23240
        }
23241
      }
23242
 
23243
      /**
23244
       * Find the _Fields constant that matches fieldId, throwing an exception
23245
       * if it is not found.
23246
       */
23247
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23248
        _Fields fields = findByThriftId(fieldId);
23249
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23250
        return fields;
23251
      }
23252
 
23253
      /**
23254
       * Find the _Fields constant that matches name, or null if its not found.
23255
       */
23256
      public static _Fields findByName(String name) {
23257
        return byName.get(name);
23258
      }
23259
 
23260
      private final short _thriftId;
23261
      private final String _fieldName;
23262
 
23263
      _Fields(short thriftId, String fieldName) {
23264
        _thriftId = thriftId;
23265
        _fieldName = fieldName;
23266
      }
23267
 
23268
      public short getThriftFieldId() {
23269
        return _thriftId;
23270
      }
23271
 
23272
      public String getFieldName() {
23273
        return _fieldName;
23274
      }
23275
    }
23276
 
23277
    // isset id assignments
23278
    private static final int __ORDERID_ISSET_ID = 0;
23279
    private BitSet __isset_bit_vector = new BitSet(1);
23280
 
23281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23282
    static {
23283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23284
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
23288
    }
23289
 
23290
    public getOrderDeliveryMail_args() {
23291
    }
23292
 
23293
    public getOrderDeliveryMail_args(
23294
      long orderId)
23295
    {
23296
      this();
23297
      this.orderId = orderId;
23298
      setOrderIdIsSet(true);
23299
    }
23300
 
23301
    /**
23302
     * Performs a deep copy on <i>other</i>.
23303
     */
23304
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
23305
      __isset_bit_vector.clear();
23306
      __isset_bit_vector.or(other.__isset_bit_vector);
23307
      this.orderId = other.orderId;
23308
    }
23309
 
23310
    public getOrderDeliveryMail_args deepCopy() {
23311
      return new getOrderDeliveryMail_args(this);
23312
    }
23313
 
23314
    @Override
23315
    public void clear() {
23316
      setOrderIdIsSet(false);
23317
      this.orderId = 0;
23318
    }
23319
 
23320
    public long getOrderId() {
23321
      return this.orderId;
23322
    }
23323
 
23324
    public void setOrderId(long orderId) {
23325
      this.orderId = orderId;
23326
      setOrderIdIsSet(true);
23327
    }
23328
 
23329
    public void unsetOrderId() {
23330
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23331
    }
23332
 
23333
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23334
    public boolean isSetOrderId() {
23335
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23336
    }
23337
 
23338
    public void setOrderIdIsSet(boolean value) {
23339
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23340
    }
23341
 
23342
    public void setFieldValue(_Fields field, Object value) {
23343
      switch (field) {
23344
      case ORDER_ID:
23345
        if (value == null) {
23346
          unsetOrderId();
23347
        } else {
23348
          setOrderId((Long)value);
23349
        }
23350
        break;
23351
 
23352
      }
23353
    }
23354
 
23355
    public Object getFieldValue(_Fields field) {
23356
      switch (field) {
23357
      case ORDER_ID:
23358
        return Long.valueOf(getOrderId());
23359
 
23360
      }
23361
      throw new IllegalStateException();
23362
    }
23363
 
23364
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23365
    public boolean isSet(_Fields field) {
23366
      if (field == null) {
23367
        throw new IllegalArgumentException();
23368
      }
23369
 
23370
      switch (field) {
23371
      case ORDER_ID:
23372
        return isSetOrderId();
23373
      }
23374
      throw new IllegalStateException();
23375
    }
23376
 
23377
    @Override
23378
    public boolean equals(Object that) {
23379
      if (that == null)
23380
        return false;
23381
      if (that instanceof getOrderDeliveryMail_args)
23382
        return this.equals((getOrderDeliveryMail_args)that);
23383
      return false;
23384
    }
23385
 
23386
    public boolean equals(getOrderDeliveryMail_args that) {
23387
      if (that == null)
23388
        return false;
23389
 
23390
      boolean this_present_orderId = true;
23391
      boolean that_present_orderId = true;
23392
      if (this_present_orderId || that_present_orderId) {
23393
        if (!(this_present_orderId && that_present_orderId))
23394
          return false;
23395
        if (this.orderId != that.orderId)
23396
          return false;
23397
      }
23398
 
23399
      return true;
23400
    }
23401
 
23402
    @Override
23403
    public int hashCode() {
23404
      return 0;
23405
    }
23406
 
23407
    public int compareTo(getOrderDeliveryMail_args other) {
23408
      if (!getClass().equals(other.getClass())) {
23409
        return getClass().getName().compareTo(other.getClass().getName());
23410
      }
23411
 
23412
      int lastComparison = 0;
23413
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
23414
 
23415
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23416
      if (lastComparison != 0) {
23417
        return lastComparison;
23418
      }
23419
      if (isSetOrderId()) {
23420
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23421
        if (lastComparison != 0) {
23422
          return lastComparison;
23423
        }
23424
      }
23425
      return 0;
23426
    }
23427
 
23428
    public _Fields fieldForId(int fieldId) {
23429
      return _Fields.findByThriftId(fieldId);
23430
    }
23431
 
23432
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23433
      org.apache.thrift.protocol.TField field;
23434
      iprot.readStructBegin();
23435
      while (true)
23436
      {
23437
        field = iprot.readFieldBegin();
23438
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23439
          break;
23440
        }
23441
        switch (field.id) {
23442
          case 1: // ORDER_ID
23443
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23444
              this.orderId = iprot.readI64();
23445
              setOrderIdIsSet(true);
23446
            } else { 
23447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23448
            }
23449
            break;
23450
          default:
23451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23452
        }
23453
        iprot.readFieldEnd();
23454
      }
23455
      iprot.readStructEnd();
23456
      validate();
23457
    }
23458
 
23459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23460
      validate();
23461
 
23462
      oprot.writeStructBegin(STRUCT_DESC);
23463
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23464
      oprot.writeI64(this.orderId);
23465
      oprot.writeFieldEnd();
23466
      oprot.writeFieldStop();
23467
      oprot.writeStructEnd();
23468
    }
23469
 
23470
    @Override
23471
    public String toString() {
23472
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
23473
      boolean first = true;
23474
 
23475
      sb.append("orderId:");
23476
      sb.append(this.orderId);
23477
      first = false;
23478
      sb.append(")");
23479
      return sb.toString();
23480
    }
23481
 
23482
    public void validate() throws org.apache.thrift.TException {
23483
      // check for required fields
23484
    }
23485
 
23486
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23487
      try {
23488
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23489
      } catch (org.apache.thrift.TException te) {
23490
        throw new java.io.IOException(te);
23491
      }
23492
    }
23493
 
23494
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23495
      try {
23496
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23497
        __isset_bit_vector = new BitSet(1);
23498
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23499
      } catch (org.apache.thrift.TException te) {
23500
        throw new java.io.IOException(te);
23501
      }
23502
    }
23503
 
23504
  }
23505
 
23506
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
23507
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
23508
 
23509
    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);
23510
 
23511
    private String success; // required
23512
 
23513
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23514
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23515
      SUCCESS((short)0, "success");
23516
 
23517
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23518
 
23519
      static {
23520
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23521
          byName.put(field.getFieldName(), field);
23522
        }
23523
      }
23524
 
23525
      /**
23526
       * Find the _Fields constant that matches fieldId, or null if its not found.
23527
       */
23528
      public static _Fields findByThriftId(int fieldId) {
23529
        switch(fieldId) {
23530
          case 0: // SUCCESS
23531
            return SUCCESS;
23532
          default:
23533
            return null;
23534
        }
23535
      }
23536
 
23537
      /**
23538
       * Find the _Fields constant that matches fieldId, throwing an exception
23539
       * if it is not found.
23540
       */
23541
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23542
        _Fields fields = findByThriftId(fieldId);
23543
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23544
        return fields;
23545
      }
23546
 
23547
      /**
23548
       * Find the _Fields constant that matches name, or null if its not found.
23549
       */
23550
      public static _Fields findByName(String name) {
23551
        return byName.get(name);
23552
      }
23553
 
23554
      private final short _thriftId;
23555
      private final String _fieldName;
23556
 
23557
      _Fields(short thriftId, String fieldName) {
23558
        _thriftId = thriftId;
23559
        _fieldName = fieldName;
23560
      }
23561
 
23562
      public short getThriftFieldId() {
23563
        return _thriftId;
23564
      }
23565
 
23566
      public String getFieldName() {
23567
        return _fieldName;
23568
      }
23569
    }
23570
 
23571
    // isset id assignments
23572
 
23573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23574
    static {
23575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23576
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23577
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23578
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23579
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
23580
    }
23581
 
23582
    public getOrderDeliveryMail_result() {
23583
    }
23584
 
23585
    public getOrderDeliveryMail_result(
23586
      String success)
23587
    {
23588
      this();
23589
      this.success = success;
23590
    }
23591
 
23592
    /**
23593
     * Performs a deep copy on <i>other</i>.
23594
     */
23595
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
23596
      if (other.isSetSuccess()) {
23597
        this.success = other.success;
23598
      }
23599
    }
23600
 
23601
    public getOrderDeliveryMail_result deepCopy() {
23602
      return new getOrderDeliveryMail_result(this);
23603
    }
23604
 
23605
    @Override
23606
    public void clear() {
23607
      this.success = null;
23608
    }
23609
 
23610
    public String getSuccess() {
23611
      return this.success;
23612
    }
23613
 
23614
    public void setSuccess(String success) {
23615
      this.success = success;
23616
    }
23617
 
23618
    public void unsetSuccess() {
23619
      this.success = null;
23620
    }
23621
 
23622
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23623
    public boolean isSetSuccess() {
23624
      return this.success != null;
23625
    }
23626
 
23627
    public void setSuccessIsSet(boolean value) {
23628
      if (!value) {
23629
        this.success = null;
23630
      }
23631
    }
23632
 
23633
    public void setFieldValue(_Fields field, Object value) {
23634
      switch (field) {
23635
      case SUCCESS:
23636
        if (value == null) {
23637
          unsetSuccess();
23638
        } else {
23639
          setSuccess((String)value);
23640
        }
23641
        break;
23642
 
23643
      }
23644
    }
23645
 
23646
    public Object getFieldValue(_Fields field) {
23647
      switch (field) {
23648
      case SUCCESS:
23649
        return getSuccess();
23650
 
23651
      }
23652
      throw new IllegalStateException();
23653
    }
23654
 
23655
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23656
    public boolean isSet(_Fields field) {
23657
      if (field == null) {
23658
        throw new IllegalArgumentException();
23659
      }
23660
 
23661
      switch (field) {
23662
      case SUCCESS:
23663
        return isSetSuccess();
23664
      }
23665
      throw new IllegalStateException();
23666
    }
23667
 
23668
    @Override
23669
    public boolean equals(Object that) {
23670
      if (that == null)
23671
        return false;
23672
      if (that instanceof getOrderDeliveryMail_result)
23673
        return this.equals((getOrderDeliveryMail_result)that);
23674
      return false;
23675
    }
23676
 
23677
    public boolean equals(getOrderDeliveryMail_result that) {
23678
      if (that == null)
23679
        return false;
23680
 
23681
      boolean this_present_success = true && this.isSetSuccess();
23682
      boolean that_present_success = true && that.isSetSuccess();
23683
      if (this_present_success || that_present_success) {
23684
        if (!(this_present_success && that_present_success))
23685
          return false;
23686
        if (!this.success.equals(that.success))
23687
          return false;
23688
      }
23689
 
23690
      return true;
23691
    }
23692
 
23693
    @Override
23694
    public int hashCode() {
23695
      return 0;
23696
    }
23697
 
23698
    public int compareTo(getOrderDeliveryMail_result other) {
23699
      if (!getClass().equals(other.getClass())) {
23700
        return getClass().getName().compareTo(other.getClass().getName());
23701
      }
23702
 
23703
      int lastComparison = 0;
23704
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
23705
 
23706
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23707
      if (lastComparison != 0) {
23708
        return lastComparison;
23709
      }
23710
      if (isSetSuccess()) {
23711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23712
        if (lastComparison != 0) {
23713
          return lastComparison;
23714
        }
23715
      }
23716
      return 0;
23717
    }
23718
 
23719
    public _Fields fieldForId(int fieldId) {
23720
      return _Fields.findByThriftId(fieldId);
23721
    }
23722
 
23723
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23724
      org.apache.thrift.protocol.TField field;
23725
      iprot.readStructBegin();
23726
      while (true)
23727
      {
23728
        field = iprot.readFieldBegin();
23729
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23730
          break;
23731
        }
23732
        switch (field.id) {
23733
          case 0: // SUCCESS
23734
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23735
              this.success = iprot.readString();
23736
            } else { 
23737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23738
            }
23739
            break;
23740
          default:
23741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23742
        }
23743
        iprot.readFieldEnd();
23744
      }
23745
      iprot.readStructEnd();
23746
      validate();
23747
    }
23748
 
23749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23750
      oprot.writeStructBegin(STRUCT_DESC);
23751
 
23752
      if (this.isSetSuccess()) {
23753
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23754
        oprot.writeString(this.success);
23755
        oprot.writeFieldEnd();
23756
      }
23757
      oprot.writeFieldStop();
23758
      oprot.writeStructEnd();
23759
    }
23760
 
23761
    @Override
23762
    public String toString() {
23763
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
23764
      boolean first = true;
23765
 
23766
      sb.append("success:");
23767
      if (this.success == null) {
23768
        sb.append("null");
23769
      } else {
23770
        sb.append(this.success);
23771
      }
23772
      first = false;
23773
      sb.append(")");
23774
      return sb.toString();
23775
    }
23776
 
23777
    public void validate() throws org.apache.thrift.TException {
23778
      // check for required fields
23779
    }
23780
 
23781
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23782
      try {
23783
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23784
      } catch (org.apache.thrift.TException te) {
23785
        throw new java.io.IOException(te);
23786
      }
23787
    }
23788
 
23789
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23790
      try {
23791
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23792
      } catch (org.apache.thrift.TException te) {
23793
        throw new java.io.IOException(te);
23794
      }
23795
    }
23796
 
23797
  }
23798
 
352 ashish 23799
}