Subversion Repositories SmartDukaan

Rev

Rev 8020 | Rev 12256 | 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
8020 rajveer 38
     * @param sourceId
2779 chandransh 39
     */
8020 rajveer 40
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 41
 
2779 chandransh 42
    /**
43
     * Retreives all the emails pending for dispatch
44
     */
3430 rajveer 45
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 46
 
2779 chandransh 47
    /**
48
     * Marks email as sent after successful dispatch
49
     * 
50
     * @param emailId
51
     */
3430 rajveer 52
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 53
 
3430 rajveer 54
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 55
 
3430 rajveer 56
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 57
 
3430 rajveer 58
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 59
 
3430 rajveer 60
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 61
 
3430 rajveer 62
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 63
 
3430 rajveer 64
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 65
 
3430 rajveer 66
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 67
 
3430 rajveer 68
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 69
 
750 chandransh 70
    /**
2443 chandransh 71
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
72
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 73
     * 
74
     * @param username
75
     * @param password
76
     */
3430 rajveer 77
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 78
 
2443 chandransh 79
    /**
80
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
81
     * 
82
     * @param username
83
     * @param oldPassword
84
     * @param newPassword
85
     */
3430 rajveer 86
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 87
 
750 chandransh 88
    /**
89
     * Returns the LogisticsUser struct associated with the given username and password if they match.
90
     * Throws an exception otherwise.
91
     * 
92
     * @param username
93
     * @param password
94
     */
3430 rajveer 95
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 96
 
1611 ankur.sing 97
    /**
98
     * Returns the StatisticsUser struct associated with the given username and password if they match.
99
     * Throws an exception otherwise.
100
     * 
101
     * @param username
102
     * @param password
103
     */
3430 rajveer 104
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 105
 
1891 ankur.sing 106
    /**
107
     * Returns the ReportUser struct associated with the given username and password if they match.
108
     * Throws an exception otherwise.
109
     * 
110
     * @param username
111
     * @param password
112
     */
3430 rajveer 113
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 114
 
115
    /**
116
     * Returns list of reports which are configured for the given role.
117
     * 
118
     * @param role
119
     */
3430 rajveer 120
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 121
 
2024 ankur.sing 122
    /**
2357 ankur.sing 123
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 124
     * Throws an exception otherwise.
125
     * 
126
     * @param username
127
     * @param password
128
     */
6788 rajveer 129
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 130
 
4544 varun.gupt 131
    /**
132
     * Saves the list of entity Ids to be shared with an email address
133
     * 
134
     * @param entityIds
135
     * @param email
136
     */
137
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
138
 
4693 mandeep.dh 139
    public List<Agent> getAgents() throws org.apache.thrift.TException;
140
 
141
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
142
 
143
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
144
 
145
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
146
 
147
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
148
 
4806 varun.gupt 149
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
150
 
151
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
152
 
4996 varun.gupt 153
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
154
 
5055 varun.gupt 155
    /**
156
     * Returns a list of emails to which product notifications have been sent in a given date range
157
     * 
158
     * @param startDatetime
159
     * @param endDatetime
160
     */
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
162
 
6322 amar.kumar 163
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
164
 
7221 kshitij.so 165
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
166
 
7410 amar.kumar 167
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;
168
 
352 ashish 169
  }
170
 
3430 rajveer 171
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
172
 
8020 rajveer 173
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 174
 
175
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
176
 
177
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
178
 
179
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
180
 
181
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
182
 
183
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
184
 
185
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
186
 
187
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
188
 
189
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
190
 
191
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
192
 
193
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
194
 
195
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
196
 
197
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
206
 
6788 rajveer 207
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 208
 
4544 varun.gupt 209
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
210
 
4693 mandeep.dh 211
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
218
 
219
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
220
 
4806 varun.gupt 221
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
222
 
223
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
224
 
4996 varun.gupt 225
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
226
 
5055 varun.gupt 227
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
228
 
6322 amar.kumar 229
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
230
 
7221 kshitij.so 231
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
232
 
7410 amar.kumar 233
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
234
 
3430 rajveer 235
  }
236
 
3374 rajveer 237
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 238
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
239
      public Factory() {}
240
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
241
        return new Client(prot);
242
      }
243
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
244
        return new Client(iprot, oprot);
245
      }
246
    }
247
 
248
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 249
    {
3430 rajveer 250
      super(prot, prot);
352 ashish 251
    }
252
 
3430 rajveer 253
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 254
      super(iprot, oprot);
352 ashish 255
    }
256
 
8020 rajveer 257
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 258
    {
8020 rajveer 259
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);
3206 mandeep.dh 260
      return recv_saveUserEmailForSending();
1395 varun.gupt 261
    }
262
 
8020 rajveer 263
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws org.apache.thrift.TException
1395 varun.gupt 264
    {
265
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 266
      args.setEmailTo(emailTo);
267
      args.setEmailFrom(emailFrom);
268
      args.setSubject(subject);
269
      args.setBody(body);
270
      args.setSource(source);
271
      args.setEmailType(emailType);
5864 rajveer 272
      args.setCc(cc);
273
      args.setBcc(bcc);
8020 rajveer 274
      args.setSourceId(sourceId);
3430 rajveer 275
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 276
    }
277
 
3430 rajveer 278
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 279
    {
280
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 281
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 282
      if (result.isSetSuccess()) {
283
        return result.success;
284
      }
1395 varun.gupt 285
      if (result.se != null) {
286
        throw result.se;
287
      }
3430 rajveer 288
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 289
    }
290
 
3430 rajveer 291
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 292
    {
3086 rajveer 293
      send_getEmailsToBeSent();
1422 varun.gupt 294
      return recv_getEmailsToBeSent();
295
    }
296
 
3430 rajveer 297
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 298
    {
299
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 300
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 301
    }
302
 
3430 rajveer 303
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 304
    {
305
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 306
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 307
      if (result.isSetSuccess()) {
308
        return result.success;
309
      }
310
      if (result.se != null) {
311
        throw result.se;
312
      }
3430 rajveer 313
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 314
    }
315
 
3430 rajveer 316
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 317
    {
318
      send_markEmailAsSent(emailId);
319
      recv_markEmailAsSent();
320
    }
321
 
3430 rajveer 322
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 323
    {
324
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 325
      args.setEmailId(emailId);
326
      sendBase("markEmailAsSent", args);
1422 varun.gupt 327
    }
328
 
3430 rajveer 329
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 330
    {
331
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 332
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 333
      if (result.se != null) {
334
        throw result.se;
335
      }
336
      return;
337
    }
338
 
3430 rajveer 339
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 340
    {
341
      send_sendMail(mail);
342
      recv_sendMail();
343
    }
344
 
3430 rajveer 345
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 346
    {
347
      sendMail_args args = new sendMail_args();
3430 rajveer 348
      args.setMail(mail);
349
      sendBase("sendMail", args);
352 ashish 350
    }
351
 
3430 rajveer 352
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 353
    {
354
      sendMail_result result = new sendMail_result();
3430 rajveer 355
      receiveBase(result, "sendMail");
352 ashish 356
      if (result.se != null) {
357
        throw result.se;
358
      }
359
      return;
360
    }
361
 
3430 rajveer 362
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 363
    {
364
      send_sendText(message);
365
      recv_sendText();
366
    }
367
 
3430 rajveer 368
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 369
    {
370
      sendText_args args = new sendText_args();
3430 rajveer 371
      args.setMessage(message);
372
      sendBase("sendText", args);
352 ashish 373
    }
374
 
3430 rajveer 375
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 376
    {
377
      sendText_result result = new sendText_result();
3430 rajveer 378
      receiveBase(result, "sendText");
352 ashish 379
      if (result.se != null) {
380
        throw result.se;
381
      }
382
      return;
383
    }
384
 
3430 rajveer 385
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 386
    {
387
      send_addMessage(message);
388
      recv_addMessage();
389
    }
390
 
3430 rajveer 391
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 392
    {
393
      addMessage_args args = new addMessage_args();
3430 rajveer 394
      args.setMessage(message);
395
      sendBase("addMessage", args);
352 ashish 396
    }
397
 
3430 rajveer 398
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 399
    {
400
      addMessage_result result = new addMessage_result();
3430 rajveer 401
      receiveBase(result, "addMessage");
352 ashish 402
      if (result.se != null) {
403
        throw result.se;
404
      }
405
      return;
406
    }
407
 
3430 rajveer 408
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 409
    {
410
      send_updateMessage(id, message);
411
      recv_updateMessage();
412
    }
413
 
3430 rajveer 414
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 415
    {
416
      updateMessage_args args = new updateMessage_args();
3430 rajveer 417
      args.setId(id);
418
      args.setMessage(message);
419
      sendBase("updateMessage", args);
352 ashish 420
    }
421
 
3430 rajveer 422
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 423
    {
424
      updateMessage_result result = new updateMessage_result();
3430 rajveer 425
      receiveBase(result, "updateMessage");
352 ashish 426
      if (result.se != null) {
427
        throw result.se;
428
      }
429
      return;
430
    }
431
 
3430 rajveer 432
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 433
    {
434
      send_getMessage(id);
435
      return recv_getMessage();
436
    }
437
 
3430 rajveer 438
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 439
    {
440
      getMessage_args args = new getMessage_args();
3430 rajveer 441
      args.setId(id);
442
      sendBase("getMessage", args);
352 ashish 443
    }
444
 
3430 rajveer 445
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 446
    {
447
      getMessage_result result = new getMessage_result();
3430 rajveer 448
      receiveBase(result, "getMessage");
352 ashish 449
      if (result.isSetSuccess()) {
450
        return result.success;
451
      }
452
      if (result.se != null) {
453
        throw result.se;
454
      }
3430 rajveer 455
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 456
    }
457
 
3430 rajveer 458
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 459
    {
460
      send_getSubstitutedMessage(id, params);
461
      return recv_getSubstitutedMessage();
462
    }
463
 
3430 rajveer 464
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 465
    {
466
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 467
      args.setId(id);
468
      args.setParams(params);
469
      sendBase("getSubstitutedMessage", args);
352 ashish 470
    }
471
 
3430 rajveer 472
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 473
    {
474
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 475
      receiveBase(result, "getSubstitutedMessage");
352 ashish 476
      if (result.isSetSuccess()) {
477
        return result.success;
478
      }
479
      if (result.se != null) {
480
        throw result.se;
481
      }
3430 rajveer 482
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 483
    }
484
 
3430 rajveer 485
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 486
    {
487
      send_addUser(username, password, warehouseId);
488
      return recv_addUser();
489
    }
490
 
3430 rajveer 491
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 492
    {
493
      addUser_args args = new addUser_args();
3430 rajveer 494
      args.setUsername(username);
495
      args.setPassword(password);
496
      args.setWarehouseId(warehouseId);
497
      sendBase("addUser", args);
495 rajveer 498
    }
499
 
3430 rajveer 500
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 501
    {
502
      addUser_result result = new addUser_result();
3430 rajveer 503
      receiveBase(result, "addUser");
495 rajveer 504
      if (result.isSetSuccess()) {
505
        return result.success;
506
      }
507
      if (result.se != null) {
508
        throw result.se;
509
      }
3430 rajveer 510
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 511
    }
512
 
3430 rajveer 513
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 514
    {
515
      send_deleteUser(username);
516
      return recv_deleteUser();
517
    }
518
 
3430 rajveer 519
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 520
    {
521
      deleteUser_args args = new deleteUser_args();
3430 rajveer 522
      args.setUsername(username);
523
      sendBase("deleteUser", args);
495 rajveer 524
    }
525
 
3430 rajveer 526
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 527
    {
528
      deleteUser_result result = new deleteUser_result();
3430 rajveer 529
      receiveBase(result, "deleteUser");
495 rajveer 530
      if (result.isSetSuccess()) {
531
        return result.success;
532
      }
533
      if (result.se != null) {
534
        throw result.se;
535
      }
3430 rajveer 536
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 537
    }
538
 
3430 rajveer 539
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 540
    {
2443 chandransh 541
      send_authenticateDashboardUser(username, password);
542
      return recv_authenticateDashboardUser();
495 rajveer 543
    }
544
 
3430 rajveer 545
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 546
    {
2443 chandransh 547
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 548
      args.setUsername(username);
549
      args.setPassword(password);
550
      sendBase("authenticateDashboardUser", args);
495 rajveer 551
    }
552
 
3430 rajveer 553
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 554
    {
2443 chandransh 555
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 556
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 557
      if (result.isSetSuccess()) {
558
        return result.success;
559
      }
560
      if (result.se != null) {
561
        throw result.se;
562
      }
3430 rajveer 563
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 564
    }
565
 
3430 rajveer 566
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 567
    {
568
      send_updatePassword(username, oldPassword, newPassword);
569
      return recv_updatePassword();
570
    }
571
 
3430 rajveer 572
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 573
    {
574
      updatePassword_args args = new updatePassword_args();
3430 rajveer 575
      args.setUsername(username);
576
      args.setOldPassword(oldPassword);
577
      args.setNewPassword(newPassword);
578
      sendBase("updatePassword", args);
495 rajveer 579
    }
580
 
3430 rajveer 581
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 582
    {
583
      updatePassword_result result = new updatePassword_result();
3430 rajveer 584
      receiveBase(result, "updatePassword");
495 rajveer 585
      if (result.isSetSuccess()) {
586
        return result.success;
587
      }
588
      if (result.se != null) {
589
        throw result.se;
590
      }
3430 rajveer 591
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 592
    }
593
 
3430 rajveer 594
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 595
    {
596
      send_authenticateLogisticsUser(username, password);
597
      return recv_authenticateLogisticsUser();
598
    }
599
 
3430 rajveer 600
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 601
    {
602
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 603
      args.setUsername(username);
604
      args.setPassword(password);
605
      sendBase("authenticateLogisticsUser", args);
750 chandransh 606
    }
607
 
3430 rajveer 608
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 609
    {
610
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 611
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 612
      if (result.isSetSuccess()) {
613
        return result.success;
614
      }
615
      if (result.hse != null) {
616
        throw result.hse;
617
      }
3430 rajveer 618
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 619
    }
620
 
3430 rajveer 621
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 622
    {
623
      send_authenticateStatisticsUser(username, password);
624
      return recv_authenticateStatisticsUser();
625
    }
626
 
3430 rajveer 627
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 628
    {
629
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 630
      args.setUsername(username);
631
      args.setPassword(password);
632
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 633
    }
634
 
3430 rajveer 635
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 636
    {
637
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 638
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 639
      if (result.isSetSuccess()) {
640
        return result.success;
641
      }
642
      if (result.hse != null) {
643
        throw result.hse;
644
      }
3430 rajveer 645
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 646
    }
647
 
3430 rajveer 648
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 649
    {
650
      send_authenticateReportUser(username, password);
651
      return recv_authenticateReportUser();
652
    }
653
 
3430 rajveer 654
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 655
    {
656
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 657
      args.setUsername(username);
658
      args.setPassword(password);
659
      sendBase("authenticateReportUser", args);
1891 ankur.sing 660
    }
661
 
3430 rajveer 662
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 663
    {
664
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 665
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 666
      if (result.isSetSuccess()) {
667
        return result.success;
668
      }
669
      if (result.hse != null) {
670
        throw result.hse;
671
      }
3430 rajveer 672
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 673
    }
674
 
3430 rajveer 675
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 676
    {
677
      send_getReports(role);
678
      return recv_getReports();
679
    }
680
 
3430 rajveer 681
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 682
    {
683
      getReports_args args = new getReports_args();
3430 rajveer 684
      args.setRole(role);
685
      sendBase("getReports", args);
1891 ankur.sing 686
    }
687
 
3430 rajveer 688
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 689
    {
690
      getReports_result result = new getReports_result();
3430 rajveer 691
      receiveBase(result, "getReports");
1891 ankur.sing 692
      if (result.isSetSuccess()) {
693
        return result.success;
694
      }
3430 rajveer 695
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 696
    }
697
 
6788 rajveer 698
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 699
    {
6788 rajveer 700
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 701
      return recv_authenticateCatalogUser();
702
    }
703
 
6788 rajveer 704
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 705
    {
706
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 707
      args.setUsername(username);
708
      args.setPassword(password);
709
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 710
    }
711
 
3430 rajveer 712
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 713
    {
714
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 715
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 716
      if (result.isSetSuccess()) {
717
        return result.success;
718
      }
719
      if (result.hse != null) {
720
        throw result.hse;
721
      }
3430 rajveer 722
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 723
    }
724
 
4544 varun.gupt 725
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
726
    {
727
      send_shareEntities(entityIds, email);
728
      recv_shareEntities();
729
    }
730
 
731
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
732
    {
733
      shareEntities_args args = new shareEntities_args();
734
      args.setEntityIds(entityIds);
735
      args.setEmail(email);
736
      sendBase("shareEntities", args);
737
    }
738
 
739
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
740
    {
741
      shareEntities_result result = new shareEntities_result();
742
      receiveBase(result, "shareEntities");
743
      if (result.hse != null) {
744
        throw result.hse;
745
      }
746
      return;
747
    }
748
 
4693 mandeep.dh 749
    public List<Agent> getAgents() throws org.apache.thrift.TException
750
    {
751
      send_getAgents();
752
      return recv_getAgents();
753
    }
754
 
755
    public void send_getAgents() throws org.apache.thrift.TException
756
    {
757
      getAgents_args args = new getAgents_args();
758
      sendBase("getAgents", args);
759
    }
760
 
761
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
762
    {
763
      getAgents_result result = new getAgents_result();
764
      receiveBase(result, "getAgents");
765
      if (result.isSetSuccess()) {
766
        return result.success;
767
      }
768
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
769
    }
770
 
771
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
772
    {
773
      send_validateLogIn(emailId, password);
774
      return recv_validateLogIn();
775
    }
776
 
777
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
778
    {
779
      validateLogIn_args args = new validateLogIn_args();
780
      args.setEmailId(emailId);
781
      args.setPassword(password);
782
      sendBase("validateLogIn", args);
783
    }
784
 
785
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
786
    {
787
      validateLogIn_result result = new validateLogIn_result();
788
      receiveBase(result, "validateLogIn");
789
      if (result.isSetSuccess()) {
790
        return result.success;
791
      }
792
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
793
    }
794
 
795
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
796
    {
797
      send_updatePasswordForAgent(agentEmailId, password);
798
      recv_updatePasswordForAgent();
799
    }
800
 
801
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
802
    {
803
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
804
      args.setAgentEmailId(agentEmailId);
805
      args.setPassword(password);
806
      sendBase("updatePasswordForAgent", args);
807
    }
808
 
809
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
810
    {
811
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
812
      receiveBase(result, "updatePasswordForAgent");
813
      return;
814
    }
815
 
816
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
817
    {
818
      send_getRoleNamesForAgent(agentEmailId);
819
      return recv_getRoleNamesForAgent();
820
    }
821
 
822
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
823
    {
824
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
825
      args.setAgentEmailId(agentEmailId);
826
      sendBase("getRoleNamesForAgent", args);
827
    }
828
 
829
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
830
    {
831
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
832
      receiveBase(result, "getRoleNamesForAgent");
833
      if (result.isSetSuccess()) {
834
        return result.success;
835
      }
836
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
837
    }
838
 
839
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
840
    {
841
      send_getPermissionsForRoleName(roleName);
842
      return recv_getPermissionsForRoleName();
843
    }
844
 
845
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
846
    {
847
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
848
      args.setRoleName(roleName);
849
      sendBase("getPermissionsForRoleName", args);
850
    }
851
 
852
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
853
    {
854
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
855
      receiveBase(result, "getPermissionsForRoleName");
856
      if (result.isSetSuccess()) {
857
        return result.success;
858
      }
859
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
860
    }
861
 
4806 varun.gupt 862
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
863
    {
864
      send_saveQuickLink(url, text);
865
      recv_saveQuickLink();
866
    }
867
 
868
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
869
    {
870
      saveQuickLink_args args = new saveQuickLink_args();
871
      args.setUrl(url);
872
      args.setText(text);
873
      sendBase("saveQuickLink", args);
874
    }
875
 
876
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
877
    {
878
      saveQuickLink_result result = new saveQuickLink_result();
879
      receiveBase(result, "saveQuickLink");
880
      if (result.hse != null) {
881
        throw result.hse;
882
      }
883
      return;
884
    }
885
 
886
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
887
    {
888
      send_getQuickLinks();
889
      return recv_getQuickLinks();
890
    }
891
 
892
    public void send_getQuickLinks() throws org.apache.thrift.TException
893
    {
894
      getQuickLinks_args args = new getQuickLinks_args();
895
      sendBase("getQuickLinks", args);
896
    }
897
 
898
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
899
    {
900
      getQuickLinks_result result = new getQuickLinks_result();
901
      receiveBase(result, "getQuickLinks");
902
      if (result.isSetSuccess()) {
903
        return result.success;
904
      }
905
      if (result.hse != null) {
906
        throw result.hse;
907
      }
908
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
909
    }
910
 
4996 varun.gupt 911
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
912
    {
913
      send_updateQuickLink(id, url, text);
914
      recv_updateQuickLink();
915
    }
916
 
917
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
918
    {
919
      updateQuickLink_args args = new updateQuickLink_args();
920
      args.setId(id);
921
      args.setUrl(url);
922
      args.setText(text);
923
      sendBase("updateQuickLink", args);
924
    }
925
 
926
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
927
    {
928
      updateQuickLink_result result = new updateQuickLink_result();
929
      receiveBase(result, "updateQuickLink");
930
      if (result.hse != null) {
931
        throw result.hse;
932
      }
933
      return;
934
    }
935
 
5055 varun.gupt 936
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
937
    {
938
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
939
      return recv_getEmailsForNotificationsSent();
940
    }
941
 
942
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
943
    {
944
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
945
      args.setStartDatetime(startDatetime);
946
      args.setEndDatetime(endDatetime);
947
      sendBase("getEmailsForNotificationsSent", args);
948
    }
949
 
950
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
951
    {
952
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
953
      receiveBase(result, "getEmailsForNotificationsSent");
954
      if (result.isSetSuccess()) {
955
        return result.success;
956
      }
957
      if (result.hse != null) {
958
        throw result.hse;
959
      }
960
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
961
    }
962
 
6322 amar.kumar 963
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
964
    {
965
      send_getOrderConfirmationMail(orderId);
966
      return recv_getOrderConfirmationMail();
967
    }
968
 
969
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
970
    {
971
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
972
      args.setOrderId(orderId);
973
      sendBase("getOrderConfirmationMail", args);
974
    }
975
 
976
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
977
    {
978
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
979
      receiveBase(result, "getOrderConfirmationMail");
980
      if (result.isSetSuccess()) {
981
        return result.success;
982
      }
983
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
984
    }
985
 
7221 kshitij.so 986
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
987
    {
988
      send_getOrderDeliveryMail(orderId);
989
      return recv_getOrderDeliveryMail();
990
    }
991
 
992
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
993
    {
994
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
995
      args.setOrderId(orderId);
996
      sendBase("getOrderDeliveryMail", args);
997
    }
998
 
999
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
1000
    {
1001
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
1002
      receiveBase(result, "getOrderDeliveryMail");
1003
      if (result.isSetSuccess()) {
1004
        return result.success;
1005
      }
1006
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1007
    }
1008
 
7410 amar.kumar 1009
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1010
    {
1011
      send_getWarehouseIdsForAgent(agentEmailId);
1012
      return recv_getWarehouseIdsForAgent();
1013
    }
1014
 
1015
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1016
    {
1017
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
1018
      args.setAgentEmailId(agentEmailId);
1019
      sendBase("getWarehouseIdsForAgent", args);
1020
    }
1021
 
1022
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
1023
    {
1024
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
1025
      receiveBase(result, "getWarehouseIdsForAgent");
1026
      if (result.isSetSuccess()) {
1027
        return result.success;
1028
      }
1029
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1030
    }
1031
 
352 ashish 1032
  }
3430 rajveer 1033
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1034
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1035
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1036
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1037
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1038
        this.clientManager = clientManager;
1039
        this.protocolFactory = protocolFactory;
1040
      }
1041
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1042
        return new AsyncClient(protocolFactory, clientManager, transport);
1043
      }
352 ashish 1044
    }
1045
 
3430 rajveer 1046
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1047
      super(protocolFactory, clientManager, transport);
1048
    }
352 ashish 1049
 
8020 rajveer 1050
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1051
      checkReady();
8020 rajveer 1052
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1053
      this.___currentMethod = method_call;
1054
      ___manager.call(method_call);
1055
    }
1056
 
1057
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1058
      private List<String> emailTo;
3430 rajveer 1059
      private String emailFrom;
1060
      private String subject;
1061
      private String body;
1062
      private String source;
1063
      private String emailType;
5864 rajveer 1064
      private List<String> cc;
1065
      private List<String> bcc;
8020 rajveer 1066
      private long sourceId;
1067
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, 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 1068
        super(client, protocolFactory, transport, resultHandler, false);
1069
        this.emailTo = emailTo;
1070
        this.emailFrom = emailFrom;
1071
        this.subject = subject;
1072
        this.body = body;
1073
        this.source = source;
1074
        this.emailType = emailType;
5864 rajveer 1075
        this.cc = cc;
1076
        this.bcc = bcc;
8020 rajveer 1077
        this.sourceId = sourceId;
352 ashish 1078
      }
3430 rajveer 1079
 
1080
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1081
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1082
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1083
        args.setEmailTo(emailTo);
1084
        args.setEmailFrom(emailFrom);
1085
        args.setSubject(subject);
1086
        args.setBody(body);
1087
        args.setSource(source);
1088
        args.setEmailType(emailType);
5864 rajveer 1089
        args.setCc(cc);
1090
        args.setBcc(bcc);
8020 rajveer 1091
        args.setSourceId(sourceId);
3430 rajveer 1092
        args.write(prot);
1093
        prot.writeMessageEnd();
1094
      }
1095
 
1096
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1098
          throw new IllegalStateException("Method call not finished!");
1099
        }
1100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1102
        return (new Client(prot)).recv_saveUserEmailForSending();
1103
      }
352 ashish 1104
    }
1105
 
3430 rajveer 1106
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1107
      checkReady();
1108
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1109
      this.___currentMethod = method_call;
1110
      ___manager.call(method_call);
1111
    }
1112
 
1113
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1114
      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 {
1115
        super(client, protocolFactory, transport, resultHandler, false);
1116
      }
1117
 
1118
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1119
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1120
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1121
        args.write(prot);
1122
        prot.writeMessageEnd();
1123
      }
1124
 
1125
      public List<UserEmail> 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
        return (new Client(prot)).recv_getEmailsToBeSent();
1132
      }
1133
    }
1134
 
1135
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1136
      checkReady();
1137
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1138
      this.___currentMethod = method_call;
1139
      ___manager.call(method_call);
1140
    }
1141
 
1142
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1143
      private long emailId;
1144
      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 {
1145
        super(client, protocolFactory, transport, resultHandler, false);
1146
        this.emailId = emailId;
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("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1151
        markEmailAsSent_args args = new markEmailAsSent_args();
1152
        args.setEmailId(emailId);
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_markEmailAsSent();
1164
      }
1165
    }
1166
 
1167
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1168
      checkReady();
1169
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1170
      this.___currentMethod = method_call;
1171
      ___manager.call(method_call);
1172
    }
1173
 
1174
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1175
      private Mail mail;
1176
      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 {
1177
        super(client, protocolFactory, transport, resultHandler, false);
1178
        this.mail = mail;
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("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1183
        sendMail_args args = new sendMail_args();
1184
        args.setMail(mail);
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_sendMail();
1196
      }
1197
    }
1198
 
1199
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1200
      checkReady();
1201
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1202
      this.___currentMethod = method_call;
1203
      ___manager.call(method_call);
1204
    }
1205
 
1206
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1207
      private TextMessage message;
1208
      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 {
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("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1215
        sendText_args args = new sendText_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_sendText();
1228
      }
1229
    }
1230
 
1231
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1232
      checkReady();
1233
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1234
      this.___currentMethod = method_call;
1235
      ___manager.call(method_call);
1236
    }
1237
 
1238
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1239
      private Message message;
1240
      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 {
1241
        super(client, protocolFactory, transport, resultHandler, false);
1242
        this.message = message;
1243
      }
1244
 
1245
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1246
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1247
        addMessage_args args = new addMessage_args();
1248
        args.setMessage(message);
1249
        args.write(prot);
1250
        prot.writeMessageEnd();
1251
      }
1252
 
1253
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1254
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1255
          throw new IllegalStateException("Method call not finished!");
1256
        }
1257
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1258
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1259
        (new Client(prot)).recv_addMessage();
1260
      }
1261
    }
1262
 
1263
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1264
      checkReady();
1265
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1266
      this.___currentMethod = method_call;
1267
      ___manager.call(method_call);
1268
    }
1269
 
1270
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1271
      private long id;
1272
      private String message;
1273
      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 {
1274
        super(client, protocolFactory, transport, resultHandler, false);
1275
        this.id = id;
1276
        this.message = message;
1277
      }
1278
 
1279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1281
        updateMessage_args args = new updateMessage_args();
1282
        args.setId(id);
1283
        args.setMessage(message);
1284
        args.write(prot);
1285
        prot.writeMessageEnd();
1286
      }
1287
 
1288
      public void 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
        (new Client(prot)).recv_updateMessage();
1295
      }
1296
    }
1297
 
1298
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1299
      checkReady();
1300
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1301
      this.___currentMethod = method_call;
1302
      ___manager.call(method_call);
1303
    }
1304
 
1305
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1306
      private long id;
1307
      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 {
1308
        super(client, protocolFactory, transport, resultHandler, false);
1309
        this.id = id;
1310
      }
1311
 
1312
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1313
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1314
        getMessage_args args = new getMessage_args();
1315
        args.setId(id);
1316
        args.write(prot);
1317
        prot.writeMessageEnd();
1318
      }
1319
 
1320
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1321
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1322
          throw new IllegalStateException("Method call not finished!");
1323
        }
1324
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1325
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1326
        return (new Client(prot)).recv_getMessage();
1327
      }
1328
    }
1329
 
1330
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1331
      checkReady();
1332
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1333
      this.___currentMethod = method_call;
1334
      ___manager.call(method_call);
1335
    }
1336
 
1337
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1338
      private long id;
1339
      private Map<String,String> params;
1340
      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 {
1341
        super(client, protocolFactory, transport, resultHandler, false);
1342
        this.id = id;
1343
        this.params = params;
1344
      }
1345
 
1346
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1347
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1348
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1349
        args.setId(id);
1350
        args.setParams(params);
1351
        args.write(prot);
1352
        prot.writeMessageEnd();
1353
      }
1354
 
1355
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1356
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1357
          throw new IllegalStateException("Method call not finished!");
1358
        }
1359
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1360
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1361
        return (new Client(prot)).recv_getSubstitutedMessage();
1362
      }
1363
    }
1364
 
1365
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1366
      checkReady();
1367
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1368
      this.___currentMethod = method_call;
1369
      ___manager.call(method_call);
1370
    }
1371
 
1372
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1373
      private String username;
1374
      private String password;
1375
      private long warehouseId;
1376
      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 {
1377
        super(client, protocolFactory, transport, resultHandler, false);
1378
        this.username = username;
1379
        this.password = password;
1380
        this.warehouseId = warehouseId;
1381
      }
1382
 
1383
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1384
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1385
        addUser_args args = new addUser_args();
1386
        args.setUsername(username);
1387
        args.setPassword(password);
1388
        args.setWarehouseId(warehouseId);
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_addUser();
1400
      }
1401
    }
1402
 
1403
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1404
      checkReady();
1405
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1406
      this.___currentMethod = method_call;
1407
      ___manager.call(method_call);
1408
    }
1409
 
1410
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1411
      private String username;
1412
      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 {
1413
        super(client, protocolFactory, transport, resultHandler, false);
1414
        this.username = username;
1415
      }
1416
 
1417
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1418
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1419
        deleteUser_args args = new deleteUser_args();
1420
        args.setUsername(username);
1421
        args.write(prot);
1422
        prot.writeMessageEnd();
1423
      }
1424
 
1425
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1426
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1427
          throw new IllegalStateException("Method call not finished!");
1428
        }
1429
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1430
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1431
        return (new Client(prot)).recv_deleteUser();
1432
      }
1433
    }
1434
 
1435
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1436
      checkReady();
1437
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1438
      this.___currentMethod = method_call;
1439
      ___manager.call(method_call);
1440
    }
1441
 
1442
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1443
      private String username;
1444
      private String password;
1445
      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 {
1446
        super(client, protocolFactory, transport, resultHandler, false);
1447
        this.username = username;
1448
        this.password = password;
1449
      }
1450
 
1451
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1452
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1453
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1454
        args.setUsername(username);
1455
        args.setPassword(password);
1456
        args.write(prot);
1457
        prot.writeMessageEnd();
1458
      }
1459
 
1460
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1461
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1462
          throw new IllegalStateException("Method call not finished!");
1463
        }
1464
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1465
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1466
        return (new Client(prot)).recv_authenticateDashboardUser();
1467
      }
1468
    }
1469
 
1470
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1471
      checkReady();
1472
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1473
      this.___currentMethod = method_call;
1474
      ___manager.call(method_call);
1475
    }
1476
 
1477
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1478
      private String username;
1479
      private String oldPassword;
1480
      private String newPassword;
1481
      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 {
1482
        super(client, protocolFactory, transport, resultHandler, false);
1483
        this.username = username;
1484
        this.oldPassword = oldPassword;
1485
        this.newPassword = newPassword;
1486
      }
1487
 
1488
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1489
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1490
        updatePassword_args args = new updatePassword_args();
1491
        args.setUsername(username);
1492
        args.setOldPassword(oldPassword);
1493
        args.setNewPassword(newPassword);
1494
        args.write(prot);
1495
        prot.writeMessageEnd();
1496
      }
1497
 
1498
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1500
          throw new IllegalStateException("Method call not finished!");
1501
        }
1502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1504
        return (new Client(prot)).recv_updatePassword();
1505
      }
1506
    }
1507
 
1508
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1509
      checkReady();
1510
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1511
      this.___currentMethod = method_call;
1512
      ___manager.call(method_call);
1513
    }
1514
 
1515
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1516
      private String username;
1517
      private String password;
1518
      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 {
1519
        super(client, protocolFactory, transport, resultHandler, false);
1520
        this.username = username;
1521
        this.password = password;
1522
      }
1523
 
1524
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1525
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1526
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1527
        args.setUsername(username);
1528
        args.setPassword(password);
1529
        args.write(prot);
1530
        prot.writeMessageEnd();
1531
      }
1532
 
1533
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1535
          throw new IllegalStateException("Method call not finished!");
1536
        }
1537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1539
        return (new Client(prot)).recv_authenticateLogisticsUser();
1540
      }
1541
    }
1542
 
1543
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1544
      checkReady();
1545
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1546
      this.___currentMethod = method_call;
1547
      ___manager.call(method_call);
1548
    }
1549
 
1550
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1551
      private String username;
1552
      private String password;
1553
      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 {
1554
        super(client, protocolFactory, transport, resultHandler, false);
1555
        this.username = username;
1556
        this.password = password;
1557
      }
1558
 
1559
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1560
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1561
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1562
        args.setUsername(username);
1563
        args.setPassword(password);
1564
        args.write(prot);
1565
        prot.writeMessageEnd();
1566
      }
1567
 
1568
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1569
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1570
          throw new IllegalStateException("Method call not finished!");
1571
        }
1572
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1573
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1574
        return (new Client(prot)).recv_authenticateStatisticsUser();
1575
      }
1576
    }
1577
 
1578
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1579
      checkReady();
1580
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1581
      this.___currentMethod = method_call;
1582
      ___manager.call(method_call);
1583
    }
1584
 
1585
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1586
      private String username;
1587
      private String password;
1588
      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 {
1589
        super(client, protocolFactory, transport, resultHandler, false);
1590
        this.username = username;
1591
        this.password = password;
1592
      }
1593
 
1594
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1595
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1596
        authenticateReportUser_args args = new authenticateReportUser_args();
1597
        args.setUsername(username);
1598
        args.setPassword(password);
1599
        args.write(prot);
1600
        prot.writeMessageEnd();
1601
      }
1602
 
1603
      public ReportUser getResult() throws HelperServiceException, 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_authenticateReportUser();
1610
      }
1611
    }
1612
 
1613
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1614
      checkReady();
1615
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1616
      this.___currentMethod = method_call;
1617
      ___manager.call(method_call);
1618
    }
1619
 
1620
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1621
      private long role;
1622
      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 {
1623
        super(client, protocolFactory, transport, resultHandler, false);
1624
        this.role = role;
1625
      }
1626
 
1627
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1628
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1629
        getReports_args args = new getReports_args();
1630
        args.setRole(role);
1631
        args.write(prot);
1632
        prot.writeMessageEnd();
1633
      }
1634
 
1635
      public List<Report> getResult() throws org.apache.thrift.TException {
1636
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1637
          throw new IllegalStateException("Method call not finished!");
1638
        }
1639
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1640
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1641
        return (new Client(prot)).recv_getReports();
1642
      }
1643
    }
1644
 
6788 rajveer 1645
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1646
      checkReady();
6788 rajveer 1647
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1648
      this.___currentMethod = method_call;
1649
      ___manager.call(method_call);
1650
    }
1651
 
1652
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1653
      private String username;
1654
      private String password;
6788 rajveer 1655
      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 1656
        super(client, protocolFactory, transport, resultHandler, false);
1657
        this.username = username;
1658
        this.password = password;
1659
      }
1660
 
1661
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1662
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1663
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1664
        args.setUsername(username);
1665
        args.setPassword(password);
1666
        args.write(prot);
1667
        prot.writeMessageEnd();
1668
      }
1669
 
1670
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1671
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1672
          throw new IllegalStateException("Method call not finished!");
1673
        }
1674
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1676
        return (new Client(prot)).recv_authenticateCatalogUser();
1677
      }
1678
    }
1679
 
4544 varun.gupt 1680
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1681
      checkReady();
1682
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1683
      this.___currentMethod = method_call;
1684
      ___manager.call(method_call);
1685
    }
1686
 
1687
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1688
      private List<Long> entityIds;
1689
      private String email;
1690
      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 {
1691
        super(client, protocolFactory, transport, resultHandler, false);
1692
        this.entityIds = entityIds;
1693
        this.email = email;
1694
      }
1695
 
1696
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1697
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1698
        shareEntities_args args = new shareEntities_args();
1699
        args.setEntityIds(entityIds);
1700
        args.setEmail(email);
1701
        args.write(prot);
1702
        prot.writeMessageEnd();
1703
      }
1704
 
1705
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1706
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1707
          throw new IllegalStateException("Method call not finished!");
1708
        }
1709
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1710
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1711
        (new Client(prot)).recv_shareEntities();
1712
      }
1713
    }
1714
 
4693 mandeep.dh 1715
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1716
      checkReady();
1717
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1718
      this.___currentMethod = method_call;
1719
      ___manager.call(method_call);
1720
    }
1721
 
1722
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1723
      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 {
1724
        super(client, protocolFactory, transport, resultHandler, false);
1725
      }
1726
 
1727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1729
        getAgents_args args = new getAgents_args();
1730
        args.write(prot);
1731
        prot.writeMessageEnd();
1732
      }
1733
 
1734
      public List<Agent> getResult() throws org.apache.thrift.TException {
1735
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1736
          throw new IllegalStateException("Method call not finished!");
1737
        }
1738
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1739
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1740
        return (new Client(prot)).recv_getAgents();
1741
      }
1742
    }
1743
 
1744
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1745
      checkReady();
1746
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1747
      this.___currentMethod = method_call;
1748
      ___manager.call(method_call);
1749
    }
1750
 
1751
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1752
      private String emailId;
1753
      private String password;
1754
      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 {
1755
        super(client, protocolFactory, transport, resultHandler, false);
1756
        this.emailId = emailId;
1757
        this.password = password;
1758
      }
1759
 
1760
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1761
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1762
        validateLogIn_args args = new validateLogIn_args();
1763
        args.setEmailId(emailId);
1764
        args.setPassword(password);
1765
        args.write(prot);
1766
        prot.writeMessageEnd();
1767
      }
1768
 
1769
      public boolean getResult() throws org.apache.thrift.TException {
1770
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1771
          throw new IllegalStateException("Method call not finished!");
1772
        }
1773
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1775
        return (new Client(prot)).recv_validateLogIn();
1776
      }
1777
    }
1778
 
1779
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1780
      checkReady();
1781
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1782
      this.___currentMethod = method_call;
1783
      ___manager.call(method_call);
1784
    }
1785
 
1786
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1787
      private String agentEmailId;
1788
      private String password;
1789
      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 {
1790
        super(client, protocolFactory, transport, resultHandler, false);
1791
        this.agentEmailId = agentEmailId;
1792
        this.password = password;
1793
      }
1794
 
1795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1797
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1798
        args.setAgentEmailId(agentEmailId);
1799
        args.setPassword(password);
1800
        args.write(prot);
1801
        prot.writeMessageEnd();
1802
      }
1803
 
1804
      public void 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
        (new Client(prot)).recv_updatePasswordForAgent();
1811
      }
1812
    }
1813
 
1814
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1815
      checkReady();
1816
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1817
      this.___currentMethod = method_call;
1818
      ___manager.call(method_call);
1819
    }
1820
 
1821
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1822
      private String agentEmailId;
1823
      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 {
1824
        super(client, protocolFactory, transport, resultHandler, false);
1825
        this.agentEmailId = agentEmailId;
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("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1830
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1831
        args.setAgentEmailId(agentEmailId);
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_getRoleNamesForAgent();
1843
      }
1844
    }
1845
 
1846
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1847
      checkReady();
1848
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1849
      this.___currentMethod = method_call;
1850
      ___manager.call(method_call);
1851
    }
1852
 
1853
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1854
      private String roleName;
1855
      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 {
1856
        super(client, protocolFactory, transport, resultHandler, false);
1857
        this.roleName = roleName;
1858
      }
1859
 
1860
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1861
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1862
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1863
        args.setRoleName(roleName);
1864
        args.write(prot);
1865
        prot.writeMessageEnd();
1866
      }
1867
 
1868
      public List<String> getResult() throws org.apache.thrift.TException {
1869
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1870
          throw new IllegalStateException("Method call not finished!");
1871
        }
1872
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1873
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1874
        return (new Client(prot)).recv_getPermissionsForRoleName();
1875
      }
1876
    }
1877
 
4806 varun.gupt 1878
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1879
      checkReady();
1880
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1881
      this.___currentMethod = method_call;
1882
      ___manager.call(method_call);
1883
    }
1884
 
1885
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1886
      private String url;
1887
      private String text;
1888
      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 {
1889
        super(client, protocolFactory, transport, resultHandler, false);
1890
        this.url = url;
1891
        this.text = text;
1892
      }
1893
 
1894
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1895
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1896
        saveQuickLink_args args = new saveQuickLink_args();
1897
        args.setUrl(url);
1898
        args.setText(text);
1899
        args.write(prot);
1900
        prot.writeMessageEnd();
1901
      }
1902
 
1903
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1905
          throw new IllegalStateException("Method call not finished!");
1906
        }
1907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1909
        (new Client(prot)).recv_saveQuickLink();
1910
      }
1911
    }
1912
 
1913
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1914
      checkReady();
1915
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1916
      this.___currentMethod = method_call;
1917
      ___manager.call(method_call);
1918
    }
1919
 
1920
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1921
      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 {
1922
        super(client, protocolFactory, transport, resultHandler, false);
1923
      }
1924
 
1925
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1926
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1927
        getQuickLinks_args args = new getQuickLinks_args();
1928
        args.write(prot);
1929
        prot.writeMessageEnd();
1930
      }
1931
 
1932
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1933
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1934
          throw new IllegalStateException("Method call not finished!");
1935
        }
1936
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1937
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1938
        return (new Client(prot)).recv_getQuickLinks();
1939
      }
1940
    }
1941
 
4996 varun.gupt 1942
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1943
      checkReady();
1944
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1945
      this.___currentMethod = method_call;
1946
      ___manager.call(method_call);
1947
    }
1948
 
1949
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1950
      private long id;
1951
      private String url;
1952
      private String text;
1953
      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 {
1954
        super(client, protocolFactory, transport, resultHandler, false);
1955
        this.id = id;
1956
        this.url = url;
1957
        this.text = text;
1958
      }
1959
 
1960
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1961
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1962
        updateQuickLink_args args = new updateQuickLink_args();
1963
        args.setId(id);
1964
        args.setUrl(url);
1965
        args.setText(text);
1966
        args.write(prot);
1967
        prot.writeMessageEnd();
1968
      }
1969
 
1970
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1971
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1972
          throw new IllegalStateException("Method call not finished!");
1973
        }
1974
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1975
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1976
        (new Client(prot)).recv_updateQuickLink();
1977
      }
1978
    }
1979
 
5055 varun.gupt 1980
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1981
      checkReady();
1982
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1983
      this.___currentMethod = method_call;
1984
      ___manager.call(method_call);
1985
    }
1986
 
1987
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1988
      private long startDatetime;
1989
      private long endDatetime;
1990
      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 {
1991
        super(client, protocolFactory, transport, resultHandler, false);
1992
        this.startDatetime = startDatetime;
1993
        this.endDatetime = endDatetime;
1994
      }
1995
 
1996
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1997
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1998
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1999
        args.setStartDatetime(startDatetime);
2000
        args.setEndDatetime(endDatetime);
2001
        args.write(prot);
2002
        prot.writeMessageEnd();
2003
      }
2004
 
2005
      public List<String> getResult() throws HelperServiceException, 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_getEmailsForNotificationsSent();
2012
      }
2013
    }
2014
 
6322 amar.kumar 2015
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
2016
      checkReady();
2017
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2018
      this.___currentMethod = method_call;
2019
      ___manager.call(method_call);
2020
    }
2021
 
2022
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2023
      private long orderId;
2024
      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 {
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("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2031
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_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_getOrderConfirmationMail();
2044
      }
2045
    }
2046
 
7221 kshitij.so 2047
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2048
      checkReady();
2049
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2050
      this.___currentMethod = method_call;
2051
      ___manager.call(method_call);
2052
    }
2053
 
2054
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2055
      private long orderId;
2056
      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 {
2057
        super(client, protocolFactory, transport, resultHandler, false);
2058
        this.orderId = orderId;
2059
      }
2060
 
2061
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2062
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2063
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2064
        args.setOrderId(orderId);
2065
        args.write(prot);
2066
        prot.writeMessageEnd();
2067
      }
2068
 
2069
      public String getResult() throws org.apache.thrift.TException {
2070
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2071
          throw new IllegalStateException("Method call not finished!");
2072
        }
2073
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2074
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2075
        return (new Client(prot)).recv_getOrderDeliveryMail();
2076
      }
2077
    }
2078
 
7410 amar.kumar 2079
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
2080
      checkReady();
2081
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2082
      this.___currentMethod = method_call;
2083
      ___manager.call(method_call);
2084
    }
2085
 
2086
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2087
      private String agentEmailId;
2088
      public getWarehouseIdsForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_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 {
2089
        super(client, protocolFactory, transport, resultHandler, false);
2090
        this.agentEmailId = agentEmailId;
2091
      }
2092
 
2093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2095
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
2096
        args.setAgentEmailId(agentEmailId);
2097
        args.write(prot);
2098
        prot.writeMessageEnd();
2099
      }
2100
 
2101
      public List<Long> getResult() throws org.apache.thrift.TException {
2102
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2103
          throw new IllegalStateException("Method call not finished!");
2104
        }
2105
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2106
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2107
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
2108
      }
2109
    }
2110
 
3430 rajveer 2111
  }
2112
 
2113
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2114
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2115
    public Processor(I iface) {
2116
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2117
    }
2118
 
2119
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2120
      super(iface, getProcessMap(processMap));
2121
    }
2122
 
2123
    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) {
2124
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2125
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2126
      processMap.put("markEmailAsSent", new markEmailAsSent());
2127
      processMap.put("sendMail", new sendMail());
2128
      processMap.put("sendText", new sendText());
2129
      processMap.put("addMessage", new addMessage());
2130
      processMap.put("updateMessage", new updateMessage());
2131
      processMap.put("getMessage", new getMessage());
2132
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2133
      processMap.put("addUser", new addUser());
2134
      processMap.put("deleteUser", new deleteUser());
2135
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2136
      processMap.put("updatePassword", new updatePassword());
2137
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2138
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2139
      processMap.put("authenticateReportUser", new authenticateReportUser());
2140
      processMap.put("getReports", new getReports());
2141
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2142
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2143
      processMap.put("getAgents", new getAgents());
2144
      processMap.put("validateLogIn", new validateLogIn());
2145
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2146
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2147
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2148
      processMap.put("saveQuickLink", new saveQuickLink());
2149
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2150
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2151
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2152
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2153
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
7410 amar.kumar 2154
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
3430 rajveer 2155
      return processMap;
2156
    }
2157
 
2158
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2159
      public saveUserEmailForSending() {
2160
        super("saveUserEmailForSending");
2161
      }
2162
 
2163
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2164
        return new saveUserEmailForSending_args();
2165
      }
2166
 
2167
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2168
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2169
        try {
8020 rajveer 2170
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId);
3206 mandeep.dh 2171
          result.setSuccessIsSet(true);
1395 varun.gupt 2172
        } catch (HelperServiceException se) {
2173
          result.se = se;
2174
        }
3430 rajveer 2175
        return result;
1395 varun.gupt 2176
      }
2177
    }
2178
 
3430 rajveer 2179
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2180
      public getEmailsToBeSent() {
2181
        super("getEmailsToBeSent");
2182
      }
2183
 
2184
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2185
        return new getEmailsToBeSent_args();
2186
      }
2187
 
2188
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2189
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2190
        try {
3430 rajveer 2191
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2192
        } catch (HelperServiceException se) {
2193
          result.se = se;
2194
        }
3430 rajveer 2195
        return result;
1422 varun.gupt 2196
      }
2197
    }
2198
 
3430 rajveer 2199
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2200
      public markEmailAsSent() {
2201
        super("markEmailAsSent");
2202
      }
2203
 
2204
      protected markEmailAsSent_args getEmptyArgsInstance() {
2205
        return new markEmailAsSent_args();
2206
      }
2207
 
2208
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2209
        markEmailAsSent_result result = new markEmailAsSent_result();
2210
        try {
3430 rajveer 2211
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2212
        } catch (HelperServiceException se) {
2213
          result.se = se;
2214
        }
3430 rajveer 2215
        return result;
1422 varun.gupt 2216
      }
2217
    }
2218
 
3430 rajveer 2219
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2220
      public sendMail() {
2221
        super("sendMail");
2222
      }
2223
 
2224
      protected sendMail_args getEmptyArgsInstance() {
2225
        return new sendMail_args();
2226
      }
2227
 
2228
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2229
        sendMail_result result = new sendMail_result();
2230
        try {
3430 rajveer 2231
          iface.sendMail(args.mail);
352 ashish 2232
        } catch (HelperServiceException se) {
2233
          result.se = se;
2234
        }
3430 rajveer 2235
        return result;
352 ashish 2236
      }
2237
    }
2238
 
3430 rajveer 2239
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2240
      public sendText() {
2241
        super("sendText");
2242
      }
2243
 
2244
      protected sendText_args getEmptyArgsInstance() {
2245
        return new sendText_args();
2246
      }
2247
 
2248
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2249
        sendText_result result = new sendText_result();
2250
        try {
3430 rajveer 2251
          iface.sendText(args.message);
352 ashish 2252
        } catch (HelperServiceException se) {
2253
          result.se = se;
2254
        }
3430 rajveer 2255
        return result;
352 ashish 2256
      }
2257
    }
2258
 
3430 rajveer 2259
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2260
      public addMessage() {
2261
        super("addMessage");
2262
      }
2263
 
2264
      protected addMessage_args getEmptyArgsInstance() {
2265
        return new addMessage_args();
2266
      }
2267
 
2268
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2269
        addMessage_result result = new addMessage_result();
2270
        try {
3430 rajveer 2271
          iface.addMessage(args.message);
352 ashish 2272
        } catch (HelperServiceException se) {
2273
          result.se = se;
2274
        }
3430 rajveer 2275
        return result;
352 ashish 2276
      }
2277
    }
2278
 
3430 rajveer 2279
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2280
      public updateMessage() {
2281
        super("updateMessage");
2282
      }
2283
 
2284
      protected updateMessage_args getEmptyArgsInstance() {
2285
        return new updateMessage_args();
2286
      }
2287
 
2288
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2289
        updateMessage_result result = new updateMessage_result();
2290
        try {
3430 rajveer 2291
          iface.updateMessage(args.id, args.message);
352 ashish 2292
        } catch (HelperServiceException se) {
2293
          result.se = se;
2294
        }
3430 rajveer 2295
        return result;
352 ashish 2296
      }
2297
    }
2298
 
3430 rajveer 2299
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2300
      public getMessage() {
2301
        super("getMessage");
2302
      }
2303
 
2304
      protected getMessage_args getEmptyArgsInstance() {
2305
        return new getMessage_args();
2306
      }
2307
 
2308
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2309
        getMessage_result result = new getMessage_result();
2310
        try {
3430 rajveer 2311
          result.success = iface.getMessage(args.id);
352 ashish 2312
        } catch (HelperServiceException se) {
2313
          result.se = se;
2314
        }
3430 rajveer 2315
        return result;
352 ashish 2316
      }
2317
    }
2318
 
3430 rajveer 2319
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2320
      public getSubstitutedMessage() {
2321
        super("getSubstitutedMessage");
2322
      }
2323
 
2324
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2325
        return new getSubstitutedMessage_args();
2326
      }
2327
 
2328
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2329
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2330
        try {
3430 rajveer 2331
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2332
        } catch (HelperServiceException se) {
2333
          result.se = se;
2334
        }
3430 rajveer 2335
        return result;
352 ashish 2336
      }
2337
    }
2338
 
3430 rajveer 2339
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2340
      public addUser() {
2341
        super("addUser");
2342
      }
2343
 
2344
      protected addUser_args getEmptyArgsInstance() {
2345
        return new addUser_args();
2346
      }
2347
 
2348
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2349
        addUser_result result = new addUser_result();
2350
        try {
3430 rajveer 2351
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2352
          result.setSuccessIsSet(true);
2353
        } catch (HelperServiceException se) {
2354
          result.se = se;
2355
        }
3430 rajveer 2356
        return result;
495 rajveer 2357
      }
2358
    }
2359
 
3430 rajveer 2360
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2361
      public deleteUser() {
2362
        super("deleteUser");
2363
      }
2364
 
2365
      protected deleteUser_args getEmptyArgsInstance() {
2366
        return new deleteUser_args();
2367
      }
2368
 
2369
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2370
        deleteUser_result result = new deleteUser_result();
2371
        try {
3430 rajveer 2372
          result.success = iface.deleteUser(args.username);
495 rajveer 2373
          result.setSuccessIsSet(true);
2374
        } catch (HelperServiceException se) {
2375
          result.se = se;
2376
        }
3430 rajveer 2377
        return result;
495 rajveer 2378
      }
2379
    }
2380
 
3430 rajveer 2381
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2382
      public authenticateDashboardUser() {
2383
        super("authenticateDashboardUser");
2384
      }
2385
 
2386
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2387
        return new authenticateDashboardUser_args();
2388
      }
2389
 
2390
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2391
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2392
        try {
3430 rajveer 2393
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2394
        } catch (HelperServiceException se) {
2395
          result.se = se;
2396
        }
3430 rajveer 2397
        return result;
495 rajveer 2398
      }
2399
    }
2400
 
3430 rajveer 2401
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2402
      public updatePassword() {
2403
        super("updatePassword");
2404
      }
2405
 
2406
      protected updatePassword_args getEmptyArgsInstance() {
2407
        return new updatePassword_args();
2408
      }
2409
 
2410
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2411
        updatePassword_result result = new updatePassword_result();
2412
        try {
3430 rajveer 2413
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2414
          result.setSuccessIsSet(true);
2415
        } catch (HelperServiceException se) {
2416
          result.se = se;
2417
        }
3430 rajveer 2418
        return result;
495 rajveer 2419
      }
2420
    }
2421
 
3430 rajveer 2422
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2423
      public authenticateLogisticsUser() {
2424
        super("authenticateLogisticsUser");
2425
      }
2426
 
2427
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2428
        return new authenticateLogisticsUser_args();
2429
      }
2430
 
2431
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2432
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2433
        try {
3430 rajveer 2434
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2435
        } catch (HelperServiceException hse) {
2436
          result.hse = hse;
2437
        }
3430 rajveer 2438
        return result;
750 chandransh 2439
      }
2440
    }
2441
 
3430 rajveer 2442
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2443
      public authenticateStatisticsUser() {
2444
        super("authenticateStatisticsUser");
2445
      }
2446
 
2447
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2448
        return new authenticateStatisticsUser_args();
2449
      }
2450
 
2451
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2452
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2453
        try {
3430 rajveer 2454
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2455
        } catch (HelperServiceException hse) {
2456
          result.hse = hse;
2457
        }
3430 rajveer 2458
        return result;
1611 ankur.sing 2459
      }
2460
    }
2461
 
3430 rajveer 2462
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2463
      public authenticateReportUser() {
2464
        super("authenticateReportUser");
2465
      }
2466
 
2467
      protected authenticateReportUser_args getEmptyArgsInstance() {
2468
        return new authenticateReportUser_args();
2469
      }
2470
 
2471
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2472
        authenticateReportUser_result result = new authenticateReportUser_result();
2473
        try {
3430 rajveer 2474
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2475
        } catch (HelperServiceException hse) {
2476
          result.hse = hse;
2477
        }
3430 rajveer 2478
        return result;
1891 ankur.sing 2479
      }
2480
    }
2481
 
3430 rajveer 2482
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2483
      public getReports() {
2484
        super("getReports");
2485
      }
2486
 
2487
      protected getReports_args getEmptyArgsInstance() {
2488
        return new getReports_args();
2489
      }
2490
 
2491
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2492
        getReports_result result = new getReports_result();
3430 rajveer 2493
        result.success = iface.getReports(args.role);
2494
        return result;
1891 ankur.sing 2495
      }
2496
    }
2497
 
3430 rajveer 2498
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2499
      public authenticateCatalogUser() {
2500
        super("authenticateCatalogUser");
2501
      }
2502
 
2503
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2504
        return new authenticateCatalogUser_args();
2505
      }
2506
 
2507
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2508
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2509
        try {
6788 rajveer 2510
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 2511
        } catch (HelperServiceException hse) {
2512
          result.hse = hse;
2513
        }
3430 rajveer 2514
        return result;
2024 ankur.sing 2515
      }
2516
    }
2517
 
4544 varun.gupt 2518
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2519
      public shareEntities() {
2520
        super("shareEntities");
2521
      }
2522
 
2523
      protected shareEntities_args getEmptyArgsInstance() {
2524
        return new shareEntities_args();
2525
      }
2526
 
2527
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2528
        shareEntities_result result = new shareEntities_result();
2529
        try {
2530
          iface.shareEntities(args.entityIds, args.email);
2531
        } catch (HelperServiceException hse) {
2532
          result.hse = hse;
2533
        }
2534
        return result;
2535
      }
2536
    }
2537
 
4693 mandeep.dh 2538
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2539
      public getAgents() {
2540
        super("getAgents");
2541
      }
2542
 
2543
      protected getAgents_args getEmptyArgsInstance() {
2544
        return new getAgents_args();
2545
      }
2546
 
2547
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2548
        getAgents_result result = new getAgents_result();
2549
        result.success = iface.getAgents();
2550
        return result;
2551
      }
2552
    }
2553
 
2554
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2555
      public validateLogIn() {
2556
        super("validateLogIn");
2557
      }
2558
 
2559
      protected validateLogIn_args getEmptyArgsInstance() {
2560
        return new validateLogIn_args();
2561
      }
2562
 
2563
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2564
        validateLogIn_result result = new validateLogIn_result();
2565
        result.success = iface.validateLogIn(args.emailId, args.password);
2566
        result.setSuccessIsSet(true);
2567
        return result;
2568
      }
2569
    }
2570
 
2571
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2572
      public updatePasswordForAgent() {
2573
        super("updatePasswordForAgent");
2574
      }
2575
 
2576
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2577
        return new updatePasswordForAgent_args();
2578
      }
2579
 
2580
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2581
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2582
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2583
        return result;
2584
      }
2585
    }
2586
 
2587
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2588
      public getRoleNamesForAgent() {
2589
        super("getRoleNamesForAgent");
2590
      }
2591
 
2592
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2593
        return new getRoleNamesForAgent_args();
2594
      }
2595
 
2596
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2597
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2598
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2599
        return result;
2600
      }
2601
    }
2602
 
2603
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2604
      public getPermissionsForRoleName() {
2605
        super("getPermissionsForRoleName");
2606
      }
2607
 
2608
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2609
        return new getPermissionsForRoleName_args();
2610
      }
2611
 
2612
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2613
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2614
        result.success = iface.getPermissionsForRoleName(args.roleName);
2615
        return result;
2616
      }
2617
    }
2618
 
4806 varun.gupt 2619
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2620
      public saveQuickLink() {
2621
        super("saveQuickLink");
2622
      }
2623
 
2624
      protected saveQuickLink_args getEmptyArgsInstance() {
2625
        return new saveQuickLink_args();
2626
      }
2627
 
2628
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2629
        saveQuickLink_result result = new saveQuickLink_result();
2630
        try {
2631
          iface.saveQuickLink(args.url, args.text);
2632
        } catch (HelperServiceException hse) {
2633
          result.hse = hse;
2634
        }
2635
        return result;
2636
      }
2637
    }
2638
 
2639
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2640
      public getQuickLinks() {
2641
        super("getQuickLinks");
2642
      }
2643
 
2644
      protected getQuickLinks_args getEmptyArgsInstance() {
2645
        return new getQuickLinks_args();
2646
      }
2647
 
2648
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2649
        getQuickLinks_result result = new getQuickLinks_result();
2650
        try {
2651
          result.success = iface.getQuickLinks();
2652
        } catch (HelperServiceException hse) {
2653
          result.hse = hse;
2654
        }
2655
        return result;
2656
      }
2657
    }
2658
 
4996 varun.gupt 2659
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2660
      public updateQuickLink() {
2661
        super("updateQuickLink");
2662
      }
2663
 
2664
      protected updateQuickLink_args getEmptyArgsInstance() {
2665
        return new updateQuickLink_args();
2666
      }
2667
 
2668
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2669
        updateQuickLink_result result = new updateQuickLink_result();
2670
        try {
2671
          iface.updateQuickLink(args.id, args.url, args.text);
2672
        } catch (HelperServiceException hse) {
2673
          result.hse = hse;
2674
        }
2675
        return result;
2676
      }
2677
    }
2678
 
5055 varun.gupt 2679
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2680
      public getEmailsForNotificationsSent() {
2681
        super("getEmailsForNotificationsSent");
2682
      }
2683
 
2684
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2685
        return new getEmailsForNotificationsSent_args();
2686
      }
2687
 
2688
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2689
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2690
        try {
2691
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2692
        } catch (HelperServiceException hse) {
2693
          result.hse = hse;
2694
        }
2695
        return result;
2696
      }
2697
    }
2698
 
6322 amar.kumar 2699
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
2700
      public getOrderConfirmationMail() {
2701
        super("getOrderConfirmationMail");
2702
      }
2703
 
2704
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
2705
        return new getOrderConfirmationMail_args();
2706
      }
2707
 
2708
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
2709
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
2710
        result.success = iface.getOrderConfirmationMail(args.orderId);
2711
        return result;
2712
      }
2713
    }
2714
 
7221 kshitij.so 2715
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
2716
      public getOrderDeliveryMail() {
2717
        super("getOrderDeliveryMail");
2718
      }
2719
 
2720
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
2721
        return new getOrderDeliveryMail_args();
2722
      }
2723
 
2724
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
2725
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
2726
        result.success = iface.getOrderDeliveryMail(args.orderId);
2727
        return result;
2728
      }
2729
    }
2730
 
7410 amar.kumar 2731
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
2732
      public getWarehouseIdsForAgent() {
2733
        super("getWarehouseIdsForAgent");
2734
      }
2735
 
2736
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
2737
        return new getWarehouseIdsForAgent_args();
2738
      }
2739
 
2740
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
2741
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
2742
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
2743
        return result;
2744
      }
2745
    }
2746
 
352 ashish 2747
  }
2748
 
3430 rajveer 2749
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2751
 
5864 rajveer 2752
    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 2753
    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);
2754
    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);
2755
    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);
2756
    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);
2757
    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 2758
    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);
2759
    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);
8020 rajveer 2760
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)9);
1395 varun.gupt 2761
 
5864 rajveer 2762
    private List<String> emailTo; // required
3430 rajveer 2763
    private String emailFrom; // required
2764
    private String subject; // required
2765
    private String body; // required
2766
    private String source; // required
2767
    private String emailType; // required
5864 rajveer 2768
    private List<String> cc; // required
2769
    private List<String> bcc; // required
8020 rajveer 2770
    private long sourceId; // required
1395 varun.gupt 2771
 
2772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2774
      EMAIL_TO((short)1, "emailTo"),
2775
      EMAIL_FROM((short)2, "emailFrom"),
2776
      SUBJECT((short)3, "subject"),
2777
      BODY((short)4, "body"),
2778
      SOURCE((short)5, "source"),
5864 rajveer 2779
      EMAIL_TYPE((short)6, "emailType"),
2780
      CC((short)7, "cc"),
8020 rajveer 2781
      BCC((short)8, "bcc"),
2782
      SOURCE_ID((short)9, "sourceId");
1395 varun.gupt 2783
 
2784
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2785
 
2786
      static {
2787
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2788
          byName.put(field.getFieldName(), field);
2789
        }
2790
      }
2791
 
2792
      /**
2793
       * Find the _Fields constant that matches fieldId, or null if its not found.
2794
       */
2795
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2796
        switch(fieldId) {
2797
          case 1: // EMAIL_TO
2798
            return EMAIL_TO;
2799
          case 2: // EMAIL_FROM
2800
            return EMAIL_FROM;
2801
          case 3: // SUBJECT
2802
            return SUBJECT;
2803
          case 4: // BODY
2804
            return BODY;
2805
          case 5: // SOURCE
2806
            return SOURCE;
2807
          case 6: // EMAIL_TYPE
2808
            return EMAIL_TYPE;
5864 rajveer 2809
          case 7: // CC
2810
            return CC;
2811
          case 8: // BCC
2812
            return BCC;
8020 rajveer 2813
          case 9: // SOURCE_ID
2814
            return SOURCE_ID;
3430 rajveer 2815
          default:
2816
            return null;
2817
        }
1395 varun.gupt 2818
      }
2819
 
2820
      /**
2821
       * Find the _Fields constant that matches fieldId, throwing an exception
2822
       * if it is not found.
2823
       */
2824
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2825
        _Fields fields = findByThriftId(fieldId);
2826
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2827
        return fields;
2828
      }
2829
 
2830
      /**
2831
       * Find the _Fields constant that matches name, or null if its not found.
2832
       */
2833
      public static _Fields findByName(String name) {
2834
        return byName.get(name);
2835
      }
2836
 
2837
      private final short _thriftId;
2838
      private final String _fieldName;
2839
 
2840
      _Fields(short thriftId, String fieldName) {
2841
        _thriftId = thriftId;
2842
        _fieldName = fieldName;
2843
      }
2844
 
2845
      public short getThriftFieldId() {
2846
        return _thriftId;
2847
      }
2848
 
2849
      public String getFieldName() {
2850
        return _fieldName;
2851
      }
2852
    }
2853
 
2854
    // isset id assignments
8020 rajveer 2855
    private static final int __SOURCEID_ISSET_ID = 0;
2856
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 2857
 
3430 rajveer 2858
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2859
    static {
3430 rajveer 2860
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2861
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2862
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2863
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2864
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2866
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2868
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2870
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2871
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2872
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2873
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2874
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2875
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2876
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2877
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2878
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2879
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8020 rajveer 2880
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 2882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2884
    }
2885
 
2886
    public saveUserEmailForSending_args() {
2887
    }
2888
 
2889
    public saveUserEmailForSending_args(
5864 rajveer 2890
      List<String> emailTo,
1395 varun.gupt 2891
      String emailFrom,
2892
      String subject,
2893
      String body,
2894
      String source,
5864 rajveer 2895
      String emailType,
2896
      List<String> cc,
8020 rajveer 2897
      List<String> bcc,
2898
      long sourceId)
1395 varun.gupt 2899
    {
2900
      this();
2901
      this.emailTo = emailTo;
2902
      this.emailFrom = emailFrom;
2903
      this.subject = subject;
2904
      this.body = body;
2905
      this.source = source;
2906
      this.emailType = emailType;
5864 rajveer 2907
      this.cc = cc;
2908
      this.bcc = bcc;
8020 rajveer 2909
      this.sourceId = sourceId;
2910
      setSourceIdIsSet(true);
1395 varun.gupt 2911
    }
2912
 
2913
    /**
2914
     * Performs a deep copy on <i>other</i>.
2915
     */
2916
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
8020 rajveer 2917
      __isset_bit_vector.clear();
2918
      __isset_bit_vector.or(other.__isset_bit_vector);
1395 varun.gupt 2919
      if (other.isSetEmailTo()) {
5864 rajveer 2920
        List<String> __this__emailTo = new ArrayList<String>();
2921
        for (String other_element : other.emailTo) {
2922
          __this__emailTo.add(other_element);
2923
        }
2924
        this.emailTo = __this__emailTo;
1395 varun.gupt 2925
      }
2926
      if (other.isSetEmailFrom()) {
2927
        this.emailFrom = other.emailFrom;
2928
      }
2929
      if (other.isSetSubject()) {
2930
        this.subject = other.subject;
2931
      }
2932
      if (other.isSetBody()) {
2933
        this.body = other.body;
2934
      }
2935
      if (other.isSetSource()) {
2936
        this.source = other.source;
2937
      }
2938
      if (other.isSetEmailType()) {
2939
        this.emailType = other.emailType;
2940
      }
5864 rajveer 2941
      if (other.isSetCc()) {
2942
        List<String> __this__cc = new ArrayList<String>();
2943
        for (String other_element : other.cc) {
2944
          __this__cc.add(other_element);
2945
        }
2946
        this.cc = __this__cc;
2947
      }
2948
      if (other.isSetBcc()) {
2949
        List<String> __this__bcc = new ArrayList<String>();
2950
        for (String other_element : other.bcc) {
2951
          __this__bcc.add(other_element);
2952
        }
2953
        this.bcc = __this__bcc;
2954
      }
8020 rajveer 2955
      this.sourceId = other.sourceId;
1395 varun.gupt 2956
    }
2957
 
2958
    public saveUserEmailForSending_args deepCopy() {
2959
      return new saveUserEmailForSending_args(this);
2960
    }
2961
 
3430 rajveer 2962
    @Override
2963
    public void clear() {
2964
      this.emailTo = null;
2965
      this.emailFrom = null;
2966
      this.subject = null;
2967
      this.body = null;
2968
      this.source = null;
2969
      this.emailType = null;
5864 rajveer 2970
      this.cc = null;
2971
      this.bcc = null;
8020 rajveer 2972
      setSourceIdIsSet(false);
2973
      this.sourceId = 0;
1395 varun.gupt 2974
    }
2975
 
5864 rajveer 2976
    public int getEmailToSize() {
2977
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2978
    }
2979
 
2980
    public java.util.Iterator<String> getEmailToIterator() {
2981
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2982
    }
2983
 
2984
    public void addToEmailTo(String elem) {
2985
      if (this.emailTo == null) {
2986
        this.emailTo = new ArrayList<String>();
2987
      }
2988
      this.emailTo.add(elem);
2989
    }
2990
 
2991
    public List<String> getEmailTo() {
1395 varun.gupt 2992
      return this.emailTo;
2993
    }
2994
 
5864 rajveer 2995
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2996
      this.emailTo = emailTo;
2997
    }
2998
 
2999
    public void unsetEmailTo() {
3000
      this.emailTo = null;
3001
    }
3002
 
3430 rajveer 3003
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3004
    public boolean isSetEmailTo() {
3005
      return this.emailTo != null;
3006
    }
3007
 
3008
    public void setEmailToIsSet(boolean value) {
3009
      if (!value) {
3010
        this.emailTo = null;
3011
      }
3012
    }
3013
 
3014
    public String getEmailFrom() {
3015
      return this.emailFrom;
3016
    }
3017
 
3430 rajveer 3018
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 3019
      this.emailFrom = emailFrom;
3020
    }
3021
 
3022
    public void unsetEmailFrom() {
3023
      this.emailFrom = null;
3024
    }
3025
 
3430 rajveer 3026
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3027
    public boolean isSetEmailFrom() {
3028
      return this.emailFrom != null;
3029
    }
3030
 
3031
    public void setEmailFromIsSet(boolean value) {
3032
      if (!value) {
3033
        this.emailFrom = null;
3034
      }
3035
    }
3036
 
3037
    public String getSubject() {
3038
      return this.subject;
3039
    }
3040
 
3430 rajveer 3041
    public void setSubject(String subject) {
1395 varun.gupt 3042
      this.subject = subject;
3043
    }
3044
 
3045
    public void unsetSubject() {
3046
      this.subject = null;
3047
    }
3048
 
3430 rajveer 3049
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3050
    public boolean isSetSubject() {
3051
      return this.subject != null;
3052
    }
3053
 
3054
    public void setSubjectIsSet(boolean value) {
3055
      if (!value) {
3056
        this.subject = null;
3057
      }
3058
    }
3059
 
3060
    public String getBody() {
3061
      return this.body;
3062
    }
3063
 
3430 rajveer 3064
    public void setBody(String body) {
1395 varun.gupt 3065
      this.body = body;
3066
    }
3067
 
3068
    public void unsetBody() {
3069
      this.body = null;
3070
    }
3071
 
3430 rajveer 3072
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3073
    public boolean isSetBody() {
3074
      return this.body != null;
3075
    }
3076
 
3077
    public void setBodyIsSet(boolean value) {
3078
      if (!value) {
3079
        this.body = null;
3080
      }
3081
    }
3082
 
3083
    public String getSource() {
3084
      return this.source;
3085
    }
3086
 
3430 rajveer 3087
    public void setSource(String source) {
1395 varun.gupt 3088
      this.source = source;
3089
    }
3090
 
3091
    public void unsetSource() {
3092
      this.source = null;
3093
    }
3094
 
3430 rajveer 3095
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3096
    public boolean isSetSource() {
3097
      return this.source != null;
3098
    }
3099
 
3100
    public void setSourceIsSet(boolean value) {
3101
      if (!value) {
3102
        this.source = null;
3103
      }
3104
    }
3105
 
3106
    public String getEmailType() {
3107
      return this.emailType;
3108
    }
3109
 
3430 rajveer 3110
    public void setEmailType(String emailType) {
1395 varun.gupt 3111
      this.emailType = emailType;
3112
    }
3113
 
3114
    public void unsetEmailType() {
3115
      this.emailType = null;
3116
    }
3117
 
3430 rajveer 3118
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3119
    public boolean isSetEmailType() {
3120
      return this.emailType != null;
3121
    }
3122
 
3123
    public void setEmailTypeIsSet(boolean value) {
3124
      if (!value) {
3125
        this.emailType = null;
3126
      }
3127
    }
3128
 
5864 rajveer 3129
    public int getCcSize() {
3130
      return (this.cc == null) ? 0 : this.cc.size();
3131
    }
3132
 
3133
    public java.util.Iterator<String> getCcIterator() {
3134
      return (this.cc == null) ? null : this.cc.iterator();
3135
    }
3136
 
3137
    public void addToCc(String elem) {
3138
      if (this.cc == null) {
3139
        this.cc = new ArrayList<String>();
3140
      }
3141
      this.cc.add(elem);
3142
    }
3143
 
3144
    public List<String> getCc() {
3145
      return this.cc;
3146
    }
3147
 
3148
    public void setCc(List<String> cc) {
3149
      this.cc = cc;
3150
    }
3151
 
3152
    public void unsetCc() {
3153
      this.cc = null;
3154
    }
3155
 
3156
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
3157
    public boolean isSetCc() {
3158
      return this.cc != null;
3159
    }
3160
 
3161
    public void setCcIsSet(boolean value) {
3162
      if (!value) {
3163
        this.cc = null;
3164
      }
3165
    }
3166
 
3167
    public int getBccSize() {
3168
      return (this.bcc == null) ? 0 : this.bcc.size();
3169
    }
3170
 
3171
    public java.util.Iterator<String> getBccIterator() {
3172
      return (this.bcc == null) ? null : this.bcc.iterator();
3173
    }
3174
 
3175
    public void addToBcc(String elem) {
3176
      if (this.bcc == null) {
3177
        this.bcc = new ArrayList<String>();
3178
      }
3179
      this.bcc.add(elem);
3180
    }
3181
 
3182
    public List<String> getBcc() {
3183
      return this.bcc;
3184
    }
3185
 
3186
    public void setBcc(List<String> bcc) {
3187
      this.bcc = bcc;
3188
    }
3189
 
3190
    public void unsetBcc() {
3191
      this.bcc = null;
3192
    }
3193
 
3194
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
3195
    public boolean isSetBcc() {
3196
      return this.bcc != null;
3197
    }
3198
 
3199
    public void setBccIsSet(boolean value) {
3200
      if (!value) {
3201
        this.bcc = null;
3202
      }
3203
    }
3204
 
8020 rajveer 3205
    public long getSourceId() {
3206
      return this.sourceId;
3207
    }
3208
 
3209
    public void setSourceId(long sourceId) {
3210
      this.sourceId = sourceId;
3211
      setSourceIdIsSet(true);
3212
    }
3213
 
3214
    public void unsetSourceId() {
3215
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
3216
    }
3217
 
3218
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
3219
    public boolean isSetSourceId() {
3220
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
3221
    }
3222
 
3223
    public void setSourceIdIsSet(boolean value) {
3224
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
3225
    }
3226
 
1395 varun.gupt 3227
    public void setFieldValue(_Fields field, Object value) {
3228
      switch (field) {
3229
      case EMAIL_TO:
3230
        if (value == null) {
3231
          unsetEmailTo();
3232
        } else {
5864 rajveer 3233
          setEmailTo((List<String>)value);
1395 varun.gupt 3234
        }
3235
        break;
3236
 
3237
      case EMAIL_FROM:
3238
        if (value == null) {
3239
          unsetEmailFrom();
3240
        } else {
3241
          setEmailFrom((String)value);
3242
        }
3243
        break;
3244
 
3245
      case SUBJECT:
3246
        if (value == null) {
3247
          unsetSubject();
3248
        } else {
3249
          setSubject((String)value);
3250
        }
3251
        break;
3252
 
3253
      case BODY:
3254
        if (value == null) {
3255
          unsetBody();
3256
        } else {
3257
          setBody((String)value);
3258
        }
3259
        break;
3260
 
3261
      case SOURCE:
3262
        if (value == null) {
3263
          unsetSource();
3264
        } else {
3265
          setSource((String)value);
3266
        }
3267
        break;
3268
 
3269
      case EMAIL_TYPE:
3270
        if (value == null) {
3271
          unsetEmailType();
3272
        } else {
3273
          setEmailType((String)value);
3274
        }
3275
        break;
3276
 
5864 rajveer 3277
      case CC:
3278
        if (value == null) {
3279
          unsetCc();
3280
        } else {
3281
          setCc((List<String>)value);
3282
        }
3283
        break;
3284
 
3285
      case BCC:
3286
        if (value == null) {
3287
          unsetBcc();
3288
        } else {
3289
          setBcc((List<String>)value);
3290
        }
3291
        break;
3292
 
8020 rajveer 3293
      case SOURCE_ID:
3294
        if (value == null) {
3295
          unsetSourceId();
3296
        } else {
3297
          setSourceId((Long)value);
3298
        }
3299
        break;
3300
 
1395 varun.gupt 3301
      }
3302
    }
3303
 
3304
    public Object getFieldValue(_Fields field) {
3305
      switch (field) {
3306
      case EMAIL_TO:
3307
        return getEmailTo();
3308
 
3309
      case EMAIL_FROM:
3310
        return getEmailFrom();
3311
 
3312
      case SUBJECT:
3313
        return getSubject();
3314
 
3315
      case BODY:
3316
        return getBody();
3317
 
3318
      case SOURCE:
3319
        return getSource();
3320
 
3321
      case EMAIL_TYPE:
3322
        return getEmailType();
3323
 
5864 rajveer 3324
      case CC:
3325
        return getCc();
3326
 
3327
      case BCC:
3328
        return getBcc();
3329
 
8020 rajveer 3330
      case SOURCE_ID:
3331
        return Long.valueOf(getSourceId());
3332
 
1395 varun.gupt 3333
      }
3334
      throw new IllegalStateException();
3335
    }
3336
 
3430 rajveer 3337
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3338
    public boolean isSet(_Fields field) {
3339
      if (field == null) {
3340
        throw new IllegalArgumentException();
3341
      }
1395 varun.gupt 3342
 
3343
      switch (field) {
3344
      case EMAIL_TO:
3345
        return isSetEmailTo();
3346
      case EMAIL_FROM:
3347
        return isSetEmailFrom();
3348
      case SUBJECT:
3349
        return isSetSubject();
3350
      case BODY:
3351
        return isSetBody();
3352
      case SOURCE:
3353
        return isSetSource();
3354
      case EMAIL_TYPE:
3355
        return isSetEmailType();
5864 rajveer 3356
      case CC:
3357
        return isSetCc();
3358
      case BCC:
3359
        return isSetBcc();
8020 rajveer 3360
      case SOURCE_ID:
3361
        return isSetSourceId();
1395 varun.gupt 3362
      }
3363
      throw new IllegalStateException();
3364
    }
3365
 
3366
    @Override
3367
    public boolean equals(Object that) {
3368
      if (that == null)
3369
        return false;
3370
      if (that instanceof saveUserEmailForSending_args)
3371
        return this.equals((saveUserEmailForSending_args)that);
3372
      return false;
3373
    }
3374
 
3375
    public boolean equals(saveUserEmailForSending_args that) {
3376
      if (that == null)
3377
        return false;
3378
 
3379
      boolean this_present_emailTo = true && this.isSetEmailTo();
3380
      boolean that_present_emailTo = true && that.isSetEmailTo();
3381
      if (this_present_emailTo || that_present_emailTo) {
3382
        if (!(this_present_emailTo && that_present_emailTo))
3383
          return false;
3384
        if (!this.emailTo.equals(that.emailTo))
3385
          return false;
3386
      }
3387
 
3388
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3389
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3390
      if (this_present_emailFrom || that_present_emailFrom) {
3391
        if (!(this_present_emailFrom && that_present_emailFrom))
3392
          return false;
3393
        if (!this.emailFrom.equals(that.emailFrom))
3394
          return false;
3395
      }
3396
 
3397
      boolean this_present_subject = true && this.isSetSubject();
3398
      boolean that_present_subject = true && that.isSetSubject();
3399
      if (this_present_subject || that_present_subject) {
3400
        if (!(this_present_subject && that_present_subject))
3401
          return false;
3402
        if (!this.subject.equals(that.subject))
3403
          return false;
3404
      }
3405
 
3406
      boolean this_present_body = true && this.isSetBody();
3407
      boolean that_present_body = true && that.isSetBody();
3408
      if (this_present_body || that_present_body) {
3409
        if (!(this_present_body && that_present_body))
3410
          return false;
3411
        if (!this.body.equals(that.body))
3412
          return false;
3413
      }
3414
 
3415
      boolean this_present_source = true && this.isSetSource();
3416
      boolean that_present_source = true && that.isSetSource();
3417
      if (this_present_source || that_present_source) {
3418
        if (!(this_present_source && that_present_source))
3419
          return false;
3420
        if (!this.source.equals(that.source))
3421
          return false;
3422
      }
3423
 
3424
      boolean this_present_emailType = true && this.isSetEmailType();
3425
      boolean that_present_emailType = true && that.isSetEmailType();
3426
      if (this_present_emailType || that_present_emailType) {
3427
        if (!(this_present_emailType && that_present_emailType))
3428
          return false;
3429
        if (!this.emailType.equals(that.emailType))
3430
          return false;
3431
      }
3432
 
5864 rajveer 3433
      boolean this_present_cc = true && this.isSetCc();
3434
      boolean that_present_cc = true && that.isSetCc();
3435
      if (this_present_cc || that_present_cc) {
3436
        if (!(this_present_cc && that_present_cc))
3437
          return false;
3438
        if (!this.cc.equals(that.cc))
3439
          return false;
3440
      }
3441
 
3442
      boolean this_present_bcc = true && this.isSetBcc();
3443
      boolean that_present_bcc = true && that.isSetBcc();
3444
      if (this_present_bcc || that_present_bcc) {
3445
        if (!(this_present_bcc && that_present_bcc))
3446
          return false;
3447
        if (!this.bcc.equals(that.bcc))
3448
          return false;
3449
      }
3450
 
8020 rajveer 3451
      boolean this_present_sourceId = true;
3452
      boolean that_present_sourceId = true;
3453
      if (this_present_sourceId || that_present_sourceId) {
3454
        if (!(this_present_sourceId && that_present_sourceId))
3455
          return false;
3456
        if (this.sourceId != that.sourceId)
3457
          return false;
3458
      }
3459
 
1395 varun.gupt 3460
      return true;
3461
    }
3462
 
3463
    @Override
3464
    public int hashCode() {
3465
      return 0;
3466
    }
3467
 
3468
    public int compareTo(saveUserEmailForSending_args other) {
3469
      if (!getClass().equals(other.getClass())) {
3470
        return getClass().getName().compareTo(other.getClass().getName());
3471
      }
3472
 
3473
      int lastComparison = 0;
3474
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3475
 
3430 rajveer 3476
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3477
      if (lastComparison != 0) {
3478
        return lastComparison;
3479
      }
3430 rajveer 3480
      if (isSetEmailTo()) {
3481
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3482
        if (lastComparison != 0) {
3483
          return lastComparison;
3484
        }
1395 varun.gupt 3485
      }
3430 rajveer 3486
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3487
      if (lastComparison != 0) {
3488
        return lastComparison;
3489
      }
3430 rajveer 3490
      if (isSetEmailFrom()) {
3491
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3492
        if (lastComparison != 0) {
3493
          return lastComparison;
3494
        }
1395 varun.gupt 3495
      }
3430 rajveer 3496
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3497
      if (lastComparison != 0) {
3498
        return lastComparison;
3499
      }
3430 rajveer 3500
      if (isSetSubject()) {
3501
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3502
        if (lastComparison != 0) {
3503
          return lastComparison;
3504
        }
1395 varun.gupt 3505
      }
3430 rajveer 3506
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3507
      if (lastComparison != 0) {
3508
        return lastComparison;
3509
      }
3430 rajveer 3510
      if (isSetBody()) {
3511
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3512
        if (lastComparison != 0) {
3513
          return lastComparison;
3514
        }
1395 varun.gupt 3515
      }
3430 rajveer 3516
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3517
      if (lastComparison != 0) {
3518
        return lastComparison;
3519
      }
3430 rajveer 3520
      if (isSetSource()) {
3521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3522
        if (lastComparison != 0) {
3523
          return lastComparison;
3524
        }
1395 varun.gupt 3525
      }
3430 rajveer 3526
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3527
      if (lastComparison != 0) {
3528
        return lastComparison;
3529
      }
3430 rajveer 3530
      if (isSetEmailType()) {
3531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3532
        if (lastComparison != 0) {
3533
          return lastComparison;
3534
        }
1395 varun.gupt 3535
      }
5864 rajveer 3536
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3537
      if (lastComparison != 0) {
3538
        return lastComparison;
3539
      }
3540
      if (isSetCc()) {
3541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3542
        if (lastComparison != 0) {
3543
          return lastComparison;
3544
        }
3545
      }
3546
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3547
      if (lastComparison != 0) {
3548
        return lastComparison;
3549
      }
3550
      if (isSetBcc()) {
3551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3552
        if (lastComparison != 0) {
3553
          return lastComparison;
3554
        }
3555
      }
8020 rajveer 3556
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
3557
      if (lastComparison != 0) {
3558
        return lastComparison;
3559
      }
3560
      if (isSetSourceId()) {
3561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
3562
        if (lastComparison != 0) {
3563
          return lastComparison;
3564
        }
3565
      }
1395 varun.gupt 3566
      return 0;
3567
    }
3568
 
3430 rajveer 3569
    public _Fields fieldForId(int fieldId) {
3570
      return _Fields.findByThriftId(fieldId);
3571
    }
3572
 
3573
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3574
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3575
      iprot.readStructBegin();
3576
      while (true)
3577
      {
3578
        field = iprot.readFieldBegin();
3430 rajveer 3579
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3580
          break;
3581
        }
3430 rajveer 3582
        switch (field.id) {
3583
          case 1: // EMAIL_TO
5864 rajveer 3584
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3585
              {
3586
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3587
                this.emailTo = new ArrayList<String>(_list20.size);
3588
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3589
                {
3590
                  String _elem22; // required
3591
                  _elem22 = iprot.readString();
3592
                  this.emailTo.add(_elem22);
3593
                }
3594
                iprot.readListEnd();
3595
              }
3430 rajveer 3596
            } else { 
3597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3598
            }
3599
            break;
3600
          case 2: // EMAIL_FROM
3601
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3602
              this.emailFrom = iprot.readString();
3603
            } else { 
3604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3605
            }
3606
            break;
3607
          case 3: // SUBJECT
3608
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3609
              this.subject = iprot.readString();
3610
            } else { 
3611
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3612
            }
3613
            break;
3614
          case 4: // BODY
3615
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3616
              this.body = iprot.readString();
3617
            } else { 
3618
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3619
            }
3620
            break;
3621
          case 5: // SOURCE
3622
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3623
              this.source = iprot.readString();
3624
            } else { 
3625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3626
            }
3627
            break;
3628
          case 6: // EMAIL_TYPE
3629
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3630
              this.emailType = iprot.readString();
3631
            } else { 
3632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3633
            }
3634
            break;
5864 rajveer 3635
          case 7: // CC
3636
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3637
              {
3638
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3639
                this.cc = new ArrayList<String>(_list23.size);
3640
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3641
                {
3642
                  String _elem25; // required
3643
                  _elem25 = iprot.readString();
3644
                  this.cc.add(_elem25);
3645
                }
3646
                iprot.readListEnd();
3647
              }
3648
            } else { 
3649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3650
            }
3651
            break;
3652
          case 8: // BCC
3653
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3654
              {
3655
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3656
                this.bcc = new ArrayList<String>(_list26.size);
3657
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3658
                {
3659
                  String _elem28; // required
3660
                  _elem28 = iprot.readString();
3661
                  this.bcc.add(_elem28);
3662
                }
3663
                iprot.readListEnd();
3664
              }
3665
            } else { 
3666
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3667
            }
3668
            break;
8020 rajveer 3669
          case 9: // SOURCE_ID
3670
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3671
              this.sourceId = iprot.readI64();
3672
              setSourceIdIsSet(true);
3673
            } else { 
3674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3675
            }
3676
            break;
3430 rajveer 3677
          default:
3678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3679
        }
3430 rajveer 3680
        iprot.readFieldEnd();
1395 varun.gupt 3681
      }
3682
      iprot.readStructEnd();
3683
      validate();
3684
    }
3685
 
3430 rajveer 3686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3687
      validate();
3688
 
3689
      oprot.writeStructBegin(STRUCT_DESC);
3690
      if (this.emailTo != null) {
3691
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3692
        {
3693
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3694
          for (String _iter29 : this.emailTo)
3695
          {
3696
            oprot.writeString(_iter29);
3697
          }
3698
          oprot.writeListEnd();
3699
        }
1395 varun.gupt 3700
        oprot.writeFieldEnd();
3701
      }
3702
      if (this.emailFrom != null) {
3703
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3704
        oprot.writeString(this.emailFrom);
3705
        oprot.writeFieldEnd();
3706
      }
3707
      if (this.subject != null) {
3708
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3709
        oprot.writeString(this.subject);
3710
        oprot.writeFieldEnd();
3711
      }
3712
      if (this.body != null) {
3713
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3714
        oprot.writeString(this.body);
3715
        oprot.writeFieldEnd();
3716
      }
3717
      if (this.source != null) {
3718
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3719
        oprot.writeString(this.source);
3720
        oprot.writeFieldEnd();
3721
      }
3722
      if (this.emailType != null) {
3723
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3724
        oprot.writeString(this.emailType);
3725
        oprot.writeFieldEnd();
3726
      }
5864 rajveer 3727
      if (this.cc != null) {
3728
        oprot.writeFieldBegin(CC_FIELD_DESC);
3729
        {
3730
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3731
          for (String _iter30 : this.cc)
3732
          {
3733
            oprot.writeString(_iter30);
3734
          }
3735
          oprot.writeListEnd();
3736
        }
3737
        oprot.writeFieldEnd();
3738
      }
3739
      if (this.bcc != null) {
3740
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3741
        {
3742
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3743
          for (String _iter31 : this.bcc)
3744
          {
3745
            oprot.writeString(_iter31);
3746
          }
3747
          oprot.writeListEnd();
3748
        }
3749
        oprot.writeFieldEnd();
3750
      }
8020 rajveer 3751
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
3752
      oprot.writeI64(this.sourceId);
3753
      oprot.writeFieldEnd();
1395 varun.gupt 3754
      oprot.writeFieldStop();
3755
      oprot.writeStructEnd();
3756
    }
3757
 
3758
    @Override
3759
    public String toString() {
3760
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3761
      boolean first = true;
3762
 
3763
      sb.append("emailTo:");
3764
      if (this.emailTo == null) {
3765
        sb.append("null");
3766
      } else {
3767
        sb.append(this.emailTo);
3768
      }
3769
      first = false;
3770
      if (!first) sb.append(", ");
3771
      sb.append("emailFrom:");
3772
      if (this.emailFrom == null) {
3773
        sb.append("null");
3774
      } else {
3775
        sb.append(this.emailFrom);
3776
      }
3777
      first = false;
3778
      if (!first) sb.append(", ");
3779
      sb.append("subject:");
3780
      if (this.subject == null) {
3781
        sb.append("null");
3782
      } else {
3783
        sb.append(this.subject);
3784
      }
3785
      first = false;
3786
      if (!first) sb.append(", ");
3787
      sb.append("body:");
3788
      if (this.body == null) {
3789
        sb.append("null");
3790
      } else {
3791
        sb.append(this.body);
3792
      }
3793
      first = false;
3794
      if (!first) sb.append(", ");
3795
      sb.append("source:");
3796
      if (this.source == null) {
3797
        sb.append("null");
3798
      } else {
3799
        sb.append(this.source);
3800
      }
3801
      first = false;
3802
      if (!first) sb.append(", ");
3803
      sb.append("emailType:");
3804
      if (this.emailType == null) {
3805
        sb.append("null");
3806
      } else {
3807
        sb.append(this.emailType);
3808
      }
3809
      first = false;
5864 rajveer 3810
      if (!first) sb.append(", ");
3811
      sb.append("cc:");
3812
      if (this.cc == null) {
3813
        sb.append("null");
3814
      } else {
3815
        sb.append(this.cc);
3816
      }
3817
      first = false;
3818
      if (!first) sb.append(", ");
3819
      sb.append("bcc:");
3820
      if (this.bcc == null) {
3821
        sb.append("null");
3822
      } else {
3823
        sb.append(this.bcc);
3824
      }
3825
      first = false;
8020 rajveer 3826
      if (!first) sb.append(", ");
3827
      sb.append("sourceId:");
3828
      sb.append(this.sourceId);
3829
      first = false;
1395 varun.gupt 3830
      sb.append(")");
3831
      return sb.toString();
3832
    }
3833
 
3430 rajveer 3834
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3835
      // check for required fields
3836
    }
3837
 
3430 rajveer 3838
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3839
      try {
3840
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3841
      } catch (org.apache.thrift.TException te) {
3842
        throw new java.io.IOException(te);
3843
      }
3844
    }
3845
 
3846
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3847
      try {
3848
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3849
      } catch (org.apache.thrift.TException te) {
3850
        throw new java.io.IOException(te);
3851
      }
3852
    }
3853
 
1395 varun.gupt 3854
  }
3855
 
3430 rajveer 3856
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3857
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3858
 
3430 rajveer 3859
    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);
3860
    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 3861
 
3430 rajveer 3862
    private long success; // required
3863
    private HelperServiceException se; // required
1395 varun.gupt 3864
 
3865
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3866
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3867
      SUCCESS((short)0, "success"),
1395 varun.gupt 3868
      SE((short)1, "se");
3869
 
3870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3871
 
3872
      static {
3873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3874
          byName.put(field.getFieldName(), field);
3875
        }
3876
      }
3877
 
3878
      /**
3879
       * Find the _Fields constant that matches fieldId, or null if its not found.
3880
       */
3881
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3882
        switch(fieldId) {
3883
          case 0: // SUCCESS
3884
            return SUCCESS;
3885
          case 1: // SE
3886
            return SE;
3887
          default:
3888
            return null;
3889
        }
1395 varun.gupt 3890
      }
3891
 
3892
      /**
3893
       * Find the _Fields constant that matches fieldId, throwing an exception
3894
       * if it is not found.
3895
       */
3896
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3897
        _Fields fields = findByThriftId(fieldId);
3898
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3899
        return fields;
3900
      }
3901
 
3902
      /**
3903
       * Find the _Fields constant that matches name, or null if its not found.
3904
       */
3905
      public static _Fields findByName(String name) {
3906
        return byName.get(name);
3907
      }
3908
 
3909
      private final short _thriftId;
3910
      private final String _fieldName;
3911
 
3912
      _Fields(short thriftId, String fieldName) {
3913
        _thriftId = thriftId;
3914
        _fieldName = fieldName;
3915
      }
3916
 
3917
      public short getThriftFieldId() {
3918
        return _thriftId;
3919
      }
3920
 
3921
      public String getFieldName() {
3922
        return _fieldName;
3923
      }
3924
    }
3925
 
3926
    // isset id assignments
3206 mandeep.dh 3927
    private static final int __SUCCESS_ISSET_ID = 0;
3928
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3929
 
3430 rajveer 3930
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3931
    static {
3430 rajveer 3932
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3933
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3934
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3935
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3936
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3937
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3938
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3939
    }
3940
 
3941
    public saveUserEmailForSending_result() {
3942
    }
3943
 
3944
    public saveUserEmailForSending_result(
3206 mandeep.dh 3945
      long success,
1395 varun.gupt 3946
      HelperServiceException se)
3947
    {
3948
      this();
3206 mandeep.dh 3949
      this.success = success;
3950
      setSuccessIsSet(true);
1395 varun.gupt 3951
      this.se = se;
3952
    }
3953
 
3954
    /**
3955
     * Performs a deep copy on <i>other</i>.
3956
     */
3957
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3958
      __isset_bit_vector.clear();
3959
      __isset_bit_vector.or(other.__isset_bit_vector);
3960
      this.success = other.success;
1395 varun.gupt 3961
      if (other.isSetSe()) {
3962
        this.se = new HelperServiceException(other.se);
3963
      }
3964
    }
3965
 
3966
    public saveUserEmailForSending_result deepCopy() {
3967
      return new saveUserEmailForSending_result(this);
3968
    }
3969
 
3430 rajveer 3970
    @Override
3971
    public void clear() {
3972
      setSuccessIsSet(false);
3973
      this.success = 0;
3974
      this.se = null;
1395 varun.gupt 3975
    }
3976
 
3206 mandeep.dh 3977
    public long getSuccess() {
3978
      return this.success;
3979
    }
3980
 
3430 rajveer 3981
    public void setSuccess(long success) {
3206 mandeep.dh 3982
      this.success = success;
3983
      setSuccessIsSet(true);
3984
    }
3985
 
3986
    public void unsetSuccess() {
3987
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3988
    }
3989
 
3430 rajveer 3990
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3991
    public boolean isSetSuccess() {
3992
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3993
    }
3994
 
3995
    public void setSuccessIsSet(boolean value) {
3996
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3997
    }
3998
 
1395 varun.gupt 3999
    public HelperServiceException getSe() {
4000
      return this.se;
4001
    }
4002
 
3430 rajveer 4003
    public void setSe(HelperServiceException se) {
1395 varun.gupt 4004
      this.se = se;
4005
    }
4006
 
4007
    public void unsetSe() {
4008
      this.se = null;
4009
    }
4010
 
3430 rajveer 4011
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4012
    public boolean isSetSe() {
4013
      return this.se != null;
4014
    }
4015
 
4016
    public void setSeIsSet(boolean value) {
4017
      if (!value) {
4018
        this.se = null;
4019
      }
4020
    }
4021
 
4022
    public void setFieldValue(_Fields field, Object value) {
4023
      switch (field) {
3206 mandeep.dh 4024
      case SUCCESS:
4025
        if (value == null) {
4026
          unsetSuccess();
4027
        } else {
4028
          setSuccess((Long)value);
4029
        }
4030
        break;
4031
 
1395 varun.gupt 4032
      case SE:
4033
        if (value == null) {
4034
          unsetSe();
4035
        } else {
4036
          setSe((HelperServiceException)value);
4037
        }
4038
        break;
4039
 
4040
      }
4041
    }
4042
 
4043
    public Object getFieldValue(_Fields field) {
4044
      switch (field) {
3206 mandeep.dh 4045
      case SUCCESS:
3430 rajveer 4046
        return Long.valueOf(getSuccess());
3206 mandeep.dh 4047
 
1395 varun.gupt 4048
      case SE:
4049
        return getSe();
4050
 
4051
      }
4052
      throw new IllegalStateException();
4053
    }
4054
 
3430 rajveer 4055
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4056
    public boolean isSet(_Fields field) {
4057
      if (field == null) {
4058
        throw new IllegalArgumentException();
4059
      }
1395 varun.gupt 4060
 
4061
      switch (field) {
3206 mandeep.dh 4062
      case SUCCESS:
4063
        return isSetSuccess();
1395 varun.gupt 4064
      case SE:
4065
        return isSetSe();
4066
      }
4067
      throw new IllegalStateException();
4068
    }
4069
 
4070
    @Override
4071
    public boolean equals(Object that) {
4072
      if (that == null)
4073
        return false;
4074
      if (that instanceof saveUserEmailForSending_result)
4075
        return this.equals((saveUserEmailForSending_result)that);
4076
      return false;
4077
    }
4078
 
4079
    public boolean equals(saveUserEmailForSending_result that) {
4080
      if (that == null)
4081
        return false;
4082
 
3206 mandeep.dh 4083
      boolean this_present_success = true;
4084
      boolean that_present_success = true;
4085
      if (this_present_success || that_present_success) {
4086
        if (!(this_present_success && that_present_success))
4087
          return false;
4088
        if (this.success != that.success)
4089
          return false;
4090
      }
4091
 
1395 varun.gupt 4092
      boolean this_present_se = true && this.isSetSe();
4093
      boolean that_present_se = true && that.isSetSe();
4094
      if (this_present_se || that_present_se) {
4095
        if (!(this_present_se && that_present_se))
4096
          return false;
4097
        if (!this.se.equals(that.se))
4098
          return false;
4099
      }
4100
 
4101
      return true;
4102
    }
4103
 
4104
    @Override
4105
    public int hashCode() {
4106
      return 0;
4107
    }
4108
 
4109
    public int compareTo(saveUserEmailForSending_result other) {
4110
      if (!getClass().equals(other.getClass())) {
4111
        return getClass().getName().compareTo(other.getClass().getName());
4112
      }
4113
 
4114
      int lastComparison = 0;
4115
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
4116
 
3430 rajveer 4117
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 4118
      if (lastComparison != 0) {
4119
        return lastComparison;
4120
      }
3430 rajveer 4121
      if (isSetSuccess()) {
4122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4123
        if (lastComparison != 0) {
4124
          return lastComparison;
4125
        }
3206 mandeep.dh 4126
      }
3430 rajveer 4127
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 4128
      if (lastComparison != 0) {
4129
        return lastComparison;
4130
      }
3430 rajveer 4131
      if (isSetSe()) {
4132
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4133
        if (lastComparison != 0) {
4134
          return lastComparison;
4135
        }
1395 varun.gupt 4136
      }
4137
      return 0;
4138
    }
4139
 
3430 rajveer 4140
    public _Fields fieldForId(int fieldId) {
4141
      return _Fields.findByThriftId(fieldId);
4142
    }
4143
 
4144
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4145
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 4146
      iprot.readStructBegin();
4147
      while (true)
4148
      {
4149
        field = iprot.readFieldBegin();
3430 rajveer 4150
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 4151
          break;
4152
        }
3430 rajveer 4153
        switch (field.id) {
4154
          case 0: // SUCCESS
4155
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4156
              this.success = iprot.readI64();
4157
              setSuccessIsSet(true);
4158
            } else { 
4159
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4160
            }
4161
            break;
4162
          case 1: // SE
4163
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4164
              this.se = new HelperServiceException();
4165
              this.se.read(iprot);
4166
            } else { 
4167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4168
            }
4169
            break;
4170
          default:
4171
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4172
        }
3430 rajveer 4173
        iprot.readFieldEnd();
1395 varun.gupt 4174
      }
4175
      iprot.readStructEnd();
4176
      validate();
4177
    }
4178
 
3430 rajveer 4179
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4180
      oprot.writeStructBegin(STRUCT_DESC);
4181
 
3206 mandeep.dh 4182
      if (this.isSetSuccess()) {
4183
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4184
        oprot.writeI64(this.success);
4185
        oprot.writeFieldEnd();
4186
      } else if (this.isSetSe()) {
1395 varun.gupt 4187
        oprot.writeFieldBegin(SE_FIELD_DESC);
4188
        this.se.write(oprot);
4189
        oprot.writeFieldEnd();
4190
      }
4191
      oprot.writeFieldStop();
4192
      oprot.writeStructEnd();
4193
    }
4194
 
4195
    @Override
4196
    public String toString() {
4197
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
4198
      boolean first = true;
4199
 
3206 mandeep.dh 4200
      sb.append("success:");
4201
      sb.append(this.success);
4202
      first = false;
4203
      if (!first) sb.append(", ");
1395 varun.gupt 4204
      sb.append("se:");
4205
      if (this.se == null) {
4206
        sb.append("null");
4207
      } else {
4208
        sb.append(this.se);
4209
      }
4210
      first = false;
4211
      sb.append(")");
4212
      return sb.toString();
4213
    }
4214
 
3430 rajveer 4215
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4216
      // check for required fields
4217
    }
4218
 
3430 rajveer 4219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4220
      try {
4221
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4222
      } catch (org.apache.thrift.TException te) {
4223
        throw new java.io.IOException(te);
4224
      }
4225
    }
4226
 
4227
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4228
      try {
4229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4230
      } catch (org.apache.thrift.TException te) {
4231
        throw new java.io.IOException(te);
4232
      }
4233
    }
4234
 
1395 varun.gupt 4235
  }
4236
 
3430 rajveer 4237
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
4238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 4239
 
4240
 
4241
 
4242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 4244
;
1422 varun.gupt 4245
 
4246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4247
 
4248
      static {
4249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4250
          byName.put(field.getFieldName(), field);
4251
        }
4252
      }
4253
 
4254
      /**
4255
       * Find the _Fields constant that matches fieldId, or null if its not found.
4256
       */
4257
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4258
        switch(fieldId) {
4259
          default:
4260
            return null;
4261
        }
1422 varun.gupt 4262
      }
4263
 
4264
      /**
4265
       * Find the _Fields constant that matches fieldId, throwing an exception
4266
       * if it is not found.
4267
       */
4268
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4269
        _Fields fields = findByThriftId(fieldId);
4270
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4271
        return fields;
4272
      }
4273
 
4274
      /**
4275
       * Find the _Fields constant that matches name, or null if its not found.
4276
       */
4277
      public static _Fields findByName(String name) {
4278
        return byName.get(name);
4279
      }
4280
 
4281
      private final short _thriftId;
4282
      private final String _fieldName;
4283
 
4284
      _Fields(short thriftId, String fieldName) {
4285
        _thriftId = thriftId;
4286
        _fieldName = fieldName;
4287
      }
4288
 
4289
      public short getThriftFieldId() {
4290
        return _thriftId;
4291
      }
4292
 
4293
      public String getFieldName() {
4294
        return _fieldName;
4295
      }
4296
    }
3430 rajveer 4297
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4298
    static {
3430 rajveer 4299
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4300
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4301
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 4302
    }
4303
 
4304
    public getEmailsToBeSent_args() {
4305
    }
4306
 
4307
    /**
4308
     * Performs a deep copy on <i>other</i>.
4309
     */
4310
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
4311
    }
4312
 
4313
    public getEmailsToBeSent_args deepCopy() {
4314
      return new getEmailsToBeSent_args(this);
4315
    }
4316
 
3430 rajveer 4317
    @Override
4318
    public void clear() {
1422 varun.gupt 4319
    }
4320
 
4321
    public void setFieldValue(_Fields field, Object value) {
4322
      switch (field) {
4323
      }
4324
    }
4325
 
4326
    public Object getFieldValue(_Fields field) {
4327
      switch (field) {
4328
      }
4329
      throw new IllegalStateException();
4330
    }
4331
 
3430 rajveer 4332
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4333
    public boolean isSet(_Fields field) {
4334
      if (field == null) {
4335
        throw new IllegalArgumentException();
4336
      }
1422 varun.gupt 4337
 
4338
      switch (field) {
4339
      }
4340
      throw new IllegalStateException();
4341
    }
4342
 
4343
    @Override
4344
    public boolean equals(Object that) {
4345
      if (that == null)
4346
        return false;
4347
      if (that instanceof getEmailsToBeSent_args)
4348
        return this.equals((getEmailsToBeSent_args)that);
4349
      return false;
4350
    }
4351
 
4352
    public boolean equals(getEmailsToBeSent_args that) {
4353
      if (that == null)
4354
        return false;
4355
 
4356
      return true;
4357
    }
4358
 
4359
    @Override
4360
    public int hashCode() {
4361
      return 0;
4362
    }
4363
 
4364
    public int compareTo(getEmailsToBeSent_args other) {
4365
      if (!getClass().equals(other.getClass())) {
4366
        return getClass().getName().compareTo(other.getClass().getName());
4367
      }
4368
 
4369
      int lastComparison = 0;
4370
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4371
 
4372
      return 0;
4373
    }
4374
 
3430 rajveer 4375
    public _Fields fieldForId(int fieldId) {
4376
      return _Fields.findByThriftId(fieldId);
4377
    }
4378
 
4379
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4380
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4381
      iprot.readStructBegin();
4382
      while (true)
4383
      {
4384
        field = iprot.readFieldBegin();
3430 rajveer 4385
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4386
          break;
4387
        }
3430 rajveer 4388
        switch (field.id) {
4389
          default:
4390
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4391
        }
3430 rajveer 4392
        iprot.readFieldEnd();
1422 varun.gupt 4393
      }
4394
      iprot.readStructEnd();
4395
      validate();
4396
    }
4397
 
3430 rajveer 4398
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4399
      validate();
4400
 
4401
      oprot.writeStructBegin(STRUCT_DESC);
4402
      oprot.writeFieldStop();
4403
      oprot.writeStructEnd();
4404
    }
4405
 
4406
    @Override
4407
    public String toString() {
4408
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4409
      boolean first = true;
4410
 
4411
      sb.append(")");
4412
      return sb.toString();
4413
    }
4414
 
3430 rajveer 4415
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4416
      // check for required fields
4417
    }
4418
 
3430 rajveer 4419
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4420
      try {
4421
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4422
      } catch (org.apache.thrift.TException te) {
4423
        throw new java.io.IOException(te);
4424
      }
4425
    }
4426
 
4427
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4428
      try {
4429
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4430
      } catch (org.apache.thrift.TException te) {
4431
        throw new java.io.IOException(te);
4432
      }
4433
    }
4434
 
1422 varun.gupt 4435
  }
4436
 
3430 rajveer 4437
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4438
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4439
 
3430 rajveer 4440
    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);
4441
    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 4442
 
3430 rajveer 4443
    private List<UserEmail> success; // required
4444
    private HelperServiceException se; // required
1422 varun.gupt 4445
 
4446
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4447
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4448
      SUCCESS((short)0, "success"),
4449
      SE((short)1, "se");
4450
 
4451
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4452
 
4453
      static {
4454
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4455
          byName.put(field.getFieldName(), field);
4456
        }
4457
      }
4458
 
4459
      /**
4460
       * Find the _Fields constant that matches fieldId, or null if its not found.
4461
       */
4462
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4463
        switch(fieldId) {
4464
          case 0: // SUCCESS
4465
            return SUCCESS;
4466
          case 1: // SE
4467
            return SE;
4468
          default:
4469
            return null;
4470
        }
1422 varun.gupt 4471
      }
4472
 
4473
      /**
4474
       * Find the _Fields constant that matches fieldId, throwing an exception
4475
       * if it is not found.
4476
       */
4477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4478
        _Fields fields = findByThriftId(fieldId);
4479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4480
        return fields;
4481
      }
4482
 
4483
      /**
4484
       * Find the _Fields constant that matches name, or null if its not found.
4485
       */
4486
      public static _Fields findByName(String name) {
4487
        return byName.get(name);
4488
      }
4489
 
4490
      private final short _thriftId;
4491
      private final String _fieldName;
4492
 
4493
      _Fields(short thriftId, String fieldName) {
4494
        _thriftId = thriftId;
4495
        _fieldName = fieldName;
4496
      }
4497
 
4498
      public short getThriftFieldId() {
4499
        return _thriftId;
4500
      }
4501
 
4502
      public String getFieldName() {
4503
        return _fieldName;
4504
      }
4505
    }
4506
 
4507
    // isset id assignments
4508
 
3430 rajveer 4509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4510
    static {
3430 rajveer 4511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4512
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4513
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4514
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4515
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4516
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4517
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4518
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4519
    }
4520
 
4521
    public getEmailsToBeSent_result() {
4522
    }
4523
 
4524
    public getEmailsToBeSent_result(
4525
      List<UserEmail> success,
4526
      HelperServiceException se)
4527
    {
4528
      this();
4529
      this.success = success;
4530
      this.se = se;
4531
    }
4532
 
4533
    /**
4534
     * Performs a deep copy on <i>other</i>.
4535
     */
4536
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4537
      if (other.isSetSuccess()) {
4538
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4539
        for (UserEmail other_element : other.success) {
4540
          __this__success.add(new UserEmail(other_element));
4541
        }
4542
        this.success = __this__success;
4543
      }
4544
      if (other.isSetSe()) {
4545
        this.se = new HelperServiceException(other.se);
4546
      }
4547
    }
4548
 
4549
    public getEmailsToBeSent_result deepCopy() {
4550
      return new getEmailsToBeSent_result(this);
4551
    }
4552
 
3430 rajveer 4553
    @Override
4554
    public void clear() {
4555
      this.success = null;
4556
      this.se = null;
1422 varun.gupt 4557
    }
4558
 
4559
    public int getSuccessSize() {
4560
      return (this.success == null) ? 0 : this.success.size();
4561
    }
4562
 
4563
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4564
      return (this.success == null) ? null : this.success.iterator();
4565
    }
4566
 
4567
    public void addToSuccess(UserEmail elem) {
4568
      if (this.success == null) {
4569
        this.success = new ArrayList<UserEmail>();
4570
      }
4571
      this.success.add(elem);
4572
    }
4573
 
4574
    public List<UserEmail> getSuccess() {
4575
      return this.success;
4576
    }
4577
 
3430 rajveer 4578
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4579
      this.success = success;
4580
    }
4581
 
4582
    public void unsetSuccess() {
4583
      this.success = null;
4584
    }
4585
 
3430 rajveer 4586
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4587
    public boolean isSetSuccess() {
4588
      return this.success != null;
4589
    }
4590
 
4591
    public void setSuccessIsSet(boolean value) {
4592
      if (!value) {
4593
        this.success = null;
4594
      }
4595
    }
4596
 
4597
    public HelperServiceException getSe() {
4598
      return this.se;
4599
    }
4600
 
3430 rajveer 4601
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4602
      this.se = se;
4603
    }
4604
 
4605
    public void unsetSe() {
4606
      this.se = null;
4607
    }
4608
 
3430 rajveer 4609
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4610
    public boolean isSetSe() {
4611
      return this.se != null;
4612
    }
4613
 
4614
    public void setSeIsSet(boolean value) {
4615
      if (!value) {
4616
        this.se = null;
4617
      }
4618
    }
4619
 
4620
    public void setFieldValue(_Fields field, Object value) {
4621
      switch (field) {
4622
      case SUCCESS:
4623
        if (value == null) {
4624
          unsetSuccess();
4625
        } else {
4626
          setSuccess((List<UserEmail>)value);
4627
        }
4628
        break;
4629
 
4630
      case SE:
4631
        if (value == null) {
4632
          unsetSe();
4633
        } else {
4634
          setSe((HelperServiceException)value);
4635
        }
4636
        break;
4637
 
4638
      }
4639
    }
4640
 
4641
    public Object getFieldValue(_Fields field) {
4642
      switch (field) {
4643
      case SUCCESS:
4644
        return getSuccess();
4645
 
4646
      case SE:
4647
        return getSe();
4648
 
4649
      }
4650
      throw new IllegalStateException();
4651
    }
4652
 
3430 rajveer 4653
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4654
    public boolean isSet(_Fields field) {
4655
      if (field == null) {
4656
        throw new IllegalArgumentException();
4657
      }
1422 varun.gupt 4658
 
4659
      switch (field) {
4660
      case SUCCESS:
4661
        return isSetSuccess();
4662
      case SE:
4663
        return isSetSe();
4664
      }
4665
      throw new IllegalStateException();
4666
    }
4667
 
4668
    @Override
4669
    public boolean equals(Object that) {
4670
      if (that == null)
4671
        return false;
4672
      if (that instanceof getEmailsToBeSent_result)
4673
        return this.equals((getEmailsToBeSent_result)that);
4674
      return false;
4675
    }
4676
 
4677
    public boolean equals(getEmailsToBeSent_result that) {
4678
      if (that == null)
4679
        return false;
4680
 
4681
      boolean this_present_success = true && this.isSetSuccess();
4682
      boolean that_present_success = true && that.isSetSuccess();
4683
      if (this_present_success || that_present_success) {
4684
        if (!(this_present_success && that_present_success))
4685
          return false;
4686
        if (!this.success.equals(that.success))
4687
          return false;
4688
      }
4689
 
4690
      boolean this_present_se = true && this.isSetSe();
4691
      boolean that_present_se = true && that.isSetSe();
4692
      if (this_present_se || that_present_se) {
4693
        if (!(this_present_se && that_present_se))
4694
          return false;
4695
        if (!this.se.equals(that.se))
4696
          return false;
4697
      }
4698
 
4699
      return true;
4700
    }
4701
 
4702
    @Override
4703
    public int hashCode() {
4704
      return 0;
4705
    }
4706
 
4707
    public int compareTo(getEmailsToBeSent_result other) {
4708
      if (!getClass().equals(other.getClass())) {
4709
        return getClass().getName().compareTo(other.getClass().getName());
4710
      }
4711
 
4712
      int lastComparison = 0;
4713
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4714
 
3430 rajveer 4715
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4716
      if (lastComparison != 0) {
4717
        return lastComparison;
4718
      }
3430 rajveer 4719
      if (isSetSuccess()) {
4720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4721
        if (lastComparison != 0) {
4722
          return lastComparison;
4723
        }
1422 varun.gupt 4724
      }
3430 rajveer 4725
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4726
      if (lastComparison != 0) {
4727
        return lastComparison;
4728
      }
3430 rajveer 4729
      if (isSetSe()) {
4730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4731
        if (lastComparison != 0) {
4732
          return lastComparison;
4733
        }
1422 varun.gupt 4734
      }
4735
      return 0;
4736
    }
4737
 
3430 rajveer 4738
    public _Fields fieldForId(int fieldId) {
4739
      return _Fields.findByThriftId(fieldId);
4740
    }
4741
 
4742
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4743
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4744
      iprot.readStructBegin();
4745
      while (true)
4746
      {
4747
        field = iprot.readFieldBegin();
3430 rajveer 4748
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4749
          break;
4750
        }
3430 rajveer 4751
        switch (field.id) {
4752
          case 0: // SUCCESS
4753
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4754
              {
5864 rajveer 4755
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4756
                this.success = new ArrayList<UserEmail>(_list32.size);
4757
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4758
                {
5864 rajveer 4759
                  UserEmail _elem34; // required
4760
                  _elem34 = new UserEmail();
4761
                  _elem34.read(iprot);
4762
                  this.success.add(_elem34);
1422 varun.gupt 4763
                }
3430 rajveer 4764
                iprot.readListEnd();
1422 varun.gupt 4765
              }
3430 rajveer 4766
            } else { 
4767
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4768
            }
4769
            break;
4770
          case 1: // SE
4771
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4772
              this.se = new HelperServiceException();
4773
              this.se.read(iprot);
4774
            } else { 
4775
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4776
            }
4777
            break;
4778
          default:
4779
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4780
        }
3430 rajveer 4781
        iprot.readFieldEnd();
1422 varun.gupt 4782
      }
4783
      iprot.readStructEnd();
4784
      validate();
4785
    }
4786
 
3430 rajveer 4787
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4788
      oprot.writeStructBegin(STRUCT_DESC);
4789
 
4790
      if (this.isSetSuccess()) {
4791
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4792
        {
3430 rajveer 4793
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4794
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4795
          {
5864 rajveer 4796
            _iter35.write(oprot);
1422 varun.gupt 4797
          }
4798
          oprot.writeListEnd();
4799
        }
4800
        oprot.writeFieldEnd();
4801
      } else if (this.isSetSe()) {
4802
        oprot.writeFieldBegin(SE_FIELD_DESC);
4803
        this.se.write(oprot);
4804
        oprot.writeFieldEnd();
4805
      }
4806
      oprot.writeFieldStop();
4807
      oprot.writeStructEnd();
4808
    }
4809
 
4810
    @Override
4811
    public String toString() {
4812
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4813
      boolean first = true;
4814
 
4815
      sb.append("success:");
4816
      if (this.success == null) {
4817
        sb.append("null");
4818
      } else {
4819
        sb.append(this.success);
4820
      }
4821
      first = false;
4822
      if (!first) sb.append(", ");
4823
      sb.append("se:");
4824
      if (this.se == null) {
4825
        sb.append("null");
4826
      } else {
4827
        sb.append(this.se);
4828
      }
4829
      first = false;
4830
      sb.append(")");
4831
      return sb.toString();
4832
    }
4833
 
3430 rajveer 4834
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4835
      // check for required fields
4836
    }
4837
 
3430 rajveer 4838
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4839
      try {
4840
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4841
      } catch (org.apache.thrift.TException te) {
4842
        throw new java.io.IOException(te);
4843
      }
4844
    }
4845
 
4846
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4847
      try {
4848
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4849
      } catch (org.apache.thrift.TException te) {
4850
        throw new java.io.IOException(te);
4851
      }
4852
    }
4853
 
1422 varun.gupt 4854
  }
4855
 
3430 rajveer 4856
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4857
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4858
 
3430 rajveer 4859
    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 4860
 
3430 rajveer 4861
    private long emailId; // required
1422 varun.gupt 4862
 
4863
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4864
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4865
      EMAIL_ID((short)1, "emailId");
4866
 
4867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4868
 
4869
      static {
4870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4871
          byName.put(field.getFieldName(), field);
4872
        }
4873
      }
4874
 
4875
      /**
4876
       * Find the _Fields constant that matches fieldId, or null if its not found.
4877
       */
4878
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4879
        switch(fieldId) {
4880
          case 1: // EMAIL_ID
4881
            return EMAIL_ID;
4882
          default:
4883
            return null;
4884
        }
1422 varun.gupt 4885
      }
4886
 
4887
      /**
4888
       * Find the _Fields constant that matches fieldId, throwing an exception
4889
       * if it is not found.
4890
       */
4891
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4892
        _Fields fields = findByThriftId(fieldId);
4893
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4894
        return fields;
4895
      }
4896
 
4897
      /**
4898
       * Find the _Fields constant that matches name, or null if its not found.
4899
       */
4900
      public static _Fields findByName(String name) {
4901
        return byName.get(name);
4902
      }
4903
 
4904
      private final short _thriftId;
4905
      private final String _fieldName;
4906
 
4907
      _Fields(short thriftId, String fieldName) {
4908
        _thriftId = thriftId;
4909
        _fieldName = fieldName;
4910
      }
4911
 
4912
      public short getThriftFieldId() {
4913
        return _thriftId;
4914
      }
4915
 
4916
      public String getFieldName() {
4917
        return _fieldName;
4918
      }
4919
    }
4920
 
4921
    // isset id assignments
4922
    private static final int __EMAILID_ISSET_ID = 0;
4923
    private BitSet __isset_bit_vector = new BitSet(1);
4924
 
3430 rajveer 4925
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4926
    static {
3430 rajveer 4927
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4928
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4929
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4932
    }
4933
 
4934
    public markEmailAsSent_args() {
4935
    }
4936
 
4937
    public markEmailAsSent_args(
4938
      long emailId)
4939
    {
4940
      this();
4941
      this.emailId = emailId;
4942
      setEmailIdIsSet(true);
4943
    }
4944
 
4945
    /**
4946
     * Performs a deep copy on <i>other</i>.
4947
     */
4948
    public markEmailAsSent_args(markEmailAsSent_args other) {
4949
      __isset_bit_vector.clear();
4950
      __isset_bit_vector.or(other.__isset_bit_vector);
4951
      this.emailId = other.emailId;
4952
    }
4953
 
4954
    public markEmailAsSent_args deepCopy() {
4955
      return new markEmailAsSent_args(this);
4956
    }
4957
 
3430 rajveer 4958
    @Override
4959
    public void clear() {
4960
      setEmailIdIsSet(false);
4961
      this.emailId = 0;
1422 varun.gupt 4962
    }
4963
 
4964
    public long getEmailId() {
4965
      return this.emailId;
4966
    }
4967
 
3430 rajveer 4968
    public void setEmailId(long emailId) {
1422 varun.gupt 4969
      this.emailId = emailId;
4970
      setEmailIdIsSet(true);
4971
    }
4972
 
4973
    public void unsetEmailId() {
4974
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4975
    }
4976
 
3430 rajveer 4977
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4978
    public boolean isSetEmailId() {
4979
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4980
    }
4981
 
4982
    public void setEmailIdIsSet(boolean value) {
4983
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4984
    }
4985
 
4986
    public void setFieldValue(_Fields field, Object value) {
4987
      switch (field) {
4988
      case EMAIL_ID:
4989
        if (value == null) {
4990
          unsetEmailId();
4991
        } else {
4992
          setEmailId((Long)value);
4993
        }
4994
        break;
4995
 
4996
      }
4997
    }
4998
 
4999
    public Object getFieldValue(_Fields field) {
5000
      switch (field) {
5001
      case EMAIL_ID:
3430 rajveer 5002
        return Long.valueOf(getEmailId());
1422 varun.gupt 5003
 
5004
      }
5005
      throw new IllegalStateException();
5006
    }
5007
 
3430 rajveer 5008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5009
    public boolean isSet(_Fields field) {
5010
      if (field == null) {
5011
        throw new IllegalArgumentException();
5012
      }
1422 varun.gupt 5013
 
5014
      switch (field) {
5015
      case EMAIL_ID:
5016
        return isSetEmailId();
5017
      }
5018
      throw new IllegalStateException();
5019
    }
5020
 
5021
    @Override
5022
    public boolean equals(Object that) {
5023
      if (that == null)
5024
        return false;
5025
      if (that instanceof markEmailAsSent_args)
5026
        return this.equals((markEmailAsSent_args)that);
5027
      return false;
5028
    }
5029
 
5030
    public boolean equals(markEmailAsSent_args that) {
5031
      if (that == null)
5032
        return false;
5033
 
5034
      boolean this_present_emailId = true;
5035
      boolean that_present_emailId = true;
5036
      if (this_present_emailId || that_present_emailId) {
5037
        if (!(this_present_emailId && that_present_emailId))
5038
          return false;
5039
        if (this.emailId != that.emailId)
5040
          return false;
5041
      }
5042
 
5043
      return true;
5044
    }
5045
 
5046
    @Override
5047
    public int hashCode() {
5048
      return 0;
5049
    }
5050
 
5051
    public int compareTo(markEmailAsSent_args other) {
5052
      if (!getClass().equals(other.getClass())) {
5053
        return getClass().getName().compareTo(other.getClass().getName());
5054
      }
5055
 
5056
      int lastComparison = 0;
5057
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
5058
 
3430 rajveer 5059
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 5060
      if (lastComparison != 0) {
5061
        return lastComparison;
5062
      }
3430 rajveer 5063
      if (isSetEmailId()) {
5064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
5065
        if (lastComparison != 0) {
5066
          return lastComparison;
5067
        }
1422 varun.gupt 5068
      }
5069
      return 0;
5070
    }
5071
 
3430 rajveer 5072
    public _Fields fieldForId(int fieldId) {
5073
      return _Fields.findByThriftId(fieldId);
5074
    }
5075
 
5076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5077
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5078
      iprot.readStructBegin();
5079
      while (true)
5080
      {
5081
        field = iprot.readFieldBegin();
3430 rajveer 5082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5083
          break;
5084
        }
3430 rajveer 5085
        switch (field.id) {
5086
          case 1: // EMAIL_ID
5087
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5088
              this.emailId = iprot.readI64();
5089
              setEmailIdIsSet(true);
5090
            } else { 
5091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5092
            }
5093
            break;
5094
          default:
5095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5096
        }
3430 rajveer 5097
        iprot.readFieldEnd();
1422 varun.gupt 5098
      }
5099
      iprot.readStructEnd();
5100
      validate();
5101
    }
5102
 
3430 rajveer 5103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5104
      validate();
5105
 
5106
      oprot.writeStructBegin(STRUCT_DESC);
5107
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
5108
      oprot.writeI64(this.emailId);
5109
      oprot.writeFieldEnd();
5110
      oprot.writeFieldStop();
5111
      oprot.writeStructEnd();
5112
    }
5113
 
5114
    @Override
5115
    public String toString() {
5116
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
5117
      boolean first = true;
5118
 
5119
      sb.append("emailId:");
5120
      sb.append(this.emailId);
5121
      first = false;
5122
      sb.append(")");
5123
      return sb.toString();
5124
    }
5125
 
3430 rajveer 5126
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5127
      // check for required fields
5128
    }
5129
 
3430 rajveer 5130
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5131
      try {
5132
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5133
      } catch (org.apache.thrift.TException te) {
5134
        throw new java.io.IOException(te);
5135
      }
5136
    }
5137
 
5138
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5139
      try {
5140
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5141
      } catch (org.apache.thrift.TException te) {
5142
        throw new java.io.IOException(te);
5143
      }
5144
    }
5145
 
1422 varun.gupt 5146
  }
5147
 
3430 rajveer 5148
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
5149
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 5150
 
3430 rajveer 5151
    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 5152
 
3430 rajveer 5153
    private HelperServiceException se; // required
1422 varun.gupt 5154
 
5155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5157
      SE((short)1, "se");
5158
 
5159
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5160
 
5161
      static {
5162
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5163
          byName.put(field.getFieldName(), field);
5164
        }
5165
      }
5166
 
5167
      /**
5168
       * Find the _Fields constant that matches fieldId, or null if its not found.
5169
       */
5170
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5171
        switch(fieldId) {
5172
          case 1: // SE
5173
            return SE;
5174
          default:
5175
            return null;
5176
        }
1422 varun.gupt 5177
      }
5178
 
5179
      /**
5180
       * Find the _Fields constant that matches fieldId, throwing an exception
5181
       * if it is not found.
5182
       */
5183
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5184
        _Fields fields = findByThriftId(fieldId);
5185
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5186
        return fields;
5187
      }
5188
 
5189
      /**
5190
       * Find the _Fields constant that matches name, or null if its not found.
5191
       */
5192
      public static _Fields findByName(String name) {
5193
        return byName.get(name);
5194
      }
5195
 
5196
      private final short _thriftId;
5197
      private final String _fieldName;
5198
 
5199
      _Fields(short thriftId, String fieldName) {
5200
        _thriftId = thriftId;
5201
        _fieldName = fieldName;
5202
      }
5203
 
5204
      public short getThriftFieldId() {
5205
        return _thriftId;
5206
      }
5207
 
5208
      public String getFieldName() {
5209
        return _fieldName;
5210
      }
5211
    }
5212
 
5213
    // isset id assignments
5214
 
3430 rajveer 5215
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5216
    static {
3430 rajveer 5217
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5218
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5219
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5220
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5221
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 5222
    }
5223
 
5224
    public markEmailAsSent_result() {
5225
    }
5226
 
5227
    public markEmailAsSent_result(
5228
      HelperServiceException se)
5229
    {
5230
      this();
5231
      this.se = se;
5232
    }
5233
 
5234
    /**
5235
     * Performs a deep copy on <i>other</i>.
5236
     */
5237
    public markEmailAsSent_result(markEmailAsSent_result other) {
5238
      if (other.isSetSe()) {
5239
        this.se = new HelperServiceException(other.se);
5240
      }
5241
    }
5242
 
5243
    public markEmailAsSent_result deepCopy() {
5244
      return new markEmailAsSent_result(this);
5245
    }
5246
 
3430 rajveer 5247
    @Override
5248
    public void clear() {
5249
      this.se = null;
1422 varun.gupt 5250
    }
5251
 
5252
    public HelperServiceException getSe() {
5253
      return this.se;
5254
    }
5255
 
3430 rajveer 5256
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5257
      this.se = se;
5258
    }
5259
 
5260
    public void unsetSe() {
5261
      this.se = null;
5262
    }
5263
 
3430 rajveer 5264
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5265
    public boolean isSetSe() {
5266
      return this.se != null;
5267
    }
5268
 
5269
    public void setSeIsSet(boolean value) {
5270
      if (!value) {
5271
        this.se = null;
5272
      }
5273
    }
5274
 
5275
    public void setFieldValue(_Fields field, Object value) {
5276
      switch (field) {
5277
      case SE:
5278
        if (value == null) {
5279
          unsetSe();
5280
        } else {
5281
          setSe((HelperServiceException)value);
5282
        }
5283
        break;
5284
 
5285
      }
5286
    }
5287
 
5288
    public Object getFieldValue(_Fields field) {
5289
      switch (field) {
5290
      case SE:
5291
        return getSe();
5292
 
5293
      }
5294
      throw new IllegalStateException();
5295
    }
5296
 
3430 rajveer 5297
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5298
    public boolean isSet(_Fields field) {
5299
      if (field == null) {
5300
        throw new IllegalArgumentException();
5301
      }
1422 varun.gupt 5302
 
5303
      switch (field) {
5304
      case SE:
5305
        return isSetSe();
5306
      }
5307
      throw new IllegalStateException();
5308
    }
5309
 
5310
    @Override
5311
    public boolean equals(Object that) {
5312
      if (that == null)
5313
        return false;
5314
      if (that instanceof markEmailAsSent_result)
5315
        return this.equals((markEmailAsSent_result)that);
5316
      return false;
5317
    }
5318
 
5319
    public boolean equals(markEmailAsSent_result that) {
5320
      if (that == null)
5321
        return false;
5322
 
5323
      boolean this_present_se = true && this.isSetSe();
5324
      boolean that_present_se = true && that.isSetSe();
5325
      if (this_present_se || that_present_se) {
5326
        if (!(this_present_se && that_present_se))
5327
          return false;
5328
        if (!this.se.equals(that.se))
5329
          return false;
5330
      }
5331
 
5332
      return true;
5333
    }
5334
 
5335
    @Override
5336
    public int hashCode() {
5337
      return 0;
5338
    }
5339
 
5340
    public int compareTo(markEmailAsSent_result other) {
5341
      if (!getClass().equals(other.getClass())) {
5342
        return getClass().getName().compareTo(other.getClass().getName());
5343
      }
5344
 
5345
      int lastComparison = 0;
5346
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5347
 
3430 rajveer 5348
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5349
      if (lastComparison != 0) {
5350
        return lastComparison;
5351
      }
3430 rajveer 5352
      if (isSetSe()) {
5353
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5354
        if (lastComparison != 0) {
5355
          return lastComparison;
5356
        }
1422 varun.gupt 5357
      }
5358
      return 0;
5359
    }
5360
 
3430 rajveer 5361
    public _Fields fieldForId(int fieldId) {
5362
      return _Fields.findByThriftId(fieldId);
5363
    }
5364
 
5365
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5366
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5367
      iprot.readStructBegin();
5368
      while (true)
5369
      {
5370
        field = iprot.readFieldBegin();
3430 rajveer 5371
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5372
          break;
5373
        }
3430 rajveer 5374
        switch (field.id) {
5375
          case 1: // SE
5376
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5377
              this.se = new HelperServiceException();
5378
              this.se.read(iprot);
5379
            } else { 
5380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5381
            }
5382
            break;
5383
          default:
5384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5385
        }
3430 rajveer 5386
        iprot.readFieldEnd();
1422 varun.gupt 5387
      }
5388
      iprot.readStructEnd();
5389
      validate();
5390
    }
5391
 
3430 rajveer 5392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5393
      oprot.writeStructBegin(STRUCT_DESC);
5394
 
5395
      if (this.isSetSe()) {
5396
        oprot.writeFieldBegin(SE_FIELD_DESC);
5397
        this.se.write(oprot);
5398
        oprot.writeFieldEnd();
5399
      }
5400
      oprot.writeFieldStop();
5401
      oprot.writeStructEnd();
5402
    }
5403
 
5404
    @Override
5405
    public String toString() {
5406
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5407
      boolean first = true;
5408
 
5409
      sb.append("se:");
5410
      if (this.se == null) {
5411
        sb.append("null");
5412
      } else {
5413
        sb.append(this.se);
5414
      }
5415
      first = false;
5416
      sb.append(")");
5417
      return sb.toString();
5418
    }
5419
 
3430 rajveer 5420
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5421
      // check for required fields
5422
    }
5423
 
3430 rajveer 5424
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5425
      try {
5426
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5427
      } catch (org.apache.thrift.TException te) {
5428
        throw new java.io.IOException(te);
5429
      }
5430
    }
5431
 
5432
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5433
      try {
5434
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5435
      } catch (org.apache.thrift.TException te) {
5436
        throw new java.io.IOException(te);
5437
      }
5438
    }
5439
 
1422 varun.gupt 5440
  }
5441
 
3430 rajveer 5442
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5443
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5444
 
3430 rajveer 5445
    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 5446
 
3430 rajveer 5447
    private Mail mail; // required
352 ashish 5448
 
5449
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5450
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5451
      MAIL((short)1, "mail");
5452
 
5453
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5454
 
5455
      static {
5456
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5457
          byName.put(field.getFieldName(), field);
5458
        }
5459
      }
5460
 
5461
      /**
5462
       * Find the _Fields constant that matches fieldId, or null if its not found.
5463
       */
5464
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5465
        switch(fieldId) {
5466
          case 1: // MAIL
5467
            return MAIL;
5468
          default:
5469
            return null;
5470
        }
352 ashish 5471
      }
5472
 
5473
      /**
5474
       * Find the _Fields constant that matches fieldId, throwing an exception
5475
       * if it is not found.
5476
       */
5477
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5478
        _Fields fields = findByThriftId(fieldId);
5479
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5480
        return fields;
5481
      }
5482
 
5483
      /**
5484
       * Find the _Fields constant that matches name, or null if its not found.
5485
       */
5486
      public static _Fields findByName(String name) {
5487
        return byName.get(name);
5488
      }
5489
 
5490
      private final short _thriftId;
5491
      private final String _fieldName;
5492
 
5493
      _Fields(short thriftId, String fieldName) {
5494
        _thriftId = thriftId;
5495
        _fieldName = fieldName;
5496
      }
5497
 
5498
      public short getThriftFieldId() {
5499
        return _thriftId;
5500
      }
5501
 
5502
      public String getFieldName() {
5503
        return _fieldName;
5504
      }
5505
    }
5506
 
5507
    // isset id assignments
5508
 
3430 rajveer 5509
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5510
    static {
3430 rajveer 5511
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5512
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5513
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5514
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5515
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5516
    }
5517
 
5518
    public sendMail_args() {
5519
    }
5520
 
5521
    public sendMail_args(
5522
      Mail mail)
5523
    {
5524
      this();
5525
      this.mail = mail;
5526
    }
5527
 
5528
    /**
5529
     * Performs a deep copy on <i>other</i>.
5530
     */
5531
    public sendMail_args(sendMail_args other) {
5532
      if (other.isSetMail()) {
5533
        this.mail = new Mail(other.mail);
5534
      }
5535
    }
5536
 
5537
    public sendMail_args deepCopy() {
5538
      return new sendMail_args(this);
5539
    }
5540
 
3430 rajveer 5541
    @Override
5542
    public void clear() {
5543
      this.mail = null;
352 ashish 5544
    }
5545
 
5546
    public Mail getMail() {
5547
      return this.mail;
5548
    }
5549
 
3430 rajveer 5550
    public void setMail(Mail mail) {
352 ashish 5551
      this.mail = mail;
5552
    }
5553
 
5554
    public void unsetMail() {
5555
      this.mail = null;
5556
    }
5557
 
3430 rajveer 5558
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5559
    public boolean isSetMail() {
5560
      return this.mail != null;
5561
    }
5562
 
5563
    public void setMailIsSet(boolean value) {
5564
      if (!value) {
5565
        this.mail = null;
5566
      }
5567
    }
5568
 
5569
    public void setFieldValue(_Fields field, Object value) {
5570
      switch (field) {
5571
      case MAIL:
5572
        if (value == null) {
5573
          unsetMail();
5574
        } else {
5575
          setMail((Mail)value);
5576
        }
5577
        break;
5578
 
5579
      }
5580
    }
5581
 
5582
    public Object getFieldValue(_Fields field) {
5583
      switch (field) {
5584
      case MAIL:
5585
        return getMail();
5586
 
5587
      }
5588
      throw new IllegalStateException();
5589
    }
5590
 
3430 rajveer 5591
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5592
    public boolean isSet(_Fields field) {
5593
      if (field == null) {
5594
        throw new IllegalArgumentException();
5595
      }
352 ashish 5596
 
5597
      switch (field) {
5598
      case MAIL:
5599
        return isSetMail();
5600
      }
5601
      throw new IllegalStateException();
5602
    }
5603
 
5604
    @Override
5605
    public boolean equals(Object that) {
5606
      if (that == null)
5607
        return false;
5608
      if (that instanceof sendMail_args)
5609
        return this.equals((sendMail_args)that);
5610
      return false;
5611
    }
5612
 
5613
    public boolean equals(sendMail_args that) {
5614
      if (that == null)
5615
        return false;
5616
 
5617
      boolean this_present_mail = true && this.isSetMail();
5618
      boolean that_present_mail = true && that.isSetMail();
5619
      if (this_present_mail || that_present_mail) {
5620
        if (!(this_present_mail && that_present_mail))
5621
          return false;
5622
        if (!this.mail.equals(that.mail))
5623
          return false;
5624
      }
5625
 
5626
      return true;
5627
    }
5628
 
5629
    @Override
5630
    public int hashCode() {
5631
      return 0;
5632
    }
5633
 
5634
    public int compareTo(sendMail_args other) {
5635
      if (!getClass().equals(other.getClass())) {
5636
        return getClass().getName().compareTo(other.getClass().getName());
5637
      }
5638
 
5639
      int lastComparison = 0;
5640
      sendMail_args typedOther = (sendMail_args)other;
5641
 
3430 rajveer 5642
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5643
      if (lastComparison != 0) {
5644
        return lastComparison;
5645
      }
3430 rajveer 5646
      if (isSetMail()) {
5647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5648
        if (lastComparison != 0) {
5649
          return lastComparison;
5650
        }
352 ashish 5651
      }
5652
      return 0;
5653
    }
5654
 
3430 rajveer 5655
    public _Fields fieldForId(int fieldId) {
5656
      return _Fields.findByThriftId(fieldId);
5657
    }
5658
 
5659
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5660
      org.apache.thrift.protocol.TField field;
352 ashish 5661
      iprot.readStructBegin();
5662
      while (true)
5663
      {
5664
        field = iprot.readFieldBegin();
3430 rajveer 5665
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5666
          break;
5667
        }
3430 rajveer 5668
        switch (field.id) {
5669
          case 1: // MAIL
5670
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5671
              this.mail = new Mail();
5672
              this.mail.read(iprot);
5673
            } else { 
5674
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5675
            }
5676
            break;
5677
          default:
5678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5679
        }
3430 rajveer 5680
        iprot.readFieldEnd();
352 ashish 5681
      }
5682
      iprot.readStructEnd();
5683
      validate();
5684
    }
5685
 
3430 rajveer 5686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5687
      validate();
5688
 
5689
      oprot.writeStructBegin(STRUCT_DESC);
5690
      if (this.mail != null) {
5691
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5692
        this.mail.write(oprot);
5693
        oprot.writeFieldEnd();
5694
      }
5695
      oprot.writeFieldStop();
5696
      oprot.writeStructEnd();
5697
    }
5698
 
5699
    @Override
5700
    public String toString() {
5701
      StringBuilder sb = new StringBuilder("sendMail_args(");
5702
      boolean first = true;
5703
 
5704
      sb.append("mail:");
5705
      if (this.mail == null) {
5706
        sb.append("null");
5707
      } else {
5708
        sb.append(this.mail);
5709
      }
5710
      first = false;
5711
      sb.append(")");
5712
      return sb.toString();
5713
    }
5714
 
3430 rajveer 5715
    public void validate() throws org.apache.thrift.TException {
352 ashish 5716
      // check for required fields
5717
    }
5718
 
3430 rajveer 5719
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5720
      try {
5721
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5722
      } catch (org.apache.thrift.TException te) {
5723
        throw new java.io.IOException(te);
5724
      }
5725
    }
5726
 
5727
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5728
      try {
5729
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5730
      } catch (org.apache.thrift.TException te) {
5731
        throw new java.io.IOException(te);
5732
      }
5733
    }
5734
 
352 ashish 5735
  }
5736
 
3430 rajveer 5737
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5738
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5739
 
3430 rajveer 5740
    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 5741
 
3430 rajveer 5742
    private HelperServiceException se; // required
352 ashish 5743
 
5744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5745
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5746
      SE((short)1, "se");
5747
 
5748
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5749
 
5750
      static {
5751
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5752
          byName.put(field.getFieldName(), field);
5753
        }
5754
      }
5755
 
5756
      /**
5757
       * Find the _Fields constant that matches fieldId, or null if its not found.
5758
       */
5759
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5760
        switch(fieldId) {
5761
          case 1: // SE
5762
            return SE;
5763
          default:
5764
            return null;
5765
        }
352 ashish 5766
      }
5767
 
5768
      /**
5769
       * Find the _Fields constant that matches fieldId, throwing an exception
5770
       * if it is not found.
5771
       */
5772
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5773
        _Fields fields = findByThriftId(fieldId);
5774
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5775
        return fields;
5776
      }
5777
 
5778
      /**
5779
       * Find the _Fields constant that matches name, or null if its not found.
5780
       */
5781
      public static _Fields findByName(String name) {
5782
        return byName.get(name);
5783
      }
5784
 
5785
      private final short _thriftId;
5786
      private final String _fieldName;
5787
 
5788
      _Fields(short thriftId, String fieldName) {
5789
        _thriftId = thriftId;
5790
        _fieldName = fieldName;
5791
      }
5792
 
5793
      public short getThriftFieldId() {
5794
        return _thriftId;
5795
      }
5796
 
5797
      public String getFieldName() {
5798
        return _fieldName;
5799
      }
5800
    }
5801
 
5802
    // isset id assignments
5803
 
3430 rajveer 5804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5805
    static {
3430 rajveer 5806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5807
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5809
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5810
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5811
    }
5812
 
5813
    public sendMail_result() {
5814
    }
5815
 
5816
    public sendMail_result(
5817
      HelperServiceException se)
5818
    {
5819
      this();
5820
      this.se = se;
5821
    }
5822
 
5823
    /**
5824
     * Performs a deep copy on <i>other</i>.
5825
     */
5826
    public sendMail_result(sendMail_result other) {
5827
      if (other.isSetSe()) {
5828
        this.se = new HelperServiceException(other.se);
5829
      }
5830
    }
5831
 
5832
    public sendMail_result deepCopy() {
5833
      return new sendMail_result(this);
5834
    }
5835
 
3430 rajveer 5836
    @Override
5837
    public void clear() {
5838
      this.se = null;
352 ashish 5839
    }
5840
 
5841
    public HelperServiceException getSe() {
5842
      return this.se;
5843
    }
5844
 
3430 rajveer 5845
    public void setSe(HelperServiceException se) {
352 ashish 5846
      this.se = se;
5847
    }
5848
 
5849
    public void unsetSe() {
5850
      this.se = null;
5851
    }
5852
 
3430 rajveer 5853
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5854
    public boolean isSetSe() {
5855
      return this.se != null;
5856
    }
5857
 
5858
    public void setSeIsSet(boolean value) {
5859
      if (!value) {
5860
        this.se = null;
5861
      }
5862
    }
5863
 
5864
    public void setFieldValue(_Fields field, Object value) {
5865
      switch (field) {
5866
      case SE:
5867
        if (value == null) {
5868
          unsetSe();
5869
        } else {
5870
          setSe((HelperServiceException)value);
5871
        }
5872
        break;
5873
 
5874
      }
5875
    }
5876
 
5877
    public Object getFieldValue(_Fields field) {
5878
      switch (field) {
5879
      case SE:
5880
        return getSe();
5881
 
5882
      }
5883
      throw new IllegalStateException();
5884
    }
5885
 
3430 rajveer 5886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5887
    public boolean isSet(_Fields field) {
5888
      if (field == null) {
5889
        throw new IllegalArgumentException();
5890
      }
352 ashish 5891
 
5892
      switch (field) {
5893
      case SE:
5894
        return isSetSe();
5895
      }
5896
      throw new IllegalStateException();
5897
    }
5898
 
5899
    @Override
5900
    public boolean equals(Object that) {
5901
      if (that == null)
5902
        return false;
5903
      if (that instanceof sendMail_result)
5904
        return this.equals((sendMail_result)that);
5905
      return false;
5906
    }
5907
 
5908
    public boolean equals(sendMail_result that) {
5909
      if (that == null)
5910
        return false;
5911
 
5912
      boolean this_present_se = true && this.isSetSe();
5913
      boolean that_present_se = true && that.isSetSe();
5914
      if (this_present_se || that_present_se) {
5915
        if (!(this_present_se && that_present_se))
5916
          return false;
5917
        if (!this.se.equals(that.se))
5918
          return false;
5919
      }
5920
 
5921
      return true;
5922
    }
5923
 
5924
    @Override
5925
    public int hashCode() {
5926
      return 0;
5927
    }
5928
 
5929
    public int compareTo(sendMail_result other) {
5930
      if (!getClass().equals(other.getClass())) {
5931
        return getClass().getName().compareTo(other.getClass().getName());
5932
      }
5933
 
5934
      int lastComparison = 0;
5935
      sendMail_result typedOther = (sendMail_result)other;
5936
 
3430 rajveer 5937
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5938
      if (lastComparison != 0) {
5939
        return lastComparison;
5940
      }
3430 rajveer 5941
      if (isSetSe()) {
5942
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5943
        if (lastComparison != 0) {
5944
          return lastComparison;
5945
        }
352 ashish 5946
      }
5947
      return 0;
5948
    }
5949
 
3430 rajveer 5950
    public _Fields fieldForId(int fieldId) {
5951
      return _Fields.findByThriftId(fieldId);
5952
    }
5953
 
5954
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5955
      org.apache.thrift.protocol.TField field;
352 ashish 5956
      iprot.readStructBegin();
5957
      while (true)
5958
      {
5959
        field = iprot.readFieldBegin();
3430 rajveer 5960
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5961
          break;
5962
        }
3430 rajveer 5963
        switch (field.id) {
5964
          case 1: // SE
5965
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5966
              this.se = new HelperServiceException();
5967
              this.se.read(iprot);
5968
            } else { 
5969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5970
            }
5971
            break;
5972
          default:
5973
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5974
        }
3430 rajveer 5975
        iprot.readFieldEnd();
352 ashish 5976
      }
5977
      iprot.readStructEnd();
5978
      validate();
5979
    }
5980
 
3430 rajveer 5981
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5982
      oprot.writeStructBegin(STRUCT_DESC);
5983
 
5984
      if (this.isSetSe()) {
5985
        oprot.writeFieldBegin(SE_FIELD_DESC);
5986
        this.se.write(oprot);
5987
        oprot.writeFieldEnd();
5988
      }
5989
      oprot.writeFieldStop();
5990
      oprot.writeStructEnd();
5991
    }
5992
 
5993
    @Override
5994
    public String toString() {
5995
      StringBuilder sb = new StringBuilder("sendMail_result(");
5996
      boolean first = true;
5997
 
5998
      sb.append("se:");
5999
      if (this.se == null) {
6000
        sb.append("null");
6001
      } else {
6002
        sb.append(this.se);
6003
      }
6004
      first = false;
6005
      sb.append(")");
6006
      return sb.toString();
6007
    }
6008
 
3430 rajveer 6009
    public void validate() throws org.apache.thrift.TException {
352 ashish 6010
      // check for required fields
6011
    }
6012
 
3430 rajveer 6013
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6014
      try {
6015
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6016
      } catch (org.apache.thrift.TException te) {
6017
        throw new java.io.IOException(te);
6018
      }
6019
    }
6020
 
6021
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6022
      try {
6023
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6024
      } catch (org.apache.thrift.TException te) {
6025
        throw new java.io.IOException(te);
6026
      }
6027
    }
6028
 
352 ashish 6029
  }
6030
 
3430 rajveer 6031
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
6032
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 6033
 
3430 rajveer 6034
    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 6035
 
3430 rajveer 6036
    private TextMessage message; // required
352 ashish 6037
 
6038
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6039
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6040
      MESSAGE((short)1, "message");
6041
 
6042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6043
 
6044
      static {
6045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6046
          byName.put(field.getFieldName(), field);
6047
        }
6048
      }
6049
 
6050
      /**
6051
       * Find the _Fields constant that matches fieldId, or null if its not found.
6052
       */
6053
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6054
        switch(fieldId) {
6055
          case 1: // MESSAGE
6056
            return MESSAGE;
6057
          default:
6058
            return null;
6059
        }
352 ashish 6060
      }
6061
 
6062
      /**
6063
       * Find the _Fields constant that matches fieldId, throwing an exception
6064
       * if it is not found.
6065
       */
6066
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6067
        _Fields fields = findByThriftId(fieldId);
6068
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6069
        return fields;
6070
      }
6071
 
6072
      /**
6073
       * Find the _Fields constant that matches name, or null if its not found.
6074
       */
6075
      public static _Fields findByName(String name) {
6076
        return byName.get(name);
6077
      }
6078
 
6079
      private final short _thriftId;
6080
      private final String _fieldName;
6081
 
6082
      _Fields(short thriftId, String fieldName) {
6083
        _thriftId = thriftId;
6084
        _fieldName = fieldName;
6085
      }
6086
 
6087
      public short getThriftFieldId() {
6088
        return _thriftId;
6089
      }
6090
 
6091
      public String getFieldName() {
6092
        return _fieldName;
6093
      }
6094
    }
6095
 
6096
    // isset id assignments
6097
 
3430 rajveer 6098
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6099
    static {
3430 rajveer 6100
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6101
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6102
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
6103
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6104
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 6105
    }
6106
 
6107
    public sendText_args() {
6108
    }
6109
 
6110
    public sendText_args(
6111
      TextMessage message)
6112
    {
6113
      this();
6114
      this.message = message;
6115
    }
6116
 
6117
    /**
6118
     * Performs a deep copy on <i>other</i>.
6119
     */
6120
    public sendText_args(sendText_args other) {
6121
      if (other.isSetMessage()) {
6122
        this.message = new TextMessage(other.message);
6123
      }
6124
    }
6125
 
6126
    public sendText_args deepCopy() {
6127
      return new sendText_args(this);
6128
    }
6129
 
3430 rajveer 6130
    @Override
6131
    public void clear() {
6132
      this.message = null;
352 ashish 6133
    }
6134
 
6135
    public TextMessage getMessage() {
6136
      return this.message;
6137
    }
6138
 
3430 rajveer 6139
    public void setMessage(TextMessage message) {
352 ashish 6140
      this.message = message;
6141
    }
6142
 
6143
    public void unsetMessage() {
6144
      this.message = null;
6145
    }
6146
 
3430 rajveer 6147
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6148
    public boolean isSetMessage() {
6149
      return this.message != null;
6150
    }
6151
 
6152
    public void setMessageIsSet(boolean value) {
6153
      if (!value) {
6154
        this.message = null;
6155
      }
6156
    }
6157
 
6158
    public void setFieldValue(_Fields field, Object value) {
6159
      switch (field) {
6160
      case MESSAGE:
6161
        if (value == null) {
6162
          unsetMessage();
6163
        } else {
6164
          setMessage((TextMessage)value);
6165
        }
6166
        break;
6167
 
6168
      }
6169
    }
6170
 
6171
    public Object getFieldValue(_Fields field) {
6172
      switch (field) {
6173
      case MESSAGE:
6174
        return getMessage();
6175
 
6176
      }
6177
      throw new IllegalStateException();
6178
    }
6179
 
3430 rajveer 6180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6181
    public boolean isSet(_Fields field) {
6182
      if (field == null) {
6183
        throw new IllegalArgumentException();
6184
      }
352 ashish 6185
 
6186
      switch (field) {
6187
      case MESSAGE:
6188
        return isSetMessage();
6189
      }
6190
      throw new IllegalStateException();
6191
    }
6192
 
6193
    @Override
6194
    public boolean equals(Object that) {
6195
      if (that == null)
6196
        return false;
6197
      if (that instanceof sendText_args)
6198
        return this.equals((sendText_args)that);
6199
      return false;
6200
    }
6201
 
6202
    public boolean equals(sendText_args that) {
6203
      if (that == null)
6204
        return false;
6205
 
6206
      boolean this_present_message = true && this.isSetMessage();
6207
      boolean that_present_message = true && that.isSetMessage();
6208
      if (this_present_message || that_present_message) {
6209
        if (!(this_present_message && that_present_message))
6210
          return false;
6211
        if (!this.message.equals(that.message))
6212
          return false;
6213
      }
6214
 
6215
      return true;
6216
    }
6217
 
6218
    @Override
6219
    public int hashCode() {
6220
      return 0;
6221
    }
6222
 
6223
    public int compareTo(sendText_args other) {
6224
      if (!getClass().equals(other.getClass())) {
6225
        return getClass().getName().compareTo(other.getClass().getName());
6226
      }
6227
 
6228
      int lastComparison = 0;
6229
      sendText_args typedOther = (sendText_args)other;
6230
 
3430 rajveer 6231
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6232
      if (lastComparison != 0) {
6233
        return lastComparison;
6234
      }
3430 rajveer 6235
      if (isSetMessage()) {
6236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6237
        if (lastComparison != 0) {
6238
          return lastComparison;
6239
        }
352 ashish 6240
      }
6241
      return 0;
6242
    }
6243
 
3430 rajveer 6244
    public _Fields fieldForId(int fieldId) {
6245
      return _Fields.findByThriftId(fieldId);
6246
    }
6247
 
6248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6249
      org.apache.thrift.protocol.TField field;
352 ashish 6250
      iprot.readStructBegin();
6251
      while (true)
6252
      {
6253
        field = iprot.readFieldBegin();
3430 rajveer 6254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6255
          break;
6256
        }
3430 rajveer 6257
        switch (field.id) {
6258
          case 1: // MESSAGE
6259
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6260
              this.message = new TextMessage();
6261
              this.message.read(iprot);
6262
            } else { 
6263
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6264
            }
6265
            break;
6266
          default:
6267
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6268
        }
3430 rajveer 6269
        iprot.readFieldEnd();
352 ashish 6270
      }
6271
      iprot.readStructEnd();
6272
      validate();
6273
    }
6274
 
3430 rajveer 6275
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6276
      validate();
6277
 
6278
      oprot.writeStructBegin(STRUCT_DESC);
6279
      if (this.message != null) {
6280
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6281
        this.message.write(oprot);
6282
        oprot.writeFieldEnd();
6283
      }
6284
      oprot.writeFieldStop();
6285
      oprot.writeStructEnd();
6286
    }
6287
 
6288
    @Override
6289
    public String toString() {
6290
      StringBuilder sb = new StringBuilder("sendText_args(");
6291
      boolean first = true;
6292
 
6293
      sb.append("message:");
6294
      if (this.message == null) {
6295
        sb.append("null");
6296
      } else {
6297
        sb.append(this.message);
6298
      }
6299
      first = false;
6300
      sb.append(")");
6301
      return sb.toString();
6302
    }
6303
 
3430 rajveer 6304
    public void validate() throws org.apache.thrift.TException {
352 ashish 6305
      // check for required fields
6306
    }
6307
 
3430 rajveer 6308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6309
      try {
6310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6311
      } catch (org.apache.thrift.TException te) {
6312
        throw new java.io.IOException(te);
6313
      }
6314
    }
6315
 
6316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6317
      try {
6318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6319
      } catch (org.apache.thrift.TException te) {
6320
        throw new java.io.IOException(te);
6321
      }
6322
    }
6323
 
352 ashish 6324
  }
6325
 
3430 rajveer 6326
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6328
 
3430 rajveer 6329
    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 6330
 
3430 rajveer 6331
    private HelperServiceException se; // required
352 ashish 6332
 
6333
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6334
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6335
      SE((short)1, "se");
6336
 
6337
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6338
 
6339
      static {
6340
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6341
          byName.put(field.getFieldName(), field);
6342
        }
6343
      }
6344
 
6345
      /**
6346
       * Find the _Fields constant that matches fieldId, or null if its not found.
6347
       */
6348
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6349
        switch(fieldId) {
6350
          case 1: // SE
6351
            return SE;
6352
          default:
6353
            return null;
6354
        }
352 ashish 6355
      }
6356
 
6357
      /**
6358
       * Find the _Fields constant that matches fieldId, throwing an exception
6359
       * if it is not found.
6360
       */
6361
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6362
        _Fields fields = findByThriftId(fieldId);
6363
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6364
        return fields;
6365
      }
6366
 
6367
      /**
6368
       * Find the _Fields constant that matches name, or null if its not found.
6369
       */
6370
      public static _Fields findByName(String name) {
6371
        return byName.get(name);
6372
      }
6373
 
6374
      private final short _thriftId;
6375
      private final String _fieldName;
6376
 
6377
      _Fields(short thriftId, String fieldName) {
6378
        _thriftId = thriftId;
6379
        _fieldName = fieldName;
6380
      }
6381
 
6382
      public short getThriftFieldId() {
6383
        return _thriftId;
6384
      }
6385
 
6386
      public String getFieldName() {
6387
        return _fieldName;
6388
      }
6389
    }
6390
 
6391
    // isset id assignments
6392
 
3430 rajveer 6393
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6394
    static {
3430 rajveer 6395
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6396
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6400
    }
6401
 
6402
    public sendText_result() {
6403
    }
6404
 
6405
    public sendText_result(
6406
      HelperServiceException se)
6407
    {
6408
      this();
6409
      this.se = se;
6410
    }
6411
 
6412
    /**
6413
     * Performs a deep copy on <i>other</i>.
6414
     */
6415
    public sendText_result(sendText_result other) {
6416
      if (other.isSetSe()) {
6417
        this.se = new HelperServiceException(other.se);
6418
      }
6419
    }
6420
 
6421
    public sendText_result deepCopy() {
6422
      return new sendText_result(this);
6423
    }
6424
 
3430 rajveer 6425
    @Override
6426
    public void clear() {
6427
      this.se = null;
352 ashish 6428
    }
6429
 
6430
    public HelperServiceException getSe() {
6431
      return this.se;
6432
    }
6433
 
3430 rajveer 6434
    public void setSe(HelperServiceException se) {
352 ashish 6435
      this.se = se;
6436
    }
6437
 
6438
    public void unsetSe() {
6439
      this.se = null;
6440
    }
6441
 
3430 rajveer 6442
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6443
    public boolean isSetSe() {
6444
      return this.se != null;
6445
    }
6446
 
6447
    public void setSeIsSet(boolean value) {
6448
      if (!value) {
6449
        this.se = null;
6450
      }
6451
    }
6452
 
6453
    public void setFieldValue(_Fields field, Object value) {
6454
      switch (field) {
6455
      case SE:
6456
        if (value == null) {
6457
          unsetSe();
6458
        } else {
6459
          setSe((HelperServiceException)value);
6460
        }
6461
        break;
6462
 
6463
      }
6464
    }
6465
 
6466
    public Object getFieldValue(_Fields field) {
6467
      switch (field) {
6468
      case SE:
6469
        return getSe();
6470
 
6471
      }
6472
      throw new IllegalStateException();
6473
    }
6474
 
3430 rajveer 6475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6476
    public boolean isSet(_Fields field) {
6477
      if (field == null) {
6478
        throw new IllegalArgumentException();
6479
      }
352 ashish 6480
 
6481
      switch (field) {
6482
      case SE:
6483
        return isSetSe();
6484
      }
6485
      throw new IllegalStateException();
6486
    }
6487
 
6488
    @Override
6489
    public boolean equals(Object that) {
6490
      if (that == null)
6491
        return false;
6492
      if (that instanceof sendText_result)
6493
        return this.equals((sendText_result)that);
6494
      return false;
6495
    }
6496
 
6497
    public boolean equals(sendText_result that) {
6498
      if (that == null)
6499
        return false;
6500
 
6501
      boolean this_present_se = true && this.isSetSe();
6502
      boolean that_present_se = true && that.isSetSe();
6503
      if (this_present_se || that_present_se) {
6504
        if (!(this_present_se && that_present_se))
6505
          return false;
6506
        if (!this.se.equals(that.se))
6507
          return false;
6508
      }
6509
 
6510
      return true;
6511
    }
6512
 
6513
    @Override
6514
    public int hashCode() {
6515
      return 0;
6516
    }
6517
 
6518
    public int compareTo(sendText_result other) {
6519
      if (!getClass().equals(other.getClass())) {
6520
        return getClass().getName().compareTo(other.getClass().getName());
6521
      }
6522
 
6523
      int lastComparison = 0;
6524
      sendText_result typedOther = (sendText_result)other;
6525
 
3430 rajveer 6526
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6527
      if (lastComparison != 0) {
6528
        return lastComparison;
6529
      }
3430 rajveer 6530
      if (isSetSe()) {
6531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6532
        if (lastComparison != 0) {
6533
          return lastComparison;
6534
        }
352 ashish 6535
      }
6536
      return 0;
6537
    }
6538
 
3430 rajveer 6539
    public _Fields fieldForId(int fieldId) {
6540
      return _Fields.findByThriftId(fieldId);
6541
    }
6542
 
6543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6544
      org.apache.thrift.protocol.TField field;
352 ashish 6545
      iprot.readStructBegin();
6546
      while (true)
6547
      {
6548
        field = iprot.readFieldBegin();
3430 rajveer 6549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6550
          break;
6551
        }
3430 rajveer 6552
        switch (field.id) {
6553
          case 1: // SE
6554
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6555
              this.se = new HelperServiceException();
6556
              this.se.read(iprot);
6557
            } else { 
6558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6559
            }
6560
            break;
6561
          default:
6562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6563
        }
3430 rajveer 6564
        iprot.readFieldEnd();
352 ashish 6565
      }
6566
      iprot.readStructEnd();
6567
      validate();
6568
    }
6569
 
3430 rajveer 6570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6571
      oprot.writeStructBegin(STRUCT_DESC);
6572
 
6573
      if (this.isSetSe()) {
6574
        oprot.writeFieldBegin(SE_FIELD_DESC);
6575
        this.se.write(oprot);
6576
        oprot.writeFieldEnd();
6577
      }
6578
      oprot.writeFieldStop();
6579
      oprot.writeStructEnd();
6580
    }
6581
 
6582
    @Override
6583
    public String toString() {
6584
      StringBuilder sb = new StringBuilder("sendText_result(");
6585
      boolean first = true;
6586
 
6587
      sb.append("se:");
6588
      if (this.se == null) {
6589
        sb.append("null");
6590
      } else {
6591
        sb.append(this.se);
6592
      }
6593
      first = false;
6594
      sb.append(")");
6595
      return sb.toString();
6596
    }
6597
 
3430 rajveer 6598
    public void validate() throws org.apache.thrift.TException {
352 ashish 6599
      // check for required fields
6600
    }
6601
 
3430 rajveer 6602
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6603
      try {
6604
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6605
      } catch (org.apache.thrift.TException te) {
6606
        throw new java.io.IOException(te);
6607
      }
6608
    }
6609
 
6610
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6611
      try {
6612
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6613
      } catch (org.apache.thrift.TException te) {
6614
        throw new java.io.IOException(te);
6615
      }
6616
    }
6617
 
352 ashish 6618
  }
6619
 
3430 rajveer 6620
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6621
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6622
 
3430 rajveer 6623
    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 6624
 
3430 rajveer 6625
    private Message message; // required
352 ashish 6626
 
6627
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6628
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6629
      MESSAGE((short)1, "message");
6630
 
6631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6632
 
6633
      static {
6634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6635
          byName.put(field.getFieldName(), field);
6636
        }
6637
      }
6638
 
6639
      /**
6640
       * Find the _Fields constant that matches fieldId, or null if its not found.
6641
       */
6642
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6643
        switch(fieldId) {
6644
          case 1: // MESSAGE
6645
            return MESSAGE;
6646
          default:
6647
            return null;
6648
        }
352 ashish 6649
      }
6650
 
6651
      /**
6652
       * Find the _Fields constant that matches fieldId, throwing an exception
6653
       * if it is not found.
6654
       */
6655
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6656
        _Fields fields = findByThriftId(fieldId);
6657
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6658
        return fields;
6659
      }
6660
 
6661
      /**
6662
       * Find the _Fields constant that matches name, or null if its not found.
6663
       */
6664
      public static _Fields findByName(String name) {
6665
        return byName.get(name);
6666
      }
6667
 
6668
      private final short _thriftId;
6669
      private final String _fieldName;
6670
 
6671
      _Fields(short thriftId, String fieldName) {
6672
        _thriftId = thriftId;
6673
        _fieldName = fieldName;
6674
      }
6675
 
6676
      public short getThriftFieldId() {
6677
        return _thriftId;
6678
      }
6679
 
6680
      public String getFieldName() {
6681
        return _fieldName;
6682
      }
6683
    }
6684
 
6685
    // isset id assignments
6686
 
3430 rajveer 6687
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6688
    static {
3430 rajveer 6689
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6690
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6691
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6692
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6693
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6694
    }
6695
 
6696
    public addMessage_args() {
6697
    }
6698
 
6699
    public addMessage_args(
6700
      Message message)
6701
    {
6702
      this();
6703
      this.message = message;
6704
    }
6705
 
6706
    /**
6707
     * Performs a deep copy on <i>other</i>.
6708
     */
6709
    public addMessage_args(addMessage_args other) {
6710
      if (other.isSetMessage()) {
6711
        this.message = new Message(other.message);
6712
      }
6713
    }
6714
 
6715
    public addMessage_args deepCopy() {
6716
      return new addMessage_args(this);
6717
    }
6718
 
3430 rajveer 6719
    @Override
6720
    public void clear() {
6721
      this.message = null;
352 ashish 6722
    }
6723
 
6724
    public Message getMessage() {
6725
      return this.message;
6726
    }
6727
 
3430 rajveer 6728
    public void setMessage(Message message) {
352 ashish 6729
      this.message = message;
6730
    }
6731
 
6732
    public void unsetMessage() {
6733
      this.message = null;
6734
    }
6735
 
3430 rajveer 6736
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6737
    public boolean isSetMessage() {
6738
      return this.message != null;
6739
    }
6740
 
6741
    public void setMessageIsSet(boolean value) {
6742
      if (!value) {
6743
        this.message = null;
6744
      }
6745
    }
6746
 
6747
    public void setFieldValue(_Fields field, Object value) {
6748
      switch (field) {
6749
      case MESSAGE:
6750
        if (value == null) {
6751
          unsetMessage();
6752
        } else {
6753
          setMessage((Message)value);
6754
        }
6755
        break;
6756
 
6757
      }
6758
    }
6759
 
6760
    public Object getFieldValue(_Fields field) {
6761
      switch (field) {
6762
      case MESSAGE:
6763
        return getMessage();
6764
 
6765
      }
6766
      throw new IllegalStateException();
6767
    }
6768
 
3430 rajveer 6769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6770
    public boolean isSet(_Fields field) {
6771
      if (field == null) {
6772
        throw new IllegalArgumentException();
6773
      }
352 ashish 6774
 
6775
      switch (field) {
6776
      case MESSAGE:
6777
        return isSetMessage();
6778
      }
6779
      throw new IllegalStateException();
6780
    }
6781
 
6782
    @Override
6783
    public boolean equals(Object that) {
6784
      if (that == null)
6785
        return false;
6786
      if (that instanceof addMessage_args)
6787
        return this.equals((addMessage_args)that);
6788
      return false;
6789
    }
6790
 
6791
    public boolean equals(addMessage_args that) {
6792
      if (that == null)
6793
        return false;
6794
 
6795
      boolean this_present_message = true && this.isSetMessage();
6796
      boolean that_present_message = true && that.isSetMessage();
6797
      if (this_present_message || that_present_message) {
6798
        if (!(this_present_message && that_present_message))
6799
          return false;
6800
        if (!this.message.equals(that.message))
6801
          return false;
6802
      }
6803
 
6804
      return true;
6805
    }
6806
 
6807
    @Override
6808
    public int hashCode() {
6809
      return 0;
6810
    }
6811
 
6812
    public int compareTo(addMessage_args other) {
6813
      if (!getClass().equals(other.getClass())) {
6814
        return getClass().getName().compareTo(other.getClass().getName());
6815
      }
6816
 
6817
      int lastComparison = 0;
6818
      addMessage_args typedOther = (addMessage_args)other;
6819
 
3430 rajveer 6820
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6821
      if (lastComparison != 0) {
6822
        return lastComparison;
6823
      }
3430 rajveer 6824
      if (isSetMessage()) {
6825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6826
        if (lastComparison != 0) {
6827
          return lastComparison;
6828
        }
352 ashish 6829
      }
6830
      return 0;
6831
    }
6832
 
3430 rajveer 6833
    public _Fields fieldForId(int fieldId) {
6834
      return _Fields.findByThriftId(fieldId);
6835
    }
6836
 
6837
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6838
      org.apache.thrift.protocol.TField field;
352 ashish 6839
      iprot.readStructBegin();
6840
      while (true)
6841
      {
6842
        field = iprot.readFieldBegin();
3430 rajveer 6843
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6844
          break;
6845
        }
3430 rajveer 6846
        switch (field.id) {
6847
          case 1: // MESSAGE
6848
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6849
              this.message = new Message();
6850
              this.message.read(iprot);
6851
            } else { 
6852
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6853
            }
6854
            break;
6855
          default:
6856
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6857
        }
3430 rajveer 6858
        iprot.readFieldEnd();
352 ashish 6859
      }
6860
      iprot.readStructEnd();
6861
      validate();
6862
    }
6863
 
3430 rajveer 6864
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6865
      validate();
6866
 
6867
      oprot.writeStructBegin(STRUCT_DESC);
6868
      if (this.message != null) {
6869
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6870
        this.message.write(oprot);
6871
        oprot.writeFieldEnd();
6872
      }
6873
      oprot.writeFieldStop();
6874
      oprot.writeStructEnd();
6875
    }
6876
 
6877
    @Override
6878
    public String toString() {
6879
      StringBuilder sb = new StringBuilder("addMessage_args(");
6880
      boolean first = true;
6881
 
6882
      sb.append("message:");
6883
      if (this.message == null) {
6884
        sb.append("null");
6885
      } else {
6886
        sb.append(this.message);
6887
      }
6888
      first = false;
6889
      sb.append(")");
6890
      return sb.toString();
6891
    }
6892
 
3430 rajveer 6893
    public void validate() throws org.apache.thrift.TException {
352 ashish 6894
      // check for required fields
6895
    }
6896
 
3430 rajveer 6897
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6898
      try {
6899
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6900
      } catch (org.apache.thrift.TException te) {
6901
        throw new java.io.IOException(te);
6902
      }
6903
    }
6904
 
6905
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6906
      try {
6907
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6908
      } catch (org.apache.thrift.TException te) {
6909
        throw new java.io.IOException(te);
6910
      }
6911
    }
6912
 
352 ashish 6913
  }
6914
 
3430 rajveer 6915
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6916
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6917
 
3430 rajveer 6918
    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 6919
 
3430 rajveer 6920
    private HelperServiceException se; // required
352 ashish 6921
 
6922
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6923
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6924
      SE((short)1, "se");
6925
 
6926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6927
 
6928
      static {
6929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6930
          byName.put(field.getFieldName(), field);
6931
        }
6932
      }
6933
 
6934
      /**
6935
       * Find the _Fields constant that matches fieldId, or null if its not found.
6936
       */
6937
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6938
        switch(fieldId) {
6939
          case 1: // SE
6940
            return SE;
6941
          default:
6942
            return null;
6943
        }
352 ashish 6944
      }
6945
 
6946
      /**
6947
       * Find the _Fields constant that matches fieldId, throwing an exception
6948
       * if it is not found.
6949
       */
6950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6951
        _Fields fields = findByThriftId(fieldId);
6952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6953
        return fields;
6954
      }
6955
 
6956
      /**
6957
       * Find the _Fields constant that matches name, or null if its not found.
6958
       */
6959
      public static _Fields findByName(String name) {
6960
        return byName.get(name);
6961
      }
6962
 
6963
      private final short _thriftId;
6964
      private final String _fieldName;
6965
 
6966
      _Fields(short thriftId, String fieldName) {
6967
        _thriftId = thriftId;
6968
        _fieldName = fieldName;
6969
      }
6970
 
6971
      public short getThriftFieldId() {
6972
        return _thriftId;
6973
      }
6974
 
6975
      public String getFieldName() {
6976
        return _fieldName;
6977
      }
6978
    }
6979
 
6980
    // isset id assignments
6981
 
3430 rajveer 6982
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6983
    static {
3430 rajveer 6984
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6985
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6986
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6987
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6988
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6989
    }
6990
 
6991
    public addMessage_result() {
6992
    }
6993
 
6994
    public addMessage_result(
6995
      HelperServiceException se)
6996
    {
6997
      this();
6998
      this.se = se;
6999
    }
7000
 
7001
    /**
7002
     * Performs a deep copy on <i>other</i>.
7003
     */
7004
    public addMessage_result(addMessage_result other) {
7005
      if (other.isSetSe()) {
7006
        this.se = new HelperServiceException(other.se);
7007
      }
7008
    }
7009
 
7010
    public addMessage_result deepCopy() {
7011
      return new addMessage_result(this);
7012
    }
7013
 
3430 rajveer 7014
    @Override
7015
    public void clear() {
7016
      this.se = null;
352 ashish 7017
    }
7018
 
7019
    public HelperServiceException getSe() {
7020
      return this.se;
7021
    }
7022
 
3430 rajveer 7023
    public void setSe(HelperServiceException se) {
352 ashish 7024
      this.se = se;
7025
    }
7026
 
7027
    public void unsetSe() {
7028
      this.se = null;
7029
    }
7030
 
3430 rajveer 7031
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7032
    public boolean isSetSe() {
7033
      return this.se != null;
7034
    }
7035
 
7036
    public void setSeIsSet(boolean value) {
7037
      if (!value) {
7038
        this.se = null;
7039
      }
7040
    }
7041
 
7042
    public void setFieldValue(_Fields field, Object value) {
7043
      switch (field) {
7044
      case SE:
7045
        if (value == null) {
7046
          unsetSe();
7047
        } else {
7048
          setSe((HelperServiceException)value);
7049
        }
7050
        break;
7051
 
7052
      }
7053
    }
7054
 
7055
    public Object getFieldValue(_Fields field) {
7056
      switch (field) {
7057
      case SE:
7058
        return getSe();
7059
 
7060
      }
7061
      throw new IllegalStateException();
7062
    }
7063
 
3430 rajveer 7064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7065
    public boolean isSet(_Fields field) {
7066
      if (field == null) {
7067
        throw new IllegalArgumentException();
7068
      }
352 ashish 7069
 
7070
      switch (field) {
7071
      case SE:
7072
        return isSetSe();
7073
      }
7074
      throw new IllegalStateException();
7075
    }
7076
 
7077
    @Override
7078
    public boolean equals(Object that) {
7079
      if (that == null)
7080
        return false;
7081
      if (that instanceof addMessage_result)
7082
        return this.equals((addMessage_result)that);
7083
      return false;
7084
    }
7085
 
7086
    public boolean equals(addMessage_result that) {
7087
      if (that == null)
7088
        return false;
7089
 
7090
      boolean this_present_se = true && this.isSetSe();
7091
      boolean that_present_se = true && that.isSetSe();
7092
      if (this_present_se || that_present_se) {
7093
        if (!(this_present_se && that_present_se))
7094
          return false;
7095
        if (!this.se.equals(that.se))
7096
          return false;
7097
      }
7098
 
7099
      return true;
7100
    }
7101
 
7102
    @Override
7103
    public int hashCode() {
7104
      return 0;
7105
    }
7106
 
7107
    public int compareTo(addMessage_result other) {
7108
      if (!getClass().equals(other.getClass())) {
7109
        return getClass().getName().compareTo(other.getClass().getName());
7110
      }
7111
 
7112
      int lastComparison = 0;
7113
      addMessage_result typedOther = (addMessage_result)other;
7114
 
3430 rajveer 7115
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7116
      if (lastComparison != 0) {
7117
        return lastComparison;
7118
      }
3430 rajveer 7119
      if (isSetSe()) {
7120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7121
        if (lastComparison != 0) {
7122
          return lastComparison;
7123
        }
352 ashish 7124
      }
7125
      return 0;
7126
    }
7127
 
3430 rajveer 7128
    public _Fields fieldForId(int fieldId) {
7129
      return _Fields.findByThriftId(fieldId);
7130
    }
7131
 
7132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7133
      org.apache.thrift.protocol.TField field;
352 ashish 7134
      iprot.readStructBegin();
7135
      while (true)
7136
      {
7137
        field = iprot.readFieldBegin();
3430 rajveer 7138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7139
          break;
7140
        }
3430 rajveer 7141
        switch (field.id) {
7142
          case 1: // SE
7143
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7144
              this.se = new HelperServiceException();
7145
              this.se.read(iprot);
7146
            } else { 
7147
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7148
            }
7149
            break;
7150
          default:
7151
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7152
        }
3430 rajveer 7153
        iprot.readFieldEnd();
352 ashish 7154
      }
7155
      iprot.readStructEnd();
7156
      validate();
7157
    }
7158
 
3430 rajveer 7159
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7160
      oprot.writeStructBegin(STRUCT_DESC);
7161
 
7162
      if (this.isSetSe()) {
7163
        oprot.writeFieldBegin(SE_FIELD_DESC);
7164
        this.se.write(oprot);
7165
        oprot.writeFieldEnd();
7166
      }
7167
      oprot.writeFieldStop();
7168
      oprot.writeStructEnd();
7169
    }
7170
 
7171
    @Override
7172
    public String toString() {
7173
      StringBuilder sb = new StringBuilder("addMessage_result(");
7174
      boolean first = true;
7175
 
7176
      sb.append("se:");
7177
      if (this.se == null) {
7178
        sb.append("null");
7179
      } else {
7180
        sb.append(this.se);
7181
      }
7182
      first = false;
7183
      sb.append(")");
7184
      return sb.toString();
7185
    }
7186
 
3430 rajveer 7187
    public void validate() throws org.apache.thrift.TException {
352 ashish 7188
      // check for required fields
7189
    }
7190
 
3430 rajveer 7191
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7192
      try {
7193
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7194
      } catch (org.apache.thrift.TException te) {
7195
        throw new java.io.IOException(te);
7196
      }
7197
    }
7198
 
7199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7200
      try {
7201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7202
      } catch (org.apache.thrift.TException te) {
7203
        throw new java.io.IOException(te);
7204
      }
7205
    }
7206
 
352 ashish 7207
  }
7208
 
3430 rajveer 7209
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
7210
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 7211
 
3430 rajveer 7212
    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);
7213
    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 7214
 
3430 rajveer 7215
    private long id; // required
7216
    private String message; // required
352 ashish 7217
 
7218
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7219
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7220
      ID((short)1, "id"),
7221
      MESSAGE((short)2, "message");
7222
 
7223
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7224
 
7225
      static {
7226
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7227
          byName.put(field.getFieldName(), field);
7228
        }
7229
      }
7230
 
7231
      /**
7232
       * Find the _Fields constant that matches fieldId, or null if its not found.
7233
       */
7234
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7235
        switch(fieldId) {
7236
          case 1: // ID
7237
            return ID;
7238
          case 2: // MESSAGE
7239
            return MESSAGE;
7240
          default:
7241
            return null;
7242
        }
352 ashish 7243
      }
7244
 
7245
      /**
7246
       * Find the _Fields constant that matches fieldId, throwing an exception
7247
       * if it is not found.
7248
       */
7249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7250
        _Fields fields = findByThriftId(fieldId);
7251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7252
        return fields;
7253
      }
7254
 
7255
      /**
7256
       * Find the _Fields constant that matches name, or null if its not found.
7257
       */
7258
      public static _Fields findByName(String name) {
7259
        return byName.get(name);
7260
      }
7261
 
7262
      private final short _thriftId;
7263
      private final String _fieldName;
7264
 
7265
      _Fields(short thriftId, String fieldName) {
7266
        _thriftId = thriftId;
7267
        _fieldName = fieldName;
7268
      }
7269
 
7270
      public short getThriftFieldId() {
7271
        return _thriftId;
7272
      }
7273
 
7274
      public String getFieldName() {
7275
        return _fieldName;
7276
      }
7277
    }
7278
 
7279
    // isset id assignments
7280
    private static final int __ID_ISSET_ID = 0;
7281
    private BitSet __isset_bit_vector = new BitSet(1);
7282
 
3430 rajveer 7283
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7284
    static {
3430 rajveer 7285
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7286
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7287
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7288
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7290
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7291
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7292
    }
7293
 
7294
    public updateMessage_args() {
7295
    }
7296
 
7297
    public updateMessage_args(
7298
      long id,
7299
      String message)
7300
    {
7301
      this();
7302
      this.id = id;
7303
      setIdIsSet(true);
7304
      this.message = message;
7305
    }
7306
 
7307
    /**
7308
     * Performs a deep copy on <i>other</i>.
7309
     */
7310
    public updateMessage_args(updateMessage_args other) {
7311
      __isset_bit_vector.clear();
7312
      __isset_bit_vector.or(other.__isset_bit_vector);
7313
      this.id = other.id;
7314
      if (other.isSetMessage()) {
7315
        this.message = other.message;
7316
      }
7317
    }
7318
 
7319
    public updateMessage_args deepCopy() {
7320
      return new updateMessage_args(this);
7321
    }
7322
 
3430 rajveer 7323
    @Override
7324
    public void clear() {
7325
      setIdIsSet(false);
7326
      this.id = 0;
7327
      this.message = null;
352 ashish 7328
    }
7329
 
7330
    public long getId() {
7331
      return this.id;
7332
    }
7333
 
3430 rajveer 7334
    public void setId(long id) {
352 ashish 7335
      this.id = id;
7336
      setIdIsSet(true);
7337
    }
7338
 
7339
    public void unsetId() {
7340
      __isset_bit_vector.clear(__ID_ISSET_ID);
7341
    }
7342
 
3430 rajveer 7343
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7344
    public boolean isSetId() {
7345
      return __isset_bit_vector.get(__ID_ISSET_ID);
7346
    }
7347
 
7348
    public void setIdIsSet(boolean value) {
7349
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7350
    }
7351
 
7352
    public String getMessage() {
7353
      return this.message;
7354
    }
7355
 
3430 rajveer 7356
    public void setMessage(String message) {
352 ashish 7357
      this.message = message;
7358
    }
7359
 
7360
    public void unsetMessage() {
7361
      this.message = null;
7362
    }
7363
 
3430 rajveer 7364
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7365
    public boolean isSetMessage() {
7366
      return this.message != null;
7367
    }
7368
 
7369
    public void setMessageIsSet(boolean value) {
7370
      if (!value) {
7371
        this.message = null;
7372
      }
7373
    }
7374
 
7375
    public void setFieldValue(_Fields field, Object value) {
7376
      switch (field) {
7377
      case ID:
7378
        if (value == null) {
7379
          unsetId();
7380
        } else {
7381
          setId((Long)value);
7382
        }
7383
        break;
7384
 
7385
      case MESSAGE:
7386
        if (value == null) {
7387
          unsetMessage();
7388
        } else {
7389
          setMessage((String)value);
7390
        }
7391
        break;
7392
 
7393
      }
7394
    }
7395
 
7396
    public Object getFieldValue(_Fields field) {
7397
      switch (field) {
7398
      case ID:
3430 rajveer 7399
        return Long.valueOf(getId());
352 ashish 7400
 
7401
      case MESSAGE:
7402
        return getMessage();
7403
 
7404
      }
7405
      throw new IllegalStateException();
7406
    }
7407
 
3430 rajveer 7408
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7409
    public boolean isSet(_Fields field) {
7410
      if (field == null) {
7411
        throw new IllegalArgumentException();
7412
      }
352 ashish 7413
 
7414
      switch (field) {
7415
      case ID:
7416
        return isSetId();
7417
      case MESSAGE:
7418
        return isSetMessage();
7419
      }
7420
      throw new IllegalStateException();
7421
    }
7422
 
7423
    @Override
7424
    public boolean equals(Object that) {
7425
      if (that == null)
7426
        return false;
7427
      if (that instanceof updateMessage_args)
7428
        return this.equals((updateMessage_args)that);
7429
      return false;
7430
    }
7431
 
7432
    public boolean equals(updateMessage_args that) {
7433
      if (that == null)
7434
        return false;
7435
 
7436
      boolean this_present_id = true;
7437
      boolean that_present_id = true;
7438
      if (this_present_id || that_present_id) {
7439
        if (!(this_present_id && that_present_id))
7440
          return false;
7441
        if (this.id != that.id)
7442
          return false;
7443
      }
7444
 
7445
      boolean this_present_message = true && this.isSetMessage();
7446
      boolean that_present_message = true && that.isSetMessage();
7447
      if (this_present_message || that_present_message) {
7448
        if (!(this_present_message && that_present_message))
7449
          return false;
7450
        if (!this.message.equals(that.message))
7451
          return false;
7452
      }
7453
 
7454
      return true;
7455
    }
7456
 
7457
    @Override
7458
    public int hashCode() {
7459
      return 0;
7460
    }
7461
 
7462
    public int compareTo(updateMessage_args other) {
7463
      if (!getClass().equals(other.getClass())) {
7464
        return getClass().getName().compareTo(other.getClass().getName());
7465
      }
7466
 
7467
      int lastComparison = 0;
7468
      updateMessage_args typedOther = (updateMessage_args)other;
7469
 
3430 rajveer 7470
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7471
      if (lastComparison != 0) {
7472
        return lastComparison;
7473
      }
3430 rajveer 7474
      if (isSetId()) {
7475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7476
        if (lastComparison != 0) {
7477
          return lastComparison;
7478
        }
352 ashish 7479
      }
3430 rajveer 7480
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7481
      if (lastComparison != 0) {
7482
        return lastComparison;
7483
      }
3430 rajveer 7484
      if (isSetMessage()) {
7485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7486
        if (lastComparison != 0) {
7487
          return lastComparison;
7488
        }
352 ashish 7489
      }
7490
      return 0;
7491
    }
7492
 
3430 rajveer 7493
    public _Fields fieldForId(int fieldId) {
7494
      return _Fields.findByThriftId(fieldId);
7495
    }
7496
 
7497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7498
      org.apache.thrift.protocol.TField field;
352 ashish 7499
      iprot.readStructBegin();
7500
      while (true)
7501
      {
7502
        field = iprot.readFieldBegin();
3430 rajveer 7503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7504
          break;
7505
        }
3430 rajveer 7506
        switch (field.id) {
7507
          case 1: // ID
7508
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7509
              this.id = iprot.readI64();
7510
              setIdIsSet(true);
7511
            } else { 
7512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7513
            }
7514
            break;
7515
          case 2: // MESSAGE
7516
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7517
              this.message = iprot.readString();
7518
            } else { 
7519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7520
            }
7521
            break;
7522
          default:
7523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7524
        }
3430 rajveer 7525
        iprot.readFieldEnd();
352 ashish 7526
      }
7527
      iprot.readStructEnd();
7528
      validate();
7529
    }
7530
 
3430 rajveer 7531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7532
      validate();
7533
 
7534
      oprot.writeStructBegin(STRUCT_DESC);
7535
      oprot.writeFieldBegin(ID_FIELD_DESC);
7536
      oprot.writeI64(this.id);
7537
      oprot.writeFieldEnd();
7538
      if (this.message != null) {
7539
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7540
        oprot.writeString(this.message);
7541
        oprot.writeFieldEnd();
7542
      }
7543
      oprot.writeFieldStop();
7544
      oprot.writeStructEnd();
7545
    }
7546
 
7547
    @Override
7548
    public String toString() {
7549
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7550
      boolean first = true;
7551
 
7552
      sb.append("id:");
7553
      sb.append(this.id);
7554
      first = false;
7555
      if (!first) sb.append(", ");
7556
      sb.append("message:");
7557
      if (this.message == null) {
7558
        sb.append("null");
7559
      } else {
7560
        sb.append(this.message);
7561
      }
7562
      first = false;
7563
      sb.append(")");
7564
      return sb.toString();
7565
    }
7566
 
3430 rajveer 7567
    public void validate() throws org.apache.thrift.TException {
352 ashish 7568
      // check for required fields
7569
    }
7570
 
3430 rajveer 7571
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7572
      try {
7573
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7574
      } catch (org.apache.thrift.TException te) {
7575
        throw new java.io.IOException(te);
7576
      }
7577
    }
7578
 
7579
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7580
      try {
7581
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7582
        __isset_bit_vector = new BitSet(1);
7583
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7584
      } catch (org.apache.thrift.TException te) {
7585
        throw new java.io.IOException(te);
7586
      }
7587
    }
7588
 
352 ashish 7589
  }
7590
 
3430 rajveer 7591
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7592
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7593
 
3430 rajveer 7594
    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 7595
 
3430 rajveer 7596
    private HelperServiceException se; // required
352 ashish 7597
 
7598
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7599
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7600
      SE((short)1, "se");
7601
 
7602
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7603
 
7604
      static {
7605
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7606
          byName.put(field.getFieldName(), field);
7607
        }
7608
      }
7609
 
7610
      /**
7611
       * Find the _Fields constant that matches fieldId, or null if its not found.
7612
       */
7613
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7614
        switch(fieldId) {
7615
          case 1: // SE
7616
            return SE;
7617
          default:
7618
            return null;
7619
        }
352 ashish 7620
      }
7621
 
7622
      /**
7623
       * Find the _Fields constant that matches fieldId, throwing an exception
7624
       * if it is not found.
7625
       */
7626
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7627
        _Fields fields = findByThriftId(fieldId);
7628
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7629
        return fields;
7630
      }
7631
 
7632
      /**
7633
       * Find the _Fields constant that matches name, or null if its not found.
7634
       */
7635
      public static _Fields findByName(String name) {
7636
        return byName.get(name);
7637
      }
7638
 
7639
      private final short _thriftId;
7640
      private final String _fieldName;
7641
 
7642
      _Fields(short thriftId, String fieldName) {
7643
        _thriftId = thriftId;
7644
        _fieldName = fieldName;
7645
      }
7646
 
7647
      public short getThriftFieldId() {
7648
        return _thriftId;
7649
      }
7650
 
7651
      public String getFieldName() {
7652
        return _fieldName;
7653
      }
7654
    }
7655
 
7656
    // isset id assignments
7657
 
3430 rajveer 7658
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7659
    static {
3430 rajveer 7660
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7661
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7662
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7663
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7664
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7665
    }
7666
 
7667
    public updateMessage_result() {
7668
    }
7669
 
7670
    public updateMessage_result(
7671
      HelperServiceException se)
7672
    {
7673
      this();
7674
      this.se = se;
7675
    }
7676
 
7677
    /**
7678
     * Performs a deep copy on <i>other</i>.
7679
     */
7680
    public updateMessage_result(updateMessage_result other) {
7681
      if (other.isSetSe()) {
7682
        this.se = new HelperServiceException(other.se);
7683
      }
7684
    }
7685
 
7686
    public updateMessage_result deepCopy() {
7687
      return new updateMessage_result(this);
7688
    }
7689
 
3430 rajveer 7690
    @Override
7691
    public void clear() {
7692
      this.se = null;
352 ashish 7693
    }
7694
 
7695
    public HelperServiceException getSe() {
7696
      return this.se;
7697
    }
7698
 
3430 rajveer 7699
    public void setSe(HelperServiceException se) {
352 ashish 7700
      this.se = se;
7701
    }
7702
 
7703
    public void unsetSe() {
7704
      this.se = null;
7705
    }
7706
 
3430 rajveer 7707
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7708
    public boolean isSetSe() {
7709
      return this.se != null;
7710
    }
7711
 
7712
    public void setSeIsSet(boolean value) {
7713
      if (!value) {
7714
        this.se = null;
7715
      }
7716
    }
7717
 
7718
    public void setFieldValue(_Fields field, Object value) {
7719
      switch (field) {
7720
      case SE:
7721
        if (value == null) {
7722
          unsetSe();
7723
        } else {
7724
          setSe((HelperServiceException)value);
7725
        }
7726
        break;
7727
 
7728
      }
7729
    }
7730
 
7731
    public Object getFieldValue(_Fields field) {
7732
      switch (field) {
7733
      case SE:
7734
        return getSe();
7735
 
7736
      }
7737
      throw new IllegalStateException();
7738
    }
7739
 
3430 rajveer 7740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7741
    public boolean isSet(_Fields field) {
7742
      if (field == null) {
7743
        throw new IllegalArgumentException();
7744
      }
352 ashish 7745
 
7746
      switch (field) {
7747
      case SE:
7748
        return isSetSe();
7749
      }
7750
      throw new IllegalStateException();
7751
    }
7752
 
7753
    @Override
7754
    public boolean equals(Object that) {
7755
      if (that == null)
7756
        return false;
7757
      if (that instanceof updateMessage_result)
7758
        return this.equals((updateMessage_result)that);
7759
      return false;
7760
    }
7761
 
7762
    public boolean equals(updateMessage_result that) {
7763
      if (that == null)
7764
        return false;
7765
 
7766
      boolean this_present_se = true && this.isSetSe();
7767
      boolean that_present_se = true && that.isSetSe();
7768
      if (this_present_se || that_present_se) {
7769
        if (!(this_present_se && that_present_se))
7770
          return false;
7771
        if (!this.se.equals(that.se))
7772
          return false;
7773
      }
7774
 
7775
      return true;
7776
    }
7777
 
7778
    @Override
7779
    public int hashCode() {
7780
      return 0;
7781
    }
7782
 
7783
    public int compareTo(updateMessage_result other) {
7784
      if (!getClass().equals(other.getClass())) {
7785
        return getClass().getName().compareTo(other.getClass().getName());
7786
      }
7787
 
7788
      int lastComparison = 0;
7789
      updateMessage_result typedOther = (updateMessage_result)other;
7790
 
3430 rajveer 7791
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7792
      if (lastComparison != 0) {
7793
        return lastComparison;
7794
      }
3430 rajveer 7795
      if (isSetSe()) {
7796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7797
        if (lastComparison != 0) {
7798
          return lastComparison;
7799
        }
352 ashish 7800
      }
7801
      return 0;
7802
    }
7803
 
3430 rajveer 7804
    public _Fields fieldForId(int fieldId) {
7805
      return _Fields.findByThriftId(fieldId);
7806
    }
7807
 
7808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7809
      org.apache.thrift.protocol.TField field;
352 ashish 7810
      iprot.readStructBegin();
7811
      while (true)
7812
      {
7813
        field = iprot.readFieldBegin();
3430 rajveer 7814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7815
          break;
7816
        }
3430 rajveer 7817
        switch (field.id) {
7818
          case 1: // SE
7819
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7820
              this.se = new HelperServiceException();
7821
              this.se.read(iprot);
7822
            } else { 
7823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7824
            }
7825
            break;
7826
          default:
7827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7828
        }
3430 rajveer 7829
        iprot.readFieldEnd();
352 ashish 7830
      }
7831
      iprot.readStructEnd();
7832
      validate();
7833
    }
7834
 
3430 rajveer 7835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7836
      oprot.writeStructBegin(STRUCT_DESC);
7837
 
7838
      if (this.isSetSe()) {
7839
        oprot.writeFieldBegin(SE_FIELD_DESC);
7840
        this.se.write(oprot);
7841
        oprot.writeFieldEnd();
7842
      }
7843
      oprot.writeFieldStop();
7844
      oprot.writeStructEnd();
7845
    }
7846
 
7847
    @Override
7848
    public String toString() {
7849
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7850
      boolean first = true;
7851
 
7852
      sb.append("se:");
7853
      if (this.se == null) {
7854
        sb.append("null");
7855
      } else {
7856
        sb.append(this.se);
7857
      }
7858
      first = false;
7859
      sb.append(")");
7860
      return sb.toString();
7861
    }
7862
 
3430 rajveer 7863
    public void validate() throws org.apache.thrift.TException {
352 ashish 7864
      // check for required fields
7865
    }
7866
 
3430 rajveer 7867
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7868
      try {
7869
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7870
      } catch (org.apache.thrift.TException te) {
7871
        throw new java.io.IOException(te);
7872
      }
7873
    }
7874
 
7875
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7876
      try {
7877
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7878
      } catch (org.apache.thrift.TException te) {
7879
        throw new java.io.IOException(te);
7880
      }
7881
    }
7882
 
352 ashish 7883
  }
7884
 
3430 rajveer 7885
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7886
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7887
 
3430 rajveer 7888
    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 7889
 
3430 rajveer 7890
    private long id; // required
352 ashish 7891
 
7892
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7893
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7894
      ID((short)1, "id");
7895
 
7896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7897
 
7898
      static {
7899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7900
          byName.put(field.getFieldName(), field);
7901
        }
7902
      }
7903
 
7904
      /**
7905
       * Find the _Fields constant that matches fieldId, or null if its not found.
7906
       */
7907
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7908
        switch(fieldId) {
7909
          case 1: // ID
7910
            return ID;
7911
          default:
7912
            return null;
7913
        }
352 ashish 7914
      }
7915
 
7916
      /**
7917
       * Find the _Fields constant that matches fieldId, throwing an exception
7918
       * if it is not found.
7919
       */
7920
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7921
        _Fields fields = findByThriftId(fieldId);
7922
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7923
        return fields;
7924
      }
7925
 
7926
      /**
7927
       * Find the _Fields constant that matches name, or null if its not found.
7928
       */
7929
      public static _Fields findByName(String name) {
7930
        return byName.get(name);
7931
      }
7932
 
7933
      private final short _thriftId;
7934
      private final String _fieldName;
7935
 
7936
      _Fields(short thriftId, String fieldName) {
7937
        _thriftId = thriftId;
7938
        _fieldName = fieldName;
7939
      }
7940
 
7941
      public short getThriftFieldId() {
7942
        return _thriftId;
7943
      }
7944
 
7945
      public String getFieldName() {
7946
        return _fieldName;
7947
      }
7948
    }
7949
 
7950
    // isset id assignments
7951
    private static final int __ID_ISSET_ID = 0;
7952
    private BitSet __isset_bit_vector = new BitSet(1);
7953
 
3430 rajveer 7954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7955
    static {
3430 rajveer 7956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7957
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7961
    }
7962
 
7963
    public getMessage_args() {
7964
    }
7965
 
7966
    public getMessage_args(
7967
      long id)
7968
    {
7969
      this();
7970
      this.id = id;
7971
      setIdIsSet(true);
7972
    }
7973
 
7974
    /**
7975
     * Performs a deep copy on <i>other</i>.
7976
     */
7977
    public getMessage_args(getMessage_args other) {
7978
      __isset_bit_vector.clear();
7979
      __isset_bit_vector.or(other.__isset_bit_vector);
7980
      this.id = other.id;
7981
    }
7982
 
7983
    public getMessage_args deepCopy() {
7984
      return new getMessage_args(this);
7985
    }
7986
 
3430 rajveer 7987
    @Override
7988
    public void clear() {
7989
      setIdIsSet(false);
7990
      this.id = 0;
352 ashish 7991
    }
7992
 
7993
    public long getId() {
7994
      return this.id;
7995
    }
7996
 
3430 rajveer 7997
    public void setId(long id) {
352 ashish 7998
      this.id = id;
7999
      setIdIsSet(true);
8000
    }
8001
 
8002
    public void unsetId() {
8003
      __isset_bit_vector.clear(__ID_ISSET_ID);
8004
    }
8005
 
3430 rajveer 8006
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8007
    public boolean isSetId() {
8008
      return __isset_bit_vector.get(__ID_ISSET_ID);
8009
    }
8010
 
8011
    public void setIdIsSet(boolean value) {
8012
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8013
    }
8014
 
8015
    public void setFieldValue(_Fields field, Object value) {
8016
      switch (field) {
8017
      case ID:
8018
        if (value == null) {
8019
          unsetId();
8020
        } else {
8021
          setId((Long)value);
8022
        }
8023
        break;
8024
 
8025
      }
8026
    }
8027
 
8028
    public Object getFieldValue(_Fields field) {
8029
      switch (field) {
8030
      case ID:
3430 rajveer 8031
        return Long.valueOf(getId());
352 ashish 8032
 
8033
      }
8034
      throw new IllegalStateException();
8035
    }
8036
 
3430 rajveer 8037
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8038
    public boolean isSet(_Fields field) {
8039
      if (field == null) {
8040
        throw new IllegalArgumentException();
8041
      }
352 ashish 8042
 
8043
      switch (field) {
8044
      case ID:
8045
        return isSetId();
8046
      }
8047
      throw new IllegalStateException();
8048
    }
8049
 
8050
    @Override
8051
    public boolean equals(Object that) {
8052
      if (that == null)
8053
        return false;
8054
      if (that instanceof getMessage_args)
8055
        return this.equals((getMessage_args)that);
8056
      return false;
8057
    }
8058
 
8059
    public boolean equals(getMessage_args that) {
8060
      if (that == null)
8061
        return false;
8062
 
8063
      boolean this_present_id = true;
8064
      boolean that_present_id = true;
8065
      if (this_present_id || that_present_id) {
8066
        if (!(this_present_id && that_present_id))
8067
          return false;
8068
        if (this.id != that.id)
8069
          return false;
8070
      }
8071
 
8072
      return true;
8073
    }
8074
 
8075
    @Override
8076
    public int hashCode() {
8077
      return 0;
8078
    }
8079
 
8080
    public int compareTo(getMessage_args other) {
8081
      if (!getClass().equals(other.getClass())) {
8082
        return getClass().getName().compareTo(other.getClass().getName());
8083
      }
8084
 
8085
      int lastComparison = 0;
8086
      getMessage_args typedOther = (getMessage_args)other;
8087
 
3430 rajveer 8088
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8089
      if (lastComparison != 0) {
8090
        return lastComparison;
8091
      }
3430 rajveer 8092
      if (isSetId()) {
8093
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8094
        if (lastComparison != 0) {
8095
          return lastComparison;
8096
        }
352 ashish 8097
      }
8098
      return 0;
8099
    }
8100
 
3430 rajveer 8101
    public _Fields fieldForId(int fieldId) {
8102
      return _Fields.findByThriftId(fieldId);
8103
    }
8104
 
8105
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8106
      org.apache.thrift.protocol.TField field;
352 ashish 8107
      iprot.readStructBegin();
8108
      while (true)
8109
      {
8110
        field = iprot.readFieldBegin();
3430 rajveer 8111
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8112
          break;
8113
        }
3430 rajveer 8114
        switch (field.id) {
8115
          case 1: // ID
8116
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8117
              this.id = iprot.readI64();
8118
              setIdIsSet(true);
8119
            } else { 
8120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8121
            }
8122
            break;
8123
          default:
8124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8125
        }
3430 rajveer 8126
        iprot.readFieldEnd();
352 ashish 8127
      }
8128
      iprot.readStructEnd();
8129
      validate();
8130
    }
8131
 
3430 rajveer 8132
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8133
      validate();
8134
 
8135
      oprot.writeStructBegin(STRUCT_DESC);
8136
      oprot.writeFieldBegin(ID_FIELD_DESC);
8137
      oprot.writeI64(this.id);
8138
      oprot.writeFieldEnd();
8139
      oprot.writeFieldStop();
8140
      oprot.writeStructEnd();
8141
    }
8142
 
8143
    @Override
8144
    public String toString() {
8145
      StringBuilder sb = new StringBuilder("getMessage_args(");
8146
      boolean first = true;
8147
 
8148
      sb.append("id:");
8149
      sb.append(this.id);
8150
      first = false;
8151
      sb.append(")");
8152
      return sb.toString();
8153
    }
8154
 
3430 rajveer 8155
    public void validate() throws org.apache.thrift.TException {
352 ashish 8156
      // check for required fields
8157
    }
8158
 
3430 rajveer 8159
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8160
      try {
8161
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8162
      } catch (org.apache.thrift.TException te) {
8163
        throw new java.io.IOException(te);
8164
      }
8165
    }
8166
 
8167
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8168
      try {
8169
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8170
        __isset_bit_vector = new BitSet(1);
8171
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8172
      } catch (org.apache.thrift.TException te) {
8173
        throw new java.io.IOException(te);
8174
      }
8175
    }
8176
 
352 ashish 8177
  }
8178
 
3430 rajveer 8179
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
8180
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 8181
 
3430 rajveer 8182
    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);
8183
    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 8184
 
3430 rajveer 8185
    private Message success; // required
8186
    private HelperServiceException se; // required
352 ashish 8187
 
8188
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8189
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8190
      SUCCESS((short)0, "success"),
8191
      SE((short)1, "se");
8192
 
8193
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8194
 
8195
      static {
8196
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8197
          byName.put(field.getFieldName(), field);
8198
        }
8199
      }
8200
 
8201
      /**
8202
       * Find the _Fields constant that matches fieldId, or null if its not found.
8203
       */
8204
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8205
        switch(fieldId) {
8206
          case 0: // SUCCESS
8207
            return SUCCESS;
8208
          case 1: // SE
8209
            return SE;
8210
          default:
8211
            return null;
8212
        }
352 ashish 8213
      }
8214
 
8215
      /**
8216
       * Find the _Fields constant that matches fieldId, throwing an exception
8217
       * if it is not found.
8218
       */
8219
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8220
        _Fields fields = findByThriftId(fieldId);
8221
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8222
        return fields;
8223
      }
8224
 
8225
      /**
8226
       * Find the _Fields constant that matches name, or null if its not found.
8227
       */
8228
      public static _Fields findByName(String name) {
8229
        return byName.get(name);
8230
      }
8231
 
8232
      private final short _thriftId;
8233
      private final String _fieldName;
8234
 
8235
      _Fields(short thriftId, String fieldName) {
8236
        _thriftId = thriftId;
8237
        _fieldName = fieldName;
8238
      }
8239
 
8240
      public short getThriftFieldId() {
8241
        return _thriftId;
8242
      }
8243
 
8244
      public String getFieldName() {
8245
        return _fieldName;
8246
      }
8247
    }
8248
 
8249
    // isset id assignments
8250
 
3430 rajveer 8251
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8252
    static {
3430 rajveer 8253
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8254
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8255
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8256
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8257
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8258
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8259
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8260
    }
8261
 
8262
    public getMessage_result() {
8263
    }
8264
 
8265
    public getMessage_result(
8266
      Message success,
8267
      HelperServiceException se)
8268
    {
8269
      this();
8270
      this.success = success;
8271
      this.se = se;
8272
    }
8273
 
8274
    /**
8275
     * Performs a deep copy on <i>other</i>.
8276
     */
8277
    public getMessage_result(getMessage_result other) {
8278
      if (other.isSetSuccess()) {
8279
        this.success = new Message(other.success);
8280
      }
8281
      if (other.isSetSe()) {
8282
        this.se = new HelperServiceException(other.se);
8283
      }
8284
    }
8285
 
8286
    public getMessage_result deepCopy() {
8287
      return new getMessage_result(this);
8288
    }
8289
 
3430 rajveer 8290
    @Override
8291
    public void clear() {
8292
      this.success = null;
8293
      this.se = null;
352 ashish 8294
    }
8295
 
8296
    public Message getSuccess() {
8297
      return this.success;
8298
    }
8299
 
3430 rajveer 8300
    public void setSuccess(Message success) {
352 ashish 8301
      this.success = success;
8302
    }
8303
 
8304
    public void unsetSuccess() {
8305
      this.success = null;
8306
    }
8307
 
3430 rajveer 8308
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8309
    public boolean isSetSuccess() {
8310
      return this.success != null;
8311
    }
8312
 
8313
    public void setSuccessIsSet(boolean value) {
8314
      if (!value) {
8315
        this.success = null;
8316
      }
8317
    }
8318
 
8319
    public HelperServiceException getSe() {
8320
      return this.se;
8321
    }
8322
 
3430 rajveer 8323
    public void setSe(HelperServiceException se) {
352 ashish 8324
      this.se = se;
8325
    }
8326
 
8327
    public void unsetSe() {
8328
      this.se = null;
8329
    }
8330
 
3430 rajveer 8331
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8332
    public boolean isSetSe() {
8333
      return this.se != null;
8334
    }
8335
 
8336
    public void setSeIsSet(boolean value) {
8337
      if (!value) {
8338
        this.se = null;
8339
      }
8340
    }
8341
 
8342
    public void setFieldValue(_Fields field, Object value) {
8343
      switch (field) {
8344
      case SUCCESS:
8345
        if (value == null) {
8346
          unsetSuccess();
8347
        } else {
8348
          setSuccess((Message)value);
8349
        }
8350
        break;
8351
 
8352
      case SE:
8353
        if (value == null) {
8354
          unsetSe();
8355
        } else {
8356
          setSe((HelperServiceException)value);
8357
        }
8358
        break;
8359
 
8360
      }
8361
    }
8362
 
8363
    public Object getFieldValue(_Fields field) {
8364
      switch (field) {
8365
      case SUCCESS:
8366
        return getSuccess();
8367
 
8368
      case SE:
8369
        return getSe();
8370
 
8371
      }
8372
      throw new IllegalStateException();
8373
    }
8374
 
3430 rajveer 8375
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8376
    public boolean isSet(_Fields field) {
8377
      if (field == null) {
8378
        throw new IllegalArgumentException();
8379
      }
352 ashish 8380
 
8381
      switch (field) {
8382
      case SUCCESS:
8383
        return isSetSuccess();
8384
      case SE:
8385
        return isSetSe();
8386
      }
8387
      throw new IllegalStateException();
8388
    }
8389
 
8390
    @Override
8391
    public boolean equals(Object that) {
8392
      if (that == null)
8393
        return false;
8394
      if (that instanceof getMessage_result)
8395
        return this.equals((getMessage_result)that);
8396
      return false;
8397
    }
8398
 
8399
    public boolean equals(getMessage_result that) {
8400
      if (that == null)
8401
        return false;
8402
 
8403
      boolean this_present_success = true && this.isSetSuccess();
8404
      boolean that_present_success = true && that.isSetSuccess();
8405
      if (this_present_success || that_present_success) {
8406
        if (!(this_present_success && that_present_success))
8407
          return false;
8408
        if (!this.success.equals(that.success))
8409
          return false;
8410
      }
8411
 
8412
      boolean this_present_se = true && this.isSetSe();
8413
      boolean that_present_se = true && that.isSetSe();
8414
      if (this_present_se || that_present_se) {
8415
        if (!(this_present_se && that_present_se))
8416
          return false;
8417
        if (!this.se.equals(that.se))
8418
          return false;
8419
      }
8420
 
8421
      return true;
8422
    }
8423
 
8424
    @Override
8425
    public int hashCode() {
8426
      return 0;
8427
    }
8428
 
8429
    public int compareTo(getMessage_result other) {
8430
      if (!getClass().equals(other.getClass())) {
8431
        return getClass().getName().compareTo(other.getClass().getName());
8432
      }
8433
 
8434
      int lastComparison = 0;
8435
      getMessage_result typedOther = (getMessage_result)other;
8436
 
3430 rajveer 8437
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8438
      if (lastComparison != 0) {
8439
        return lastComparison;
8440
      }
3430 rajveer 8441
      if (isSetSuccess()) {
8442
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8443
        if (lastComparison != 0) {
8444
          return lastComparison;
8445
        }
352 ashish 8446
      }
3430 rajveer 8447
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8448
      if (lastComparison != 0) {
8449
        return lastComparison;
8450
      }
3430 rajveer 8451
      if (isSetSe()) {
8452
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8453
        if (lastComparison != 0) {
8454
          return lastComparison;
8455
        }
352 ashish 8456
      }
8457
      return 0;
8458
    }
8459
 
3430 rajveer 8460
    public _Fields fieldForId(int fieldId) {
8461
      return _Fields.findByThriftId(fieldId);
8462
    }
8463
 
8464
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8465
      org.apache.thrift.protocol.TField field;
352 ashish 8466
      iprot.readStructBegin();
8467
      while (true)
8468
      {
8469
        field = iprot.readFieldBegin();
3430 rajveer 8470
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8471
          break;
8472
        }
3430 rajveer 8473
        switch (field.id) {
8474
          case 0: // SUCCESS
8475
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8476
              this.success = new Message();
8477
              this.success.read(iprot);
8478
            } else { 
8479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8480
            }
8481
            break;
8482
          case 1: // SE
8483
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8484
              this.se = new HelperServiceException();
8485
              this.se.read(iprot);
8486
            } else { 
8487
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8488
            }
8489
            break;
8490
          default:
8491
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8492
        }
3430 rajveer 8493
        iprot.readFieldEnd();
352 ashish 8494
      }
8495
      iprot.readStructEnd();
8496
      validate();
8497
    }
8498
 
3430 rajveer 8499
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8500
      oprot.writeStructBegin(STRUCT_DESC);
8501
 
8502
      if (this.isSetSuccess()) {
8503
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8504
        this.success.write(oprot);
8505
        oprot.writeFieldEnd();
8506
      } else if (this.isSetSe()) {
8507
        oprot.writeFieldBegin(SE_FIELD_DESC);
8508
        this.se.write(oprot);
8509
        oprot.writeFieldEnd();
8510
      }
8511
      oprot.writeFieldStop();
8512
      oprot.writeStructEnd();
8513
    }
8514
 
8515
    @Override
8516
    public String toString() {
8517
      StringBuilder sb = new StringBuilder("getMessage_result(");
8518
      boolean first = true;
8519
 
8520
      sb.append("success:");
8521
      if (this.success == null) {
8522
        sb.append("null");
8523
      } else {
8524
        sb.append(this.success);
8525
      }
8526
      first = false;
8527
      if (!first) sb.append(", ");
8528
      sb.append("se:");
8529
      if (this.se == null) {
8530
        sb.append("null");
8531
      } else {
8532
        sb.append(this.se);
8533
      }
8534
      first = false;
8535
      sb.append(")");
8536
      return sb.toString();
8537
    }
8538
 
3430 rajveer 8539
    public void validate() throws org.apache.thrift.TException {
352 ashish 8540
      // check for required fields
8541
    }
8542
 
3430 rajveer 8543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8544
      try {
8545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8546
      } catch (org.apache.thrift.TException te) {
8547
        throw new java.io.IOException(te);
8548
      }
8549
    }
8550
 
8551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8552
      try {
8553
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8554
      } catch (org.apache.thrift.TException te) {
8555
        throw new java.io.IOException(te);
8556
      }
8557
    }
8558
 
352 ashish 8559
  }
8560
 
3430 rajveer 8561
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8562
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8563
 
3430 rajveer 8564
    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);
8565
    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 8566
 
3430 rajveer 8567
    private long id; // required
8568
    private Map<String,String> params; // required
352 ashish 8569
 
8570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8572
      ID((short)1, "id"),
8573
      PARAMS((short)2, "params");
8574
 
8575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8576
 
8577
      static {
8578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8579
          byName.put(field.getFieldName(), field);
8580
        }
8581
      }
8582
 
8583
      /**
8584
       * Find the _Fields constant that matches fieldId, or null if its not found.
8585
       */
8586
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8587
        switch(fieldId) {
8588
          case 1: // ID
8589
            return ID;
8590
          case 2: // PARAMS
8591
            return PARAMS;
8592
          default:
8593
            return null;
8594
        }
352 ashish 8595
      }
8596
 
8597
      /**
8598
       * Find the _Fields constant that matches fieldId, throwing an exception
8599
       * if it is not found.
8600
       */
8601
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8602
        _Fields fields = findByThriftId(fieldId);
8603
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8604
        return fields;
8605
      }
8606
 
8607
      /**
8608
       * Find the _Fields constant that matches name, or null if its not found.
8609
       */
8610
      public static _Fields findByName(String name) {
8611
        return byName.get(name);
8612
      }
8613
 
8614
      private final short _thriftId;
8615
      private final String _fieldName;
8616
 
8617
      _Fields(short thriftId, String fieldName) {
8618
        _thriftId = thriftId;
8619
        _fieldName = fieldName;
8620
      }
8621
 
8622
      public short getThriftFieldId() {
8623
        return _thriftId;
8624
      }
8625
 
8626
      public String getFieldName() {
8627
        return _fieldName;
8628
      }
8629
    }
8630
 
8631
    // isset id assignments
8632
    private static final int __ID_ISSET_ID = 0;
8633
    private BitSet __isset_bit_vector = new BitSet(1);
8634
 
3430 rajveer 8635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8636
    static {
3430 rajveer 8637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8638
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8640
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8641
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8642
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8643
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8644
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8645
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8646
    }
8647
 
8648
    public getSubstitutedMessage_args() {
8649
    }
8650
 
8651
    public getSubstitutedMessage_args(
8652
      long id,
8653
      Map<String,String> params)
8654
    {
8655
      this();
8656
      this.id = id;
8657
      setIdIsSet(true);
8658
      this.params = params;
8659
    }
8660
 
8661
    /**
8662
     * Performs a deep copy on <i>other</i>.
8663
     */
8664
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8665
      __isset_bit_vector.clear();
8666
      __isset_bit_vector.or(other.__isset_bit_vector);
8667
      this.id = other.id;
8668
      if (other.isSetParams()) {
8669
        Map<String,String> __this__params = new HashMap<String,String>();
8670
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8671
 
8672
          String other_element_key = other_element.getKey();
8673
          String other_element_value = other_element.getValue();
8674
 
8675
          String __this__params_copy_key = other_element_key;
8676
 
8677
          String __this__params_copy_value = other_element_value;
8678
 
8679
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8680
        }
8681
        this.params = __this__params;
8682
      }
8683
    }
8684
 
8685
    public getSubstitutedMessage_args deepCopy() {
8686
      return new getSubstitutedMessage_args(this);
8687
    }
8688
 
3430 rajveer 8689
    @Override
8690
    public void clear() {
8691
      setIdIsSet(false);
8692
      this.id = 0;
8693
      this.params = null;
352 ashish 8694
    }
8695
 
8696
    public long getId() {
8697
      return this.id;
8698
    }
8699
 
3430 rajveer 8700
    public void setId(long id) {
352 ashish 8701
      this.id = id;
8702
      setIdIsSet(true);
8703
    }
8704
 
8705
    public void unsetId() {
8706
      __isset_bit_vector.clear(__ID_ISSET_ID);
8707
    }
8708
 
3430 rajveer 8709
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8710
    public boolean isSetId() {
8711
      return __isset_bit_vector.get(__ID_ISSET_ID);
8712
    }
8713
 
8714
    public void setIdIsSet(boolean value) {
8715
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8716
    }
8717
 
8718
    public int getParamsSize() {
8719
      return (this.params == null) ? 0 : this.params.size();
8720
    }
8721
 
8722
    public void putToParams(String key, String val) {
8723
      if (this.params == null) {
8724
        this.params = new HashMap<String,String>();
8725
      }
8726
      this.params.put(key, val);
8727
    }
8728
 
8729
    public Map<String,String> getParams() {
8730
      return this.params;
8731
    }
8732
 
3430 rajveer 8733
    public void setParams(Map<String,String> params) {
352 ashish 8734
      this.params = params;
8735
    }
8736
 
8737
    public void unsetParams() {
8738
      this.params = null;
8739
    }
8740
 
3430 rajveer 8741
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8742
    public boolean isSetParams() {
8743
      return this.params != null;
8744
    }
8745
 
8746
    public void setParamsIsSet(boolean value) {
8747
      if (!value) {
8748
        this.params = null;
8749
      }
8750
    }
8751
 
8752
    public void setFieldValue(_Fields field, Object value) {
8753
      switch (field) {
8754
      case ID:
8755
        if (value == null) {
8756
          unsetId();
8757
        } else {
8758
          setId((Long)value);
8759
        }
8760
        break;
8761
 
8762
      case PARAMS:
8763
        if (value == null) {
8764
          unsetParams();
8765
        } else {
8766
          setParams((Map<String,String>)value);
8767
        }
8768
        break;
8769
 
8770
      }
8771
    }
8772
 
8773
    public Object getFieldValue(_Fields field) {
8774
      switch (field) {
8775
      case ID:
3430 rajveer 8776
        return Long.valueOf(getId());
352 ashish 8777
 
8778
      case PARAMS:
8779
        return getParams();
8780
 
8781
      }
8782
      throw new IllegalStateException();
8783
    }
8784
 
3430 rajveer 8785
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8786
    public boolean isSet(_Fields field) {
8787
      if (field == null) {
8788
        throw new IllegalArgumentException();
8789
      }
352 ashish 8790
 
8791
      switch (field) {
8792
      case ID:
8793
        return isSetId();
8794
      case PARAMS:
8795
        return isSetParams();
8796
      }
8797
      throw new IllegalStateException();
8798
    }
8799
 
8800
    @Override
8801
    public boolean equals(Object that) {
8802
      if (that == null)
8803
        return false;
8804
      if (that instanceof getSubstitutedMessage_args)
8805
        return this.equals((getSubstitutedMessage_args)that);
8806
      return false;
8807
    }
8808
 
8809
    public boolean equals(getSubstitutedMessage_args that) {
8810
      if (that == null)
8811
        return false;
8812
 
8813
      boolean this_present_id = true;
8814
      boolean that_present_id = true;
8815
      if (this_present_id || that_present_id) {
8816
        if (!(this_present_id && that_present_id))
8817
          return false;
8818
        if (this.id != that.id)
8819
          return false;
8820
      }
8821
 
8822
      boolean this_present_params = true && this.isSetParams();
8823
      boolean that_present_params = true && that.isSetParams();
8824
      if (this_present_params || that_present_params) {
8825
        if (!(this_present_params && that_present_params))
8826
          return false;
8827
        if (!this.params.equals(that.params))
8828
          return false;
8829
      }
8830
 
8831
      return true;
8832
    }
8833
 
8834
    @Override
8835
    public int hashCode() {
8836
      return 0;
8837
    }
8838
 
3430 rajveer 8839
    public int compareTo(getSubstitutedMessage_args other) {
8840
      if (!getClass().equals(other.getClass())) {
8841
        return getClass().getName().compareTo(other.getClass().getName());
8842
      }
8843
 
8844
      int lastComparison = 0;
8845
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8846
 
8847
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8848
      if (lastComparison != 0) {
8849
        return lastComparison;
8850
      }
8851
      if (isSetId()) {
8852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8853
        if (lastComparison != 0) {
8854
          return lastComparison;
8855
        }
8856
      }
8857
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8858
      if (lastComparison != 0) {
8859
        return lastComparison;
8860
      }
8861
      if (isSetParams()) {
8862
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8863
        if (lastComparison != 0) {
8864
          return lastComparison;
8865
        }
8866
      }
8867
      return 0;
8868
    }
8869
 
8870
    public _Fields fieldForId(int fieldId) {
8871
      return _Fields.findByThriftId(fieldId);
8872
    }
8873
 
8874
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8875
      org.apache.thrift.protocol.TField field;
352 ashish 8876
      iprot.readStructBegin();
8877
      while (true)
8878
      {
8879
        field = iprot.readFieldBegin();
3430 rajveer 8880
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8881
          break;
8882
        }
3430 rajveer 8883
        switch (field.id) {
8884
          case 1: // ID
8885
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8886
              this.id = iprot.readI64();
8887
              setIdIsSet(true);
8888
            } else { 
8889
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8890
            }
8891
            break;
8892
          case 2: // PARAMS
8893
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8894
              {
5864 rajveer 8895
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8896
                this.params = new HashMap<String,String>(2*_map36.size);
8897
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8898
                {
5864 rajveer 8899
                  String _key38; // required
8900
                  String _val39; // required
8901
                  _key38 = iprot.readString();
8902
                  _val39 = iprot.readString();
8903
                  this.params.put(_key38, _val39);
352 ashish 8904
                }
3430 rajveer 8905
                iprot.readMapEnd();
352 ashish 8906
              }
3430 rajveer 8907
            } else { 
8908
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8909
            }
8910
            break;
8911
          default:
8912
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8913
        }
3430 rajveer 8914
        iprot.readFieldEnd();
352 ashish 8915
      }
8916
      iprot.readStructEnd();
8917
      validate();
8918
    }
8919
 
3430 rajveer 8920
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8921
      validate();
8922
 
8923
      oprot.writeStructBegin(STRUCT_DESC);
8924
      oprot.writeFieldBegin(ID_FIELD_DESC);
8925
      oprot.writeI64(this.id);
8926
      oprot.writeFieldEnd();
8927
      if (this.params != null) {
8928
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8929
        {
3430 rajveer 8930
          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 8931
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8932
          {
5864 rajveer 8933
            oprot.writeString(_iter40.getKey());
8934
            oprot.writeString(_iter40.getValue());
352 ashish 8935
          }
8936
          oprot.writeMapEnd();
8937
        }
8938
        oprot.writeFieldEnd();
8939
      }
8940
      oprot.writeFieldStop();
8941
      oprot.writeStructEnd();
8942
    }
8943
 
8944
    @Override
8945
    public String toString() {
8946
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8947
      boolean first = true;
8948
 
8949
      sb.append("id:");
8950
      sb.append(this.id);
8951
      first = false;
8952
      if (!first) sb.append(", ");
8953
      sb.append("params:");
8954
      if (this.params == null) {
8955
        sb.append("null");
8956
      } else {
8957
        sb.append(this.params);
8958
      }
8959
      first = false;
8960
      sb.append(")");
8961
      return sb.toString();
8962
    }
8963
 
3430 rajveer 8964
    public void validate() throws org.apache.thrift.TException {
352 ashish 8965
      // check for required fields
8966
    }
8967
 
3430 rajveer 8968
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8969
      try {
8970
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8971
      } catch (org.apache.thrift.TException te) {
8972
        throw new java.io.IOException(te);
8973
      }
8974
    }
8975
 
8976
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8977
      try {
8978
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8979
        __isset_bit_vector = new BitSet(1);
8980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8981
      } catch (org.apache.thrift.TException te) {
8982
        throw new java.io.IOException(te);
8983
      }
8984
    }
8985
 
352 ashish 8986
  }
8987
 
3430 rajveer 8988
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8990
 
3430 rajveer 8991
    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);
8992
    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 8993
 
3430 rajveer 8994
    private Message success; // required
8995
    private HelperServiceException se; // required
352 ashish 8996
 
8997
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8998
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8999
      SUCCESS((short)0, "success"),
9000
      SE((short)1, "se");
9001
 
9002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9003
 
9004
      static {
9005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9006
          byName.put(field.getFieldName(), field);
9007
        }
9008
      }
9009
 
9010
      /**
9011
       * Find the _Fields constant that matches fieldId, or null if its not found.
9012
       */
9013
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9014
        switch(fieldId) {
9015
          case 0: // SUCCESS
9016
            return SUCCESS;
9017
          case 1: // SE
9018
            return SE;
9019
          default:
9020
            return null;
9021
        }
352 ashish 9022
      }
9023
 
9024
      /**
9025
       * Find the _Fields constant that matches fieldId, throwing an exception
9026
       * if it is not found.
9027
       */
9028
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9029
        _Fields fields = findByThriftId(fieldId);
9030
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9031
        return fields;
9032
      }
9033
 
9034
      /**
9035
       * Find the _Fields constant that matches name, or null if its not found.
9036
       */
9037
      public static _Fields findByName(String name) {
9038
        return byName.get(name);
9039
      }
9040
 
9041
      private final short _thriftId;
9042
      private final String _fieldName;
9043
 
9044
      _Fields(short thriftId, String fieldName) {
9045
        _thriftId = thriftId;
9046
        _fieldName = fieldName;
9047
      }
9048
 
9049
      public short getThriftFieldId() {
9050
        return _thriftId;
9051
      }
9052
 
9053
      public String getFieldName() {
9054
        return _fieldName;
9055
      }
9056
    }
9057
 
9058
    // isset id assignments
9059
 
3430 rajveer 9060
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9061
    static {
3430 rajveer 9062
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9063
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9064
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9065
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 9069
    }
9070
 
9071
    public getSubstitutedMessage_result() {
9072
    }
9073
 
9074
    public getSubstitutedMessage_result(
9075
      Message success,
9076
      HelperServiceException se)
9077
    {
9078
      this();
9079
      this.success = success;
9080
      this.se = se;
9081
    }
9082
 
9083
    /**
9084
     * Performs a deep copy on <i>other</i>.
9085
     */
9086
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
9087
      if (other.isSetSuccess()) {
9088
        this.success = new Message(other.success);
9089
      }
9090
      if (other.isSetSe()) {
9091
        this.se = new HelperServiceException(other.se);
9092
      }
9093
    }
9094
 
9095
    public getSubstitutedMessage_result deepCopy() {
9096
      return new getSubstitutedMessage_result(this);
9097
    }
9098
 
3430 rajveer 9099
    @Override
9100
    public void clear() {
9101
      this.success = null;
9102
      this.se = null;
352 ashish 9103
    }
9104
 
9105
    public Message getSuccess() {
9106
      return this.success;
9107
    }
9108
 
3430 rajveer 9109
    public void setSuccess(Message success) {
352 ashish 9110
      this.success = success;
9111
    }
9112
 
9113
    public void unsetSuccess() {
9114
      this.success = null;
9115
    }
9116
 
3430 rajveer 9117
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9118
    public boolean isSetSuccess() {
9119
      return this.success != null;
9120
    }
9121
 
9122
    public void setSuccessIsSet(boolean value) {
9123
      if (!value) {
9124
        this.success = null;
9125
      }
9126
    }
9127
 
9128
    public HelperServiceException getSe() {
9129
      return this.se;
9130
    }
9131
 
3430 rajveer 9132
    public void setSe(HelperServiceException se) {
352 ashish 9133
      this.se = se;
9134
    }
9135
 
9136
    public void unsetSe() {
9137
      this.se = null;
9138
    }
9139
 
3430 rajveer 9140
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9141
    public boolean isSetSe() {
9142
      return this.se != null;
9143
    }
9144
 
9145
    public void setSeIsSet(boolean value) {
9146
      if (!value) {
9147
        this.se = null;
9148
      }
9149
    }
9150
 
9151
    public void setFieldValue(_Fields field, Object value) {
9152
      switch (field) {
9153
      case SUCCESS:
9154
        if (value == null) {
9155
          unsetSuccess();
9156
        } else {
9157
          setSuccess((Message)value);
9158
        }
9159
        break;
9160
 
9161
      case SE:
9162
        if (value == null) {
9163
          unsetSe();
9164
        } else {
9165
          setSe((HelperServiceException)value);
9166
        }
9167
        break;
9168
 
9169
      }
9170
    }
9171
 
9172
    public Object getFieldValue(_Fields field) {
9173
      switch (field) {
9174
      case SUCCESS:
9175
        return getSuccess();
9176
 
9177
      case SE:
9178
        return getSe();
9179
 
9180
      }
9181
      throw new IllegalStateException();
9182
    }
9183
 
3430 rajveer 9184
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9185
    public boolean isSet(_Fields field) {
9186
      if (field == null) {
9187
        throw new IllegalArgumentException();
9188
      }
352 ashish 9189
 
9190
      switch (field) {
9191
      case SUCCESS:
9192
        return isSetSuccess();
9193
      case SE:
9194
        return isSetSe();
9195
      }
9196
      throw new IllegalStateException();
9197
    }
9198
 
9199
    @Override
9200
    public boolean equals(Object that) {
9201
      if (that == null)
9202
        return false;
9203
      if (that instanceof getSubstitutedMessage_result)
9204
        return this.equals((getSubstitutedMessage_result)that);
9205
      return false;
9206
    }
9207
 
9208
    public boolean equals(getSubstitutedMessage_result that) {
9209
      if (that == null)
9210
        return false;
9211
 
9212
      boolean this_present_success = true && this.isSetSuccess();
9213
      boolean that_present_success = true && that.isSetSuccess();
9214
      if (this_present_success || that_present_success) {
9215
        if (!(this_present_success && that_present_success))
9216
          return false;
9217
        if (!this.success.equals(that.success))
9218
          return false;
9219
      }
9220
 
9221
      boolean this_present_se = true && this.isSetSe();
9222
      boolean that_present_se = true && that.isSetSe();
9223
      if (this_present_se || that_present_se) {
9224
        if (!(this_present_se && that_present_se))
9225
          return false;
9226
        if (!this.se.equals(that.se))
9227
          return false;
9228
      }
9229
 
9230
      return true;
9231
    }
9232
 
9233
    @Override
9234
    public int hashCode() {
9235
      return 0;
9236
    }
9237
 
9238
    public int compareTo(getSubstitutedMessage_result other) {
9239
      if (!getClass().equals(other.getClass())) {
9240
        return getClass().getName().compareTo(other.getClass().getName());
9241
      }
9242
 
9243
      int lastComparison = 0;
9244
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9245
 
3430 rajveer 9246
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9247
      if (lastComparison != 0) {
9248
        return lastComparison;
9249
      }
3430 rajveer 9250
      if (isSetSuccess()) {
9251
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9252
        if (lastComparison != 0) {
9253
          return lastComparison;
9254
        }
352 ashish 9255
      }
3430 rajveer 9256
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9257
      if (lastComparison != 0) {
9258
        return lastComparison;
9259
      }
3430 rajveer 9260
      if (isSetSe()) {
9261
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9262
        if (lastComparison != 0) {
9263
          return lastComparison;
9264
        }
352 ashish 9265
      }
9266
      return 0;
9267
    }
9268
 
3430 rajveer 9269
    public _Fields fieldForId(int fieldId) {
9270
      return _Fields.findByThriftId(fieldId);
9271
    }
9272
 
9273
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9274
      org.apache.thrift.protocol.TField field;
352 ashish 9275
      iprot.readStructBegin();
9276
      while (true)
9277
      {
9278
        field = iprot.readFieldBegin();
3430 rajveer 9279
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9280
          break;
9281
        }
3430 rajveer 9282
        switch (field.id) {
9283
          case 0: // SUCCESS
9284
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9285
              this.success = new Message();
9286
              this.success.read(iprot);
9287
            } else { 
9288
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9289
            }
9290
            break;
9291
          case 1: // SE
9292
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9293
              this.se = new HelperServiceException();
9294
              this.se.read(iprot);
9295
            } else { 
9296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9297
            }
9298
            break;
9299
          default:
9300
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9301
        }
3430 rajveer 9302
        iprot.readFieldEnd();
352 ashish 9303
      }
9304
      iprot.readStructEnd();
9305
      validate();
9306
    }
9307
 
3430 rajveer 9308
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9309
      oprot.writeStructBegin(STRUCT_DESC);
9310
 
9311
      if (this.isSetSuccess()) {
9312
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9313
        this.success.write(oprot);
9314
        oprot.writeFieldEnd();
9315
      } else if (this.isSetSe()) {
9316
        oprot.writeFieldBegin(SE_FIELD_DESC);
9317
        this.se.write(oprot);
9318
        oprot.writeFieldEnd();
9319
      }
9320
      oprot.writeFieldStop();
9321
      oprot.writeStructEnd();
9322
    }
9323
 
9324
    @Override
9325
    public String toString() {
9326
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9327
      boolean first = true;
9328
 
9329
      sb.append("success:");
9330
      if (this.success == null) {
9331
        sb.append("null");
9332
      } else {
9333
        sb.append(this.success);
9334
      }
9335
      first = false;
9336
      if (!first) sb.append(", ");
9337
      sb.append("se:");
9338
      if (this.se == null) {
9339
        sb.append("null");
9340
      } else {
9341
        sb.append(this.se);
9342
      }
9343
      first = false;
9344
      sb.append(")");
9345
      return sb.toString();
9346
    }
9347
 
3430 rajveer 9348
    public void validate() throws org.apache.thrift.TException {
352 ashish 9349
      // check for required fields
9350
    }
9351
 
3430 rajveer 9352
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9353
      try {
9354
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9355
      } catch (org.apache.thrift.TException te) {
9356
        throw new java.io.IOException(te);
9357
      }
9358
    }
9359
 
9360
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9361
      try {
9362
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9363
      } catch (org.apache.thrift.TException te) {
9364
        throw new java.io.IOException(te);
9365
      }
9366
    }
9367
 
352 ashish 9368
  }
9369
 
3430 rajveer 9370
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9371
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9372
 
3430 rajveer 9373
    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);
9374
    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);
9375
    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 9376
 
3430 rajveer 9377
    private String username; // required
9378
    private String password; // required
9379
    private long warehouseId; // required
495 rajveer 9380
 
9381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9383
      USERNAME((short)1, "username"),
9384
      PASSWORD((short)2, "password"),
9385
      WAREHOUSE_ID((short)3, "warehouseId");
9386
 
9387
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9388
 
9389
      static {
9390
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9391
          byName.put(field.getFieldName(), field);
9392
        }
9393
      }
9394
 
9395
      /**
9396
       * Find the _Fields constant that matches fieldId, or null if its not found.
9397
       */
9398
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9399
        switch(fieldId) {
9400
          case 1: // USERNAME
9401
            return USERNAME;
9402
          case 2: // PASSWORD
9403
            return PASSWORD;
9404
          case 3: // WAREHOUSE_ID
9405
            return WAREHOUSE_ID;
9406
          default:
9407
            return null;
9408
        }
495 rajveer 9409
      }
9410
 
9411
      /**
9412
       * Find the _Fields constant that matches fieldId, throwing an exception
9413
       * if it is not found.
9414
       */
9415
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9416
        _Fields fields = findByThriftId(fieldId);
9417
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9418
        return fields;
9419
      }
9420
 
9421
      /**
9422
       * Find the _Fields constant that matches name, or null if its not found.
9423
       */
9424
      public static _Fields findByName(String name) {
9425
        return byName.get(name);
9426
      }
9427
 
9428
      private final short _thriftId;
9429
      private final String _fieldName;
9430
 
9431
      _Fields(short thriftId, String fieldName) {
9432
        _thriftId = thriftId;
9433
        _fieldName = fieldName;
9434
      }
9435
 
9436
      public short getThriftFieldId() {
9437
        return _thriftId;
9438
      }
9439
 
9440
      public String getFieldName() {
9441
        return _fieldName;
9442
      }
9443
    }
9444
 
9445
    // isset id assignments
9446
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9447
    private BitSet __isset_bit_vector = new BitSet(1);
9448
 
3430 rajveer 9449
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9450
    static {
3430 rajveer 9451
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9452
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9454
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9456
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9457
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9458
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9459
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9460
    }
9461
 
9462
    public addUser_args() {
9463
    }
9464
 
9465
    public addUser_args(
9466
      String username,
9467
      String password,
9468
      long warehouseId)
9469
    {
9470
      this();
9471
      this.username = username;
9472
      this.password = password;
9473
      this.warehouseId = warehouseId;
9474
      setWarehouseIdIsSet(true);
9475
    }
9476
 
9477
    /**
9478
     * Performs a deep copy on <i>other</i>.
9479
     */
9480
    public addUser_args(addUser_args other) {
9481
      __isset_bit_vector.clear();
9482
      __isset_bit_vector.or(other.__isset_bit_vector);
9483
      if (other.isSetUsername()) {
9484
        this.username = other.username;
9485
      }
9486
      if (other.isSetPassword()) {
9487
        this.password = other.password;
9488
      }
9489
      this.warehouseId = other.warehouseId;
9490
    }
9491
 
9492
    public addUser_args deepCopy() {
9493
      return new addUser_args(this);
9494
    }
9495
 
3430 rajveer 9496
    @Override
9497
    public void clear() {
9498
      this.username = null;
9499
      this.password = null;
9500
      setWarehouseIdIsSet(false);
9501
      this.warehouseId = 0;
495 rajveer 9502
    }
9503
 
9504
    public String getUsername() {
9505
      return this.username;
9506
    }
9507
 
3430 rajveer 9508
    public void setUsername(String username) {
495 rajveer 9509
      this.username = username;
9510
    }
9511
 
9512
    public void unsetUsername() {
9513
      this.username = null;
9514
    }
9515
 
3430 rajveer 9516
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9517
    public boolean isSetUsername() {
9518
      return this.username != null;
9519
    }
9520
 
9521
    public void setUsernameIsSet(boolean value) {
9522
      if (!value) {
9523
        this.username = null;
9524
      }
9525
    }
9526
 
9527
    public String getPassword() {
9528
      return this.password;
9529
    }
9530
 
3430 rajveer 9531
    public void setPassword(String password) {
495 rajveer 9532
      this.password = password;
9533
    }
9534
 
9535
    public void unsetPassword() {
9536
      this.password = null;
9537
    }
9538
 
3430 rajveer 9539
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9540
    public boolean isSetPassword() {
9541
      return this.password != null;
9542
    }
9543
 
9544
    public void setPasswordIsSet(boolean value) {
9545
      if (!value) {
9546
        this.password = null;
9547
      }
9548
    }
9549
 
9550
    public long getWarehouseId() {
9551
      return this.warehouseId;
9552
    }
9553
 
3430 rajveer 9554
    public void setWarehouseId(long warehouseId) {
495 rajveer 9555
      this.warehouseId = warehouseId;
9556
      setWarehouseIdIsSet(true);
9557
    }
9558
 
9559
    public void unsetWarehouseId() {
9560
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9561
    }
9562
 
3430 rajveer 9563
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9564
    public boolean isSetWarehouseId() {
9565
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9566
    }
9567
 
9568
    public void setWarehouseIdIsSet(boolean value) {
9569
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9570
    }
9571
 
9572
    public void setFieldValue(_Fields field, Object value) {
9573
      switch (field) {
9574
      case USERNAME:
9575
        if (value == null) {
9576
          unsetUsername();
9577
        } else {
9578
          setUsername((String)value);
9579
        }
9580
        break;
9581
 
9582
      case PASSWORD:
9583
        if (value == null) {
9584
          unsetPassword();
9585
        } else {
9586
          setPassword((String)value);
9587
        }
9588
        break;
9589
 
9590
      case WAREHOUSE_ID:
9591
        if (value == null) {
9592
          unsetWarehouseId();
9593
        } else {
9594
          setWarehouseId((Long)value);
9595
        }
9596
        break;
9597
 
9598
      }
9599
    }
9600
 
9601
    public Object getFieldValue(_Fields field) {
9602
      switch (field) {
9603
      case USERNAME:
9604
        return getUsername();
9605
 
9606
      case PASSWORD:
9607
        return getPassword();
9608
 
9609
      case WAREHOUSE_ID:
3430 rajveer 9610
        return Long.valueOf(getWarehouseId());
495 rajveer 9611
 
9612
      }
9613
      throw new IllegalStateException();
9614
    }
9615
 
3430 rajveer 9616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9617
    public boolean isSet(_Fields field) {
9618
      if (field == null) {
9619
        throw new IllegalArgumentException();
9620
      }
495 rajveer 9621
 
9622
      switch (field) {
9623
      case USERNAME:
9624
        return isSetUsername();
9625
      case PASSWORD:
9626
        return isSetPassword();
9627
      case WAREHOUSE_ID:
9628
        return isSetWarehouseId();
9629
      }
9630
      throw new IllegalStateException();
9631
    }
9632
 
9633
    @Override
9634
    public boolean equals(Object that) {
9635
      if (that == null)
9636
        return false;
9637
      if (that instanceof addUser_args)
9638
        return this.equals((addUser_args)that);
9639
      return false;
9640
    }
9641
 
9642
    public boolean equals(addUser_args that) {
9643
      if (that == null)
9644
        return false;
9645
 
9646
      boolean this_present_username = true && this.isSetUsername();
9647
      boolean that_present_username = true && that.isSetUsername();
9648
      if (this_present_username || that_present_username) {
9649
        if (!(this_present_username && that_present_username))
9650
          return false;
9651
        if (!this.username.equals(that.username))
9652
          return false;
9653
      }
9654
 
9655
      boolean this_present_password = true && this.isSetPassword();
9656
      boolean that_present_password = true && that.isSetPassword();
9657
      if (this_present_password || that_present_password) {
9658
        if (!(this_present_password && that_present_password))
9659
          return false;
9660
        if (!this.password.equals(that.password))
9661
          return false;
9662
      }
9663
 
9664
      boolean this_present_warehouseId = true;
9665
      boolean that_present_warehouseId = true;
9666
      if (this_present_warehouseId || that_present_warehouseId) {
9667
        if (!(this_present_warehouseId && that_present_warehouseId))
9668
          return false;
9669
        if (this.warehouseId != that.warehouseId)
9670
          return false;
9671
      }
9672
 
9673
      return true;
9674
    }
9675
 
9676
    @Override
9677
    public int hashCode() {
9678
      return 0;
9679
    }
9680
 
9681
    public int compareTo(addUser_args other) {
9682
      if (!getClass().equals(other.getClass())) {
9683
        return getClass().getName().compareTo(other.getClass().getName());
9684
      }
9685
 
9686
      int lastComparison = 0;
9687
      addUser_args typedOther = (addUser_args)other;
9688
 
3430 rajveer 9689
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9690
      if (lastComparison != 0) {
9691
        return lastComparison;
9692
      }
3430 rajveer 9693
      if (isSetUsername()) {
9694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9695
        if (lastComparison != 0) {
9696
          return lastComparison;
9697
        }
495 rajveer 9698
      }
3430 rajveer 9699
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9700
      if (lastComparison != 0) {
9701
        return lastComparison;
9702
      }
3430 rajveer 9703
      if (isSetPassword()) {
9704
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9705
        if (lastComparison != 0) {
9706
          return lastComparison;
9707
        }
495 rajveer 9708
      }
3430 rajveer 9709
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9710
      if (lastComparison != 0) {
9711
        return lastComparison;
9712
      }
3430 rajveer 9713
      if (isSetWarehouseId()) {
9714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9715
        if (lastComparison != 0) {
9716
          return lastComparison;
9717
        }
495 rajveer 9718
      }
9719
      return 0;
9720
    }
9721
 
3430 rajveer 9722
    public _Fields fieldForId(int fieldId) {
9723
      return _Fields.findByThriftId(fieldId);
9724
    }
9725
 
9726
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9727
      org.apache.thrift.protocol.TField field;
495 rajveer 9728
      iprot.readStructBegin();
9729
      while (true)
9730
      {
9731
        field = iprot.readFieldBegin();
3430 rajveer 9732
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9733
          break;
9734
        }
3430 rajveer 9735
        switch (field.id) {
9736
          case 1: // USERNAME
9737
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9738
              this.username = iprot.readString();
9739
            } else { 
9740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9741
            }
9742
            break;
9743
          case 2: // PASSWORD
9744
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9745
              this.password = iprot.readString();
9746
            } else { 
9747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9748
            }
9749
            break;
9750
          case 3: // WAREHOUSE_ID
9751
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9752
              this.warehouseId = iprot.readI64();
9753
              setWarehouseIdIsSet(true);
9754
            } else { 
9755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9756
            }
9757
            break;
9758
          default:
9759
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9760
        }
3430 rajveer 9761
        iprot.readFieldEnd();
495 rajveer 9762
      }
9763
      iprot.readStructEnd();
9764
      validate();
9765
    }
9766
 
3430 rajveer 9767
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9768
      validate();
9769
 
9770
      oprot.writeStructBegin(STRUCT_DESC);
9771
      if (this.username != null) {
9772
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9773
        oprot.writeString(this.username);
9774
        oprot.writeFieldEnd();
9775
      }
9776
      if (this.password != null) {
9777
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9778
        oprot.writeString(this.password);
9779
        oprot.writeFieldEnd();
9780
      }
9781
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9782
      oprot.writeI64(this.warehouseId);
9783
      oprot.writeFieldEnd();
9784
      oprot.writeFieldStop();
9785
      oprot.writeStructEnd();
9786
    }
9787
 
9788
    @Override
9789
    public String toString() {
9790
      StringBuilder sb = new StringBuilder("addUser_args(");
9791
      boolean first = true;
9792
 
9793
      sb.append("username:");
9794
      if (this.username == null) {
9795
        sb.append("null");
9796
      } else {
9797
        sb.append(this.username);
9798
      }
9799
      first = false;
9800
      if (!first) sb.append(", ");
9801
      sb.append("password:");
9802
      if (this.password == null) {
9803
        sb.append("null");
9804
      } else {
9805
        sb.append(this.password);
9806
      }
9807
      first = false;
9808
      if (!first) sb.append(", ");
9809
      sb.append("warehouseId:");
9810
      sb.append(this.warehouseId);
9811
      first = false;
9812
      sb.append(")");
9813
      return sb.toString();
9814
    }
9815
 
3430 rajveer 9816
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9817
      // check for required fields
9818
    }
9819
 
3430 rajveer 9820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9821
      try {
9822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9823
      } catch (org.apache.thrift.TException te) {
9824
        throw new java.io.IOException(te);
9825
      }
9826
    }
9827
 
9828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9829
      try {
9830
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9831
        __isset_bit_vector = new BitSet(1);
9832
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9833
      } catch (org.apache.thrift.TException te) {
9834
        throw new java.io.IOException(te);
9835
      }
9836
    }
9837
 
495 rajveer 9838
  }
9839
 
3430 rajveer 9840
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9841
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9842
 
3430 rajveer 9843
    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);
9844
    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 9845
 
3430 rajveer 9846
    private boolean success; // required
9847
    private HelperServiceException se; // required
495 rajveer 9848
 
9849
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9850
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9851
      SUCCESS((short)0, "success"),
9852
      SE((short)1, "se");
9853
 
9854
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9855
 
9856
      static {
9857
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9858
          byName.put(field.getFieldName(), field);
9859
        }
9860
      }
9861
 
9862
      /**
9863
       * Find the _Fields constant that matches fieldId, or null if its not found.
9864
       */
9865
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9866
        switch(fieldId) {
9867
          case 0: // SUCCESS
9868
            return SUCCESS;
9869
          case 1: // SE
9870
            return SE;
9871
          default:
9872
            return null;
9873
        }
495 rajveer 9874
      }
9875
 
9876
      /**
9877
       * Find the _Fields constant that matches fieldId, throwing an exception
9878
       * if it is not found.
9879
       */
9880
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9881
        _Fields fields = findByThriftId(fieldId);
9882
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9883
        return fields;
9884
      }
9885
 
9886
      /**
9887
       * Find the _Fields constant that matches name, or null if its not found.
9888
       */
9889
      public static _Fields findByName(String name) {
9890
        return byName.get(name);
9891
      }
9892
 
9893
      private final short _thriftId;
9894
      private final String _fieldName;
9895
 
9896
      _Fields(short thriftId, String fieldName) {
9897
        _thriftId = thriftId;
9898
        _fieldName = fieldName;
9899
      }
9900
 
9901
      public short getThriftFieldId() {
9902
        return _thriftId;
9903
      }
9904
 
9905
      public String getFieldName() {
9906
        return _fieldName;
9907
      }
9908
    }
9909
 
9910
    // isset id assignments
9911
    private static final int __SUCCESS_ISSET_ID = 0;
9912
    private BitSet __isset_bit_vector = new BitSet(1);
9913
 
3430 rajveer 9914
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9915
    static {
3430 rajveer 9916
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9917
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9918
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9919
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9923
    }
9924
 
9925
    public addUser_result() {
9926
    }
9927
 
9928
    public addUser_result(
9929
      boolean success,
9930
      HelperServiceException se)
9931
    {
9932
      this();
9933
      this.success = success;
9934
      setSuccessIsSet(true);
9935
      this.se = se;
9936
    }
9937
 
9938
    /**
9939
     * Performs a deep copy on <i>other</i>.
9940
     */
9941
    public addUser_result(addUser_result other) {
9942
      __isset_bit_vector.clear();
9943
      __isset_bit_vector.or(other.__isset_bit_vector);
9944
      this.success = other.success;
9945
      if (other.isSetSe()) {
9946
        this.se = new HelperServiceException(other.se);
9947
      }
9948
    }
9949
 
9950
    public addUser_result deepCopy() {
9951
      return new addUser_result(this);
9952
    }
9953
 
3430 rajveer 9954
    @Override
9955
    public void clear() {
9956
      setSuccessIsSet(false);
9957
      this.success = false;
9958
      this.se = null;
495 rajveer 9959
    }
9960
 
9961
    public boolean isSuccess() {
9962
      return this.success;
9963
    }
9964
 
3430 rajveer 9965
    public void setSuccess(boolean success) {
495 rajveer 9966
      this.success = success;
9967
      setSuccessIsSet(true);
9968
    }
9969
 
9970
    public void unsetSuccess() {
9971
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9972
    }
9973
 
3430 rajveer 9974
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9975
    public boolean isSetSuccess() {
9976
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9977
    }
9978
 
9979
    public void setSuccessIsSet(boolean value) {
9980
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9981
    }
9982
 
9983
    public HelperServiceException getSe() {
9984
      return this.se;
9985
    }
9986
 
3430 rajveer 9987
    public void setSe(HelperServiceException se) {
495 rajveer 9988
      this.se = se;
9989
    }
9990
 
9991
    public void unsetSe() {
9992
      this.se = null;
9993
    }
9994
 
3430 rajveer 9995
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9996
    public boolean isSetSe() {
9997
      return this.se != null;
9998
    }
9999
 
10000
    public void setSeIsSet(boolean value) {
10001
      if (!value) {
10002
        this.se = null;
10003
      }
10004
    }
10005
 
10006
    public void setFieldValue(_Fields field, Object value) {
10007
      switch (field) {
10008
      case SUCCESS:
10009
        if (value == null) {
10010
          unsetSuccess();
10011
        } else {
10012
          setSuccess((Boolean)value);
10013
        }
10014
        break;
10015
 
10016
      case SE:
10017
        if (value == null) {
10018
          unsetSe();
10019
        } else {
10020
          setSe((HelperServiceException)value);
10021
        }
10022
        break;
10023
 
10024
      }
10025
    }
10026
 
10027
    public Object getFieldValue(_Fields field) {
10028
      switch (field) {
10029
      case SUCCESS:
3430 rajveer 10030
        return Boolean.valueOf(isSuccess());
495 rajveer 10031
 
10032
      case SE:
10033
        return getSe();
10034
 
10035
      }
10036
      throw new IllegalStateException();
10037
    }
10038
 
3430 rajveer 10039
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10040
    public boolean isSet(_Fields field) {
10041
      if (field == null) {
10042
        throw new IllegalArgumentException();
10043
      }
495 rajveer 10044
 
10045
      switch (field) {
10046
      case SUCCESS:
10047
        return isSetSuccess();
10048
      case SE:
10049
        return isSetSe();
10050
      }
10051
      throw new IllegalStateException();
10052
    }
10053
 
10054
    @Override
10055
    public boolean equals(Object that) {
10056
      if (that == null)
10057
        return false;
10058
      if (that instanceof addUser_result)
10059
        return this.equals((addUser_result)that);
10060
      return false;
10061
    }
10062
 
10063
    public boolean equals(addUser_result that) {
10064
      if (that == null)
10065
        return false;
10066
 
10067
      boolean this_present_success = true;
10068
      boolean that_present_success = true;
10069
      if (this_present_success || that_present_success) {
10070
        if (!(this_present_success && that_present_success))
10071
          return false;
10072
        if (this.success != that.success)
10073
          return false;
10074
      }
10075
 
10076
      boolean this_present_se = true && this.isSetSe();
10077
      boolean that_present_se = true && that.isSetSe();
10078
      if (this_present_se || that_present_se) {
10079
        if (!(this_present_se && that_present_se))
10080
          return false;
10081
        if (!this.se.equals(that.se))
10082
          return false;
10083
      }
10084
 
10085
      return true;
10086
    }
10087
 
10088
    @Override
10089
    public int hashCode() {
10090
      return 0;
10091
    }
10092
 
10093
    public int compareTo(addUser_result other) {
10094
      if (!getClass().equals(other.getClass())) {
10095
        return getClass().getName().compareTo(other.getClass().getName());
10096
      }
10097
 
10098
      int lastComparison = 0;
10099
      addUser_result typedOther = (addUser_result)other;
10100
 
3430 rajveer 10101
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10102
      if (lastComparison != 0) {
10103
        return lastComparison;
10104
      }
3430 rajveer 10105
      if (isSetSuccess()) {
10106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10107
        if (lastComparison != 0) {
10108
          return lastComparison;
10109
        }
495 rajveer 10110
      }
3430 rajveer 10111
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10112
      if (lastComparison != 0) {
10113
        return lastComparison;
10114
      }
3430 rajveer 10115
      if (isSetSe()) {
10116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10117
        if (lastComparison != 0) {
10118
          return lastComparison;
10119
        }
495 rajveer 10120
      }
10121
      return 0;
10122
    }
10123
 
3430 rajveer 10124
    public _Fields fieldForId(int fieldId) {
10125
      return _Fields.findByThriftId(fieldId);
10126
    }
10127
 
10128
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10129
      org.apache.thrift.protocol.TField field;
495 rajveer 10130
      iprot.readStructBegin();
10131
      while (true)
10132
      {
10133
        field = iprot.readFieldBegin();
3430 rajveer 10134
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10135
          break;
10136
        }
3430 rajveer 10137
        switch (field.id) {
10138
          case 0: // SUCCESS
10139
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10140
              this.success = iprot.readBool();
10141
              setSuccessIsSet(true);
10142
            } else { 
10143
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10144
            }
10145
            break;
10146
          case 1: // SE
10147
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10148
              this.se = new HelperServiceException();
10149
              this.se.read(iprot);
10150
            } else { 
10151
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10152
            }
10153
            break;
10154
          default:
10155
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10156
        }
3430 rajveer 10157
        iprot.readFieldEnd();
495 rajveer 10158
      }
10159
      iprot.readStructEnd();
10160
      validate();
10161
    }
10162
 
3430 rajveer 10163
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10164
      oprot.writeStructBegin(STRUCT_DESC);
10165
 
10166
      if (this.isSetSuccess()) {
10167
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10168
        oprot.writeBool(this.success);
10169
        oprot.writeFieldEnd();
10170
      } else if (this.isSetSe()) {
10171
        oprot.writeFieldBegin(SE_FIELD_DESC);
10172
        this.se.write(oprot);
10173
        oprot.writeFieldEnd();
10174
      }
10175
      oprot.writeFieldStop();
10176
      oprot.writeStructEnd();
10177
    }
10178
 
10179
    @Override
10180
    public String toString() {
10181
      StringBuilder sb = new StringBuilder("addUser_result(");
10182
      boolean first = true;
10183
 
10184
      sb.append("success:");
10185
      sb.append(this.success);
10186
      first = false;
10187
      if (!first) sb.append(", ");
10188
      sb.append("se:");
10189
      if (this.se == null) {
10190
        sb.append("null");
10191
      } else {
10192
        sb.append(this.se);
10193
      }
10194
      first = false;
10195
      sb.append(")");
10196
      return sb.toString();
10197
    }
10198
 
3430 rajveer 10199
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10200
      // check for required fields
10201
    }
10202
 
3430 rajveer 10203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10204
      try {
10205
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10206
      } catch (org.apache.thrift.TException te) {
10207
        throw new java.io.IOException(te);
10208
      }
10209
    }
10210
 
10211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10212
      try {
10213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10214
      } catch (org.apache.thrift.TException te) {
10215
        throw new java.io.IOException(te);
10216
      }
10217
    }
10218
 
495 rajveer 10219
  }
10220
 
3430 rajveer 10221
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 10223
 
3430 rajveer 10224
    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 10225
 
3430 rajveer 10226
    private String username; // required
495 rajveer 10227
 
10228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10230
      USERNAME((short)1, "username");
10231
 
10232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10233
 
10234
      static {
10235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10236
          byName.put(field.getFieldName(), field);
10237
        }
10238
      }
10239
 
10240
      /**
10241
       * Find the _Fields constant that matches fieldId, or null if its not found.
10242
       */
10243
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10244
        switch(fieldId) {
10245
          case 1: // USERNAME
10246
            return USERNAME;
10247
          default:
10248
            return null;
10249
        }
495 rajveer 10250
      }
10251
 
10252
      /**
10253
       * Find the _Fields constant that matches fieldId, throwing an exception
10254
       * if it is not found.
10255
       */
10256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10257
        _Fields fields = findByThriftId(fieldId);
10258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10259
        return fields;
10260
      }
10261
 
10262
      /**
10263
       * Find the _Fields constant that matches name, or null if its not found.
10264
       */
10265
      public static _Fields findByName(String name) {
10266
        return byName.get(name);
10267
      }
10268
 
10269
      private final short _thriftId;
10270
      private final String _fieldName;
10271
 
10272
      _Fields(short thriftId, String fieldName) {
10273
        _thriftId = thriftId;
10274
        _fieldName = fieldName;
10275
      }
10276
 
10277
      public short getThriftFieldId() {
10278
        return _thriftId;
10279
      }
10280
 
10281
      public String getFieldName() {
10282
        return _fieldName;
10283
      }
10284
    }
10285
 
10286
    // isset id assignments
10287
 
3430 rajveer 10288
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10289
    static {
3430 rajveer 10290
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10291
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10292
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10293
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10294
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10295
    }
10296
 
10297
    public deleteUser_args() {
10298
    }
10299
 
10300
    public deleteUser_args(
10301
      String username)
10302
    {
10303
      this();
10304
      this.username = username;
10305
    }
10306
 
10307
    /**
10308
     * Performs a deep copy on <i>other</i>.
10309
     */
10310
    public deleteUser_args(deleteUser_args other) {
10311
      if (other.isSetUsername()) {
10312
        this.username = other.username;
10313
      }
10314
    }
10315
 
10316
    public deleteUser_args deepCopy() {
10317
      return new deleteUser_args(this);
10318
    }
10319
 
3430 rajveer 10320
    @Override
10321
    public void clear() {
10322
      this.username = null;
495 rajveer 10323
    }
10324
 
10325
    public String getUsername() {
10326
      return this.username;
10327
    }
10328
 
3430 rajveer 10329
    public void setUsername(String username) {
495 rajveer 10330
      this.username = username;
10331
    }
10332
 
10333
    public void unsetUsername() {
10334
      this.username = null;
10335
    }
10336
 
3430 rajveer 10337
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10338
    public boolean isSetUsername() {
10339
      return this.username != null;
10340
    }
10341
 
10342
    public void setUsernameIsSet(boolean value) {
10343
      if (!value) {
10344
        this.username = null;
10345
      }
10346
    }
10347
 
10348
    public void setFieldValue(_Fields field, Object value) {
10349
      switch (field) {
10350
      case USERNAME:
10351
        if (value == null) {
10352
          unsetUsername();
10353
        } else {
10354
          setUsername((String)value);
10355
        }
10356
        break;
10357
 
10358
      }
10359
    }
10360
 
10361
    public Object getFieldValue(_Fields field) {
10362
      switch (field) {
10363
      case USERNAME:
10364
        return getUsername();
10365
 
10366
      }
10367
      throw new IllegalStateException();
10368
    }
10369
 
3430 rajveer 10370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10371
    public boolean isSet(_Fields field) {
10372
      if (field == null) {
10373
        throw new IllegalArgumentException();
10374
      }
495 rajveer 10375
 
10376
      switch (field) {
10377
      case USERNAME:
10378
        return isSetUsername();
10379
      }
10380
      throw new IllegalStateException();
10381
    }
10382
 
10383
    @Override
10384
    public boolean equals(Object that) {
10385
      if (that == null)
10386
        return false;
10387
      if (that instanceof deleteUser_args)
10388
        return this.equals((deleteUser_args)that);
10389
      return false;
10390
    }
10391
 
10392
    public boolean equals(deleteUser_args that) {
10393
      if (that == null)
10394
        return false;
10395
 
10396
      boolean this_present_username = true && this.isSetUsername();
10397
      boolean that_present_username = true && that.isSetUsername();
10398
      if (this_present_username || that_present_username) {
10399
        if (!(this_present_username && that_present_username))
10400
          return false;
10401
        if (!this.username.equals(that.username))
10402
          return false;
10403
      }
10404
 
10405
      return true;
10406
    }
10407
 
10408
    @Override
10409
    public int hashCode() {
10410
      return 0;
10411
    }
10412
 
10413
    public int compareTo(deleteUser_args other) {
10414
      if (!getClass().equals(other.getClass())) {
10415
        return getClass().getName().compareTo(other.getClass().getName());
10416
      }
10417
 
10418
      int lastComparison = 0;
10419
      deleteUser_args typedOther = (deleteUser_args)other;
10420
 
3430 rajveer 10421
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10422
      if (lastComparison != 0) {
10423
        return lastComparison;
10424
      }
3430 rajveer 10425
      if (isSetUsername()) {
10426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10427
        if (lastComparison != 0) {
10428
          return lastComparison;
10429
        }
495 rajveer 10430
      }
10431
      return 0;
10432
    }
10433
 
3430 rajveer 10434
    public _Fields fieldForId(int fieldId) {
10435
      return _Fields.findByThriftId(fieldId);
10436
    }
10437
 
10438
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10439
      org.apache.thrift.protocol.TField field;
495 rajveer 10440
      iprot.readStructBegin();
10441
      while (true)
10442
      {
10443
        field = iprot.readFieldBegin();
3430 rajveer 10444
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10445
          break;
10446
        }
3430 rajveer 10447
        switch (field.id) {
10448
          case 1: // USERNAME
10449
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10450
              this.username = iprot.readString();
10451
            } else { 
10452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10453
            }
10454
            break;
10455
          default:
10456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10457
        }
3430 rajveer 10458
        iprot.readFieldEnd();
495 rajveer 10459
      }
10460
      iprot.readStructEnd();
10461
      validate();
10462
    }
10463
 
3430 rajveer 10464
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10465
      validate();
10466
 
10467
      oprot.writeStructBegin(STRUCT_DESC);
10468
      if (this.username != null) {
10469
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10470
        oprot.writeString(this.username);
10471
        oprot.writeFieldEnd();
10472
      }
10473
      oprot.writeFieldStop();
10474
      oprot.writeStructEnd();
10475
    }
10476
 
10477
    @Override
10478
    public String toString() {
10479
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10480
      boolean first = true;
10481
 
10482
      sb.append("username:");
10483
      if (this.username == null) {
10484
        sb.append("null");
10485
      } else {
10486
        sb.append(this.username);
10487
      }
10488
      first = false;
10489
      sb.append(")");
10490
      return sb.toString();
10491
    }
10492
 
3430 rajveer 10493
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10494
      // check for required fields
10495
    }
10496
 
3430 rajveer 10497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10498
      try {
10499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10500
      } catch (org.apache.thrift.TException te) {
10501
        throw new java.io.IOException(te);
10502
      }
10503
    }
10504
 
10505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10506
      try {
10507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10508
      } catch (org.apache.thrift.TException te) {
10509
        throw new java.io.IOException(te);
10510
      }
10511
    }
10512
 
495 rajveer 10513
  }
10514
 
3430 rajveer 10515
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10516
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10517
 
3430 rajveer 10518
    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);
10519
    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 10520
 
3430 rajveer 10521
    private boolean success; // required
10522
    private HelperServiceException se; // required
495 rajveer 10523
 
10524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10526
      SUCCESS((short)0, "success"),
10527
      SE((short)1, "se");
10528
 
10529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10530
 
10531
      static {
10532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10533
          byName.put(field.getFieldName(), field);
10534
        }
10535
      }
10536
 
10537
      /**
10538
       * Find the _Fields constant that matches fieldId, or null if its not found.
10539
       */
10540
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10541
        switch(fieldId) {
10542
          case 0: // SUCCESS
10543
            return SUCCESS;
10544
          case 1: // SE
10545
            return SE;
10546
          default:
10547
            return null;
10548
        }
495 rajveer 10549
      }
10550
 
10551
      /**
10552
       * Find the _Fields constant that matches fieldId, throwing an exception
10553
       * if it is not found.
10554
       */
10555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10556
        _Fields fields = findByThriftId(fieldId);
10557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10558
        return fields;
10559
      }
10560
 
10561
      /**
10562
       * Find the _Fields constant that matches name, or null if its not found.
10563
       */
10564
      public static _Fields findByName(String name) {
10565
        return byName.get(name);
10566
      }
10567
 
10568
      private final short _thriftId;
10569
      private final String _fieldName;
10570
 
10571
      _Fields(short thriftId, String fieldName) {
10572
        _thriftId = thriftId;
10573
        _fieldName = fieldName;
10574
      }
10575
 
10576
      public short getThriftFieldId() {
10577
        return _thriftId;
10578
      }
10579
 
10580
      public String getFieldName() {
10581
        return _fieldName;
10582
      }
10583
    }
10584
 
10585
    // isset id assignments
10586
    private static final int __SUCCESS_ISSET_ID = 0;
10587
    private BitSet __isset_bit_vector = new BitSet(1);
10588
 
3430 rajveer 10589
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10590
    static {
3430 rajveer 10591
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10592
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10593
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10594
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10595
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10596
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10597
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10598
    }
10599
 
10600
    public deleteUser_result() {
10601
    }
10602
 
10603
    public deleteUser_result(
10604
      boolean success,
10605
      HelperServiceException se)
10606
    {
10607
      this();
10608
      this.success = success;
10609
      setSuccessIsSet(true);
10610
      this.se = se;
10611
    }
10612
 
10613
    /**
10614
     * Performs a deep copy on <i>other</i>.
10615
     */
10616
    public deleteUser_result(deleteUser_result other) {
10617
      __isset_bit_vector.clear();
10618
      __isset_bit_vector.or(other.__isset_bit_vector);
10619
      this.success = other.success;
10620
      if (other.isSetSe()) {
10621
        this.se = new HelperServiceException(other.se);
10622
      }
10623
    }
10624
 
10625
    public deleteUser_result deepCopy() {
10626
      return new deleteUser_result(this);
10627
    }
10628
 
3430 rajveer 10629
    @Override
10630
    public void clear() {
10631
      setSuccessIsSet(false);
10632
      this.success = false;
10633
      this.se = null;
495 rajveer 10634
    }
10635
 
10636
    public boolean isSuccess() {
10637
      return this.success;
10638
    }
10639
 
3430 rajveer 10640
    public void setSuccess(boolean success) {
495 rajveer 10641
      this.success = success;
10642
      setSuccessIsSet(true);
10643
    }
10644
 
10645
    public void unsetSuccess() {
10646
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10647
    }
10648
 
3430 rajveer 10649
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10650
    public boolean isSetSuccess() {
10651
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10652
    }
10653
 
10654
    public void setSuccessIsSet(boolean value) {
10655
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10656
    }
10657
 
10658
    public HelperServiceException getSe() {
10659
      return this.se;
10660
    }
10661
 
3430 rajveer 10662
    public void setSe(HelperServiceException se) {
495 rajveer 10663
      this.se = se;
10664
    }
10665
 
10666
    public void unsetSe() {
10667
      this.se = null;
10668
    }
10669
 
3430 rajveer 10670
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10671
    public boolean isSetSe() {
10672
      return this.se != null;
10673
    }
10674
 
10675
    public void setSeIsSet(boolean value) {
10676
      if (!value) {
10677
        this.se = null;
10678
      }
10679
    }
10680
 
10681
    public void setFieldValue(_Fields field, Object value) {
10682
      switch (field) {
10683
      case SUCCESS:
10684
        if (value == null) {
10685
          unsetSuccess();
10686
        } else {
10687
          setSuccess((Boolean)value);
10688
        }
10689
        break;
10690
 
10691
      case SE:
10692
        if (value == null) {
10693
          unsetSe();
10694
        } else {
10695
          setSe((HelperServiceException)value);
10696
        }
10697
        break;
10698
 
10699
      }
10700
    }
10701
 
10702
    public Object getFieldValue(_Fields field) {
10703
      switch (field) {
10704
      case SUCCESS:
3430 rajveer 10705
        return Boolean.valueOf(isSuccess());
495 rajveer 10706
 
10707
      case SE:
10708
        return getSe();
10709
 
10710
      }
10711
      throw new IllegalStateException();
10712
    }
10713
 
3430 rajveer 10714
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10715
    public boolean isSet(_Fields field) {
10716
      if (field == null) {
10717
        throw new IllegalArgumentException();
10718
      }
495 rajveer 10719
 
10720
      switch (field) {
10721
      case SUCCESS:
10722
        return isSetSuccess();
10723
      case SE:
10724
        return isSetSe();
10725
      }
10726
      throw new IllegalStateException();
10727
    }
10728
 
10729
    @Override
10730
    public boolean equals(Object that) {
10731
      if (that == null)
10732
        return false;
10733
      if (that instanceof deleteUser_result)
10734
        return this.equals((deleteUser_result)that);
10735
      return false;
10736
    }
10737
 
10738
    public boolean equals(deleteUser_result that) {
10739
      if (that == null)
10740
        return false;
10741
 
10742
      boolean this_present_success = true;
10743
      boolean that_present_success = true;
10744
      if (this_present_success || that_present_success) {
10745
        if (!(this_present_success && that_present_success))
10746
          return false;
10747
        if (this.success != that.success)
10748
          return false;
10749
      }
10750
 
10751
      boolean this_present_se = true && this.isSetSe();
10752
      boolean that_present_se = true && that.isSetSe();
10753
      if (this_present_se || that_present_se) {
10754
        if (!(this_present_se && that_present_se))
10755
          return false;
10756
        if (!this.se.equals(that.se))
10757
          return false;
10758
      }
10759
 
10760
      return true;
10761
    }
10762
 
10763
    @Override
10764
    public int hashCode() {
10765
      return 0;
10766
    }
10767
 
10768
    public int compareTo(deleteUser_result other) {
10769
      if (!getClass().equals(other.getClass())) {
10770
        return getClass().getName().compareTo(other.getClass().getName());
10771
      }
10772
 
10773
      int lastComparison = 0;
10774
      deleteUser_result typedOther = (deleteUser_result)other;
10775
 
3430 rajveer 10776
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10777
      if (lastComparison != 0) {
10778
        return lastComparison;
10779
      }
3430 rajveer 10780
      if (isSetSuccess()) {
10781
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10782
        if (lastComparison != 0) {
10783
          return lastComparison;
10784
        }
495 rajveer 10785
      }
3430 rajveer 10786
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10787
      if (lastComparison != 0) {
10788
        return lastComparison;
10789
      }
3430 rajveer 10790
      if (isSetSe()) {
10791
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10792
        if (lastComparison != 0) {
10793
          return lastComparison;
10794
        }
495 rajveer 10795
      }
10796
      return 0;
10797
    }
10798
 
3430 rajveer 10799
    public _Fields fieldForId(int fieldId) {
10800
      return _Fields.findByThriftId(fieldId);
10801
    }
10802
 
10803
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10804
      org.apache.thrift.protocol.TField field;
495 rajveer 10805
      iprot.readStructBegin();
10806
      while (true)
10807
      {
10808
        field = iprot.readFieldBegin();
3430 rajveer 10809
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10810
          break;
10811
        }
3430 rajveer 10812
        switch (field.id) {
10813
          case 0: // SUCCESS
10814
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10815
              this.success = iprot.readBool();
10816
              setSuccessIsSet(true);
10817
            } else { 
10818
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10819
            }
10820
            break;
10821
          case 1: // SE
10822
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10823
              this.se = new HelperServiceException();
10824
              this.se.read(iprot);
10825
            } else { 
10826
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10827
            }
10828
            break;
10829
          default:
10830
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10831
        }
3430 rajveer 10832
        iprot.readFieldEnd();
495 rajveer 10833
      }
10834
      iprot.readStructEnd();
10835
      validate();
10836
    }
10837
 
3430 rajveer 10838
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10839
      oprot.writeStructBegin(STRUCT_DESC);
10840
 
10841
      if (this.isSetSuccess()) {
10842
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10843
        oprot.writeBool(this.success);
10844
        oprot.writeFieldEnd();
10845
      } else if (this.isSetSe()) {
10846
        oprot.writeFieldBegin(SE_FIELD_DESC);
10847
        this.se.write(oprot);
10848
        oprot.writeFieldEnd();
10849
      }
10850
      oprot.writeFieldStop();
10851
      oprot.writeStructEnd();
10852
    }
10853
 
10854
    @Override
10855
    public String toString() {
10856
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10857
      boolean first = true;
10858
 
10859
      sb.append("success:");
10860
      sb.append(this.success);
10861
      first = false;
10862
      if (!first) sb.append(", ");
10863
      sb.append("se:");
10864
      if (this.se == null) {
10865
        sb.append("null");
10866
      } else {
10867
        sb.append(this.se);
10868
      }
10869
      first = false;
10870
      sb.append(")");
10871
      return sb.toString();
10872
    }
10873
 
3430 rajveer 10874
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10875
      // check for required fields
10876
    }
10877
 
3430 rajveer 10878
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10879
      try {
10880
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10881
      } catch (org.apache.thrift.TException te) {
10882
        throw new java.io.IOException(te);
10883
      }
10884
    }
10885
 
10886
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10887
      try {
10888
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10889
      } catch (org.apache.thrift.TException te) {
10890
        throw new java.io.IOException(te);
10891
      }
10892
    }
10893
 
495 rajveer 10894
  }
10895
 
3430 rajveer 10896
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10897
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10898
 
3430 rajveer 10899
    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);
10900
    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 10901
 
3430 rajveer 10902
    private String username; // required
10903
    private String password; // required
495 rajveer 10904
 
10905
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10906
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10907
      USERNAME((short)1, "username"),
10908
      PASSWORD((short)2, "password");
10909
 
10910
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10911
 
10912
      static {
10913
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10914
          byName.put(field.getFieldName(), field);
10915
        }
10916
      }
10917
 
10918
      /**
10919
       * Find the _Fields constant that matches fieldId, or null if its not found.
10920
       */
10921
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10922
        switch(fieldId) {
10923
          case 1: // USERNAME
10924
            return USERNAME;
10925
          case 2: // PASSWORD
10926
            return PASSWORD;
10927
          default:
10928
            return null;
10929
        }
495 rajveer 10930
      }
10931
 
10932
      /**
10933
       * Find the _Fields constant that matches fieldId, throwing an exception
10934
       * if it is not found.
10935
       */
10936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10937
        _Fields fields = findByThriftId(fieldId);
10938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10939
        return fields;
10940
      }
10941
 
10942
      /**
10943
       * Find the _Fields constant that matches name, or null if its not found.
10944
       */
10945
      public static _Fields findByName(String name) {
10946
        return byName.get(name);
10947
      }
10948
 
10949
      private final short _thriftId;
10950
      private final String _fieldName;
10951
 
10952
      _Fields(short thriftId, String fieldName) {
10953
        _thriftId = thriftId;
10954
        _fieldName = fieldName;
10955
      }
10956
 
10957
      public short getThriftFieldId() {
10958
        return _thriftId;
10959
      }
10960
 
10961
      public String getFieldName() {
10962
        return _fieldName;
10963
      }
10964
    }
10965
 
10966
    // isset id assignments
10967
 
3430 rajveer 10968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10969
    static {
3430 rajveer 10970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10971
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10973
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10977
    }
10978
 
2443 chandransh 10979
    public authenticateDashboardUser_args() {
495 rajveer 10980
    }
10981
 
2443 chandransh 10982
    public authenticateDashboardUser_args(
495 rajveer 10983
      String username,
10984
      String password)
10985
    {
10986
      this();
10987
      this.username = username;
10988
      this.password = password;
10989
    }
10990
 
10991
    /**
10992
     * Performs a deep copy on <i>other</i>.
10993
     */
2443 chandransh 10994
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10995
      if (other.isSetUsername()) {
10996
        this.username = other.username;
10997
      }
10998
      if (other.isSetPassword()) {
10999
        this.password = other.password;
11000
      }
11001
    }
11002
 
2443 chandransh 11003
    public authenticateDashboardUser_args deepCopy() {
11004
      return new authenticateDashboardUser_args(this);
495 rajveer 11005
    }
11006
 
3430 rajveer 11007
    @Override
11008
    public void clear() {
11009
      this.username = null;
11010
      this.password = null;
495 rajveer 11011
    }
11012
 
11013
    public String getUsername() {
11014
      return this.username;
11015
    }
11016
 
3430 rajveer 11017
    public void setUsername(String username) {
495 rajveer 11018
      this.username = username;
11019
    }
11020
 
11021
    public void unsetUsername() {
11022
      this.username = null;
11023
    }
11024
 
3430 rajveer 11025
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11026
    public boolean isSetUsername() {
11027
      return this.username != null;
11028
    }
11029
 
11030
    public void setUsernameIsSet(boolean value) {
11031
      if (!value) {
11032
        this.username = null;
11033
      }
11034
    }
11035
 
11036
    public String getPassword() {
11037
      return this.password;
11038
    }
11039
 
3430 rajveer 11040
    public void setPassword(String password) {
495 rajveer 11041
      this.password = password;
11042
    }
11043
 
11044
    public void unsetPassword() {
11045
      this.password = null;
11046
    }
11047
 
3430 rajveer 11048
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 11049
    public boolean isSetPassword() {
11050
      return this.password != null;
11051
    }
11052
 
11053
    public void setPasswordIsSet(boolean value) {
11054
      if (!value) {
11055
        this.password = null;
11056
      }
11057
    }
11058
 
11059
    public void setFieldValue(_Fields field, Object value) {
11060
      switch (field) {
11061
      case USERNAME:
11062
        if (value == null) {
11063
          unsetUsername();
11064
        } else {
11065
          setUsername((String)value);
11066
        }
11067
        break;
11068
 
11069
      case PASSWORD:
11070
        if (value == null) {
11071
          unsetPassword();
11072
        } else {
11073
          setPassword((String)value);
11074
        }
11075
        break;
11076
 
11077
      }
11078
    }
11079
 
11080
    public Object getFieldValue(_Fields field) {
11081
      switch (field) {
11082
      case USERNAME:
11083
        return getUsername();
11084
 
11085
      case PASSWORD:
11086
        return getPassword();
11087
 
11088
      }
11089
      throw new IllegalStateException();
11090
    }
11091
 
3430 rajveer 11092
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11093
    public boolean isSet(_Fields field) {
11094
      if (field == null) {
11095
        throw new IllegalArgumentException();
11096
      }
495 rajveer 11097
 
11098
      switch (field) {
11099
      case USERNAME:
11100
        return isSetUsername();
11101
      case PASSWORD:
11102
        return isSetPassword();
11103
      }
11104
      throw new IllegalStateException();
11105
    }
11106
 
11107
    @Override
11108
    public boolean equals(Object that) {
11109
      if (that == null)
11110
        return false;
2443 chandransh 11111
      if (that instanceof authenticateDashboardUser_args)
11112
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 11113
      return false;
11114
    }
11115
 
2443 chandransh 11116
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 11117
      if (that == null)
11118
        return false;
11119
 
11120
      boolean this_present_username = true && this.isSetUsername();
11121
      boolean that_present_username = true && that.isSetUsername();
11122
      if (this_present_username || that_present_username) {
11123
        if (!(this_present_username && that_present_username))
11124
          return false;
11125
        if (!this.username.equals(that.username))
11126
          return false;
11127
      }
11128
 
11129
      boolean this_present_password = true && this.isSetPassword();
11130
      boolean that_present_password = true && that.isSetPassword();
11131
      if (this_present_password || that_present_password) {
11132
        if (!(this_present_password && that_present_password))
11133
          return false;
11134
        if (!this.password.equals(that.password))
11135
          return false;
11136
      }
11137
 
11138
      return true;
11139
    }
11140
 
11141
    @Override
11142
    public int hashCode() {
11143
      return 0;
11144
    }
11145
 
2443 chandransh 11146
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 11147
      if (!getClass().equals(other.getClass())) {
11148
        return getClass().getName().compareTo(other.getClass().getName());
11149
      }
11150
 
11151
      int lastComparison = 0;
2443 chandransh 11152
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 11153
 
3430 rajveer 11154
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11155
      if (lastComparison != 0) {
11156
        return lastComparison;
11157
      }
3430 rajveer 11158
      if (isSetUsername()) {
11159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11160
        if (lastComparison != 0) {
11161
          return lastComparison;
11162
        }
495 rajveer 11163
      }
3430 rajveer 11164
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 11165
      if (lastComparison != 0) {
11166
        return lastComparison;
11167
      }
3430 rajveer 11168
      if (isSetPassword()) {
11169
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11170
        if (lastComparison != 0) {
11171
          return lastComparison;
11172
        }
495 rajveer 11173
      }
11174
      return 0;
11175
    }
11176
 
3430 rajveer 11177
    public _Fields fieldForId(int fieldId) {
11178
      return _Fields.findByThriftId(fieldId);
11179
    }
11180
 
11181
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11182
      org.apache.thrift.protocol.TField field;
495 rajveer 11183
      iprot.readStructBegin();
11184
      while (true)
11185
      {
11186
        field = iprot.readFieldBegin();
3430 rajveer 11187
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11188
          break;
11189
        }
3430 rajveer 11190
        switch (field.id) {
11191
          case 1: // USERNAME
11192
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11193
              this.username = iprot.readString();
11194
            } else { 
11195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11196
            }
11197
            break;
11198
          case 2: // PASSWORD
11199
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11200
              this.password = iprot.readString();
11201
            } else { 
11202
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11203
            }
11204
            break;
11205
          default:
11206
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11207
        }
3430 rajveer 11208
        iprot.readFieldEnd();
495 rajveer 11209
      }
11210
      iprot.readStructEnd();
11211
      validate();
11212
    }
11213
 
3430 rajveer 11214
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11215
      validate();
11216
 
11217
      oprot.writeStructBegin(STRUCT_DESC);
11218
      if (this.username != null) {
11219
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11220
        oprot.writeString(this.username);
11221
        oprot.writeFieldEnd();
11222
      }
11223
      if (this.password != null) {
11224
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11225
        oprot.writeString(this.password);
11226
        oprot.writeFieldEnd();
11227
      }
11228
      oprot.writeFieldStop();
11229
      oprot.writeStructEnd();
11230
    }
11231
 
11232
    @Override
11233
    public String toString() {
2443 chandransh 11234
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 11235
      boolean first = true;
11236
 
11237
      sb.append("username:");
11238
      if (this.username == null) {
11239
        sb.append("null");
11240
      } else {
11241
        sb.append(this.username);
11242
      }
11243
      first = false;
11244
      if (!first) sb.append(", ");
11245
      sb.append("password:");
11246
      if (this.password == null) {
11247
        sb.append("null");
11248
      } else {
11249
        sb.append(this.password);
11250
      }
11251
      first = false;
11252
      sb.append(")");
11253
      return sb.toString();
11254
    }
11255
 
3430 rajveer 11256
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11257
      // check for required fields
11258
    }
11259
 
3430 rajveer 11260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11261
      try {
11262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11263
      } catch (org.apache.thrift.TException te) {
11264
        throw new java.io.IOException(te);
11265
      }
11266
    }
11267
 
11268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11269
      try {
11270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11271
      } catch (org.apache.thrift.TException te) {
11272
        throw new java.io.IOException(te);
11273
      }
11274
    }
11275
 
495 rajveer 11276
  }
11277
 
3430 rajveer 11278
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11280
 
3430 rajveer 11281
    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);
11282
    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 11283
 
3430 rajveer 11284
    private DashboardUser success; // required
11285
    private HelperServiceException se; // required
495 rajveer 11286
 
11287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11289
      SUCCESS((short)0, "success"),
11290
      SE((short)1, "se");
11291
 
11292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11293
 
11294
      static {
11295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11296
          byName.put(field.getFieldName(), field);
11297
        }
11298
      }
11299
 
11300
      /**
11301
       * Find the _Fields constant that matches fieldId, or null if its not found.
11302
       */
11303
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11304
        switch(fieldId) {
11305
          case 0: // SUCCESS
11306
            return SUCCESS;
11307
          case 1: // SE
11308
            return SE;
11309
          default:
11310
            return null;
11311
        }
495 rajveer 11312
      }
11313
 
11314
      /**
11315
       * Find the _Fields constant that matches fieldId, throwing an exception
11316
       * if it is not found.
11317
       */
11318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11319
        _Fields fields = findByThriftId(fieldId);
11320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11321
        return fields;
11322
      }
11323
 
11324
      /**
11325
       * Find the _Fields constant that matches name, or null if its not found.
11326
       */
11327
      public static _Fields findByName(String name) {
11328
        return byName.get(name);
11329
      }
11330
 
11331
      private final short _thriftId;
11332
      private final String _fieldName;
11333
 
11334
      _Fields(short thriftId, String fieldName) {
11335
        _thriftId = thriftId;
11336
        _fieldName = fieldName;
11337
      }
11338
 
11339
      public short getThriftFieldId() {
11340
        return _thriftId;
11341
      }
11342
 
11343
      public String getFieldName() {
11344
        return _fieldName;
11345
      }
11346
    }
11347
 
11348
    // isset id assignments
11349
 
3430 rajveer 11350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11351
    static {
3430 rajveer 11352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11353
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11354
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11355
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11357
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11358
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11359
    }
11360
 
2443 chandransh 11361
    public authenticateDashboardUser_result() {
495 rajveer 11362
    }
11363
 
2443 chandransh 11364
    public authenticateDashboardUser_result(
11365
      DashboardUser success,
495 rajveer 11366
      HelperServiceException se)
11367
    {
11368
      this();
11369
      this.success = success;
11370
      this.se = se;
11371
    }
11372
 
11373
    /**
11374
     * Performs a deep copy on <i>other</i>.
11375
     */
2443 chandransh 11376
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11377
      if (other.isSetSuccess()) {
11378
        this.success = new DashboardUser(other.success);
11379
      }
495 rajveer 11380
      if (other.isSetSe()) {
11381
        this.se = new HelperServiceException(other.se);
11382
      }
11383
    }
11384
 
2443 chandransh 11385
    public authenticateDashboardUser_result deepCopy() {
11386
      return new authenticateDashboardUser_result(this);
495 rajveer 11387
    }
11388
 
3430 rajveer 11389
    @Override
11390
    public void clear() {
11391
      this.success = null;
11392
      this.se = null;
495 rajveer 11393
    }
11394
 
2443 chandransh 11395
    public DashboardUser getSuccess() {
495 rajveer 11396
      return this.success;
11397
    }
11398
 
3430 rajveer 11399
    public void setSuccess(DashboardUser success) {
495 rajveer 11400
      this.success = success;
11401
    }
11402
 
11403
    public void unsetSuccess() {
2443 chandransh 11404
      this.success = null;
495 rajveer 11405
    }
11406
 
3430 rajveer 11407
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11408
    public boolean isSetSuccess() {
2443 chandransh 11409
      return this.success != null;
495 rajveer 11410
    }
11411
 
11412
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11413
      if (!value) {
11414
        this.success = null;
11415
      }
495 rajveer 11416
    }
11417
 
11418
    public HelperServiceException getSe() {
11419
      return this.se;
11420
    }
11421
 
3430 rajveer 11422
    public void setSe(HelperServiceException se) {
495 rajveer 11423
      this.se = se;
11424
    }
11425
 
11426
    public void unsetSe() {
11427
      this.se = null;
11428
    }
11429
 
3430 rajveer 11430
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11431
    public boolean isSetSe() {
11432
      return this.se != null;
11433
    }
11434
 
11435
    public void setSeIsSet(boolean value) {
11436
      if (!value) {
11437
        this.se = null;
11438
      }
11439
    }
11440
 
11441
    public void setFieldValue(_Fields field, Object value) {
11442
      switch (field) {
11443
      case SUCCESS:
11444
        if (value == null) {
11445
          unsetSuccess();
11446
        } else {
2443 chandransh 11447
          setSuccess((DashboardUser)value);
495 rajveer 11448
        }
11449
        break;
11450
 
11451
      case SE:
11452
        if (value == null) {
11453
          unsetSe();
11454
        } else {
11455
          setSe((HelperServiceException)value);
11456
        }
11457
        break;
11458
 
11459
      }
11460
    }
11461
 
11462
    public Object getFieldValue(_Fields field) {
11463
      switch (field) {
11464
      case SUCCESS:
2443 chandransh 11465
        return getSuccess();
495 rajveer 11466
 
11467
      case SE:
11468
        return getSe();
11469
 
11470
      }
11471
      throw new IllegalStateException();
11472
    }
11473
 
3430 rajveer 11474
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11475
    public boolean isSet(_Fields field) {
11476
      if (field == null) {
11477
        throw new IllegalArgumentException();
11478
      }
495 rajveer 11479
 
11480
      switch (field) {
11481
      case SUCCESS:
11482
        return isSetSuccess();
11483
      case SE:
11484
        return isSetSe();
11485
      }
11486
      throw new IllegalStateException();
11487
    }
11488
 
11489
    @Override
11490
    public boolean equals(Object that) {
11491
      if (that == null)
11492
        return false;
2443 chandransh 11493
      if (that instanceof authenticateDashboardUser_result)
11494
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11495
      return false;
11496
    }
11497
 
2443 chandransh 11498
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11499
      if (that == null)
11500
        return false;
11501
 
2443 chandransh 11502
      boolean this_present_success = true && this.isSetSuccess();
11503
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11504
      if (this_present_success || that_present_success) {
11505
        if (!(this_present_success && that_present_success))
11506
          return false;
2443 chandransh 11507
        if (!this.success.equals(that.success))
495 rajveer 11508
          return false;
11509
      }
11510
 
11511
      boolean this_present_se = true && this.isSetSe();
11512
      boolean that_present_se = true && that.isSetSe();
11513
      if (this_present_se || that_present_se) {
11514
        if (!(this_present_se && that_present_se))
11515
          return false;
11516
        if (!this.se.equals(that.se))
11517
          return false;
11518
      }
11519
 
11520
      return true;
11521
    }
11522
 
11523
    @Override
11524
    public int hashCode() {
11525
      return 0;
11526
    }
11527
 
2443 chandransh 11528
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11529
      if (!getClass().equals(other.getClass())) {
11530
        return getClass().getName().compareTo(other.getClass().getName());
11531
      }
11532
 
11533
      int lastComparison = 0;
2443 chandransh 11534
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11535
 
3430 rajveer 11536
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11537
      if (lastComparison != 0) {
11538
        return lastComparison;
11539
      }
3430 rajveer 11540
      if (isSetSuccess()) {
11541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11542
        if (lastComparison != 0) {
11543
          return lastComparison;
11544
        }
495 rajveer 11545
      }
3430 rajveer 11546
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11547
      if (lastComparison != 0) {
11548
        return lastComparison;
11549
      }
3430 rajveer 11550
      if (isSetSe()) {
11551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11552
        if (lastComparison != 0) {
11553
          return lastComparison;
11554
        }
495 rajveer 11555
      }
11556
      return 0;
11557
    }
11558
 
3430 rajveer 11559
    public _Fields fieldForId(int fieldId) {
11560
      return _Fields.findByThriftId(fieldId);
11561
    }
11562
 
11563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11564
      org.apache.thrift.protocol.TField field;
495 rajveer 11565
      iprot.readStructBegin();
11566
      while (true)
11567
      {
11568
        field = iprot.readFieldBegin();
3430 rajveer 11569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11570
          break;
11571
        }
3430 rajveer 11572
        switch (field.id) {
11573
          case 0: // SUCCESS
11574
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11575
              this.success = new DashboardUser();
11576
              this.success.read(iprot);
11577
            } else { 
11578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11579
            }
11580
            break;
11581
          case 1: // SE
11582
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11583
              this.se = new HelperServiceException();
11584
              this.se.read(iprot);
11585
            } else { 
11586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11587
            }
11588
            break;
11589
          default:
11590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11591
        }
3430 rajveer 11592
        iprot.readFieldEnd();
495 rajveer 11593
      }
11594
      iprot.readStructEnd();
11595
      validate();
11596
    }
11597
 
3430 rajveer 11598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11599
      oprot.writeStructBegin(STRUCT_DESC);
11600
 
11601
      if (this.isSetSuccess()) {
11602
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11603
        this.success.write(oprot);
495 rajveer 11604
        oprot.writeFieldEnd();
11605
      } else if (this.isSetSe()) {
11606
        oprot.writeFieldBegin(SE_FIELD_DESC);
11607
        this.se.write(oprot);
11608
        oprot.writeFieldEnd();
11609
      }
11610
      oprot.writeFieldStop();
11611
      oprot.writeStructEnd();
11612
    }
11613
 
11614
    @Override
11615
    public String toString() {
2443 chandransh 11616
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11617
      boolean first = true;
11618
 
11619
      sb.append("success:");
2443 chandransh 11620
      if (this.success == null) {
11621
        sb.append("null");
11622
      } else {
11623
        sb.append(this.success);
11624
      }
495 rajveer 11625
      first = false;
11626
      if (!first) sb.append(", ");
11627
      sb.append("se:");
11628
      if (this.se == null) {
11629
        sb.append("null");
11630
      } else {
11631
        sb.append(this.se);
11632
      }
11633
      first = false;
11634
      sb.append(")");
11635
      return sb.toString();
11636
    }
11637
 
3430 rajveer 11638
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11639
      // check for required fields
11640
    }
11641
 
3430 rajveer 11642
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11643
      try {
11644
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11645
      } catch (org.apache.thrift.TException te) {
11646
        throw new java.io.IOException(te);
11647
      }
11648
    }
11649
 
11650
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11651
      try {
11652
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11653
      } catch (org.apache.thrift.TException te) {
11654
        throw new java.io.IOException(te);
11655
      }
11656
    }
11657
 
495 rajveer 11658
  }
11659
 
3430 rajveer 11660
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11661
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11662
 
3430 rajveer 11663
    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);
11664
    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);
11665
    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 11666
 
3430 rajveer 11667
    private String username; // required
11668
    private String oldPassword; // required
11669
    private String newPassword; // required
495 rajveer 11670
 
11671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11673
      USERNAME((short)1, "username"),
11674
      OLD_PASSWORD((short)2, "oldPassword"),
11675
      NEW_PASSWORD((short)3, "newPassword");
11676
 
11677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11678
 
11679
      static {
11680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11681
          byName.put(field.getFieldName(), field);
11682
        }
11683
      }
11684
 
11685
      /**
11686
       * Find the _Fields constant that matches fieldId, or null if its not found.
11687
       */
11688
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11689
        switch(fieldId) {
11690
          case 1: // USERNAME
11691
            return USERNAME;
11692
          case 2: // OLD_PASSWORD
11693
            return OLD_PASSWORD;
11694
          case 3: // NEW_PASSWORD
11695
            return NEW_PASSWORD;
11696
          default:
11697
            return null;
11698
        }
495 rajveer 11699
      }
11700
 
11701
      /**
11702
       * Find the _Fields constant that matches fieldId, throwing an exception
11703
       * if it is not found.
11704
       */
11705
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11706
        _Fields fields = findByThriftId(fieldId);
11707
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11708
        return fields;
11709
      }
11710
 
11711
      /**
11712
       * Find the _Fields constant that matches name, or null if its not found.
11713
       */
11714
      public static _Fields findByName(String name) {
11715
        return byName.get(name);
11716
      }
11717
 
11718
      private final short _thriftId;
11719
      private final String _fieldName;
11720
 
11721
      _Fields(short thriftId, String fieldName) {
11722
        _thriftId = thriftId;
11723
        _fieldName = fieldName;
11724
      }
11725
 
11726
      public short getThriftFieldId() {
11727
        return _thriftId;
11728
      }
11729
 
11730
      public String getFieldName() {
11731
        return _fieldName;
11732
      }
11733
    }
11734
 
11735
    // isset id assignments
11736
 
3430 rajveer 11737
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11738
    static {
3430 rajveer 11739
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11740
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11741
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11742
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11743
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11744
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11746
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11747
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11748
    }
11749
 
11750
    public updatePassword_args() {
11751
    }
11752
 
11753
    public updatePassword_args(
11754
      String username,
11755
      String oldPassword,
11756
      String newPassword)
11757
    {
11758
      this();
11759
      this.username = username;
11760
      this.oldPassword = oldPassword;
11761
      this.newPassword = newPassword;
11762
    }
11763
 
11764
    /**
11765
     * Performs a deep copy on <i>other</i>.
11766
     */
11767
    public updatePassword_args(updatePassword_args other) {
11768
      if (other.isSetUsername()) {
11769
        this.username = other.username;
11770
      }
11771
      if (other.isSetOldPassword()) {
11772
        this.oldPassword = other.oldPassword;
11773
      }
11774
      if (other.isSetNewPassword()) {
11775
        this.newPassword = other.newPassword;
11776
      }
11777
    }
11778
 
11779
    public updatePassword_args deepCopy() {
11780
      return new updatePassword_args(this);
11781
    }
11782
 
3430 rajveer 11783
    @Override
11784
    public void clear() {
11785
      this.username = null;
11786
      this.oldPassword = null;
11787
      this.newPassword = null;
495 rajveer 11788
    }
11789
 
11790
    public String getUsername() {
11791
      return this.username;
11792
    }
11793
 
3430 rajveer 11794
    public void setUsername(String username) {
495 rajveer 11795
      this.username = username;
11796
    }
11797
 
11798
    public void unsetUsername() {
11799
      this.username = null;
11800
    }
11801
 
3430 rajveer 11802
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11803
    public boolean isSetUsername() {
11804
      return this.username != null;
11805
    }
11806
 
11807
    public void setUsernameIsSet(boolean value) {
11808
      if (!value) {
11809
        this.username = null;
11810
      }
11811
    }
11812
 
11813
    public String getOldPassword() {
11814
      return this.oldPassword;
11815
    }
11816
 
3430 rajveer 11817
    public void setOldPassword(String oldPassword) {
495 rajveer 11818
      this.oldPassword = oldPassword;
11819
    }
11820
 
11821
    public void unsetOldPassword() {
11822
      this.oldPassword = null;
11823
    }
11824
 
3430 rajveer 11825
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11826
    public boolean isSetOldPassword() {
11827
      return this.oldPassword != null;
11828
    }
11829
 
11830
    public void setOldPasswordIsSet(boolean value) {
11831
      if (!value) {
11832
        this.oldPassword = null;
11833
      }
11834
    }
11835
 
11836
    public String getNewPassword() {
11837
      return this.newPassword;
11838
    }
11839
 
3430 rajveer 11840
    public void setNewPassword(String newPassword) {
495 rajveer 11841
      this.newPassword = newPassword;
11842
    }
11843
 
11844
    public void unsetNewPassword() {
11845
      this.newPassword = null;
11846
    }
11847
 
3430 rajveer 11848
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11849
    public boolean isSetNewPassword() {
11850
      return this.newPassword != null;
11851
    }
11852
 
11853
    public void setNewPasswordIsSet(boolean value) {
11854
      if (!value) {
11855
        this.newPassword = null;
11856
      }
11857
    }
11858
 
11859
    public void setFieldValue(_Fields field, Object value) {
11860
      switch (field) {
11861
      case USERNAME:
11862
        if (value == null) {
11863
          unsetUsername();
11864
        } else {
11865
          setUsername((String)value);
11866
        }
11867
        break;
11868
 
11869
      case OLD_PASSWORD:
11870
        if (value == null) {
11871
          unsetOldPassword();
11872
        } else {
11873
          setOldPassword((String)value);
11874
        }
11875
        break;
11876
 
11877
      case NEW_PASSWORD:
11878
        if (value == null) {
11879
          unsetNewPassword();
11880
        } else {
11881
          setNewPassword((String)value);
11882
        }
11883
        break;
11884
 
11885
      }
11886
    }
11887
 
11888
    public Object getFieldValue(_Fields field) {
11889
      switch (field) {
11890
      case USERNAME:
11891
        return getUsername();
11892
 
11893
      case OLD_PASSWORD:
11894
        return getOldPassword();
11895
 
11896
      case NEW_PASSWORD:
11897
        return getNewPassword();
11898
 
11899
      }
11900
      throw new IllegalStateException();
11901
    }
11902
 
3430 rajveer 11903
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11904
    public boolean isSet(_Fields field) {
11905
      if (field == null) {
11906
        throw new IllegalArgumentException();
11907
      }
495 rajveer 11908
 
11909
      switch (field) {
11910
      case USERNAME:
11911
        return isSetUsername();
11912
      case OLD_PASSWORD:
11913
        return isSetOldPassword();
11914
      case NEW_PASSWORD:
11915
        return isSetNewPassword();
11916
      }
11917
      throw new IllegalStateException();
11918
    }
11919
 
11920
    @Override
11921
    public boolean equals(Object that) {
11922
      if (that == null)
11923
        return false;
11924
      if (that instanceof updatePassword_args)
11925
        return this.equals((updatePassword_args)that);
11926
      return false;
11927
    }
11928
 
11929
    public boolean equals(updatePassword_args that) {
11930
      if (that == null)
11931
        return false;
11932
 
11933
      boolean this_present_username = true && this.isSetUsername();
11934
      boolean that_present_username = true && that.isSetUsername();
11935
      if (this_present_username || that_present_username) {
11936
        if (!(this_present_username && that_present_username))
11937
          return false;
11938
        if (!this.username.equals(that.username))
11939
          return false;
11940
      }
11941
 
11942
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11943
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11944
      if (this_present_oldPassword || that_present_oldPassword) {
11945
        if (!(this_present_oldPassword && that_present_oldPassword))
11946
          return false;
11947
        if (!this.oldPassword.equals(that.oldPassword))
11948
          return false;
11949
      }
11950
 
11951
      boolean this_present_newPassword = true && this.isSetNewPassword();
11952
      boolean that_present_newPassword = true && that.isSetNewPassword();
11953
      if (this_present_newPassword || that_present_newPassword) {
11954
        if (!(this_present_newPassword && that_present_newPassword))
11955
          return false;
11956
        if (!this.newPassword.equals(that.newPassword))
11957
          return false;
11958
      }
11959
 
11960
      return true;
11961
    }
11962
 
11963
    @Override
11964
    public int hashCode() {
11965
      return 0;
11966
    }
11967
 
11968
    public int compareTo(updatePassword_args other) {
11969
      if (!getClass().equals(other.getClass())) {
11970
        return getClass().getName().compareTo(other.getClass().getName());
11971
      }
11972
 
11973
      int lastComparison = 0;
11974
      updatePassword_args typedOther = (updatePassword_args)other;
11975
 
3430 rajveer 11976
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11977
      if (lastComparison != 0) {
11978
        return lastComparison;
11979
      }
3430 rajveer 11980
      if (isSetUsername()) {
11981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11982
        if (lastComparison != 0) {
11983
          return lastComparison;
11984
        }
495 rajveer 11985
      }
3430 rajveer 11986
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11987
      if (lastComparison != 0) {
11988
        return lastComparison;
11989
      }
3430 rajveer 11990
      if (isSetOldPassword()) {
11991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11992
        if (lastComparison != 0) {
11993
          return lastComparison;
11994
        }
495 rajveer 11995
      }
3430 rajveer 11996
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11997
      if (lastComparison != 0) {
11998
        return lastComparison;
11999
      }
3430 rajveer 12000
      if (isSetNewPassword()) {
12001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
12002
        if (lastComparison != 0) {
12003
          return lastComparison;
12004
        }
495 rajveer 12005
      }
12006
      return 0;
12007
    }
12008
 
3430 rajveer 12009
    public _Fields fieldForId(int fieldId) {
12010
      return _Fields.findByThriftId(fieldId);
12011
    }
12012
 
12013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12014
      org.apache.thrift.protocol.TField field;
495 rajveer 12015
      iprot.readStructBegin();
12016
      while (true)
12017
      {
12018
        field = iprot.readFieldBegin();
3430 rajveer 12019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12020
          break;
12021
        }
3430 rajveer 12022
        switch (field.id) {
12023
          case 1: // USERNAME
12024
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12025
              this.username = iprot.readString();
12026
            } else { 
12027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12028
            }
12029
            break;
12030
          case 2: // OLD_PASSWORD
12031
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12032
              this.oldPassword = iprot.readString();
12033
            } else { 
12034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12035
            }
12036
            break;
12037
          case 3: // NEW_PASSWORD
12038
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12039
              this.newPassword = iprot.readString();
12040
            } else { 
12041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12042
            }
12043
            break;
12044
          default:
12045
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12046
        }
3430 rajveer 12047
        iprot.readFieldEnd();
495 rajveer 12048
      }
12049
      iprot.readStructEnd();
12050
      validate();
12051
    }
12052
 
3430 rajveer 12053
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12054
      validate();
12055
 
12056
      oprot.writeStructBegin(STRUCT_DESC);
12057
      if (this.username != null) {
12058
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12059
        oprot.writeString(this.username);
12060
        oprot.writeFieldEnd();
12061
      }
12062
      if (this.oldPassword != null) {
12063
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
12064
        oprot.writeString(this.oldPassword);
12065
        oprot.writeFieldEnd();
12066
      }
12067
      if (this.newPassword != null) {
12068
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
12069
        oprot.writeString(this.newPassword);
12070
        oprot.writeFieldEnd();
12071
      }
12072
      oprot.writeFieldStop();
12073
      oprot.writeStructEnd();
12074
    }
12075
 
12076
    @Override
12077
    public String toString() {
12078
      StringBuilder sb = new StringBuilder("updatePassword_args(");
12079
      boolean first = true;
12080
 
12081
      sb.append("username:");
12082
      if (this.username == null) {
12083
        sb.append("null");
12084
      } else {
12085
        sb.append(this.username);
12086
      }
12087
      first = false;
12088
      if (!first) sb.append(", ");
12089
      sb.append("oldPassword:");
12090
      if (this.oldPassword == null) {
12091
        sb.append("null");
12092
      } else {
12093
        sb.append(this.oldPassword);
12094
      }
12095
      first = false;
12096
      if (!first) sb.append(", ");
12097
      sb.append("newPassword:");
12098
      if (this.newPassword == null) {
12099
        sb.append("null");
12100
      } else {
12101
        sb.append(this.newPassword);
12102
      }
12103
      first = false;
12104
      sb.append(")");
12105
      return sb.toString();
12106
    }
12107
 
3430 rajveer 12108
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12109
      // check for required fields
12110
    }
12111
 
3430 rajveer 12112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12113
      try {
12114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12115
      } catch (org.apache.thrift.TException te) {
12116
        throw new java.io.IOException(te);
12117
      }
12118
    }
12119
 
12120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12121
      try {
12122
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12123
      } catch (org.apache.thrift.TException te) {
12124
        throw new java.io.IOException(te);
12125
      }
12126
    }
12127
 
495 rajveer 12128
  }
12129
 
3430 rajveer 12130
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
12131
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 12132
 
3430 rajveer 12133
    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);
12134
    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 12135
 
3430 rajveer 12136
    private boolean success; // required
12137
    private HelperServiceException se; // required
495 rajveer 12138
 
12139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12141
      SUCCESS((short)0, "success"),
12142
      SE((short)1, "se");
12143
 
12144
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12145
 
12146
      static {
12147
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12148
          byName.put(field.getFieldName(), field);
12149
        }
12150
      }
12151
 
12152
      /**
12153
       * Find the _Fields constant that matches fieldId, or null if its not found.
12154
       */
12155
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12156
        switch(fieldId) {
12157
          case 0: // SUCCESS
12158
            return SUCCESS;
12159
          case 1: // SE
12160
            return SE;
12161
          default:
12162
            return null;
12163
        }
495 rajveer 12164
      }
12165
 
12166
      /**
12167
       * Find the _Fields constant that matches fieldId, throwing an exception
12168
       * if it is not found.
12169
       */
12170
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12171
        _Fields fields = findByThriftId(fieldId);
12172
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12173
        return fields;
12174
      }
12175
 
12176
      /**
12177
       * Find the _Fields constant that matches name, or null if its not found.
12178
       */
12179
      public static _Fields findByName(String name) {
12180
        return byName.get(name);
12181
      }
12182
 
12183
      private final short _thriftId;
12184
      private final String _fieldName;
12185
 
12186
      _Fields(short thriftId, String fieldName) {
12187
        _thriftId = thriftId;
12188
        _fieldName = fieldName;
12189
      }
12190
 
12191
      public short getThriftFieldId() {
12192
        return _thriftId;
12193
      }
12194
 
12195
      public String getFieldName() {
12196
        return _fieldName;
12197
      }
12198
    }
12199
 
12200
    // isset id assignments
12201
    private static final int __SUCCESS_ISSET_ID = 0;
12202
    private BitSet __isset_bit_vector = new BitSet(1);
12203
 
3430 rajveer 12204
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12205
    static {
3430 rajveer 12206
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12207
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12208
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12209
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12211
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12212
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 12213
    }
12214
 
12215
    public updatePassword_result() {
12216
    }
12217
 
12218
    public updatePassword_result(
12219
      boolean success,
12220
      HelperServiceException se)
12221
    {
12222
      this();
12223
      this.success = success;
12224
      setSuccessIsSet(true);
12225
      this.se = se;
12226
    }
12227
 
12228
    /**
12229
     * Performs a deep copy on <i>other</i>.
12230
     */
12231
    public updatePassword_result(updatePassword_result other) {
12232
      __isset_bit_vector.clear();
12233
      __isset_bit_vector.or(other.__isset_bit_vector);
12234
      this.success = other.success;
12235
      if (other.isSetSe()) {
12236
        this.se = new HelperServiceException(other.se);
12237
      }
12238
    }
12239
 
12240
    public updatePassword_result deepCopy() {
12241
      return new updatePassword_result(this);
12242
    }
12243
 
3430 rajveer 12244
    @Override
12245
    public void clear() {
12246
      setSuccessIsSet(false);
12247
      this.success = false;
12248
      this.se = null;
495 rajveer 12249
    }
12250
 
12251
    public boolean isSuccess() {
12252
      return this.success;
12253
    }
12254
 
3430 rajveer 12255
    public void setSuccess(boolean success) {
495 rajveer 12256
      this.success = success;
12257
      setSuccessIsSet(true);
12258
    }
12259
 
12260
    public void unsetSuccess() {
12261
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12262
    }
12263
 
3430 rajveer 12264
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12265
    public boolean isSetSuccess() {
12266
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12267
    }
12268
 
12269
    public void setSuccessIsSet(boolean value) {
12270
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12271
    }
12272
 
12273
    public HelperServiceException getSe() {
12274
      return this.se;
12275
    }
12276
 
3430 rajveer 12277
    public void setSe(HelperServiceException se) {
495 rajveer 12278
      this.se = se;
12279
    }
12280
 
12281
    public void unsetSe() {
12282
      this.se = null;
12283
    }
12284
 
3430 rajveer 12285
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12286
    public boolean isSetSe() {
12287
      return this.se != null;
12288
    }
12289
 
12290
    public void setSeIsSet(boolean value) {
12291
      if (!value) {
12292
        this.se = null;
12293
      }
12294
    }
12295
 
12296
    public void setFieldValue(_Fields field, Object value) {
12297
      switch (field) {
12298
      case SUCCESS:
12299
        if (value == null) {
12300
          unsetSuccess();
12301
        } else {
12302
          setSuccess((Boolean)value);
12303
        }
12304
        break;
12305
 
12306
      case SE:
12307
        if (value == null) {
12308
          unsetSe();
12309
        } else {
12310
          setSe((HelperServiceException)value);
12311
        }
12312
        break;
12313
 
12314
      }
12315
    }
12316
 
12317
    public Object getFieldValue(_Fields field) {
12318
      switch (field) {
12319
      case SUCCESS:
3430 rajveer 12320
        return Boolean.valueOf(isSuccess());
495 rajveer 12321
 
12322
      case SE:
12323
        return getSe();
12324
 
12325
      }
12326
      throw new IllegalStateException();
12327
    }
12328
 
3430 rajveer 12329
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12330
    public boolean isSet(_Fields field) {
12331
      if (field == null) {
12332
        throw new IllegalArgumentException();
12333
      }
495 rajveer 12334
 
12335
      switch (field) {
12336
      case SUCCESS:
12337
        return isSetSuccess();
12338
      case SE:
12339
        return isSetSe();
12340
      }
12341
      throw new IllegalStateException();
12342
    }
12343
 
12344
    @Override
12345
    public boolean equals(Object that) {
12346
      if (that == null)
12347
        return false;
12348
      if (that instanceof updatePassword_result)
12349
        return this.equals((updatePassword_result)that);
12350
      return false;
12351
    }
12352
 
12353
    public boolean equals(updatePassword_result that) {
12354
      if (that == null)
12355
        return false;
12356
 
12357
      boolean this_present_success = true;
12358
      boolean that_present_success = true;
12359
      if (this_present_success || that_present_success) {
12360
        if (!(this_present_success && that_present_success))
12361
          return false;
12362
        if (this.success != that.success)
12363
          return false;
12364
      }
12365
 
12366
      boolean this_present_se = true && this.isSetSe();
12367
      boolean that_present_se = true && that.isSetSe();
12368
      if (this_present_se || that_present_se) {
12369
        if (!(this_present_se && that_present_se))
12370
          return false;
12371
        if (!this.se.equals(that.se))
12372
          return false;
12373
      }
12374
 
12375
      return true;
12376
    }
12377
 
12378
    @Override
12379
    public int hashCode() {
12380
      return 0;
12381
    }
12382
 
12383
    public int compareTo(updatePassword_result other) {
12384
      if (!getClass().equals(other.getClass())) {
12385
        return getClass().getName().compareTo(other.getClass().getName());
12386
      }
12387
 
12388
      int lastComparison = 0;
12389
      updatePassword_result typedOther = (updatePassword_result)other;
12390
 
3430 rajveer 12391
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12392
      if (lastComparison != 0) {
12393
        return lastComparison;
12394
      }
3430 rajveer 12395
      if (isSetSuccess()) {
12396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12397
        if (lastComparison != 0) {
12398
          return lastComparison;
12399
        }
495 rajveer 12400
      }
3430 rajveer 12401
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12402
      if (lastComparison != 0) {
12403
        return lastComparison;
12404
      }
3430 rajveer 12405
      if (isSetSe()) {
12406
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12407
        if (lastComparison != 0) {
12408
          return lastComparison;
12409
        }
495 rajveer 12410
      }
12411
      return 0;
12412
    }
12413
 
3430 rajveer 12414
    public _Fields fieldForId(int fieldId) {
12415
      return _Fields.findByThriftId(fieldId);
12416
    }
12417
 
12418
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12419
      org.apache.thrift.protocol.TField field;
495 rajveer 12420
      iprot.readStructBegin();
12421
      while (true)
12422
      {
12423
        field = iprot.readFieldBegin();
3430 rajveer 12424
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12425
          break;
12426
        }
3430 rajveer 12427
        switch (field.id) {
12428
          case 0: // SUCCESS
12429
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12430
              this.success = iprot.readBool();
12431
              setSuccessIsSet(true);
12432
            } else { 
12433
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12434
            }
12435
            break;
12436
          case 1: // SE
12437
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12438
              this.se = new HelperServiceException();
12439
              this.se.read(iprot);
12440
            } else { 
12441
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12442
            }
12443
            break;
12444
          default:
12445
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12446
        }
3430 rajveer 12447
        iprot.readFieldEnd();
495 rajveer 12448
      }
12449
      iprot.readStructEnd();
12450
      validate();
12451
    }
12452
 
3430 rajveer 12453
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12454
      oprot.writeStructBegin(STRUCT_DESC);
12455
 
12456
      if (this.isSetSuccess()) {
12457
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12458
        oprot.writeBool(this.success);
12459
        oprot.writeFieldEnd();
12460
      } else if (this.isSetSe()) {
12461
        oprot.writeFieldBegin(SE_FIELD_DESC);
12462
        this.se.write(oprot);
12463
        oprot.writeFieldEnd();
12464
      }
12465
      oprot.writeFieldStop();
12466
      oprot.writeStructEnd();
12467
    }
12468
 
12469
    @Override
12470
    public String toString() {
12471
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12472
      boolean first = true;
12473
 
12474
      sb.append("success:");
12475
      sb.append(this.success);
12476
      first = false;
12477
      if (!first) sb.append(", ");
12478
      sb.append("se:");
12479
      if (this.se == null) {
12480
        sb.append("null");
12481
      } else {
12482
        sb.append(this.se);
12483
      }
12484
      first = false;
12485
      sb.append(")");
12486
      return sb.toString();
12487
    }
12488
 
3430 rajveer 12489
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12490
      // check for required fields
12491
    }
12492
 
3430 rajveer 12493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12494
      try {
12495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12496
      } catch (org.apache.thrift.TException te) {
12497
        throw new java.io.IOException(te);
12498
      }
12499
    }
12500
 
12501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12502
      try {
12503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12504
      } catch (org.apache.thrift.TException te) {
12505
        throw new java.io.IOException(te);
12506
      }
12507
    }
12508
 
495 rajveer 12509
  }
12510
 
3430 rajveer 12511
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12513
 
3430 rajveer 12514
    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);
12515
    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 12516
 
3430 rajveer 12517
    private String username; // required
12518
    private String password; // required
750 chandransh 12519
 
12520
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12521
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12522
      USERNAME((short)1, "username"),
12523
      PASSWORD((short)2, "password");
12524
 
12525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12526
 
12527
      static {
12528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12529
          byName.put(field.getFieldName(), field);
12530
        }
12531
      }
12532
 
12533
      /**
12534
       * Find the _Fields constant that matches fieldId, or null if its not found.
12535
       */
12536
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12537
        switch(fieldId) {
12538
          case 1: // USERNAME
12539
            return USERNAME;
12540
          case 2: // PASSWORD
12541
            return PASSWORD;
12542
          default:
12543
            return null;
12544
        }
750 chandransh 12545
      }
12546
 
12547
      /**
12548
       * Find the _Fields constant that matches fieldId, throwing an exception
12549
       * if it is not found.
12550
       */
12551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12552
        _Fields fields = findByThriftId(fieldId);
12553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12554
        return fields;
12555
      }
12556
 
12557
      /**
12558
       * Find the _Fields constant that matches name, or null if its not found.
12559
       */
12560
      public static _Fields findByName(String name) {
12561
        return byName.get(name);
12562
      }
12563
 
12564
      private final short _thriftId;
12565
      private final String _fieldName;
12566
 
12567
      _Fields(short thriftId, String fieldName) {
12568
        _thriftId = thriftId;
12569
        _fieldName = fieldName;
12570
      }
12571
 
12572
      public short getThriftFieldId() {
12573
        return _thriftId;
12574
      }
12575
 
12576
      public String getFieldName() {
12577
        return _fieldName;
12578
      }
12579
    }
12580
 
12581
    // isset id assignments
12582
 
3430 rajveer 12583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12584
    static {
3430 rajveer 12585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12586
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12588
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12592
    }
12593
 
12594
    public authenticateLogisticsUser_args() {
12595
    }
12596
 
12597
    public authenticateLogisticsUser_args(
12598
      String username,
12599
      String password)
12600
    {
12601
      this();
12602
      this.username = username;
12603
      this.password = password;
12604
    }
12605
 
12606
    /**
12607
     * Performs a deep copy on <i>other</i>.
12608
     */
12609
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12610
      if (other.isSetUsername()) {
12611
        this.username = other.username;
12612
      }
12613
      if (other.isSetPassword()) {
12614
        this.password = other.password;
12615
      }
12616
    }
12617
 
12618
    public authenticateLogisticsUser_args deepCopy() {
12619
      return new authenticateLogisticsUser_args(this);
12620
    }
12621
 
3430 rajveer 12622
    @Override
12623
    public void clear() {
12624
      this.username = null;
12625
      this.password = null;
750 chandransh 12626
    }
12627
 
12628
    public String getUsername() {
12629
      return this.username;
12630
    }
12631
 
3430 rajveer 12632
    public void setUsername(String username) {
750 chandransh 12633
      this.username = username;
12634
    }
12635
 
12636
    public void unsetUsername() {
12637
      this.username = null;
12638
    }
12639
 
3430 rajveer 12640
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12641
    public boolean isSetUsername() {
12642
      return this.username != null;
12643
    }
12644
 
12645
    public void setUsernameIsSet(boolean value) {
12646
      if (!value) {
12647
        this.username = null;
12648
      }
12649
    }
12650
 
12651
    public String getPassword() {
12652
      return this.password;
12653
    }
12654
 
3430 rajveer 12655
    public void setPassword(String password) {
750 chandransh 12656
      this.password = password;
12657
    }
12658
 
12659
    public void unsetPassword() {
12660
      this.password = null;
12661
    }
12662
 
3430 rajveer 12663
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12664
    public boolean isSetPassword() {
12665
      return this.password != null;
12666
    }
12667
 
12668
    public void setPasswordIsSet(boolean value) {
12669
      if (!value) {
12670
        this.password = null;
12671
      }
12672
    }
12673
 
12674
    public void setFieldValue(_Fields field, Object value) {
12675
      switch (field) {
12676
      case USERNAME:
12677
        if (value == null) {
12678
          unsetUsername();
12679
        } else {
12680
          setUsername((String)value);
12681
        }
12682
        break;
12683
 
12684
      case PASSWORD:
12685
        if (value == null) {
12686
          unsetPassword();
12687
        } else {
12688
          setPassword((String)value);
12689
        }
12690
        break;
12691
 
12692
      }
12693
    }
12694
 
12695
    public Object getFieldValue(_Fields field) {
12696
      switch (field) {
12697
      case USERNAME:
12698
        return getUsername();
12699
 
12700
      case PASSWORD:
12701
        return getPassword();
12702
 
12703
      }
12704
      throw new IllegalStateException();
12705
    }
12706
 
3430 rajveer 12707
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12708
    public boolean isSet(_Fields field) {
12709
      if (field == null) {
12710
        throw new IllegalArgumentException();
12711
      }
750 chandransh 12712
 
12713
      switch (field) {
12714
      case USERNAME:
12715
        return isSetUsername();
12716
      case PASSWORD:
12717
        return isSetPassword();
12718
      }
12719
      throw new IllegalStateException();
12720
    }
12721
 
12722
    @Override
12723
    public boolean equals(Object that) {
12724
      if (that == null)
12725
        return false;
12726
      if (that instanceof authenticateLogisticsUser_args)
12727
        return this.equals((authenticateLogisticsUser_args)that);
12728
      return false;
12729
    }
12730
 
12731
    public boolean equals(authenticateLogisticsUser_args that) {
12732
      if (that == null)
12733
        return false;
12734
 
12735
      boolean this_present_username = true && this.isSetUsername();
12736
      boolean that_present_username = true && that.isSetUsername();
12737
      if (this_present_username || that_present_username) {
12738
        if (!(this_present_username && that_present_username))
12739
          return false;
12740
        if (!this.username.equals(that.username))
12741
          return false;
12742
      }
12743
 
12744
      boolean this_present_password = true && this.isSetPassword();
12745
      boolean that_present_password = true && that.isSetPassword();
12746
      if (this_present_password || that_present_password) {
12747
        if (!(this_present_password && that_present_password))
12748
          return false;
12749
        if (!this.password.equals(that.password))
12750
          return false;
12751
      }
12752
 
12753
      return true;
12754
    }
12755
 
12756
    @Override
12757
    public int hashCode() {
12758
      return 0;
12759
    }
12760
 
12761
    public int compareTo(authenticateLogisticsUser_args other) {
12762
      if (!getClass().equals(other.getClass())) {
12763
        return getClass().getName().compareTo(other.getClass().getName());
12764
      }
12765
 
12766
      int lastComparison = 0;
12767
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12768
 
3430 rajveer 12769
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12770
      if (lastComparison != 0) {
12771
        return lastComparison;
12772
      }
3430 rajveer 12773
      if (isSetUsername()) {
12774
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12775
        if (lastComparison != 0) {
12776
          return lastComparison;
12777
        }
750 chandransh 12778
      }
3430 rajveer 12779
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12780
      if (lastComparison != 0) {
12781
        return lastComparison;
12782
      }
3430 rajveer 12783
      if (isSetPassword()) {
12784
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12785
        if (lastComparison != 0) {
12786
          return lastComparison;
12787
        }
750 chandransh 12788
      }
12789
      return 0;
12790
    }
12791
 
3430 rajveer 12792
    public _Fields fieldForId(int fieldId) {
12793
      return _Fields.findByThriftId(fieldId);
12794
    }
12795
 
12796
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12797
      org.apache.thrift.protocol.TField field;
750 chandransh 12798
      iprot.readStructBegin();
12799
      while (true)
12800
      {
12801
        field = iprot.readFieldBegin();
3430 rajveer 12802
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12803
          break;
12804
        }
3430 rajveer 12805
        switch (field.id) {
12806
          case 1: // USERNAME
12807
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12808
              this.username = iprot.readString();
12809
            } else { 
12810
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12811
            }
12812
            break;
12813
          case 2: // PASSWORD
12814
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12815
              this.password = iprot.readString();
12816
            } else { 
12817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12818
            }
12819
            break;
12820
          default:
12821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12822
        }
3430 rajveer 12823
        iprot.readFieldEnd();
750 chandransh 12824
      }
12825
      iprot.readStructEnd();
12826
      validate();
12827
    }
12828
 
3430 rajveer 12829
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12830
      validate();
12831
 
12832
      oprot.writeStructBegin(STRUCT_DESC);
12833
      if (this.username != null) {
12834
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12835
        oprot.writeString(this.username);
12836
        oprot.writeFieldEnd();
12837
      }
12838
      if (this.password != null) {
12839
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12840
        oprot.writeString(this.password);
12841
        oprot.writeFieldEnd();
12842
      }
12843
      oprot.writeFieldStop();
12844
      oprot.writeStructEnd();
12845
    }
12846
 
12847
    @Override
12848
    public String toString() {
12849
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12850
      boolean first = true;
12851
 
12852
      sb.append("username:");
12853
      if (this.username == null) {
12854
        sb.append("null");
12855
      } else {
12856
        sb.append(this.username);
12857
      }
12858
      first = false;
12859
      if (!first) sb.append(", ");
12860
      sb.append("password:");
12861
      if (this.password == null) {
12862
        sb.append("null");
12863
      } else {
12864
        sb.append(this.password);
12865
      }
12866
      first = false;
12867
      sb.append(")");
12868
      return sb.toString();
12869
    }
12870
 
3430 rajveer 12871
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12872
      // check for required fields
12873
    }
12874
 
3430 rajveer 12875
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12876
      try {
12877
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12878
      } catch (org.apache.thrift.TException te) {
12879
        throw new java.io.IOException(te);
12880
      }
12881
    }
12882
 
12883
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12884
      try {
12885
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12886
      } catch (org.apache.thrift.TException te) {
12887
        throw new java.io.IOException(te);
12888
      }
12889
    }
12890
 
750 chandransh 12891
  }
12892
 
3430 rajveer 12893
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12894
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12895
 
3430 rajveer 12896
    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);
12897
    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 12898
 
3430 rajveer 12899
    private LogisticsUser success; // required
12900
    private HelperServiceException hse; // required
750 chandransh 12901
 
12902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12904
      SUCCESS((short)0, "success"),
12905
      HSE((short)1, "hse");
12906
 
12907
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12908
 
12909
      static {
12910
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12911
          byName.put(field.getFieldName(), field);
12912
        }
12913
      }
12914
 
12915
      /**
12916
       * Find the _Fields constant that matches fieldId, or null if its not found.
12917
       */
12918
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12919
        switch(fieldId) {
12920
          case 0: // SUCCESS
12921
            return SUCCESS;
12922
          case 1: // HSE
12923
            return HSE;
12924
          default:
12925
            return null;
12926
        }
750 chandransh 12927
      }
12928
 
12929
      /**
12930
       * Find the _Fields constant that matches fieldId, throwing an exception
12931
       * if it is not found.
12932
       */
12933
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12934
        _Fields fields = findByThriftId(fieldId);
12935
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12936
        return fields;
12937
      }
12938
 
12939
      /**
12940
       * Find the _Fields constant that matches name, or null if its not found.
12941
       */
12942
      public static _Fields findByName(String name) {
12943
        return byName.get(name);
12944
      }
12945
 
12946
      private final short _thriftId;
12947
      private final String _fieldName;
12948
 
12949
      _Fields(short thriftId, String fieldName) {
12950
        _thriftId = thriftId;
12951
        _fieldName = fieldName;
12952
      }
12953
 
12954
      public short getThriftFieldId() {
12955
        return _thriftId;
12956
      }
12957
 
12958
      public String getFieldName() {
12959
        return _fieldName;
12960
      }
12961
    }
12962
 
12963
    // isset id assignments
12964
 
3430 rajveer 12965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12966
    static {
3430 rajveer 12967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12968
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12969
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12970
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12971
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12972
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12973
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12974
    }
12975
 
12976
    public authenticateLogisticsUser_result() {
12977
    }
12978
 
12979
    public authenticateLogisticsUser_result(
12980
      LogisticsUser success,
12981
      HelperServiceException hse)
12982
    {
12983
      this();
12984
      this.success = success;
12985
      this.hse = hse;
12986
    }
12987
 
12988
    /**
12989
     * Performs a deep copy on <i>other</i>.
12990
     */
12991
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12992
      if (other.isSetSuccess()) {
12993
        this.success = new LogisticsUser(other.success);
12994
      }
12995
      if (other.isSetHse()) {
12996
        this.hse = new HelperServiceException(other.hse);
12997
      }
12998
    }
12999
 
13000
    public authenticateLogisticsUser_result deepCopy() {
13001
      return new authenticateLogisticsUser_result(this);
13002
    }
13003
 
3430 rajveer 13004
    @Override
13005
    public void clear() {
13006
      this.success = null;
13007
      this.hse = null;
750 chandransh 13008
    }
13009
 
13010
    public LogisticsUser getSuccess() {
13011
      return this.success;
13012
    }
13013
 
3430 rajveer 13014
    public void setSuccess(LogisticsUser success) {
750 chandransh 13015
      this.success = success;
13016
    }
13017
 
13018
    public void unsetSuccess() {
13019
      this.success = null;
13020
    }
13021
 
3430 rajveer 13022
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 13023
    public boolean isSetSuccess() {
13024
      return this.success != null;
13025
    }
13026
 
13027
    public void setSuccessIsSet(boolean value) {
13028
      if (!value) {
13029
        this.success = null;
13030
      }
13031
    }
13032
 
13033
    public HelperServiceException getHse() {
13034
      return this.hse;
13035
    }
13036
 
3430 rajveer 13037
    public void setHse(HelperServiceException hse) {
750 chandransh 13038
      this.hse = hse;
13039
    }
13040
 
13041
    public void unsetHse() {
13042
      this.hse = null;
13043
    }
13044
 
3430 rajveer 13045
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 13046
    public boolean isSetHse() {
13047
      return this.hse != null;
13048
    }
13049
 
13050
    public void setHseIsSet(boolean value) {
13051
      if (!value) {
13052
        this.hse = null;
13053
      }
13054
    }
13055
 
13056
    public void setFieldValue(_Fields field, Object value) {
13057
      switch (field) {
13058
      case SUCCESS:
13059
        if (value == null) {
13060
          unsetSuccess();
13061
        } else {
13062
          setSuccess((LogisticsUser)value);
13063
        }
13064
        break;
13065
 
13066
      case HSE:
13067
        if (value == null) {
13068
          unsetHse();
13069
        } else {
13070
          setHse((HelperServiceException)value);
13071
        }
13072
        break;
13073
 
13074
      }
13075
    }
13076
 
13077
    public Object getFieldValue(_Fields field) {
13078
      switch (field) {
13079
      case SUCCESS:
13080
        return getSuccess();
13081
 
13082
      case HSE:
13083
        return getHse();
13084
 
13085
      }
13086
      throw new IllegalStateException();
13087
    }
13088
 
3430 rajveer 13089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13090
    public boolean isSet(_Fields field) {
13091
      if (field == null) {
13092
        throw new IllegalArgumentException();
13093
      }
750 chandransh 13094
 
13095
      switch (field) {
13096
      case SUCCESS:
13097
        return isSetSuccess();
13098
      case HSE:
13099
        return isSetHse();
13100
      }
13101
      throw new IllegalStateException();
13102
    }
13103
 
13104
    @Override
13105
    public boolean equals(Object that) {
13106
      if (that == null)
13107
        return false;
13108
      if (that instanceof authenticateLogisticsUser_result)
13109
        return this.equals((authenticateLogisticsUser_result)that);
13110
      return false;
13111
    }
13112
 
13113
    public boolean equals(authenticateLogisticsUser_result that) {
13114
      if (that == null)
13115
        return false;
13116
 
13117
      boolean this_present_success = true && this.isSetSuccess();
13118
      boolean that_present_success = true && that.isSetSuccess();
13119
      if (this_present_success || that_present_success) {
13120
        if (!(this_present_success && that_present_success))
13121
          return false;
13122
        if (!this.success.equals(that.success))
13123
          return false;
13124
      }
13125
 
13126
      boolean this_present_hse = true && this.isSetHse();
13127
      boolean that_present_hse = true && that.isSetHse();
13128
      if (this_present_hse || that_present_hse) {
13129
        if (!(this_present_hse && that_present_hse))
13130
          return false;
13131
        if (!this.hse.equals(that.hse))
13132
          return false;
13133
      }
13134
 
13135
      return true;
13136
    }
13137
 
13138
    @Override
13139
    public int hashCode() {
13140
      return 0;
13141
    }
13142
 
13143
    public int compareTo(authenticateLogisticsUser_result other) {
13144
      if (!getClass().equals(other.getClass())) {
13145
        return getClass().getName().compareTo(other.getClass().getName());
13146
      }
13147
 
13148
      int lastComparison = 0;
13149
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
13150
 
3430 rajveer 13151
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 13152
      if (lastComparison != 0) {
13153
        return lastComparison;
13154
      }
3430 rajveer 13155
      if (isSetSuccess()) {
13156
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13157
        if (lastComparison != 0) {
13158
          return lastComparison;
13159
        }
750 chandransh 13160
      }
3430 rajveer 13161
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 13162
      if (lastComparison != 0) {
13163
        return lastComparison;
13164
      }
3430 rajveer 13165
      if (isSetHse()) {
13166
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13167
        if (lastComparison != 0) {
13168
          return lastComparison;
13169
        }
750 chandransh 13170
      }
13171
      return 0;
13172
    }
13173
 
3430 rajveer 13174
    public _Fields fieldForId(int fieldId) {
13175
      return _Fields.findByThriftId(fieldId);
13176
    }
13177
 
13178
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13179
      org.apache.thrift.protocol.TField field;
750 chandransh 13180
      iprot.readStructBegin();
13181
      while (true)
13182
      {
13183
        field = iprot.readFieldBegin();
3430 rajveer 13184
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13185
          break;
13186
        }
3430 rajveer 13187
        switch (field.id) {
13188
          case 0: // SUCCESS
13189
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13190
              this.success = new LogisticsUser();
13191
              this.success.read(iprot);
13192
            } else { 
13193
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13194
            }
13195
            break;
13196
          case 1: // HSE
13197
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13198
              this.hse = new HelperServiceException();
13199
              this.hse.read(iprot);
13200
            } else { 
13201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13202
            }
13203
            break;
13204
          default:
13205
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13206
        }
3430 rajveer 13207
        iprot.readFieldEnd();
750 chandransh 13208
      }
13209
      iprot.readStructEnd();
13210
      validate();
13211
    }
13212
 
3430 rajveer 13213
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13214
      oprot.writeStructBegin(STRUCT_DESC);
13215
 
13216
      if (this.isSetSuccess()) {
13217
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13218
        this.success.write(oprot);
13219
        oprot.writeFieldEnd();
13220
      } else if (this.isSetHse()) {
13221
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13222
        this.hse.write(oprot);
13223
        oprot.writeFieldEnd();
13224
      }
13225
      oprot.writeFieldStop();
13226
      oprot.writeStructEnd();
13227
    }
13228
 
13229
    @Override
13230
    public String toString() {
13231
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
13232
      boolean first = true;
13233
 
13234
      sb.append("success:");
13235
      if (this.success == null) {
13236
        sb.append("null");
13237
      } else {
13238
        sb.append(this.success);
13239
      }
13240
      first = false;
13241
      if (!first) sb.append(", ");
13242
      sb.append("hse:");
13243
      if (this.hse == null) {
13244
        sb.append("null");
13245
      } else {
13246
        sb.append(this.hse);
13247
      }
13248
      first = false;
13249
      sb.append(")");
13250
      return sb.toString();
13251
    }
13252
 
3430 rajveer 13253
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13254
      // check for required fields
13255
    }
13256
 
3430 rajveer 13257
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13258
      try {
13259
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13260
      } catch (org.apache.thrift.TException te) {
13261
        throw new java.io.IOException(te);
13262
      }
13263
    }
13264
 
13265
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13266
      try {
13267
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13268
      } catch (org.apache.thrift.TException te) {
13269
        throw new java.io.IOException(te);
13270
      }
13271
    }
13272
 
750 chandransh 13273
  }
13274
 
3430 rajveer 13275
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13276
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13277
 
3430 rajveer 13278
    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);
13279
    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 13280
 
3430 rajveer 13281
    private String username; // required
13282
    private String password; // required
1611 ankur.sing 13283
 
13284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13286
      USERNAME((short)1, "username"),
13287
      PASSWORD((short)2, "password");
13288
 
13289
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13290
 
13291
      static {
13292
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13293
          byName.put(field.getFieldName(), field);
13294
        }
13295
      }
13296
 
13297
      /**
13298
       * Find the _Fields constant that matches fieldId, or null if its not found.
13299
       */
13300
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13301
        switch(fieldId) {
13302
          case 1: // USERNAME
13303
            return USERNAME;
13304
          case 2: // PASSWORD
13305
            return PASSWORD;
13306
          default:
13307
            return null;
13308
        }
1611 ankur.sing 13309
      }
13310
 
13311
      /**
13312
       * Find the _Fields constant that matches fieldId, throwing an exception
13313
       * if it is not found.
13314
       */
13315
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13316
        _Fields fields = findByThriftId(fieldId);
13317
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13318
        return fields;
13319
      }
13320
 
13321
      /**
13322
       * Find the _Fields constant that matches name, or null if its not found.
13323
       */
13324
      public static _Fields findByName(String name) {
13325
        return byName.get(name);
13326
      }
13327
 
13328
      private final short _thriftId;
13329
      private final String _fieldName;
13330
 
13331
      _Fields(short thriftId, String fieldName) {
13332
        _thriftId = thriftId;
13333
        _fieldName = fieldName;
13334
      }
13335
 
13336
      public short getThriftFieldId() {
13337
        return _thriftId;
13338
      }
13339
 
13340
      public String getFieldName() {
13341
        return _fieldName;
13342
      }
13343
    }
13344
 
13345
    // isset id assignments
13346
 
3430 rajveer 13347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13348
    static {
3430 rajveer 13349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13350
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13352
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13356
    }
13357
 
13358
    public authenticateStatisticsUser_args() {
13359
    }
13360
 
13361
    public authenticateStatisticsUser_args(
13362
      String username,
13363
      String password)
13364
    {
13365
      this();
13366
      this.username = username;
13367
      this.password = password;
13368
    }
13369
 
13370
    /**
13371
     * Performs a deep copy on <i>other</i>.
13372
     */
13373
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13374
      if (other.isSetUsername()) {
13375
        this.username = other.username;
13376
      }
13377
      if (other.isSetPassword()) {
13378
        this.password = other.password;
13379
      }
13380
    }
13381
 
13382
    public authenticateStatisticsUser_args deepCopy() {
13383
      return new authenticateStatisticsUser_args(this);
13384
    }
13385
 
3430 rajveer 13386
    @Override
13387
    public void clear() {
13388
      this.username = null;
13389
      this.password = null;
1611 ankur.sing 13390
    }
13391
 
13392
    public String getUsername() {
13393
      return this.username;
13394
    }
13395
 
3430 rajveer 13396
    public void setUsername(String username) {
1611 ankur.sing 13397
      this.username = username;
13398
    }
13399
 
13400
    public void unsetUsername() {
13401
      this.username = null;
13402
    }
13403
 
3430 rajveer 13404
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13405
    public boolean isSetUsername() {
13406
      return this.username != null;
13407
    }
13408
 
13409
    public void setUsernameIsSet(boolean value) {
13410
      if (!value) {
13411
        this.username = null;
13412
      }
13413
    }
13414
 
13415
    public String getPassword() {
13416
      return this.password;
13417
    }
13418
 
3430 rajveer 13419
    public void setPassword(String password) {
1611 ankur.sing 13420
      this.password = password;
13421
    }
13422
 
13423
    public void unsetPassword() {
13424
      this.password = null;
13425
    }
13426
 
3430 rajveer 13427
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13428
    public boolean isSetPassword() {
13429
      return this.password != null;
13430
    }
13431
 
13432
    public void setPasswordIsSet(boolean value) {
13433
      if (!value) {
13434
        this.password = null;
13435
      }
13436
    }
13437
 
13438
    public void setFieldValue(_Fields field, Object value) {
13439
      switch (field) {
13440
      case USERNAME:
13441
        if (value == null) {
13442
          unsetUsername();
13443
        } else {
13444
          setUsername((String)value);
13445
        }
13446
        break;
13447
 
13448
      case PASSWORD:
13449
        if (value == null) {
13450
          unsetPassword();
13451
        } else {
13452
          setPassword((String)value);
13453
        }
13454
        break;
13455
 
13456
      }
13457
    }
13458
 
13459
    public Object getFieldValue(_Fields field) {
13460
      switch (field) {
13461
      case USERNAME:
13462
        return getUsername();
13463
 
13464
      case PASSWORD:
13465
        return getPassword();
13466
 
13467
      }
13468
      throw new IllegalStateException();
13469
    }
13470
 
3430 rajveer 13471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13472
    public boolean isSet(_Fields field) {
13473
      if (field == null) {
13474
        throw new IllegalArgumentException();
13475
      }
1611 ankur.sing 13476
 
13477
      switch (field) {
13478
      case USERNAME:
13479
        return isSetUsername();
13480
      case PASSWORD:
13481
        return isSetPassword();
13482
      }
13483
      throw new IllegalStateException();
13484
    }
13485
 
13486
    @Override
13487
    public boolean equals(Object that) {
13488
      if (that == null)
13489
        return false;
13490
      if (that instanceof authenticateStatisticsUser_args)
13491
        return this.equals((authenticateStatisticsUser_args)that);
13492
      return false;
13493
    }
13494
 
13495
    public boolean equals(authenticateStatisticsUser_args that) {
13496
      if (that == null)
13497
        return false;
13498
 
13499
      boolean this_present_username = true && this.isSetUsername();
13500
      boolean that_present_username = true && that.isSetUsername();
13501
      if (this_present_username || that_present_username) {
13502
        if (!(this_present_username && that_present_username))
13503
          return false;
13504
        if (!this.username.equals(that.username))
13505
          return false;
13506
      }
13507
 
13508
      boolean this_present_password = true && this.isSetPassword();
13509
      boolean that_present_password = true && that.isSetPassword();
13510
      if (this_present_password || that_present_password) {
13511
        if (!(this_present_password && that_present_password))
13512
          return false;
13513
        if (!this.password.equals(that.password))
13514
          return false;
13515
      }
13516
 
13517
      return true;
13518
    }
13519
 
13520
    @Override
13521
    public int hashCode() {
13522
      return 0;
13523
    }
13524
 
13525
    public int compareTo(authenticateStatisticsUser_args other) {
13526
      if (!getClass().equals(other.getClass())) {
13527
        return getClass().getName().compareTo(other.getClass().getName());
13528
      }
13529
 
13530
      int lastComparison = 0;
13531
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13532
 
3430 rajveer 13533
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13534
      if (lastComparison != 0) {
13535
        return lastComparison;
13536
      }
3430 rajveer 13537
      if (isSetUsername()) {
13538
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13539
        if (lastComparison != 0) {
13540
          return lastComparison;
13541
        }
1611 ankur.sing 13542
      }
3430 rajveer 13543
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13544
      if (lastComparison != 0) {
13545
        return lastComparison;
13546
      }
3430 rajveer 13547
      if (isSetPassword()) {
13548
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13549
        if (lastComparison != 0) {
13550
          return lastComparison;
13551
        }
1611 ankur.sing 13552
      }
13553
      return 0;
13554
    }
13555
 
3430 rajveer 13556
    public _Fields fieldForId(int fieldId) {
13557
      return _Fields.findByThriftId(fieldId);
13558
    }
13559
 
13560
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13561
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13562
      iprot.readStructBegin();
13563
      while (true)
13564
      {
13565
        field = iprot.readFieldBegin();
3430 rajveer 13566
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13567
          break;
13568
        }
3430 rajveer 13569
        switch (field.id) {
13570
          case 1: // USERNAME
13571
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13572
              this.username = iprot.readString();
13573
            } else { 
13574
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13575
            }
13576
            break;
13577
          case 2: // PASSWORD
13578
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13579
              this.password = iprot.readString();
13580
            } else { 
13581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13582
            }
13583
            break;
13584
          default:
13585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13586
        }
3430 rajveer 13587
        iprot.readFieldEnd();
1611 ankur.sing 13588
      }
13589
      iprot.readStructEnd();
13590
      validate();
13591
    }
13592
 
3430 rajveer 13593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13594
      validate();
13595
 
13596
      oprot.writeStructBegin(STRUCT_DESC);
13597
      if (this.username != null) {
13598
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13599
        oprot.writeString(this.username);
13600
        oprot.writeFieldEnd();
13601
      }
13602
      if (this.password != null) {
13603
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13604
        oprot.writeString(this.password);
13605
        oprot.writeFieldEnd();
13606
      }
13607
      oprot.writeFieldStop();
13608
      oprot.writeStructEnd();
13609
    }
13610
 
13611
    @Override
13612
    public String toString() {
13613
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13614
      boolean first = true;
13615
 
13616
      sb.append("username:");
13617
      if (this.username == null) {
13618
        sb.append("null");
13619
      } else {
13620
        sb.append(this.username);
13621
      }
13622
      first = false;
13623
      if (!first) sb.append(", ");
13624
      sb.append("password:");
13625
      if (this.password == null) {
13626
        sb.append("null");
13627
      } else {
13628
        sb.append(this.password);
13629
      }
13630
      first = false;
13631
      sb.append(")");
13632
      return sb.toString();
13633
    }
13634
 
3430 rajveer 13635
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13636
      // check for required fields
13637
    }
13638
 
3430 rajveer 13639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13640
      try {
13641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13642
      } catch (org.apache.thrift.TException te) {
13643
        throw new java.io.IOException(te);
13644
      }
13645
    }
13646
 
13647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13648
      try {
13649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13650
      } catch (org.apache.thrift.TException te) {
13651
        throw new java.io.IOException(te);
13652
      }
13653
    }
13654
 
1611 ankur.sing 13655
  }
13656
 
3430 rajveer 13657
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13659
 
3430 rajveer 13660
    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);
13661
    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 13662
 
3430 rajveer 13663
    private StatisticsUser success; // required
13664
    private HelperServiceException hse; // required
1611 ankur.sing 13665
 
13666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13668
      SUCCESS((short)0, "success"),
13669
      HSE((short)1, "hse");
13670
 
13671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13672
 
13673
      static {
13674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13675
          byName.put(field.getFieldName(), field);
13676
        }
13677
      }
13678
 
13679
      /**
13680
       * Find the _Fields constant that matches fieldId, or null if its not found.
13681
       */
13682
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13683
        switch(fieldId) {
13684
          case 0: // SUCCESS
13685
            return SUCCESS;
13686
          case 1: // HSE
13687
            return HSE;
13688
          default:
13689
            return null;
13690
        }
1611 ankur.sing 13691
      }
13692
 
13693
      /**
13694
       * Find the _Fields constant that matches fieldId, throwing an exception
13695
       * if it is not found.
13696
       */
13697
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13698
        _Fields fields = findByThriftId(fieldId);
13699
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13700
        return fields;
13701
      }
13702
 
13703
      /**
13704
       * Find the _Fields constant that matches name, or null if its not found.
13705
       */
13706
      public static _Fields findByName(String name) {
13707
        return byName.get(name);
13708
      }
13709
 
13710
      private final short _thriftId;
13711
      private final String _fieldName;
13712
 
13713
      _Fields(short thriftId, String fieldName) {
13714
        _thriftId = thriftId;
13715
        _fieldName = fieldName;
13716
      }
13717
 
13718
      public short getThriftFieldId() {
13719
        return _thriftId;
13720
      }
13721
 
13722
      public String getFieldName() {
13723
        return _fieldName;
13724
      }
13725
    }
13726
 
13727
    // isset id assignments
13728
 
3430 rajveer 13729
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13730
    static {
3430 rajveer 13731
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13732
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13733
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13734
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13738
    }
13739
 
13740
    public authenticateStatisticsUser_result() {
13741
    }
13742
 
13743
    public authenticateStatisticsUser_result(
13744
      StatisticsUser success,
13745
      HelperServiceException hse)
13746
    {
13747
      this();
13748
      this.success = success;
13749
      this.hse = hse;
13750
    }
13751
 
13752
    /**
13753
     * Performs a deep copy on <i>other</i>.
13754
     */
13755
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13756
      if (other.isSetSuccess()) {
13757
        this.success = new StatisticsUser(other.success);
13758
      }
13759
      if (other.isSetHse()) {
13760
        this.hse = new HelperServiceException(other.hse);
13761
      }
13762
    }
13763
 
13764
    public authenticateStatisticsUser_result deepCopy() {
13765
      return new authenticateStatisticsUser_result(this);
13766
    }
13767
 
3430 rajveer 13768
    @Override
13769
    public void clear() {
13770
      this.success = null;
13771
      this.hse = null;
1611 ankur.sing 13772
    }
13773
 
13774
    public StatisticsUser getSuccess() {
13775
      return this.success;
13776
    }
13777
 
3430 rajveer 13778
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13779
      this.success = success;
13780
    }
13781
 
13782
    public void unsetSuccess() {
13783
      this.success = null;
13784
    }
13785
 
3430 rajveer 13786
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13787
    public boolean isSetSuccess() {
13788
      return this.success != null;
13789
    }
13790
 
13791
    public void setSuccessIsSet(boolean value) {
13792
      if (!value) {
13793
        this.success = null;
13794
      }
13795
    }
13796
 
13797
    public HelperServiceException getHse() {
13798
      return this.hse;
13799
    }
13800
 
3430 rajveer 13801
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13802
      this.hse = hse;
13803
    }
13804
 
13805
    public void unsetHse() {
13806
      this.hse = null;
13807
    }
13808
 
3430 rajveer 13809
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13810
    public boolean isSetHse() {
13811
      return this.hse != null;
13812
    }
13813
 
13814
    public void setHseIsSet(boolean value) {
13815
      if (!value) {
13816
        this.hse = null;
13817
      }
13818
    }
13819
 
13820
    public void setFieldValue(_Fields field, Object value) {
13821
      switch (field) {
13822
      case SUCCESS:
13823
        if (value == null) {
13824
          unsetSuccess();
13825
        } else {
13826
          setSuccess((StatisticsUser)value);
13827
        }
13828
        break;
13829
 
13830
      case HSE:
13831
        if (value == null) {
13832
          unsetHse();
13833
        } else {
13834
          setHse((HelperServiceException)value);
13835
        }
13836
        break;
13837
 
13838
      }
13839
    }
13840
 
13841
    public Object getFieldValue(_Fields field) {
13842
      switch (field) {
13843
      case SUCCESS:
13844
        return getSuccess();
13845
 
13846
      case HSE:
13847
        return getHse();
13848
 
13849
      }
13850
      throw new IllegalStateException();
13851
    }
13852
 
3430 rajveer 13853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13854
    public boolean isSet(_Fields field) {
13855
      if (field == null) {
13856
        throw new IllegalArgumentException();
13857
      }
1611 ankur.sing 13858
 
13859
      switch (field) {
13860
      case SUCCESS:
13861
        return isSetSuccess();
13862
      case HSE:
13863
        return isSetHse();
13864
      }
13865
      throw new IllegalStateException();
13866
    }
13867
 
13868
    @Override
13869
    public boolean equals(Object that) {
13870
      if (that == null)
13871
        return false;
13872
      if (that instanceof authenticateStatisticsUser_result)
13873
        return this.equals((authenticateStatisticsUser_result)that);
13874
      return false;
13875
    }
13876
 
13877
    public boolean equals(authenticateStatisticsUser_result that) {
13878
      if (that == null)
13879
        return false;
13880
 
13881
      boolean this_present_success = true && this.isSetSuccess();
13882
      boolean that_present_success = true && that.isSetSuccess();
13883
      if (this_present_success || that_present_success) {
13884
        if (!(this_present_success && that_present_success))
13885
          return false;
13886
        if (!this.success.equals(that.success))
13887
          return false;
13888
      }
13889
 
13890
      boolean this_present_hse = true && this.isSetHse();
13891
      boolean that_present_hse = true && that.isSetHse();
13892
      if (this_present_hse || that_present_hse) {
13893
        if (!(this_present_hse && that_present_hse))
13894
          return false;
13895
        if (!this.hse.equals(that.hse))
13896
          return false;
13897
      }
13898
 
13899
      return true;
13900
    }
13901
 
13902
    @Override
13903
    public int hashCode() {
13904
      return 0;
13905
    }
13906
 
13907
    public int compareTo(authenticateStatisticsUser_result other) {
13908
      if (!getClass().equals(other.getClass())) {
13909
        return getClass().getName().compareTo(other.getClass().getName());
13910
      }
13911
 
13912
      int lastComparison = 0;
13913
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13914
 
3430 rajveer 13915
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13916
      if (lastComparison != 0) {
13917
        return lastComparison;
13918
      }
3430 rajveer 13919
      if (isSetSuccess()) {
13920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13921
        if (lastComparison != 0) {
13922
          return lastComparison;
13923
        }
1611 ankur.sing 13924
      }
3430 rajveer 13925
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13926
      if (lastComparison != 0) {
13927
        return lastComparison;
13928
      }
3430 rajveer 13929
      if (isSetHse()) {
13930
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13931
        if (lastComparison != 0) {
13932
          return lastComparison;
13933
        }
1611 ankur.sing 13934
      }
13935
      return 0;
13936
    }
13937
 
3430 rajveer 13938
    public _Fields fieldForId(int fieldId) {
13939
      return _Fields.findByThriftId(fieldId);
13940
    }
13941
 
13942
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13943
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13944
      iprot.readStructBegin();
13945
      while (true)
13946
      {
13947
        field = iprot.readFieldBegin();
3430 rajveer 13948
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13949
          break;
13950
        }
3430 rajveer 13951
        switch (field.id) {
13952
          case 0: // SUCCESS
13953
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13954
              this.success = new StatisticsUser();
13955
              this.success.read(iprot);
13956
            } else { 
13957
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13958
            }
13959
            break;
13960
          case 1: // HSE
13961
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13962
              this.hse = new HelperServiceException();
13963
              this.hse.read(iprot);
13964
            } else { 
13965
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13966
            }
13967
            break;
13968
          default:
13969
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13970
        }
3430 rajveer 13971
        iprot.readFieldEnd();
1611 ankur.sing 13972
      }
13973
      iprot.readStructEnd();
13974
      validate();
13975
    }
13976
 
3430 rajveer 13977
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13978
      oprot.writeStructBegin(STRUCT_DESC);
13979
 
13980
      if (this.isSetSuccess()) {
13981
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13982
        this.success.write(oprot);
13983
        oprot.writeFieldEnd();
13984
      } else if (this.isSetHse()) {
13985
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13986
        this.hse.write(oprot);
13987
        oprot.writeFieldEnd();
13988
      }
13989
      oprot.writeFieldStop();
13990
      oprot.writeStructEnd();
13991
    }
13992
 
13993
    @Override
13994
    public String toString() {
13995
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13996
      boolean first = true;
13997
 
13998
      sb.append("success:");
13999
      if (this.success == null) {
14000
        sb.append("null");
14001
      } else {
14002
        sb.append(this.success);
14003
      }
14004
      first = false;
14005
      if (!first) sb.append(", ");
14006
      sb.append("hse:");
14007
      if (this.hse == null) {
14008
        sb.append("null");
14009
      } else {
14010
        sb.append(this.hse);
14011
      }
14012
      first = false;
14013
      sb.append(")");
14014
      return sb.toString();
14015
    }
14016
 
3430 rajveer 14017
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14018
      // check for required fields
14019
    }
14020
 
3430 rajveer 14021
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14022
      try {
14023
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14024
      } catch (org.apache.thrift.TException te) {
14025
        throw new java.io.IOException(te);
14026
      }
14027
    }
14028
 
14029
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14030
      try {
14031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14032
      } catch (org.apache.thrift.TException te) {
14033
        throw new java.io.IOException(te);
14034
      }
14035
    }
14036
 
1611 ankur.sing 14037
  }
14038
 
3430 rajveer 14039
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
14040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 14041
 
3430 rajveer 14042
    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);
14043
    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 14044
 
3430 rajveer 14045
    private String username; // required
14046
    private String password; // required
1891 ankur.sing 14047
 
14048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14050
      USERNAME((short)1, "username"),
14051
      PASSWORD((short)2, "password");
14052
 
14053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14054
 
14055
      static {
14056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14057
          byName.put(field.getFieldName(), field);
14058
        }
14059
      }
14060
 
14061
      /**
14062
       * Find the _Fields constant that matches fieldId, or null if its not found.
14063
       */
14064
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14065
        switch(fieldId) {
14066
          case 1: // USERNAME
14067
            return USERNAME;
14068
          case 2: // PASSWORD
14069
            return PASSWORD;
14070
          default:
14071
            return null;
14072
        }
1891 ankur.sing 14073
      }
14074
 
14075
      /**
14076
       * Find the _Fields constant that matches fieldId, throwing an exception
14077
       * if it is not found.
14078
       */
14079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14080
        _Fields fields = findByThriftId(fieldId);
14081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14082
        return fields;
14083
      }
14084
 
14085
      /**
14086
       * Find the _Fields constant that matches name, or null if its not found.
14087
       */
14088
      public static _Fields findByName(String name) {
14089
        return byName.get(name);
14090
      }
14091
 
14092
      private final short _thriftId;
14093
      private final String _fieldName;
14094
 
14095
      _Fields(short thriftId, String fieldName) {
14096
        _thriftId = thriftId;
14097
        _fieldName = fieldName;
14098
      }
14099
 
14100
      public short getThriftFieldId() {
14101
        return _thriftId;
14102
      }
14103
 
14104
      public String getFieldName() {
14105
        return _fieldName;
14106
      }
14107
    }
14108
 
14109
    // isset id assignments
14110
 
3430 rajveer 14111
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14112
    static {
3430 rajveer 14113
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14114
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14115
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14116
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 14120
    }
14121
 
14122
    public authenticateReportUser_args() {
14123
    }
14124
 
14125
    public authenticateReportUser_args(
14126
      String username,
14127
      String password)
14128
    {
14129
      this();
14130
      this.username = username;
14131
      this.password = password;
14132
    }
14133
 
14134
    /**
14135
     * Performs a deep copy on <i>other</i>.
14136
     */
14137
    public authenticateReportUser_args(authenticateReportUser_args other) {
14138
      if (other.isSetUsername()) {
14139
        this.username = other.username;
14140
      }
14141
      if (other.isSetPassword()) {
14142
        this.password = other.password;
14143
      }
14144
    }
14145
 
14146
    public authenticateReportUser_args deepCopy() {
14147
      return new authenticateReportUser_args(this);
14148
    }
14149
 
3430 rajveer 14150
    @Override
14151
    public void clear() {
14152
      this.username = null;
14153
      this.password = null;
1891 ankur.sing 14154
    }
14155
 
14156
    public String getUsername() {
14157
      return this.username;
14158
    }
14159
 
3430 rajveer 14160
    public void setUsername(String username) {
1891 ankur.sing 14161
      this.username = username;
14162
    }
14163
 
14164
    public void unsetUsername() {
14165
      this.username = null;
14166
    }
14167
 
3430 rajveer 14168
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14169
    public boolean isSetUsername() {
14170
      return this.username != null;
14171
    }
14172
 
14173
    public void setUsernameIsSet(boolean value) {
14174
      if (!value) {
14175
        this.username = null;
14176
      }
14177
    }
14178
 
14179
    public String getPassword() {
14180
      return this.password;
14181
    }
14182
 
3430 rajveer 14183
    public void setPassword(String password) {
1891 ankur.sing 14184
      this.password = password;
14185
    }
14186
 
14187
    public void unsetPassword() {
14188
      this.password = null;
14189
    }
14190
 
3430 rajveer 14191
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14192
    public boolean isSetPassword() {
14193
      return this.password != null;
14194
    }
14195
 
14196
    public void setPasswordIsSet(boolean value) {
14197
      if (!value) {
14198
        this.password = null;
14199
      }
14200
    }
14201
 
14202
    public void setFieldValue(_Fields field, Object value) {
14203
      switch (field) {
14204
      case USERNAME:
14205
        if (value == null) {
14206
          unsetUsername();
14207
        } else {
14208
          setUsername((String)value);
14209
        }
14210
        break;
14211
 
14212
      case PASSWORD:
14213
        if (value == null) {
14214
          unsetPassword();
14215
        } else {
14216
          setPassword((String)value);
14217
        }
14218
        break;
14219
 
14220
      }
14221
    }
14222
 
14223
    public Object getFieldValue(_Fields field) {
14224
      switch (field) {
14225
      case USERNAME:
14226
        return getUsername();
14227
 
14228
      case PASSWORD:
14229
        return getPassword();
14230
 
14231
      }
14232
      throw new IllegalStateException();
14233
    }
14234
 
3430 rajveer 14235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14236
    public boolean isSet(_Fields field) {
14237
      if (field == null) {
14238
        throw new IllegalArgumentException();
14239
      }
1891 ankur.sing 14240
 
14241
      switch (field) {
14242
      case USERNAME:
14243
        return isSetUsername();
14244
      case PASSWORD:
14245
        return isSetPassword();
14246
      }
14247
      throw new IllegalStateException();
14248
    }
14249
 
14250
    @Override
14251
    public boolean equals(Object that) {
14252
      if (that == null)
14253
        return false;
14254
      if (that instanceof authenticateReportUser_args)
14255
        return this.equals((authenticateReportUser_args)that);
14256
      return false;
14257
    }
14258
 
14259
    public boolean equals(authenticateReportUser_args that) {
14260
      if (that == null)
14261
        return false;
14262
 
14263
      boolean this_present_username = true && this.isSetUsername();
14264
      boolean that_present_username = true && that.isSetUsername();
14265
      if (this_present_username || that_present_username) {
14266
        if (!(this_present_username && that_present_username))
14267
          return false;
14268
        if (!this.username.equals(that.username))
14269
          return false;
14270
      }
14271
 
14272
      boolean this_present_password = true && this.isSetPassword();
14273
      boolean that_present_password = true && that.isSetPassword();
14274
      if (this_present_password || that_present_password) {
14275
        if (!(this_present_password && that_present_password))
14276
          return false;
14277
        if (!this.password.equals(that.password))
14278
          return false;
14279
      }
14280
 
14281
      return true;
14282
    }
14283
 
14284
    @Override
14285
    public int hashCode() {
14286
      return 0;
14287
    }
14288
 
14289
    public int compareTo(authenticateReportUser_args other) {
14290
      if (!getClass().equals(other.getClass())) {
14291
        return getClass().getName().compareTo(other.getClass().getName());
14292
      }
14293
 
14294
      int lastComparison = 0;
14295
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14296
 
3430 rajveer 14297
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14298
      if (lastComparison != 0) {
14299
        return lastComparison;
14300
      }
3430 rajveer 14301
      if (isSetUsername()) {
14302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14303
        if (lastComparison != 0) {
14304
          return lastComparison;
14305
        }
1891 ankur.sing 14306
      }
3430 rajveer 14307
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14308
      if (lastComparison != 0) {
14309
        return lastComparison;
14310
      }
3430 rajveer 14311
      if (isSetPassword()) {
14312
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14313
        if (lastComparison != 0) {
14314
          return lastComparison;
14315
        }
1891 ankur.sing 14316
      }
14317
      return 0;
14318
    }
14319
 
3430 rajveer 14320
    public _Fields fieldForId(int fieldId) {
14321
      return _Fields.findByThriftId(fieldId);
14322
    }
14323
 
14324
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14325
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14326
      iprot.readStructBegin();
14327
      while (true)
14328
      {
14329
        field = iprot.readFieldBegin();
3430 rajveer 14330
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14331
          break;
14332
        }
3430 rajveer 14333
        switch (field.id) {
14334
          case 1: // USERNAME
14335
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14336
              this.username = iprot.readString();
14337
            } else { 
14338
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14339
            }
14340
            break;
14341
          case 2: // PASSWORD
14342
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14343
              this.password = iprot.readString();
14344
            } else { 
14345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14346
            }
14347
            break;
14348
          default:
14349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14350
        }
3430 rajveer 14351
        iprot.readFieldEnd();
1891 ankur.sing 14352
      }
14353
      iprot.readStructEnd();
14354
      validate();
14355
    }
14356
 
3430 rajveer 14357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14358
      validate();
14359
 
14360
      oprot.writeStructBegin(STRUCT_DESC);
14361
      if (this.username != null) {
14362
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14363
        oprot.writeString(this.username);
14364
        oprot.writeFieldEnd();
14365
      }
14366
      if (this.password != null) {
14367
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14368
        oprot.writeString(this.password);
14369
        oprot.writeFieldEnd();
14370
      }
14371
      oprot.writeFieldStop();
14372
      oprot.writeStructEnd();
14373
    }
14374
 
14375
    @Override
14376
    public String toString() {
14377
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14378
      boolean first = true;
14379
 
14380
      sb.append("username:");
14381
      if (this.username == null) {
14382
        sb.append("null");
14383
      } else {
14384
        sb.append(this.username);
14385
      }
14386
      first = false;
14387
      if (!first) sb.append(", ");
14388
      sb.append("password:");
14389
      if (this.password == null) {
14390
        sb.append("null");
14391
      } else {
14392
        sb.append(this.password);
14393
      }
14394
      first = false;
14395
      sb.append(")");
14396
      return sb.toString();
14397
    }
14398
 
3430 rajveer 14399
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14400
      // check for required fields
14401
    }
14402
 
3430 rajveer 14403
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14404
      try {
14405
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14406
      } catch (org.apache.thrift.TException te) {
14407
        throw new java.io.IOException(te);
14408
      }
14409
    }
14410
 
14411
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14412
      try {
14413
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14414
      } catch (org.apache.thrift.TException te) {
14415
        throw new java.io.IOException(te);
14416
      }
14417
    }
14418
 
1891 ankur.sing 14419
  }
14420
 
3430 rajveer 14421
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14422
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14423
 
3430 rajveer 14424
    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);
14425
    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 14426
 
3430 rajveer 14427
    private ReportUser success; // required
14428
    private HelperServiceException hse; // required
1891 ankur.sing 14429
 
14430
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14431
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14432
      SUCCESS((short)0, "success"),
14433
      HSE((short)1, "hse");
14434
 
14435
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14436
 
14437
      static {
14438
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14439
          byName.put(field.getFieldName(), field);
14440
        }
14441
      }
14442
 
14443
      /**
14444
       * Find the _Fields constant that matches fieldId, or null if its not found.
14445
       */
14446
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14447
        switch(fieldId) {
14448
          case 0: // SUCCESS
14449
            return SUCCESS;
14450
          case 1: // HSE
14451
            return HSE;
14452
          default:
14453
            return null;
14454
        }
1891 ankur.sing 14455
      }
14456
 
14457
      /**
14458
       * Find the _Fields constant that matches fieldId, throwing an exception
14459
       * if it is not found.
14460
       */
14461
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14462
        _Fields fields = findByThriftId(fieldId);
14463
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14464
        return fields;
14465
      }
14466
 
14467
      /**
14468
       * Find the _Fields constant that matches name, or null if its not found.
14469
       */
14470
      public static _Fields findByName(String name) {
14471
        return byName.get(name);
14472
      }
14473
 
14474
      private final short _thriftId;
14475
      private final String _fieldName;
14476
 
14477
      _Fields(short thriftId, String fieldName) {
14478
        _thriftId = thriftId;
14479
        _fieldName = fieldName;
14480
      }
14481
 
14482
      public short getThriftFieldId() {
14483
        return _thriftId;
14484
      }
14485
 
14486
      public String getFieldName() {
14487
        return _fieldName;
14488
      }
14489
    }
14490
 
14491
    // isset id assignments
14492
 
3430 rajveer 14493
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14494
    static {
3430 rajveer 14495
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14496
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14497
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14498
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14499
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14500
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14501
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14502
    }
14503
 
14504
    public authenticateReportUser_result() {
14505
    }
14506
 
14507
    public authenticateReportUser_result(
14508
      ReportUser success,
14509
      HelperServiceException hse)
14510
    {
14511
      this();
14512
      this.success = success;
14513
      this.hse = hse;
14514
    }
14515
 
14516
    /**
14517
     * Performs a deep copy on <i>other</i>.
14518
     */
14519
    public authenticateReportUser_result(authenticateReportUser_result other) {
14520
      if (other.isSetSuccess()) {
14521
        this.success = new ReportUser(other.success);
14522
      }
14523
      if (other.isSetHse()) {
14524
        this.hse = new HelperServiceException(other.hse);
14525
      }
14526
    }
14527
 
14528
    public authenticateReportUser_result deepCopy() {
14529
      return new authenticateReportUser_result(this);
14530
    }
14531
 
3430 rajveer 14532
    @Override
14533
    public void clear() {
14534
      this.success = null;
14535
      this.hse = null;
1891 ankur.sing 14536
    }
14537
 
14538
    public ReportUser getSuccess() {
14539
      return this.success;
14540
    }
14541
 
3430 rajveer 14542
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14543
      this.success = success;
14544
    }
14545
 
14546
    public void unsetSuccess() {
14547
      this.success = null;
14548
    }
14549
 
3430 rajveer 14550
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14551
    public boolean isSetSuccess() {
14552
      return this.success != null;
14553
    }
14554
 
14555
    public void setSuccessIsSet(boolean value) {
14556
      if (!value) {
14557
        this.success = null;
14558
      }
14559
    }
14560
 
14561
    public HelperServiceException getHse() {
14562
      return this.hse;
14563
    }
14564
 
3430 rajveer 14565
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14566
      this.hse = hse;
14567
    }
14568
 
14569
    public void unsetHse() {
14570
      this.hse = null;
14571
    }
14572
 
3430 rajveer 14573
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14574
    public boolean isSetHse() {
14575
      return this.hse != null;
14576
    }
14577
 
14578
    public void setHseIsSet(boolean value) {
14579
      if (!value) {
14580
        this.hse = null;
14581
      }
14582
    }
14583
 
14584
    public void setFieldValue(_Fields field, Object value) {
14585
      switch (field) {
14586
      case SUCCESS:
14587
        if (value == null) {
14588
          unsetSuccess();
14589
        } else {
14590
          setSuccess((ReportUser)value);
14591
        }
14592
        break;
14593
 
14594
      case HSE:
14595
        if (value == null) {
14596
          unsetHse();
14597
        } else {
14598
          setHse((HelperServiceException)value);
14599
        }
14600
        break;
14601
 
14602
      }
14603
    }
14604
 
14605
    public Object getFieldValue(_Fields field) {
14606
      switch (field) {
14607
      case SUCCESS:
14608
        return getSuccess();
14609
 
14610
      case HSE:
14611
        return getHse();
14612
 
14613
      }
14614
      throw new IllegalStateException();
14615
    }
14616
 
3430 rajveer 14617
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14618
    public boolean isSet(_Fields field) {
14619
      if (field == null) {
14620
        throw new IllegalArgumentException();
14621
      }
1891 ankur.sing 14622
 
14623
      switch (field) {
14624
      case SUCCESS:
14625
        return isSetSuccess();
14626
      case HSE:
14627
        return isSetHse();
14628
      }
14629
      throw new IllegalStateException();
14630
    }
14631
 
14632
    @Override
14633
    public boolean equals(Object that) {
14634
      if (that == null)
14635
        return false;
14636
      if (that instanceof authenticateReportUser_result)
14637
        return this.equals((authenticateReportUser_result)that);
14638
      return false;
14639
    }
14640
 
14641
    public boolean equals(authenticateReportUser_result that) {
14642
      if (that == null)
14643
        return false;
14644
 
14645
      boolean this_present_success = true && this.isSetSuccess();
14646
      boolean that_present_success = true && that.isSetSuccess();
14647
      if (this_present_success || that_present_success) {
14648
        if (!(this_present_success && that_present_success))
14649
          return false;
14650
        if (!this.success.equals(that.success))
14651
          return false;
14652
      }
14653
 
14654
      boolean this_present_hse = true && this.isSetHse();
14655
      boolean that_present_hse = true && that.isSetHse();
14656
      if (this_present_hse || that_present_hse) {
14657
        if (!(this_present_hse && that_present_hse))
14658
          return false;
14659
        if (!this.hse.equals(that.hse))
14660
          return false;
14661
      }
14662
 
14663
      return true;
14664
    }
14665
 
14666
    @Override
14667
    public int hashCode() {
14668
      return 0;
14669
    }
14670
 
14671
    public int compareTo(authenticateReportUser_result other) {
14672
      if (!getClass().equals(other.getClass())) {
14673
        return getClass().getName().compareTo(other.getClass().getName());
14674
      }
14675
 
14676
      int lastComparison = 0;
14677
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14678
 
3430 rajveer 14679
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14680
      if (lastComparison != 0) {
14681
        return lastComparison;
14682
      }
3430 rajveer 14683
      if (isSetSuccess()) {
14684
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14685
        if (lastComparison != 0) {
14686
          return lastComparison;
14687
        }
1891 ankur.sing 14688
      }
3430 rajveer 14689
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14690
      if (lastComparison != 0) {
14691
        return lastComparison;
14692
      }
3430 rajveer 14693
      if (isSetHse()) {
14694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14695
        if (lastComparison != 0) {
14696
          return lastComparison;
14697
        }
1891 ankur.sing 14698
      }
14699
      return 0;
14700
    }
14701
 
3430 rajveer 14702
    public _Fields fieldForId(int fieldId) {
14703
      return _Fields.findByThriftId(fieldId);
14704
    }
14705
 
14706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14707
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14708
      iprot.readStructBegin();
14709
      while (true)
14710
      {
14711
        field = iprot.readFieldBegin();
3430 rajveer 14712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14713
          break;
14714
        }
3430 rajveer 14715
        switch (field.id) {
14716
          case 0: // SUCCESS
14717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14718
              this.success = new ReportUser();
14719
              this.success.read(iprot);
14720
            } else { 
14721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14722
            }
14723
            break;
14724
          case 1: // HSE
14725
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14726
              this.hse = new HelperServiceException();
14727
              this.hse.read(iprot);
14728
            } else { 
14729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14730
            }
14731
            break;
14732
          default:
14733
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14734
        }
3430 rajveer 14735
        iprot.readFieldEnd();
1891 ankur.sing 14736
      }
14737
      iprot.readStructEnd();
14738
      validate();
14739
    }
14740
 
3430 rajveer 14741
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14742
      oprot.writeStructBegin(STRUCT_DESC);
14743
 
14744
      if (this.isSetSuccess()) {
14745
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14746
        this.success.write(oprot);
14747
        oprot.writeFieldEnd();
14748
      } else if (this.isSetHse()) {
14749
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14750
        this.hse.write(oprot);
14751
        oprot.writeFieldEnd();
14752
      }
14753
      oprot.writeFieldStop();
14754
      oprot.writeStructEnd();
14755
    }
14756
 
14757
    @Override
14758
    public String toString() {
14759
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14760
      boolean first = true;
14761
 
14762
      sb.append("success:");
14763
      if (this.success == null) {
14764
        sb.append("null");
14765
      } else {
14766
        sb.append(this.success);
14767
      }
14768
      first = false;
14769
      if (!first) sb.append(", ");
14770
      sb.append("hse:");
14771
      if (this.hse == null) {
14772
        sb.append("null");
14773
      } else {
14774
        sb.append(this.hse);
14775
      }
14776
      first = false;
14777
      sb.append(")");
14778
      return sb.toString();
14779
    }
14780
 
3430 rajveer 14781
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14782
      // check for required fields
14783
    }
14784
 
3430 rajveer 14785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14786
      try {
14787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14788
      } catch (org.apache.thrift.TException te) {
14789
        throw new java.io.IOException(te);
14790
      }
14791
    }
14792
 
14793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14794
      try {
14795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14796
      } catch (org.apache.thrift.TException te) {
14797
        throw new java.io.IOException(te);
14798
      }
14799
    }
14800
 
1891 ankur.sing 14801
  }
14802
 
3430 rajveer 14803
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14805
 
3430 rajveer 14806
    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 14807
 
3430 rajveer 14808
    private long role; // required
1891 ankur.sing 14809
 
14810
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14811
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14812
      ROLE((short)1, "role");
14813
 
14814
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14815
 
14816
      static {
14817
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14818
          byName.put(field.getFieldName(), field);
14819
        }
14820
      }
14821
 
14822
      /**
14823
       * Find the _Fields constant that matches fieldId, or null if its not found.
14824
       */
14825
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14826
        switch(fieldId) {
14827
          case 1: // ROLE
14828
            return ROLE;
14829
          default:
14830
            return null;
14831
        }
1891 ankur.sing 14832
      }
14833
 
14834
      /**
14835
       * Find the _Fields constant that matches fieldId, throwing an exception
14836
       * if it is not found.
14837
       */
14838
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14839
        _Fields fields = findByThriftId(fieldId);
14840
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14841
        return fields;
14842
      }
14843
 
14844
      /**
14845
       * Find the _Fields constant that matches name, or null if its not found.
14846
       */
14847
      public static _Fields findByName(String name) {
14848
        return byName.get(name);
14849
      }
14850
 
14851
      private final short _thriftId;
14852
      private final String _fieldName;
14853
 
14854
      _Fields(short thriftId, String fieldName) {
14855
        _thriftId = thriftId;
14856
        _fieldName = fieldName;
14857
      }
14858
 
14859
      public short getThriftFieldId() {
14860
        return _thriftId;
14861
      }
14862
 
14863
      public String getFieldName() {
14864
        return _fieldName;
14865
      }
14866
    }
14867
 
14868
    // isset id assignments
14869
    private static final int __ROLE_ISSET_ID = 0;
14870
    private BitSet __isset_bit_vector = new BitSet(1);
14871
 
3430 rajveer 14872
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14873
    static {
3430 rajveer 14874
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14875
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14876
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14879
    }
14880
 
14881
    public getReports_args() {
14882
    }
14883
 
14884
    public getReports_args(
14885
      long role)
14886
    {
14887
      this();
14888
      this.role = role;
14889
      setRoleIsSet(true);
14890
    }
14891
 
14892
    /**
14893
     * Performs a deep copy on <i>other</i>.
14894
     */
14895
    public getReports_args(getReports_args other) {
14896
      __isset_bit_vector.clear();
14897
      __isset_bit_vector.or(other.__isset_bit_vector);
14898
      this.role = other.role;
14899
    }
14900
 
14901
    public getReports_args deepCopy() {
14902
      return new getReports_args(this);
14903
    }
14904
 
3430 rajveer 14905
    @Override
14906
    public void clear() {
14907
      setRoleIsSet(false);
14908
      this.role = 0;
1891 ankur.sing 14909
    }
14910
 
14911
    public long getRole() {
14912
      return this.role;
14913
    }
14914
 
3430 rajveer 14915
    public void setRole(long role) {
1891 ankur.sing 14916
      this.role = role;
14917
      setRoleIsSet(true);
14918
    }
14919
 
14920
    public void unsetRole() {
14921
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14922
    }
14923
 
3430 rajveer 14924
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14925
    public boolean isSetRole() {
14926
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14927
    }
14928
 
14929
    public void setRoleIsSet(boolean value) {
14930
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14931
    }
14932
 
14933
    public void setFieldValue(_Fields field, Object value) {
14934
      switch (field) {
14935
      case ROLE:
14936
        if (value == null) {
14937
          unsetRole();
14938
        } else {
14939
          setRole((Long)value);
14940
        }
14941
        break;
14942
 
14943
      }
14944
    }
14945
 
14946
    public Object getFieldValue(_Fields field) {
14947
      switch (field) {
14948
      case ROLE:
3430 rajveer 14949
        return Long.valueOf(getRole());
1891 ankur.sing 14950
 
14951
      }
14952
      throw new IllegalStateException();
14953
    }
14954
 
3430 rajveer 14955
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14956
    public boolean isSet(_Fields field) {
14957
      if (field == null) {
14958
        throw new IllegalArgumentException();
14959
      }
1891 ankur.sing 14960
 
14961
      switch (field) {
14962
      case ROLE:
14963
        return isSetRole();
14964
      }
14965
      throw new IllegalStateException();
14966
    }
14967
 
14968
    @Override
14969
    public boolean equals(Object that) {
14970
      if (that == null)
14971
        return false;
14972
      if (that instanceof getReports_args)
14973
        return this.equals((getReports_args)that);
14974
      return false;
14975
    }
14976
 
14977
    public boolean equals(getReports_args that) {
14978
      if (that == null)
14979
        return false;
14980
 
14981
      boolean this_present_role = true;
14982
      boolean that_present_role = true;
14983
      if (this_present_role || that_present_role) {
14984
        if (!(this_present_role && that_present_role))
14985
          return false;
14986
        if (this.role != that.role)
14987
          return false;
14988
      }
14989
 
14990
      return true;
14991
    }
14992
 
14993
    @Override
14994
    public int hashCode() {
14995
      return 0;
14996
    }
14997
 
14998
    public int compareTo(getReports_args other) {
14999
      if (!getClass().equals(other.getClass())) {
15000
        return getClass().getName().compareTo(other.getClass().getName());
15001
      }
15002
 
15003
      int lastComparison = 0;
15004
      getReports_args typedOther = (getReports_args)other;
15005
 
3430 rajveer 15006
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 15007
      if (lastComparison != 0) {
15008
        return lastComparison;
15009
      }
3430 rajveer 15010
      if (isSetRole()) {
15011
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15012
        if (lastComparison != 0) {
15013
          return lastComparison;
15014
        }
1891 ankur.sing 15015
      }
15016
      return 0;
15017
    }
15018
 
3430 rajveer 15019
    public _Fields fieldForId(int fieldId) {
15020
      return _Fields.findByThriftId(fieldId);
15021
    }
15022
 
15023
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15024
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15025
      iprot.readStructBegin();
15026
      while (true)
15027
      {
15028
        field = iprot.readFieldBegin();
3430 rajveer 15029
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15030
          break;
15031
        }
3430 rajveer 15032
        switch (field.id) {
15033
          case 1: // ROLE
15034
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15035
              this.role = iprot.readI64();
15036
              setRoleIsSet(true);
15037
            } else { 
15038
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15039
            }
15040
            break;
15041
          default:
15042
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15043
        }
3430 rajveer 15044
        iprot.readFieldEnd();
1891 ankur.sing 15045
      }
15046
      iprot.readStructEnd();
15047
      validate();
15048
    }
15049
 
3430 rajveer 15050
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15051
      validate();
15052
 
15053
      oprot.writeStructBegin(STRUCT_DESC);
15054
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15055
      oprot.writeI64(this.role);
15056
      oprot.writeFieldEnd();
15057
      oprot.writeFieldStop();
15058
      oprot.writeStructEnd();
15059
    }
15060
 
15061
    @Override
15062
    public String toString() {
15063
      StringBuilder sb = new StringBuilder("getReports_args(");
15064
      boolean first = true;
15065
 
15066
      sb.append("role:");
15067
      sb.append(this.role);
15068
      first = false;
15069
      sb.append(")");
15070
      return sb.toString();
15071
    }
15072
 
3430 rajveer 15073
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15074
      // check for required fields
15075
    }
15076
 
3430 rajveer 15077
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15078
      try {
15079
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15080
      } catch (org.apache.thrift.TException te) {
15081
        throw new java.io.IOException(te);
15082
      }
15083
    }
15084
 
15085
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15086
      try {
15087
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15088
        __isset_bit_vector = new BitSet(1);
15089
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15090
      } catch (org.apache.thrift.TException te) {
15091
        throw new java.io.IOException(te);
15092
      }
15093
    }
15094
 
1891 ankur.sing 15095
  }
15096
 
3430 rajveer 15097
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
15098
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 15099
 
3430 rajveer 15100
    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 15101
 
3430 rajveer 15102
    private List<Report> success; // required
1891 ankur.sing 15103
 
15104
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15105
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15106
      SUCCESS((short)0, "success");
15107
 
15108
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15109
 
15110
      static {
15111
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15112
          byName.put(field.getFieldName(), field);
15113
        }
15114
      }
15115
 
15116
      /**
15117
       * Find the _Fields constant that matches fieldId, or null if its not found.
15118
       */
15119
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15120
        switch(fieldId) {
15121
          case 0: // SUCCESS
15122
            return SUCCESS;
15123
          default:
15124
            return null;
15125
        }
1891 ankur.sing 15126
      }
15127
 
15128
      /**
15129
       * Find the _Fields constant that matches fieldId, throwing an exception
15130
       * if it is not found.
15131
       */
15132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15133
        _Fields fields = findByThriftId(fieldId);
15134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15135
        return fields;
15136
      }
15137
 
15138
      /**
15139
       * Find the _Fields constant that matches name, or null if its not found.
15140
       */
15141
      public static _Fields findByName(String name) {
15142
        return byName.get(name);
15143
      }
15144
 
15145
      private final short _thriftId;
15146
      private final String _fieldName;
15147
 
15148
      _Fields(short thriftId, String fieldName) {
15149
        _thriftId = thriftId;
15150
        _fieldName = fieldName;
15151
      }
15152
 
15153
      public short getThriftFieldId() {
15154
        return _thriftId;
15155
      }
15156
 
15157
      public String getFieldName() {
15158
        return _fieldName;
15159
      }
15160
    }
15161
 
15162
    // isset id assignments
15163
 
3430 rajveer 15164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15165
    static {
3430 rajveer 15166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15167
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15168
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15169
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
15170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 15172
    }
15173
 
15174
    public getReports_result() {
15175
    }
15176
 
15177
    public getReports_result(
15178
      List<Report> success)
15179
    {
15180
      this();
15181
      this.success = success;
15182
    }
15183
 
15184
    /**
15185
     * Performs a deep copy on <i>other</i>.
15186
     */
15187
    public getReports_result(getReports_result other) {
15188
      if (other.isSetSuccess()) {
15189
        List<Report> __this__success = new ArrayList<Report>();
15190
        for (Report other_element : other.success) {
15191
          __this__success.add(new Report(other_element));
15192
        }
15193
        this.success = __this__success;
15194
      }
15195
    }
15196
 
15197
    public getReports_result deepCopy() {
15198
      return new getReports_result(this);
15199
    }
15200
 
3430 rajveer 15201
    @Override
15202
    public void clear() {
15203
      this.success = null;
1891 ankur.sing 15204
    }
15205
 
15206
    public int getSuccessSize() {
15207
      return (this.success == null) ? 0 : this.success.size();
15208
    }
15209
 
15210
    public java.util.Iterator<Report> getSuccessIterator() {
15211
      return (this.success == null) ? null : this.success.iterator();
15212
    }
15213
 
15214
    public void addToSuccess(Report elem) {
15215
      if (this.success == null) {
15216
        this.success = new ArrayList<Report>();
15217
      }
15218
      this.success.add(elem);
15219
    }
15220
 
15221
    public List<Report> getSuccess() {
15222
      return this.success;
15223
    }
15224
 
3430 rajveer 15225
    public void setSuccess(List<Report> success) {
1891 ankur.sing 15226
      this.success = success;
15227
    }
15228
 
15229
    public void unsetSuccess() {
15230
      this.success = null;
15231
    }
15232
 
3430 rajveer 15233
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15234
    public boolean isSetSuccess() {
15235
      return this.success != null;
15236
    }
15237
 
15238
    public void setSuccessIsSet(boolean value) {
15239
      if (!value) {
15240
        this.success = null;
15241
      }
15242
    }
15243
 
15244
    public void setFieldValue(_Fields field, Object value) {
15245
      switch (field) {
15246
      case SUCCESS:
15247
        if (value == null) {
15248
          unsetSuccess();
15249
        } else {
15250
          setSuccess((List<Report>)value);
15251
        }
15252
        break;
15253
 
15254
      }
15255
    }
15256
 
15257
    public Object getFieldValue(_Fields field) {
15258
      switch (field) {
15259
      case SUCCESS:
15260
        return getSuccess();
15261
 
15262
      }
15263
      throw new IllegalStateException();
15264
    }
15265
 
3430 rajveer 15266
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15267
    public boolean isSet(_Fields field) {
15268
      if (field == null) {
15269
        throw new IllegalArgumentException();
15270
      }
1891 ankur.sing 15271
 
15272
      switch (field) {
15273
      case SUCCESS:
15274
        return isSetSuccess();
15275
      }
15276
      throw new IllegalStateException();
15277
    }
15278
 
15279
    @Override
15280
    public boolean equals(Object that) {
15281
      if (that == null)
15282
        return false;
15283
      if (that instanceof getReports_result)
15284
        return this.equals((getReports_result)that);
15285
      return false;
15286
    }
15287
 
15288
    public boolean equals(getReports_result that) {
15289
      if (that == null)
15290
        return false;
15291
 
15292
      boolean this_present_success = true && this.isSetSuccess();
15293
      boolean that_present_success = true && that.isSetSuccess();
15294
      if (this_present_success || that_present_success) {
15295
        if (!(this_present_success && that_present_success))
15296
          return false;
15297
        if (!this.success.equals(that.success))
15298
          return false;
15299
      }
15300
 
15301
      return true;
15302
    }
15303
 
15304
    @Override
15305
    public int hashCode() {
15306
      return 0;
15307
    }
15308
 
15309
    public int compareTo(getReports_result other) {
15310
      if (!getClass().equals(other.getClass())) {
15311
        return getClass().getName().compareTo(other.getClass().getName());
15312
      }
15313
 
15314
      int lastComparison = 0;
15315
      getReports_result typedOther = (getReports_result)other;
15316
 
3430 rajveer 15317
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15318
      if (lastComparison != 0) {
15319
        return lastComparison;
15320
      }
3430 rajveer 15321
      if (isSetSuccess()) {
15322
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15323
        if (lastComparison != 0) {
15324
          return lastComparison;
15325
        }
1891 ankur.sing 15326
      }
15327
      return 0;
15328
    }
15329
 
3430 rajveer 15330
    public _Fields fieldForId(int fieldId) {
15331
      return _Fields.findByThriftId(fieldId);
15332
    }
15333
 
15334
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15335
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15336
      iprot.readStructBegin();
15337
      while (true)
15338
      {
15339
        field = iprot.readFieldBegin();
3430 rajveer 15340
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15341
          break;
15342
        }
3430 rajveer 15343
        switch (field.id) {
15344
          case 0: // SUCCESS
15345
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15346
              {
5864 rajveer 15347
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15348
                this.success = new ArrayList<Report>(_list41.size);
15349
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15350
                {
5864 rajveer 15351
                  Report _elem43; // required
15352
                  _elem43 = new Report();
15353
                  _elem43.read(iprot);
15354
                  this.success.add(_elem43);
1891 ankur.sing 15355
                }
3430 rajveer 15356
                iprot.readListEnd();
1891 ankur.sing 15357
              }
3430 rajveer 15358
            } else { 
15359
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15360
            }
15361
            break;
15362
          default:
15363
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15364
        }
3430 rajveer 15365
        iprot.readFieldEnd();
1891 ankur.sing 15366
      }
15367
      iprot.readStructEnd();
15368
      validate();
15369
    }
15370
 
3430 rajveer 15371
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15372
      oprot.writeStructBegin(STRUCT_DESC);
15373
 
15374
      if (this.isSetSuccess()) {
15375
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15376
        {
3430 rajveer 15377
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15378
          for (Report _iter44 : this.success)
1891 ankur.sing 15379
          {
5864 rajveer 15380
            _iter44.write(oprot);
1891 ankur.sing 15381
          }
15382
          oprot.writeListEnd();
15383
        }
15384
        oprot.writeFieldEnd();
15385
      }
15386
      oprot.writeFieldStop();
15387
      oprot.writeStructEnd();
15388
    }
15389
 
15390
    @Override
15391
    public String toString() {
15392
      StringBuilder sb = new StringBuilder("getReports_result(");
15393
      boolean first = true;
15394
 
15395
      sb.append("success:");
15396
      if (this.success == null) {
15397
        sb.append("null");
15398
      } else {
15399
        sb.append(this.success);
15400
      }
15401
      first = false;
15402
      sb.append(")");
15403
      return sb.toString();
15404
    }
15405
 
3430 rajveer 15406
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15407
      // check for required fields
15408
    }
15409
 
3430 rajveer 15410
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15411
      try {
15412
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15413
      } catch (org.apache.thrift.TException te) {
15414
        throw new java.io.IOException(te);
15415
      }
15416
    }
15417
 
15418
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15419
      try {
15420
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15421
      } catch (org.apache.thrift.TException te) {
15422
        throw new java.io.IOException(te);
15423
      }
15424
    }
15425
 
1891 ankur.sing 15426
  }
15427
 
3430 rajveer 15428
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15429
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15430
 
3430 rajveer 15431
    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);
15432
    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 15433
 
3430 rajveer 15434
    private String username; // required
15435
    private String password; // required
2024 ankur.sing 15436
 
15437
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15438
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15439
      USERNAME((short)1, "username"),
6788 rajveer 15440
      PASSWORD((short)2, "password");
2024 ankur.sing 15441
 
15442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15443
 
15444
      static {
15445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15446
          byName.put(field.getFieldName(), field);
15447
        }
15448
      }
15449
 
15450
      /**
15451
       * Find the _Fields constant that matches fieldId, or null if its not found.
15452
       */
15453
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15454
        switch(fieldId) {
15455
          case 1: // USERNAME
15456
            return USERNAME;
15457
          case 2: // PASSWORD
15458
            return PASSWORD;
15459
          default:
15460
            return null;
15461
        }
2024 ankur.sing 15462
      }
15463
 
15464
      /**
15465
       * Find the _Fields constant that matches fieldId, throwing an exception
15466
       * if it is not found.
15467
       */
15468
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15469
        _Fields fields = findByThriftId(fieldId);
15470
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15471
        return fields;
15472
      }
15473
 
15474
      /**
15475
       * Find the _Fields constant that matches name, or null if its not found.
15476
       */
15477
      public static _Fields findByName(String name) {
15478
        return byName.get(name);
15479
      }
15480
 
15481
      private final short _thriftId;
15482
      private final String _fieldName;
15483
 
15484
      _Fields(short thriftId, String fieldName) {
15485
        _thriftId = thriftId;
15486
        _fieldName = fieldName;
15487
      }
15488
 
15489
      public short getThriftFieldId() {
15490
        return _thriftId;
15491
      }
15492
 
15493
      public String getFieldName() {
15494
        return _fieldName;
15495
      }
15496
    }
15497
 
15498
    // isset id assignments
15499
 
3430 rajveer 15500
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15501
    static {
3430 rajveer 15502
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15503
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15505
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15507
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15508
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15509
    }
15510
 
15511
    public authenticateCatalogUser_args() {
15512
    }
15513
 
15514
    public authenticateCatalogUser_args(
15515
      String username,
6788 rajveer 15516
      String password)
2024 ankur.sing 15517
    {
15518
      this();
15519
      this.username = username;
15520
      this.password = password;
15521
    }
15522
 
15523
    /**
15524
     * Performs a deep copy on <i>other</i>.
15525
     */
15526
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
15527
      if (other.isSetUsername()) {
15528
        this.username = other.username;
15529
      }
15530
      if (other.isSetPassword()) {
15531
        this.password = other.password;
15532
      }
15533
    }
15534
 
15535
    public authenticateCatalogUser_args deepCopy() {
15536
      return new authenticateCatalogUser_args(this);
15537
    }
15538
 
3430 rajveer 15539
    @Override
15540
    public void clear() {
15541
      this.username = null;
15542
      this.password = null;
2024 ankur.sing 15543
    }
15544
 
15545
    public String getUsername() {
15546
      return this.username;
15547
    }
15548
 
3430 rajveer 15549
    public void setUsername(String username) {
2024 ankur.sing 15550
      this.username = username;
15551
    }
15552
 
15553
    public void unsetUsername() {
15554
      this.username = null;
15555
    }
15556
 
3430 rajveer 15557
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15558
    public boolean isSetUsername() {
15559
      return this.username != null;
15560
    }
15561
 
15562
    public void setUsernameIsSet(boolean value) {
15563
      if (!value) {
15564
        this.username = null;
15565
      }
15566
    }
15567
 
15568
    public String getPassword() {
15569
      return this.password;
15570
    }
15571
 
3430 rajveer 15572
    public void setPassword(String password) {
2024 ankur.sing 15573
      this.password = password;
15574
    }
15575
 
15576
    public void unsetPassword() {
15577
      this.password = null;
15578
    }
15579
 
3430 rajveer 15580
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15581
    public boolean isSetPassword() {
15582
      return this.password != null;
15583
    }
15584
 
15585
    public void setPasswordIsSet(boolean value) {
15586
      if (!value) {
15587
        this.password = null;
15588
      }
15589
    }
15590
 
15591
    public void setFieldValue(_Fields field, Object value) {
15592
      switch (field) {
15593
      case USERNAME:
15594
        if (value == null) {
15595
          unsetUsername();
15596
        } else {
15597
          setUsername((String)value);
15598
        }
15599
        break;
15600
 
15601
      case PASSWORD:
15602
        if (value == null) {
15603
          unsetPassword();
15604
        } else {
15605
          setPassword((String)value);
15606
        }
15607
        break;
15608
 
15609
      }
15610
    }
15611
 
15612
    public Object getFieldValue(_Fields field) {
15613
      switch (field) {
15614
      case USERNAME:
15615
        return getUsername();
15616
 
15617
      case PASSWORD:
15618
        return getPassword();
15619
 
15620
      }
15621
      throw new IllegalStateException();
15622
    }
15623
 
3430 rajveer 15624
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15625
    public boolean isSet(_Fields field) {
15626
      if (field == null) {
15627
        throw new IllegalArgumentException();
15628
      }
2024 ankur.sing 15629
 
15630
      switch (field) {
15631
      case USERNAME:
15632
        return isSetUsername();
15633
      case PASSWORD:
15634
        return isSetPassword();
15635
      }
15636
      throw new IllegalStateException();
15637
    }
15638
 
15639
    @Override
15640
    public boolean equals(Object that) {
15641
      if (that == null)
15642
        return false;
15643
      if (that instanceof authenticateCatalogUser_args)
15644
        return this.equals((authenticateCatalogUser_args)that);
15645
      return false;
15646
    }
15647
 
15648
    public boolean equals(authenticateCatalogUser_args that) {
15649
      if (that == null)
15650
        return false;
15651
 
15652
      boolean this_present_username = true && this.isSetUsername();
15653
      boolean that_present_username = true && that.isSetUsername();
15654
      if (this_present_username || that_present_username) {
15655
        if (!(this_present_username && that_present_username))
15656
          return false;
15657
        if (!this.username.equals(that.username))
15658
          return false;
15659
      }
15660
 
15661
      boolean this_present_password = true && this.isSetPassword();
15662
      boolean that_present_password = true && that.isSetPassword();
15663
      if (this_present_password || that_present_password) {
15664
        if (!(this_present_password && that_present_password))
15665
          return false;
15666
        if (!this.password.equals(that.password))
15667
          return false;
15668
      }
15669
 
15670
      return true;
15671
    }
15672
 
15673
    @Override
15674
    public int hashCode() {
15675
      return 0;
15676
    }
15677
 
15678
    public int compareTo(authenticateCatalogUser_args other) {
15679
      if (!getClass().equals(other.getClass())) {
15680
        return getClass().getName().compareTo(other.getClass().getName());
15681
      }
15682
 
15683
      int lastComparison = 0;
15684
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15685
 
3430 rajveer 15686
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15687
      if (lastComparison != 0) {
15688
        return lastComparison;
15689
      }
3430 rajveer 15690
      if (isSetUsername()) {
15691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15692
        if (lastComparison != 0) {
15693
          return lastComparison;
15694
        }
2024 ankur.sing 15695
      }
3430 rajveer 15696
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15697
      if (lastComparison != 0) {
15698
        return lastComparison;
15699
      }
3430 rajveer 15700
      if (isSetPassword()) {
15701
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15702
        if (lastComparison != 0) {
15703
          return lastComparison;
15704
        }
2024 ankur.sing 15705
      }
15706
      return 0;
15707
    }
15708
 
3430 rajveer 15709
    public _Fields fieldForId(int fieldId) {
15710
      return _Fields.findByThriftId(fieldId);
15711
    }
15712
 
15713
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15714
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15715
      iprot.readStructBegin();
15716
      while (true)
15717
      {
15718
        field = iprot.readFieldBegin();
3430 rajveer 15719
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15720
          break;
15721
        }
3430 rajveer 15722
        switch (field.id) {
15723
          case 1: // USERNAME
15724
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15725
              this.username = iprot.readString();
15726
            } else { 
15727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15728
            }
15729
            break;
15730
          case 2: // PASSWORD
15731
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15732
              this.password = iprot.readString();
15733
            } else { 
15734
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15735
            }
15736
            break;
15737
          default:
15738
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15739
        }
3430 rajveer 15740
        iprot.readFieldEnd();
2024 ankur.sing 15741
      }
15742
      iprot.readStructEnd();
15743
      validate();
15744
    }
15745
 
3430 rajveer 15746
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15747
      validate();
15748
 
15749
      oprot.writeStructBegin(STRUCT_DESC);
15750
      if (this.username != null) {
15751
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15752
        oprot.writeString(this.username);
15753
        oprot.writeFieldEnd();
15754
      }
15755
      if (this.password != null) {
15756
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15757
        oprot.writeString(this.password);
15758
        oprot.writeFieldEnd();
15759
      }
15760
      oprot.writeFieldStop();
15761
      oprot.writeStructEnd();
15762
    }
15763
 
15764
    @Override
15765
    public String toString() {
15766
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15767
      boolean first = true;
15768
 
15769
      sb.append("username:");
15770
      if (this.username == null) {
15771
        sb.append("null");
15772
      } else {
15773
        sb.append(this.username);
15774
      }
15775
      first = false;
15776
      if (!first) sb.append(", ");
15777
      sb.append("password:");
15778
      if (this.password == null) {
15779
        sb.append("null");
15780
      } else {
15781
        sb.append(this.password);
15782
      }
15783
      first = false;
15784
      sb.append(")");
15785
      return sb.toString();
15786
    }
15787
 
3430 rajveer 15788
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15789
      // check for required fields
15790
    }
15791
 
3430 rajveer 15792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15793
      try {
15794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15795
      } catch (org.apache.thrift.TException te) {
15796
        throw new java.io.IOException(te);
15797
      }
15798
    }
15799
 
15800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15801
      try {
15802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15803
      } catch (org.apache.thrift.TException te) {
15804
        throw new java.io.IOException(te);
15805
      }
15806
    }
15807
 
2024 ankur.sing 15808
  }
15809
 
3430 rajveer 15810
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15812
 
3430 rajveer 15813
    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);
15814
    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 15815
 
3430 rajveer 15816
    private CatalogDashboardUser success; // required
15817
    private HelperServiceException hse; // required
2024 ankur.sing 15818
 
15819
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15820
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15821
      SUCCESS((short)0, "success"),
15822
      HSE((short)1, "hse");
15823
 
15824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15825
 
15826
      static {
15827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15828
          byName.put(field.getFieldName(), field);
15829
        }
15830
      }
15831
 
15832
      /**
15833
       * Find the _Fields constant that matches fieldId, or null if its not found.
15834
       */
15835
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15836
        switch(fieldId) {
15837
          case 0: // SUCCESS
15838
            return SUCCESS;
15839
          case 1: // HSE
15840
            return HSE;
15841
          default:
15842
            return null;
15843
        }
2024 ankur.sing 15844
      }
15845
 
15846
      /**
15847
       * Find the _Fields constant that matches fieldId, throwing an exception
15848
       * if it is not found.
15849
       */
15850
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15851
        _Fields fields = findByThriftId(fieldId);
15852
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15853
        return fields;
15854
      }
15855
 
15856
      /**
15857
       * Find the _Fields constant that matches name, or null if its not found.
15858
       */
15859
      public static _Fields findByName(String name) {
15860
        return byName.get(name);
15861
      }
15862
 
15863
      private final short _thriftId;
15864
      private final String _fieldName;
15865
 
15866
      _Fields(short thriftId, String fieldName) {
15867
        _thriftId = thriftId;
15868
        _fieldName = fieldName;
15869
      }
15870
 
15871
      public short getThriftFieldId() {
15872
        return _thriftId;
15873
      }
15874
 
15875
      public String getFieldName() {
15876
        return _fieldName;
15877
      }
15878
    }
15879
 
15880
    // isset id assignments
15881
 
3430 rajveer 15882
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15883
    static {
3430 rajveer 15884
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15885
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15886
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15887
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15888
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15889
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15890
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15891
    }
15892
 
15893
    public authenticateCatalogUser_result() {
15894
    }
15895
 
15896
    public authenticateCatalogUser_result(
15897
      CatalogDashboardUser success,
15898
      HelperServiceException hse)
15899
    {
15900
      this();
15901
      this.success = success;
15902
      this.hse = hse;
15903
    }
15904
 
15905
    /**
15906
     * Performs a deep copy on <i>other</i>.
15907
     */
15908
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15909
      if (other.isSetSuccess()) {
15910
        this.success = new CatalogDashboardUser(other.success);
15911
      }
15912
      if (other.isSetHse()) {
15913
        this.hse = new HelperServiceException(other.hse);
15914
      }
15915
    }
15916
 
15917
    public authenticateCatalogUser_result deepCopy() {
15918
      return new authenticateCatalogUser_result(this);
15919
    }
15920
 
3430 rajveer 15921
    @Override
15922
    public void clear() {
15923
      this.success = null;
15924
      this.hse = null;
2024 ankur.sing 15925
    }
15926
 
15927
    public CatalogDashboardUser getSuccess() {
15928
      return this.success;
15929
    }
15930
 
3430 rajveer 15931
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15932
      this.success = success;
15933
    }
15934
 
15935
    public void unsetSuccess() {
15936
      this.success = null;
15937
    }
15938
 
3430 rajveer 15939
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15940
    public boolean isSetSuccess() {
15941
      return this.success != null;
15942
    }
15943
 
15944
    public void setSuccessIsSet(boolean value) {
15945
      if (!value) {
15946
        this.success = null;
15947
      }
15948
    }
15949
 
15950
    public HelperServiceException getHse() {
15951
      return this.hse;
15952
    }
15953
 
3430 rajveer 15954
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15955
      this.hse = hse;
15956
    }
15957
 
15958
    public void unsetHse() {
15959
      this.hse = null;
15960
    }
15961
 
3430 rajveer 15962
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15963
    public boolean isSetHse() {
15964
      return this.hse != null;
15965
    }
15966
 
15967
    public void setHseIsSet(boolean value) {
15968
      if (!value) {
15969
        this.hse = null;
15970
      }
15971
    }
15972
 
15973
    public void setFieldValue(_Fields field, Object value) {
15974
      switch (field) {
15975
      case SUCCESS:
15976
        if (value == null) {
15977
          unsetSuccess();
15978
        } else {
15979
          setSuccess((CatalogDashboardUser)value);
15980
        }
15981
        break;
15982
 
15983
      case HSE:
15984
        if (value == null) {
15985
          unsetHse();
15986
        } else {
15987
          setHse((HelperServiceException)value);
15988
        }
15989
        break;
15990
 
15991
      }
15992
    }
15993
 
15994
    public Object getFieldValue(_Fields field) {
15995
      switch (field) {
15996
      case SUCCESS:
15997
        return getSuccess();
15998
 
15999
      case HSE:
16000
        return getHse();
16001
 
16002
      }
16003
      throw new IllegalStateException();
16004
    }
16005
 
3430 rajveer 16006
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16007
    public boolean isSet(_Fields field) {
16008
      if (field == null) {
16009
        throw new IllegalArgumentException();
16010
      }
2024 ankur.sing 16011
 
16012
      switch (field) {
16013
      case SUCCESS:
16014
        return isSetSuccess();
16015
      case HSE:
16016
        return isSetHse();
16017
      }
16018
      throw new IllegalStateException();
16019
    }
16020
 
16021
    @Override
16022
    public boolean equals(Object that) {
16023
      if (that == null)
16024
        return false;
16025
      if (that instanceof authenticateCatalogUser_result)
16026
        return this.equals((authenticateCatalogUser_result)that);
16027
      return false;
16028
    }
16029
 
16030
    public boolean equals(authenticateCatalogUser_result that) {
16031
      if (that == null)
16032
        return false;
16033
 
16034
      boolean this_present_success = true && this.isSetSuccess();
16035
      boolean that_present_success = true && that.isSetSuccess();
16036
      if (this_present_success || that_present_success) {
16037
        if (!(this_present_success && that_present_success))
16038
          return false;
16039
        if (!this.success.equals(that.success))
16040
          return false;
16041
      }
16042
 
16043
      boolean this_present_hse = true && this.isSetHse();
16044
      boolean that_present_hse = true && that.isSetHse();
16045
      if (this_present_hse || that_present_hse) {
16046
        if (!(this_present_hse && that_present_hse))
16047
          return false;
16048
        if (!this.hse.equals(that.hse))
16049
          return false;
16050
      }
16051
 
16052
      return true;
16053
    }
16054
 
16055
    @Override
16056
    public int hashCode() {
16057
      return 0;
16058
    }
16059
 
16060
    public int compareTo(authenticateCatalogUser_result other) {
16061
      if (!getClass().equals(other.getClass())) {
16062
        return getClass().getName().compareTo(other.getClass().getName());
16063
      }
16064
 
16065
      int lastComparison = 0;
16066
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
16067
 
3430 rajveer 16068
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 16069
      if (lastComparison != 0) {
16070
        return lastComparison;
16071
      }
3430 rajveer 16072
      if (isSetSuccess()) {
16073
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16074
        if (lastComparison != 0) {
16075
          return lastComparison;
16076
        }
2024 ankur.sing 16077
      }
3430 rajveer 16078
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 16079
      if (lastComparison != 0) {
16080
        return lastComparison;
16081
      }
3430 rajveer 16082
      if (isSetHse()) {
16083
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16084
        if (lastComparison != 0) {
16085
          return lastComparison;
16086
        }
2024 ankur.sing 16087
      }
16088
      return 0;
16089
    }
16090
 
3430 rajveer 16091
    public _Fields fieldForId(int fieldId) {
16092
      return _Fields.findByThriftId(fieldId);
16093
    }
16094
 
16095
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16096
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16097
      iprot.readStructBegin();
16098
      while (true)
16099
      {
16100
        field = iprot.readFieldBegin();
3430 rajveer 16101
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16102
          break;
16103
        }
3430 rajveer 16104
        switch (field.id) {
16105
          case 0: // SUCCESS
16106
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16107
              this.success = new CatalogDashboardUser();
16108
              this.success.read(iprot);
16109
            } else { 
16110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16111
            }
16112
            break;
16113
          case 1: // HSE
16114
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16115
              this.hse = new HelperServiceException();
16116
              this.hse.read(iprot);
16117
            } else { 
16118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16119
            }
16120
            break;
16121
          default:
16122
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16123
        }
3430 rajveer 16124
        iprot.readFieldEnd();
2024 ankur.sing 16125
      }
16126
      iprot.readStructEnd();
16127
      validate();
16128
    }
16129
 
3430 rajveer 16130
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16131
      oprot.writeStructBegin(STRUCT_DESC);
16132
 
16133
      if (this.isSetSuccess()) {
16134
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16135
        this.success.write(oprot);
16136
        oprot.writeFieldEnd();
16137
      } else if (this.isSetHse()) {
16138
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16139
        this.hse.write(oprot);
16140
        oprot.writeFieldEnd();
16141
      }
16142
      oprot.writeFieldStop();
16143
      oprot.writeStructEnd();
16144
    }
16145
 
16146
    @Override
16147
    public String toString() {
16148
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
16149
      boolean first = true;
16150
 
16151
      sb.append("success:");
16152
      if (this.success == null) {
16153
        sb.append("null");
16154
      } else {
16155
        sb.append(this.success);
16156
      }
16157
      first = false;
16158
      if (!first) sb.append(", ");
16159
      sb.append("hse:");
16160
      if (this.hse == null) {
16161
        sb.append("null");
16162
      } else {
16163
        sb.append(this.hse);
16164
      }
16165
      first = false;
16166
      sb.append(")");
16167
      return sb.toString();
16168
    }
16169
 
3430 rajveer 16170
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16171
      // check for required fields
16172
    }
16173
 
3430 rajveer 16174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16175
      try {
16176
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16177
      } catch (org.apache.thrift.TException te) {
16178
        throw new java.io.IOException(te);
16179
      }
16180
    }
16181
 
16182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16183
      try {
16184
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16185
      } catch (org.apache.thrift.TException te) {
16186
        throw new java.io.IOException(te);
16187
      }
16188
    }
16189
 
2024 ankur.sing 16190
  }
16191
 
4544 varun.gupt 16192
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
16193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
16194
 
16195
    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);
16196
    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);
16197
 
16198
    private List<Long> entityIds; // required
16199
    private String email; // required
16200
 
16201
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16202
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16203
      ENTITY_IDS((short)1, "entityIds"),
16204
      EMAIL((short)2, "email");
16205
 
16206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16207
 
16208
      static {
16209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16210
          byName.put(field.getFieldName(), field);
16211
        }
16212
      }
16213
 
16214
      /**
16215
       * Find the _Fields constant that matches fieldId, or null if its not found.
16216
       */
16217
      public static _Fields findByThriftId(int fieldId) {
16218
        switch(fieldId) {
16219
          case 1: // ENTITY_IDS
16220
            return ENTITY_IDS;
16221
          case 2: // EMAIL
16222
            return EMAIL;
16223
          default:
16224
            return null;
16225
        }
16226
      }
16227
 
16228
      /**
16229
       * Find the _Fields constant that matches fieldId, throwing an exception
16230
       * if it is not found.
16231
       */
16232
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16233
        _Fields fields = findByThriftId(fieldId);
16234
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16235
        return fields;
16236
      }
16237
 
16238
      /**
16239
       * Find the _Fields constant that matches name, or null if its not found.
16240
       */
16241
      public static _Fields findByName(String name) {
16242
        return byName.get(name);
16243
      }
16244
 
16245
      private final short _thriftId;
16246
      private final String _fieldName;
16247
 
16248
      _Fields(short thriftId, String fieldName) {
16249
        _thriftId = thriftId;
16250
        _fieldName = fieldName;
16251
      }
16252
 
16253
      public short getThriftFieldId() {
16254
        return _thriftId;
16255
      }
16256
 
16257
      public String getFieldName() {
16258
        return _fieldName;
16259
      }
16260
    }
16261
 
16262
    // isset id assignments
16263
 
16264
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16265
    static {
16266
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16267
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16268
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16269
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16270
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16271
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16272
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16273
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16274
    }
16275
 
16276
    public shareEntities_args() {
16277
    }
16278
 
16279
    public shareEntities_args(
16280
      List<Long> entityIds,
16281
      String email)
16282
    {
16283
      this();
16284
      this.entityIds = entityIds;
16285
      this.email = email;
16286
    }
16287
 
16288
    /**
16289
     * Performs a deep copy on <i>other</i>.
16290
     */
16291
    public shareEntities_args(shareEntities_args other) {
16292
      if (other.isSetEntityIds()) {
16293
        List<Long> __this__entityIds = new ArrayList<Long>();
16294
        for (Long other_element : other.entityIds) {
16295
          __this__entityIds.add(other_element);
16296
        }
16297
        this.entityIds = __this__entityIds;
16298
      }
16299
      if (other.isSetEmail()) {
16300
        this.email = other.email;
16301
      }
16302
    }
16303
 
16304
    public shareEntities_args deepCopy() {
16305
      return new shareEntities_args(this);
16306
    }
16307
 
16308
    @Override
16309
    public void clear() {
16310
      this.entityIds = null;
16311
      this.email = null;
16312
    }
16313
 
16314
    public int getEntityIdsSize() {
16315
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16316
    }
16317
 
16318
    public java.util.Iterator<Long> getEntityIdsIterator() {
16319
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16320
    }
16321
 
16322
    public void addToEntityIds(long elem) {
16323
      if (this.entityIds == null) {
16324
        this.entityIds = new ArrayList<Long>();
16325
      }
16326
      this.entityIds.add(elem);
16327
    }
16328
 
16329
    public List<Long> getEntityIds() {
16330
      return this.entityIds;
16331
    }
16332
 
16333
    public void setEntityIds(List<Long> entityIds) {
16334
      this.entityIds = entityIds;
16335
    }
16336
 
16337
    public void unsetEntityIds() {
16338
      this.entityIds = null;
16339
    }
16340
 
16341
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16342
    public boolean isSetEntityIds() {
16343
      return this.entityIds != null;
16344
    }
16345
 
16346
    public void setEntityIdsIsSet(boolean value) {
16347
      if (!value) {
16348
        this.entityIds = null;
16349
      }
16350
    }
16351
 
16352
    public String getEmail() {
16353
      return this.email;
16354
    }
16355
 
16356
    public void setEmail(String email) {
16357
      this.email = email;
16358
    }
16359
 
16360
    public void unsetEmail() {
16361
      this.email = null;
16362
    }
16363
 
16364
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16365
    public boolean isSetEmail() {
16366
      return this.email != null;
16367
    }
16368
 
16369
    public void setEmailIsSet(boolean value) {
16370
      if (!value) {
16371
        this.email = null;
16372
      }
16373
    }
16374
 
16375
    public void setFieldValue(_Fields field, Object value) {
16376
      switch (field) {
16377
      case ENTITY_IDS:
16378
        if (value == null) {
16379
          unsetEntityIds();
16380
        } else {
16381
          setEntityIds((List<Long>)value);
16382
        }
16383
        break;
16384
 
16385
      case EMAIL:
16386
        if (value == null) {
16387
          unsetEmail();
16388
        } else {
16389
          setEmail((String)value);
16390
        }
16391
        break;
16392
 
16393
      }
16394
    }
16395
 
16396
    public Object getFieldValue(_Fields field) {
16397
      switch (field) {
16398
      case ENTITY_IDS:
16399
        return getEntityIds();
16400
 
16401
      case EMAIL:
16402
        return getEmail();
16403
 
16404
      }
16405
      throw new IllegalStateException();
16406
    }
16407
 
16408
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16409
    public boolean isSet(_Fields field) {
16410
      if (field == null) {
16411
        throw new IllegalArgumentException();
16412
      }
16413
 
16414
      switch (field) {
16415
      case ENTITY_IDS:
16416
        return isSetEntityIds();
16417
      case EMAIL:
16418
        return isSetEmail();
16419
      }
16420
      throw new IllegalStateException();
16421
    }
16422
 
16423
    @Override
16424
    public boolean equals(Object that) {
16425
      if (that == null)
16426
        return false;
16427
      if (that instanceof shareEntities_args)
16428
        return this.equals((shareEntities_args)that);
16429
      return false;
16430
    }
16431
 
16432
    public boolean equals(shareEntities_args that) {
16433
      if (that == null)
16434
        return false;
16435
 
16436
      boolean this_present_entityIds = true && this.isSetEntityIds();
16437
      boolean that_present_entityIds = true && that.isSetEntityIds();
16438
      if (this_present_entityIds || that_present_entityIds) {
16439
        if (!(this_present_entityIds && that_present_entityIds))
16440
          return false;
16441
        if (!this.entityIds.equals(that.entityIds))
16442
          return false;
16443
      }
16444
 
16445
      boolean this_present_email = true && this.isSetEmail();
16446
      boolean that_present_email = true && that.isSetEmail();
16447
      if (this_present_email || that_present_email) {
16448
        if (!(this_present_email && that_present_email))
16449
          return false;
16450
        if (!this.email.equals(that.email))
16451
          return false;
16452
      }
16453
 
16454
      return true;
16455
    }
16456
 
16457
    @Override
16458
    public int hashCode() {
16459
      return 0;
16460
    }
16461
 
16462
    public int compareTo(shareEntities_args other) {
16463
      if (!getClass().equals(other.getClass())) {
16464
        return getClass().getName().compareTo(other.getClass().getName());
16465
      }
16466
 
16467
      int lastComparison = 0;
16468
      shareEntities_args typedOther = (shareEntities_args)other;
16469
 
16470
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16471
      if (lastComparison != 0) {
16472
        return lastComparison;
16473
      }
16474
      if (isSetEntityIds()) {
16475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16476
        if (lastComparison != 0) {
16477
          return lastComparison;
16478
        }
16479
      }
16480
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16481
      if (lastComparison != 0) {
16482
        return lastComparison;
16483
      }
16484
      if (isSetEmail()) {
16485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16486
        if (lastComparison != 0) {
16487
          return lastComparison;
16488
        }
16489
      }
16490
      return 0;
16491
    }
16492
 
16493
    public _Fields fieldForId(int fieldId) {
16494
      return _Fields.findByThriftId(fieldId);
16495
    }
16496
 
16497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16498
      org.apache.thrift.protocol.TField field;
16499
      iprot.readStructBegin();
16500
      while (true)
16501
      {
16502
        field = iprot.readFieldBegin();
16503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16504
          break;
16505
        }
16506
        switch (field.id) {
16507
          case 1: // ENTITY_IDS
16508
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16509
              {
5864 rajveer 16510
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16511
                this.entityIds = new ArrayList<Long>(_list45.size);
16512
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16513
                {
5864 rajveer 16514
                  long _elem47; // required
16515
                  _elem47 = iprot.readI64();
16516
                  this.entityIds.add(_elem47);
4544 varun.gupt 16517
                }
16518
                iprot.readListEnd();
16519
              }
16520
            } else { 
16521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16522
            }
16523
            break;
16524
          case 2: // EMAIL
16525
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16526
              this.email = iprot.readString();
16527
            } else { 
16528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16529
            }
16530
            break;
16531
          default:
16532
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16533
        }
16534
        iprot.readFieldEnd();
16535
      }
16536
      iprot.readStructEnd();
16537
      validate();
16538
    }
16539
 
16540
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16541
      validate();
16542
 
16543
      oprot.writeStructBegin(STRUCT_DESC);
16544
      if (this.entityIds != null) {
16545
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16546
        {
16547
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16548
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16549
          {
5864 rajveer 16550
            oprot.writeI64(_iter48);
4544 varun.gupt 16551
          }
16552
          oprot.writeListEnd();
16553
        }
16554
        oprot.writeFieldEnd();
16555
      }
16556
      if (this.email != null) {
16557
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16558
        oprot.writeString(this.email);
16559
        oprot.writeFieldEnd();
16560
      }
16561
      oprot.writeFieldStop();
16562
      oprot.writeStructEnd();
16563
    }
16564
 
16565
    @Override
16566
    public String toString() {
16567
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16568
      boolean first = true;
16569
 
16570
      sb.append("entityIds:");
16571
      if (this.entityIds == null) {
16572
        sb.append("null");
16573
      } else {
16574
        sb.append(this.entityIds);
16575
      }
16576
      first = false;
16577
      if (!first) sb.append(", ");
16578
      sb.append("email:");
16579
      if (this.email == null) {
16580
        sb.append("null");
16581
      } else {
16582
        sb.append(this.email);
16583
      }
16584
      first = false;
16585
      sb.append(")");
16586
      return sb.toString();
16587
    }
16588
 
16589
    public void validate() throws org.apache.thrift.TException {
16590
      // check for required fields
16591
    }
16592
 
16593
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16594
      try {
16595
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16596
      } catch (org.apache.thrift.TException te) {
16597
        throw new java.io.IOException(te);
16598
      }
16599
    }
16600
 
16601
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16602
      try {
16603
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16604
      } catch (org.apache.thrift.TException te) {
16605
        throw new java.io.IOException(te);
16606
      }
16607
    }
16608
 
16609
  }
16610
 
16611
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16612
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16613
 
16614
    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);
16615
 
16616
    private HelperServiceException hse; // required
16617
 
16618
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16619
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16620
      HSE((short)1, "hse");
16621
 
16622
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16623
 
16624
      static {
16625
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16626
          byName.put(field.getFieldName(), field);
16627
        }
16628
      }
16629
 
16630
      /**
16631
       * Find the _Fields constant that matches fieldId, or null if its not found.
16632
       */
16633
      public static _Fields findByThriftId(int fieldId) {
16634
        switch(fieldId) {
16635
          case 1: // HSE
16636
            return HSE;
16637
          default:
16638
            return null;
16639
        }
16640
      }
16641
 
16642
      /**
16643
       * Find the _Fields constant that matches fieldId, throwing an exception
16644
       * if it is not found.
16645
       */
16646
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16647
        _Fields fields = findByThriftId(fieldId);
16648
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16649
        return fields;
16650
      }
16651
 
16652
      /**
16653
       * Find the _Fields constant that matches name, or null if its not found.
16654
       */
16655
      public static _Fields findByName(String name) {
16656
        return byName.get(name);
16657
      }
16658
 
16659
      private final short _thriftId;
16660
      private final String _fieldName;
16661
 
16662
      _Fields(short thriftId, String fieldName) {
16663
        _thriftId = thriftId;
16664
        _fieldName = fieldName;
16665
      }
16666
 
16667
      public short getThriftFieldId() {
16668
        return _thriftId;
16669
      }
16670
 
16671
      public String getFieldName() {
16672
        return _fieldName;
16673
      }
16674
    }
16675
 
16676
    // isset id assignments
16677
 
16678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16679
    static {
16680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16681
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16682
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16685
    }
16686
 
16687
    public shareEntities_result() {
16688
    }
16689
 
16690
    public shareEntities_result(
16691
      HelperServiceException hse)
16692
    {
16693
      this();
16694
      this.hse = hse;
16695
    }
16696
 
16697
    /**
16698
     * Performs a deep copy on <i>other</i>.
16699
     */
16700
    public shareEntities_result(shareEntities_result other) {
16701
      if (other.isSetHse()) {
16702
        this.hse = new HelperServiceException(other.hse);
16703
      }
16704
    }
16705
 
16706
    public shareEntities_result deepCopy() {
16707
      return new shareEntities_result(this);
16708
    }
16709
 
16710
    @Override
16711
    public void clear() {
16712
      this.hse = null;
16713
    }
16714
 
16715
    public HelperServiceException getHse() {
16716
      return this.hse;
16717
    }
16718
 
16719
    public void setHse(HelperServiceException hse) {
16720
      this.hse = hse;
16721
    }
16722
 
16723
    public void unsetHse() {
16724
      this.hse = null;
16725
    }
16726
 
16727
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16728
    public boolean isSetHse() {
16729
      return this.hse != null;
16730
    }
16731
 
16732
    public void setHseIsSet(boolean value) {
16733
      if (!value) {
16734
        this.hse = null;
16735
      }
16736
    }
16737
 
16738
    public void setFieldValue(_Fields field, Object value) {
16739
      switch (field) {
16740
      case HSE:
16741
        if (value == null) {
16742
          unsetHse();
16743
        } else {
16744
          setHse((HelperServiceException)value);
16745
        }
16746
        break;
16747
 
16748
      }
16749
    }
16750
 
16751
    public Object getFieldValue(_Fields field) {
16752
      switch (field) {
16753
      case HSE:
16754
        return getHse();
16755
 
16756
      }
16757
      throw new IllegalStateException();
16758
    }
16759
 
16760
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16761
    public boolean isSet(_Fields field) {
16762
      if (field == null) {
16763
        throw new IllegalArgumentException();
16764
      }
16765
 
16766
      switch (field) {
16767
      case HSE:
16768
        return isSetHse();
16769
      }
16770
      throw new IllegalStateException();
16771
    }
16772
 
16773
    @Override
16774
    public boolean equals(Object that) {
16775
      if (that == null)
16776
        return false;
16777
      if (that instanceof shareEntities_result)
16778
        return this.equals((shareEntities_result)that);
16779
      return false;
16780
    }
16781
 
16782
    public boolean equals(shareEntities_result that) {
16783
      if (that == null)
16784
        return false;
16785
 
16786
      boolean this_present_hse = true && this.isSetHse();
16787
      boolean that_present_hse = true && that.isSetHse();
16788
      if (this_present_hse || that_present_hse) {
16789
        if (!(this_present_hse && that_present_hse))
16790
          return false;
16791
        if (!this.hse.equals(that.hse))
16792
          return false;
16793
      }
16794
 
16795
      return true;
16796
    }
16797
 
16798
    @Override
16799
    public int hashCode() {
16800
      return 0;
16801
    }
16802
 
16803
    public int compareTo(shareEntities_result other) {
16804
      if (!getClass().equals(other.getClass())) {
16805
        return getClass().getName().compareTo(other.getClass().getName());
16806
      }
16807
 
16808
      int lastComparison = 0;
16809
      shareEntities_result typedOther = (shareEntities_result)other;
16810
 
16811
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16812
      if (lastComparison != 0) {
16813
        return lastComparison;
16814
      }
16815
      if (isSetHse()) {
16816
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16817
        if (lastComparison != 0) {
16818
          return lastComparison;
16819
        }
16820
      }
16821
      return 0;
16822
    }
16823
 
16824
    public _Fields fieldForId(int fieldId) {
16825
      return _Fields.findByThriftId(fieldId);
16826
    }
16827
 
16828
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16829
      org.apache.thrift.protocol.TField field;
16830
      iprot.readStructBegin();
16831
      while (true)
16832
      {
16833
        field = iprot.readFieldBegin();
16834
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16835
          break;
16836
        }
16837
        switch (field.id) {
16838
          case 1: // HSE
16839
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16840
              this.hse = new HelperServiceException();
16841
              this.hse.read(iprot);
16842
            } else { 
16843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16844
            }
16845
            break;
16846
          default:
16847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16848
        }
16849
        iprot.readFieldEnd();
16850
      }
16851
      iprot.readStructEnd();
16852
      validate();
16853
    }
16854
 
16855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16856
      oprot.writeStructBegin(STRUCT_DESC);
16857
 
16858
      if (this.isSetHse()) {
16859
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16860
        this.hse.write(oprot);
16861
        oprot.writeFieldEnd();
16862
      }
16863
      oprot.writeFieldStop();
16864
      oprot.writeStructEnd();
16865
    }
16866
 
16867
    @Override
16868
    public String toString() {
16869
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16870
      boolean first = true;
16871
 
16872
      sb.append("hse:");
16873
      if (this.hse == null) {
16874
        sb.append("null");
16875
      } else {
16876
        sb.append(this.hse);
16877
      }
16878
      first = false;
16879
      sb.append(")");
16880
      return sb.toString();
16881
    }
16882
 
16883
    public void validate() throws org.apache.thrift.TException {
16884
      // check for required fields
16885
    }
16886
 
16887
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16888
      try {
16889
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16890
      } catch (org.apache.thrift.TException te) {
16891
        throw new java.io.IOException(te);
16892
      }
16893
    }
16894
 
16895
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16896
      try {
16897
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16898
      } catch (org.apache.thrift.TException te) {
16899
        throw new java.io.IOException(te);
16900
      }
16901
    }
16902
 
16903
  }
16904
 
4693 mandeep.dh 16905
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16906
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16907
 
16908
 
16909
 
16910
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16911
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16912
;
16913
 
16914
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16915
 
16916
      static {
16917
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16918
          byName.put(field.getFieldName(), field);
16919
        }
16920
      }
16921
 
16922
      /**
16923
       * Find the _Fields constant that matches fieldId, or null if its not found.
16924
       */
16925
      public static _Fields findByThriftId(int fieldId) {
16926
        switch(fieldId) {
16927
          default:
16928
            return null;
16929
        }
16930
      }
16931
 
16932
      /**
16933
       * Find the _Fields constant that matches fieldId, throwing an exception
16934
       * if it is not found.
16935
       */
16936
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16937
        _Fields fields = findByThriftId(fieldId);
16938
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16939
        return fields;
16940
      }
16941
 
16942
      /**
16943
       * Find the _Fields constant that matches name, or null if its not found.
16944
       */
16945
      public static _Fields findByName(String name) {
16946
        return byName.get(name);
16947
      }
16948
 
16949
      private final short _thriftId;
16950
      private final String _fieldName;
16951
 
16952
      _Fields(short thriftId, String fieldName) {
16953
        _thriftId = thriftId;
16954
        _fieldName = fieldName;
16955
      }
16956
 
16957
      public short getThriftFieldId() {
16958
        return _thriftId;
16959
      }
16960
 
16961
      public String getFieldName() {
16962
        return _fieldName;
16963
      }
16964
    }
16965
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16966
    static {
16967
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16970
    }
16971
 
16972
    public getAgents_args() {
16973
    }
16974
 
16975
    /**
16976
     * Performs a deep copy on <i>other</i>.
16977
     */
16978
    public getAgents_args(getAgents_args other) {
16979
    }
16980
 
16981
    public getAgents_args deepCopy() {
16982
      return new getAgents_args(this);
16983
    }
16984
 
16985
    @Override
16986
    public void clear() {
16987
    }
16988
 
16989
    public void setFieldValue(_Fields field, Object value) {
16990
      switch (field) {
16991
      }
16992
    }
16993
 
16994
    public Object getFieldValue(_Fields field) {
16995
      switch (field) {
16996
      }
16997
      throw new IllegalStateException();
16998
    }
16999
 
17000
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17001
    public boolean isSet(_Fields field) {
17002
      if (field == null) {
17003
        throw new IllegalArgumentException();
17004
      }
17005
 
17006
      switch (field) {
17007
      }
17008
      throw new IllegalStateException();
17009
    }
17010
 
17011
    @Override
17012
    public boolean equals(Object that) {
17013
      if (that == null)
17014
        return false;
17015
      if (that instanceof getAgents_args)
17016
        return this.equals((getAgents_args)that);
17017
      return false;
17018
    }
17019
 
17020
    public boolean equals(getAgents_args that) {
17021
      if (that == null)
17022
        return false;
17023
 
17024
      return true;
17025
    }
17026
 
17027
    @Override
17028
    public int hashCode() {
17029
      return 0;
17030
    }
17031
 
17032
    public int compareTo(getAgents_args other) {
17033
      if (!getClass().equals(other.getClass())) {
17034
        return getClass().getName().compareTo(other.getClass().getName());
17035
      }
17036
 
17037
      int lastComparison = 0;
17038
      getAgents_args typedOther = (getAgents_args)other;
17039
 
17040
      return 0;
17041
    }
17042
 
17043
    public _Fields fieldForId(int fieldId) {
17044
      return _Fields.findByThriftId(fieldId);
17045
    }
17046
 
17047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17048
      org.apache.thrift.protocol.TField field;
17049
      iprot.readStructBegin();
17050
      while (true)
17051
      {
17052
        field = iprot.readFieldBegin();
17053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17054
          break;
17055
        }
17056
        switch (field.id) {
17057
          default:
17058
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17059
        }
17060
        iprot.readFieldEnd();
17061
      }
17062
      iprot.readStructEnd();
17063
      validate();
17064
    }
17065
 
17066
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17067
      validate();
17068
 
17069
      oprot.writeStructBegin(STRUCT_DESC);
17070
      oprot.writeFieldStop();
17071
      oprot.writeStructEnd();
17072
    }
17073
 
17074
    @Override
17075
    public String toString() {
17076
      StringBuilder sb = new StringBuilder("getAgents_args(");
17077
      boolean first = true;
17078
 
17079
      sb.append(")");
17080
      return sb.toString();
17081
    }
17082
 
17083
    public void validate() throws org.apache.thrift.TException {
17084
      // check for required fields
17085
    }
17086
 
17087
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17088
      try {
17089
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17090
      } catch (org.apache.thrift.TException te) {
17091
        throw new java.io.IOException(te);
17092
      }
17093
    }
17094
 
17095
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17096
      try {
17097
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17098
      } catch (org.apache.thrift.TException te) {
17099
        throw new java.io.IOException(te);
17100
      }
17101
    }
17102
 
17103
  }
17104
 
17105
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
17106
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
17107
 
17108
    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);
17109
 
17110
    private List<Agent> success; // required
17111
 
17112
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17113
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17114
      SUCCESS((short)0, "success");
17115
 
17116
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17117
 
17118
      static {
17119
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17120
          byName.put(field.getFieldName(), field);
17121
        }
17122
      }
17123
 
17124
      /**
17125
       * Find the _Fields constant that matches fieldId, or null if its not found.
17126
       */
17127
      public static _Fields findByThriftId(int fieldId) {
17128
        switch(fieldId) {
17129
          case 0: // SUCCESS
17130
            return SUCCESS;
17131
          default:
17132
            return null;
17133
        }
17134
      }
17135
 
17136
      /**
17137
       * Find the _Fields constant that matches fieldId, throwing an exception
17138
       * if it is not found.
17139
       */
17140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17141
        _Fields fields = findByThriftId(fieldId);
17142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17143
        return fields;
17144
      }
17145
 
17146
      /**
17147
       * Find the _Fields constant that matches name, or null if its not found.
17148
       */
17149
      public static _Fields findByName(String name) {
17150
        return byName.get(name);
17151
      }
17152
 
17153
      private final short _thriftId;
17154
      private final String _fieldName;
17155
 
17156
      _Fields(short thriftId, String fieldName) {
17157
        _thriftId = thriftId;
17158
        _fieldName = fieldName;
17159
      }
17160
 
17161
      public short getThriftFieldId() {
17162
        return _thriftId;
17163
      }
17164
 
17165
      public String getFieldName() {
17166
        return _fieldName;
17167
      }
17168
    }
17169
 
17170
    // isset id assignments
17171
 
17172
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17173
    static {
17174
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17175
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17176
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17177
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
17178
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17179
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
17180
    }
17181
 
17182
    public getAgents_result() {
17183
    }
17184
 
17185
    public getAgents_result(
17186
      List<Agent> success)
17187
    {
17188
      this();
17189
      this.success = success;
17190
    }
17191
 
17192
    /**
17193
     * Performs a deep copy on <i>other</i>.
17194
     */
17195
    public getAgents_result(getAgents_result other) {
17196
      if (other.isSetSuccess()) {
17197
        List<Agent> __this__success = new ArrayList<Agent>();
17198
        for (Agent other_element : other.success) {
17199
          __this__success.add(new Agent(other_element));
17200
        }
17201
        this.success = __this__success;
17202
      }
17203
    }
17204
 
17205
    public getAgents_result deepCopy() {
17206
      return new getAgents_result(this);
17207
    }
17208
 
17209
    @Override
17210
    public void clear() {
17211
      this.success = null;
17212
    }
17213
 
17214
    public int getSuccessSize() {
17215
      return (this.success == null) ? 0 : this.success.size();
17216
    }
17217
 
17218
    public java.util.Iterator<Agent> getSuccessIterator() {
17219
      return (this.success == null) ? null : this.success.iterator();
17220
    }
17221
 
17222
    public void addToSuccess(Agent elem) {
17223
      if (this.success == null) {
17224
        this.success = new ArrayList<Agent>();
17225
      }
17226
      this.success.add(elem);
17227
    }
17228
 
17229
    public List<Agent> getSuccess() {
17230
      return this.success;
17231
    }
17232
 
17233
    public void setSuccess(List<Agent> success) {
17234
      this.success = success;
17235
    }
17236
 
17237
    public void unsetSuccess() {
17238
      this.success = null;
17239
    }
17240
 
17241
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17242
    public boolean isSetSuccess() {
17243
      return this.success != null;
17244
    }
17245
 
17246
    public void setSuccessIsSet(boolean value) {
17247
      if (!value) {
17248
        this.success = null;
17249
      }
17250
    }
17251
 
17252
    public void setFieldValue(_Fields field, Object value) {
17253
      switch (field) {
17254
      case SUCCESS:
17255
        if (value == null) {
17256
          unsetSuccess();
17257
        } else {
17258
          setSuccess((List<Agent>)value);
17259
        }
17260
        break;
17261
 
17262
      }
17263
    }
17264
 
17265
    public Object getFieldValue(_Fields field) {
17266
      switch (field) {
17267
      case SUCCESS:
17268
        return getSuccess();
17269
 
17270
      }
17271
      throw new IllegalStateException();
17272
    }
17273
 
17274
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17275
    public boolean isSet(_Fields field) {
17276
      if (field == null) {
17277
        throw new IllegalArgumentException();
17278
      }
17279
 
17280
      switch (field) {
17281
      case SUCCESS:
17282
        return isSetSuccess();
17283
      }
17284
      throw new IllegalStateException();
17285
    }
17286
 
17287
    @Override
17288
    public boolean equals(Object that) {
17289
      if (that == null)
17290
        return false;
17291
      if (that instanceof getAgents_result)
17292
        return this.equals((getAgents_result)that);
17293
      return false;
17294
    }
17295
 
17296
    public boolean equals(getAgents_result that) {
17297
      if (that == null)
17298
        return false;
17299
 
17300
      boolean this_present_success = true && this.isSetSuccess();
17301
      boolean that_present_success = true && that.isSetSuccess();
17302
      if (this_present_success || that_present_success) {
17303
        if (!(this_present_success && that_present_success))
17304
          return false;
17305
        if (!this.success.equals(that.success))
17306
          return false;
17307
      }
17308
 
17309
      return true;
17310
    }
17311
 
17312
    @Override
17313
    public int hashCode() {
17314
      return 0;
17315
    }
17316
 
17317
    public int compareTo(getAgents_result other) {
17318
      if (!getClass().equals(other.getClass())) {
17319
        return getClass().getName().compareTo(other.getClass().getName());
17320
      }
17321
 
17322
      int lastComparison = 0;
17323
      getAgents_result typedOther = (getAgents_result)other;
17324
 
17325
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17326
      if (lastComparison != 0) {
17327
        return lastComparison;
17328
      }
17329
      if (isSetSuccess()) {
17330
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17331
        if (lastComparison != 0) {
17332
          return lastComparison;
17333
        }
17334
      }
17335
      return 0;
17336
    }
17337
 
17338
    public _Fields fieldForId(int fieldId) {
17339
      return _Fields.findByThriftId(fieldId);
17340
    }
17341
 
17342
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17343
      org.apache.thrift.protocol.TField field;
17344
      iprot.readStructBegin();
17345
      while (true)
17346
      {
17347
        field = iprot.readFieldBegin();
17348
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17349
          break;
17350
        }
17351
        switch (field.id) {
17352
          case 0: // SUCCESS
17353
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17354
              {
5864 rajveer 17355
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17356
                this.success = new ArrayList<Agent>(_list49.size);
17357
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17358
                {
5864 rajveer 17359
                  Agent _elem51; // required
17360
                  _elem51 = new Agent();
17361
                  _elem51.read(iprot);
17362
                  this.success.add(_elem51);
4693 mandeep.dh 17363
                }
17364
                iprot.readListEnd();
17365
              }
17366
            } else { 
17367
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17368
            }
17369
            break;
17370
          default:
17371
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17372
        }
17373
        iprot.readFieldEnd();
17374
      }
17375
      iprot.readStructEnd();
17376
      validate();
17377
    }
17378
 
17379
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17380
      oprot.writeStructBegin(STRUCT_DESC);
17381
 
17382
      if (this.isSetSuccess()) {
17383
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17384
        {
17385
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17386
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17387
          {
5864 rajveer 17388
            _iter52.write(oprot);
4693 mandeep.dh 17389
          }
17390
          oprot.writeListEnd();
17391
        }
17392
        oprot.writeFieldEnd();
17393
      }
17394
      oprot.writeFieldStop();
17395
      oprot.writeStructEnd();
17396
    }
17397
 
17398
    @Override
17399
    public String toString() {
17400
      StringBuilder sb = new StringBuilder("getAgents_result(");
17401
      boolean first = true;
17402
 
17403
      sb.append("success:");
17404
      if (this.success == null) {
17405
        sb.append("null");
17406
      } else {
17407
        sb.append(this.success);
17408
      }
17409
      first = false;
17410
      sb.append(")");
17411
      return sb.toString();
17412
    }
17413
 
17414
    public void validate() throws org.apache.thrift.TException {
17415
      // check for required fields
17416
    }
17417
 
17418
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17419
      try {
17420
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17421
      } catch (org.apache.thrift.TException te) {
17422
        throw new java.io.IOException(te);
17423
      }
17424
    }
17425
 
17426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17427
      try {
17428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17429
      } catch (org.apache.thrift.TException te) {
17430
        throw new java.io.IOException(te);
17431
      }
17432
    }
17433
 
17434
  }
17435
 
17436
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17438
 
17439
    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);
17440
    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);
17441
 
17442
    private String emailId; // required
17443
    private String password; // required
17444
 
17445
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17446
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17447
      EMAIL_ID((short)1, "emailId"),
17448
      PASSWORD((short)2, "password");
17449
 
17450
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17451
 
17452
      static {
17453
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17454
          byName.put(field.getFieldName(), field);
17455
        }
17456
      }
17457
 
17458
      /**
17459
       * Find the _Fields constant that matches fieldId, or null if its not found.
17460
       */
17461
      public static _Fields findByThriftId(int fieldId) {
17462
        switch(fieldId) {
17463
          case 1: // EMAIL_ID
17464
            return EMAIL_ID;
17465
          case 2: // PASSWORD
17466
            return PASSWORD;
17467
          default:
17468
            return null;
17469
        }
17470
      }
17471
 
17472
      /**
17473
       * Find the _Fields constant that matches fieldId, throwing an exception
17474
       * if it is not found.
17475
       */
17476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17477
        _Fields fields = findByThriftId(fieldId);
17478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17479
        return fields;
17480
      }
17481
 
17482
      /**
17483
       * Find the _Fields constant that matches name, or null if its not found.
17484
       */
17485
      public static _Fields findByName(String name) {
17486
        return byName.get(name);
17487
      }
17488
 
17489
      private final short _thriftId;
17490
      private final String _fieldName;
17491
 
17492
      _Fields(short thriftId, String fieldName) {
17493
        _thriftId = thriftId;
17494
        _fieldName = fieldName;
17495
      }
17496
 
17497
      public short getThriftFieldId() {
17498
        return _thriftId;
17499
      }
17500
 
17501
      public String getFieldName() {
17502
        return _fieldName;
17503
      }
17504
    }
17505
 
17506
    // isset id assignments
17507
 
17508
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17509
    static {
17510
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17511
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17512
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17513
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17517
    }
17518
 
17519
    public validateLogIn_args() {
17520
    }
17521
 
17522
    public validateLogIn_args(
17523
      String emailId,
17524
      String password)
17525
    {
17526
      this();
17527
      this.emailId = emailId;
17528
      this.password = password;
17529
    }
17530
 
17531
    /**
17532
     * Performs a deep copy on <i>other</i>.
17533
     */
17534
    public validateLogIn_args(validateLogIn_args other) {
17535
      if (other.isSetEmailId()) {
17536
        this.emailId = other.emailId;
17537
      }
17538
      if (other.isSetPassword()) {
17539
        this.password = other.password;
17540
      }
17541
    }
17542
 
17543
    public validateLogIn_args deepCopy() {
17544
      return new validateLogIn_args(this);
17545
    }
17546
 
17547
    @Override
17548
    public void clear() {
17549
      this.emailId = null;
17550
      this.password = null;
17551
    }
17552
 
17553
    public String getEmailId() {
17554
      return this.emailId;
17555
    }
17556
 
17557
    public void setEmailId(String emailId) {
17558
      this.emailId = emailId;
17559
    }
17560
 
17561
    public void unsetEmailId() {
17562
      this.emailId = null;
17563
    }
17564
 
17565
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17566
    public boolean isSetEmailId() {
17567
      return this.emailId != null;
17568
    }
17569
 
17570
    public void setEmailIdIsSet(boolean value) {
17571
      if (!value) {
17572
        this.emailId = null;
17573
      }
17574
    }
17575
 
17576
    public String getPassword() {
17577
      return this.password;
17578
    }
17579
 
17580
    public void setPassword(String password) {
17581
      this.password = password;
17582
    }
17583
 
17584
    public void unsetPassword() {
17585
      this.password = null;
17586
    }
17587
 
17588
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17589
    public boolean isSetPassword() {
17590
      return this.password != null;
17591
    }
17592
 
17593
    public void setPasswordIsSet(boolean value) {
17594
      if (!value) {
17595
        this.password = null;
17596
      }
17597
    }
17598
 
17599
    public void setFieldValue(_Fields field, Object value) {
17600
      switch (field) {
17601
      case EMAIL_ID:
17602
        if (value == null) {
17603
          unsetEmailId();
17604
        } else {
17605
          setEmailId((String)value);
17606
        }
17607
        break;
17608
 
17609
      case PASSWORD:
17610
        if (value == null) {
17611
          unsetPassword();
17612
        } else {
17613
          setPassword((String)value);
17614
        }
17615
        break;
17616
 
17617
      }
17618
    }
17619
 
17620
    public Object getFieldValue(_Fields field) {
17621
      switch (field) {
17622
      case EMAIL_ID:
17623
        return getEmailId();
17624
 
17625
      case PASSWORD:
17626
        return getPassword();
17627
 
17628
      }
17629
      throw new IllegalStateException();
17630
    }
17631
 
17632
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17633
    public boolean isSet(_Fields field) {
17634
      if (field == null) {
17635
        throw new IllegalArgumentException();
17636
      }
17637
 
17638
      switch (field) {
17639
      case EMAIL_ID:
17640
        return isSetEmailId();
17641
      case PASSWORD:
17642
        return isSetPassword();
17643
      }
17644
      throw new IllegalStateException();
17645
    }
17646
 
17647
    @Override
17648
    public boolean equals(Object that) {
17649
      if (that == null)
17650
        return false;
17651
      if (that instanceof validateLogIn_args)
17652
        return this.equals((validateLogIn_args)that);
17653
      return false;
17654
    }
17655
 
17656
    public boolean equals(validateLogIn_args that) {
17657
      if (that == null)
17658
        return false;
17659
 
17660
      boolean this_present_emailId = true && this.isSetEmailId();
17661
      boolean that_present_emailId = true && that.isSetEmailId();
17662
      if (this_present_emailId || that_present_emailId) {
17663
        if (!(this_present_emailId && that_present_emailId))
17664
          return false;
17665
        if (!this.emailId.equals(that.emailId))
17666
          return false;
17667
      }
17668
 
17669
      boolean this_present_password = true && this.isSetPassword();
17670
      boolean that_present_password = true && that.isSetPassword();
17671
      if (this_present_password || that_present_password) {
17672
        if (!(this_present_password && that_present_password))
17673
          return false;
17674
        if (!this.password.equals(that.password))
17675
          return false;
17676
      }
17677
 
17678
      return true;
17679
    }
17680
 
17681
    @Override
17682
    public int hashCode() {
17683
      return 0;
17684
    }
17685
 
17686
    public int compareTo(validateLogIn_args other) {
17687
      if (!getClass().equals(other.getClass())) {
17688
        return getClass().getName().compareTo(other.getClass().getName());
17689
      }
17690
 
17691
      int lastComparison = 0;
17692
      validateLogIn_args typedOther = (validateLogIn_args)other;
17693
 
17694
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17695
      if (lastComparison != 0) {
17696
        return lastComparison;
17697
      }
17698
      if (isSetEmailId()) {
17699
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17700
        if (lastComparison != 0) {
17701
          return lastComparison;
17702
        }
17703
      }
17704
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17705
      if (lastComparison != 0) {
17706
        return lastComparison;
17707
      }
17708
      if (isSetPassword()) {
17709
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17710
        if (lastComparison != 0) {
17711
          return lastComparison;
17712
        }
17713
      }
17714
      return 0;
17715
    }
17716
 
17717
    public _Fields fieldForId(int fieldId) {
17718
      return _Fields.findByThriftId(fieldId);
17719
    }
17720
 
17721
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17722
      org.apache.thrift.protocol.TField field;
17723
      iprot.readStructBegin();
17724
      while (true)
17725
      {
17726
        field = iprot.readFieldBegin();
17727
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17728
          break;
17729
        }
17730
        switch (field.id) {
17731
          case 1: // EMAIL_ID
17732
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17733
              this.emailId = iprot.readString();
17734
            } else { 
17735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17736
            }
17737
            break;
17738
          case 2: // PASSWORD
17739
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17740
              this.password = iprot.readString();
17741
            } else { 
17742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17743
            }
17744
            break;
17745
          default:
17746
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17747
        }
17748
        iprot.readFieldEnd();
17749
      }
17750
      iprot.readStructEnd();
17751
      validate();
17752
    }
17753
 
17754
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17755
      validate();
17756
 
17757
      oprot.writeStructBegin(STRUCT_DESC);
17758
      if (this.emailId != null) {
17759
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17760
        oprot.writeString(this.emailId);
17761
        oprot.writeFieldEnd();
17762
      }
17763
      if (this.password != null) {
17764
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17765
        oprot.writeString(this.password);
17766
        oprot.writeFieldEnd();
17767
      }
17768
      oprot.writeFieldStop();
17769
      oprot.writeStructEnd();
17770
    }
17771
 
17772
    @Override
17773
    public String toString() {
17774
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17775
      boolean first = true;
17776
 
17777
      sb.append("emailId:");
17778
      if (this.emailId == null) {
17779
        sb.append("null");
17780
      } else {
17781
        sb.append(this.emailId);
17782
      }
17783
      first = false;
17784
      if (!first) sb.append(", ");
17785
      sb.append("password:");
17786
      if (this.password == null) {
17787
        sb.append("null");
17788
      } else {
17789
        sb.append(this.password);
17790
      }
17791
      first = false;
17792
      sb.append(")");
17793
      return sb.toString();
17794
    }
17795
 
17796
    public void validate() throws org.apache.thrift.TException {
17797
      // check for required fields
17798
    }
17799
 
17800
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17801
      try {
17802
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17803
      } catch (org.apache.thrift.TException te) {
17804
        throw new java.io.IOException(te);
17805
      }
17806
    }
17807
 
17808
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17809
      try {
17810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17811
      } catch (org.apache.thrift.TException te) {
17812
        throw new java.io.IOException(te);
17813
      }
17814
    }
17815
 
17816
  }
17817
 
17818
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17820
 
17821
    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);
17822
 
17823
    private boolean success; // required
17824
 
17825
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17826
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17827
      SUCCESS((short)0, "success");
17828
 
17829
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17830
 
17831
      static {
17832
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17833
          byName.put(field.getFieldName(), field);
17834
        }
17835
      }
17836
 
17837
      /**
17838
       * Find the _Fields constant that matches fieldId, or null if its not found.
17839
       */
17840
      public static _Fields findByThriftId(int fieldId) {
17841
        switch(fieldId) {
17842
          case 0: // SUCCESS
17843
            return SUCCESS;
17844
          default:
17845
            return null;
17846
        }
17847
      }
17848
 
17849
      /**
17850
       * Find the _Fields constant that matches fieldId, throwing an exception
17851
       * if it is not found.
17852
       */
17853
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17854
        _Fields fields = findByThriftId(fieldId);
17855
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17856
        return fields;
17857
      }
17858
 
17859
      /**
17860
       * Find the _Fields constant that matches name, or null if its not found.
17861
       */
17862
      public static _Fields findByName(String name) {
17863
        return byName.get(name);
17864
      }
17865
 
17866
      private final short _thriftId;
17867
      private final String _fieldName;
17868
 
17869
      _Fields(short thriftId, String fieldName) {
17870
        _thriftId = thriftId;
17871
        _fieldName = fieldName;
17872
      }
17873
 
17874
      public short getThriftFieldId() {
17875
        return _thriftId;
17876
      }
17877
 
17878
      public String getFieldName() {
17879
        return _fieldName;
17880
      }
17881
    }
17882
 
17883
    // isset id assignments
17884
    private static final int __SUCCESS_ISSET_ID = 0;
17885
    private BitSet __isset_bit_vector = new BitSet(1);
17886
 
17887
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17888
    static {
17889
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17890
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17894
    }
17895
 
17896
    public validateLogIn_result() {
17897
    }
17898
 
17899
    public validateLogIn_result(
17900
      boolean success)
17901
    {
17902
      this();
17903
      this.success = success;
17904
      setSuccessIsSet(true);
17905
    }
17906
 
17907
    /**
17908
     * Performs a deep copy on <i>other</i>.
17909
     */
17910
    public validateLogIn_result(validateLogIn_result other) {
17911
      __isset_bit_vector.clear();
17912
      __isset_bit_vector.or(other.__isset_bit_vector);
17913
      this.success = other.success;
17914
    }
17915
 
17916
    public validateLogIn_result deepCopy() {
17917
      return new validateLogIn_result(this);
17918
    }
17919
 
17920
    @Override
17921
    public void clear() {
17922
      setSuccessIsSet(false);
17923
      this.success = false;
17924
    }
17925
 
17926
    public boolean isSuccess() {
17927
      return this.success;
17928
    }
17929
 
17930
    public void setSuccess(boolean success) {
17931
      this.success = success;
17932
      setSuccessIsSet(true);
17933
    }
17934
 
17935
    public void unsetSuccess() {
17936
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17937
    }
17938
 
17939
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17940
    public boolean isSetSuccess() {
17941
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17942
    }
17943
 
17944
    public void setSuccessIsSet(boolean value) {
17945
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17946
    }
17947
 
17948
    public void setFieldValue(_Fields field, Object value) {
17949
      switch (field) {
17950
      case SUCCESS:
17951
        if (value == null) {
17952
          unsetSuccess();
17953
        } else {
17954
          setSuccess((Boolean)value);
17955
        }
17956
        break;
17957
 
17958
      }
17959
    }
17960
 
17961
    public Object getFieldValue(_Fields field) {
17962
      switch (field) {
17963
      case SUCCESS:
17964
        return Boolean.valueOf(isSuccess());
17965
 
17966
      }
17967
      throw new IllegalStateException();
17968
    }
17969
 
17970
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17971
    public boolean isSet(_Fields field) {
17972
      if (field == null) {
17973
        throw new IllegalArgumentException();
17974
      }
17975
 
17976
      switch (field) {
17977
      case SUCCESS:
17978
        return isSetSuccess();
17979
      }
17980
      throw new IllegalStateException();
17981
    }
17982
 
17983
    @Override
17984
    public boolean equals(Object that) {
17985
      if (that == null)
17986
        return false;
17987
      if (that instanceof validateLogIn_result)
17988
        return this.equals((validateLogIn_result)that);
17989
      return false;
17990
    }
17991
 
17992
    public boolean equals(validateLogIn_result that) {
17993
      if (that == null)
17994
        return false;
17995
 
17996
      boolean this_present_success = true;
17997
      boolean that_present_success = true;
17998
      if (this_present_success || that_present_success) {
17999
        if (!(this_present_success && that_present_success))
18000
          return false;
18001
        if (this.success != that.success)
18002
          return false;
18003
      }
18004
 
18005
      return true;
18006
    }
18007
 
18008
    @Override
18009
    public int hashCode() {
18010
      return 0;
18011
    }
18012
 
18013
    public int compareTo(validateLogIn_result other) {
18014
      if (!getClass().equals(other.getClass())) {
18015
        return getClass().getName().compareTo(other.getClass().getName());
18016
      }
18017
 
18018
      int lastComparison = 0;
18019
      validateLogIn_result typedOther = (validateLogIn_result)other;
18020
 
18021
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18022
      if (lastComparison != 0) {
18023
        return lastComparison;
18024
      }
18025
      if (isSetSuccess()) {
18026
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18027
        if (lastComparison != 0) {
18028
          return lastComparison;
18029
        }
18030
      }
18031
      return 0;
18032
    }
18033
 
18034
    public _Fields fieldForId(int fieldId) {
18035
      return _Fields.findByThriftId(fieldId);
18036
    }
18037
 
18038
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18039
      org.apache.thrift.protocol.TField field;
18040
      iprot.readStructBegin();
18041
      while (true)
18042
      {
18043
        field = iprot.readFieldBegin();
18044
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18045
          break;
18046
        }
18047
        switch (field.id) {
18048
          case 0: // SUCCESS
18049
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18050
              this.success = iprot.readBool();
18051
              setSuccessIsSet(true);
18052
            } else { 
18053
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18054
            }
18055
            break;
18056
          default:
18057
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18058
        }
18059
        iprot.readFieldEnd();
18060
      }
18061
      iprot.readStructEnd();
18062
      validate();
18063
    }
18064
 
18065
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18066
      oprot.writeStructBegin(STRUCT_DESC);
18067
 
18068
      if (this.isSetSuccess()) {
18069
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18070
        oprot.writeBool(this.success);
18071
        oprot.writeFieldEnd();
18072
      }
18073
      oprot.writeFieldStop();
18074
      oprot.writeStructEnd();
18075
    }
18076
 
18077
    @Override
18078
    public String toString() {
18079
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
18080
      boolean first = true;
18081
 
18082
      sb.append("success:");
18083
      sb.append(this.success);
18084
      first = false;
18085
      sb.append(")");
18086
      return sb.toString();
18087
    }
18088
 
18089
    public void validate() throws org.apache.thrift.TException {
18090
      // check for required fields
18091
    }
18092
 
18093
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18094
      try {
18095
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18096
      } catch (org.apache.thrift.TException te) {
18097
        throw new java.io.IOException(te);
18098
      }
18099
    }
18100
 
18101
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18102
      try {
18103
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18104
      } catch (org.apache.thrift.TException te) {
18105
        throw new java.io.IOException(te);
18106
      }
18107
    }
18108
 
18109
  }
18110
 
18111
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18112
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
18113
 
18114
    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);
18115
    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);
18116
 
18117
    private String agentEmailId; // required
18118
    private String password; // required
18119
 
18120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18122
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
18123
      PASSWORD((short)2, "password");
18124
 
18125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18126
 
18127
      static {
18128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18129
          byName.put(field.getFieldName(), field);
18130
        }
18131
      }
18132
 
18133
      /**
18134
       * Find the _Fields constant that matches fieldId, or null if its not found.
18135
       */
18136
      public static _Fields findByThriftId(int fieldId) {
18137
        switch(fieldId) {
18138
          case 1: // AGENT_EMAIL_ID
18139
            return AGENT_EMAIL_ID;
18140
          case 2: // PASSWORD
18141
            return PASSWORD;
18142
          default:
18143
            return null;
18144
        }
18145
      }
18146
 
18147
      /**
18148
       * Find the _Fields constant that matches fieldId, throwing an exception
18149
       * if it is not found.
18150
       */
18151
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18152
        _Fields fields = findByThriftId(fieldId);
18153
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18154
        return fields;
18155
      }
18156
 
18157
      /**
18158
       * Find the _Fields constant that matches name, or null if its not found.
18159
       */
18160
      public static _Fields findByName(String name) {
18161
        return byName.get(name);
18162
      }
18163
 
18164
      private final short _thriftId;
18165
      private final String _fieldName;
18166
 
18167
      _Fields(short thriftId, String fieldName) {
18168
        _thriftId = thriftId;
18169
        _fieldName = fieldName;
18170
      }
18171
 
18172
      public short getThriftFieldId() {
18173
        return _thriftId;
18174
      }
18175
 
18176
      public String getFieldName() {
18177
        return _fieldName;
18178
      }
18179
    }
18180
 
18181
    // isset id assignments
18182
 
18183
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18184
    static {
18185
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18186
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18187
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18188
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18189
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18190
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18191
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
18192
    }
18193
 
18194
    public updatePasswordForAgent_args() {
18195
    }
18196
 
18197
    public updatePasswordForAgent_args(
18198
      String agentEmailId,
18199
      String password)
18200
    {
18201
      this();
18202
      this.agentEmailId = agentEmailId;
18203
      this.password = password;
18204
    }
18205
 
18206
    /**
18207
     * Performs a deep copy on <i>other</i>.
18208
     */
18209
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
18210
      if (other.isSetAgentEmailId()) {
18211
        this.agentEmailId = other.agentEmailId;
18212
      }
18213
      if (other.isSetPassword()) {
18214
        this.password = other.password;
18215
      }
18216
    }
18217
 
18218
    public updatePasswordForAgent_args deepCopy() {
18219
      return new updatePasswordForAgent_args(this);
18220
    }
18221
 
18222
    @Override
18223
    public void clear() {
18224
      this.agentEmailId = null;
18225
      this.password = null;
18226
    }
18227
 
18228
    public String getAgentEmailId() {
18229
      return this.agentEmailId;
18230
    }
18231
 
18232
    public void setAgentEmailId(String agentEmailId) {
18233
      this.agentEmailId = agentEmailId;
18234
    }
18235
 
18236
    public void unsetAgentEmailId() {
18237
      this.agentEmailId = null;
18238
    }
18239
 
18240
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18241
    public boolean isSetAgentEmailId() {
18242
      return this.agentEmailId != null;
18243
    }
18244
 
18245
    public void setAgentEmailIdIsSet(boolean value) {
18246
      if (!value) {
18247
        this.agentEmailId = null;
18248
      }
18249
    }
18250
 
18251
    public String getPassword() {
18252
      return this.password;
18253
    }
18254
 
18255
    public void setPassword(String password) {
18256
      this.password = password;
18257
    }
18258
 
18259
    public void unsetPassword() {
18260
      this.password = null;
18261
    }
18262
 
18263
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18264
    public boolean isSetPassword() {
18265
      return this.password != null;
18266
    }
18267
 
18268
    public void setPasswordIsSet(boolean value) {
18269
      if (!value) {
18270
        this.password = null;
18271
      }
18272
    }
18273
 
18274
    public void setFieldValue(_Fields field, Object value) {
18275
      switch (field) {
18276
      case AGENT_EMAIL_ID:
18277
        if (value == null) {
18278
          unsetAgentEmailId();
18279
        } else {
18280
          setAgentEmailId((String)value);
18281
        }
18282
        break;
18283
 
18284
      case PASSWORD:
18285
        if (value == null) {
18286
          unsetPassword();
18287
        } else {
18288
          setPassword((String)value);
18289
        }
18290
        break;
18291
 
18292
      }
18293
    }
18294
 
18295
    public Object getFieldValue(_Fields field) {
18296
      switch (field) {
18297
      case AGENT_EMAIL_ID:
18298
        return getAgentEmailId();
18299
 
18300
      case PASSWORD:
18301
        return getPassword();
18302
 
18303
      }
18304
      throw new IllegalStateException();
18305
    }
18306
 
18307
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18308
    public boolean isSet(_Fields field) {
18309
      if (field == null) {
18310
        throw new IllegalArgumentException();
18311
      }
18312
 
18313
      switch (field) {
18314
      case AGENT_EMAIL_ID:
18315
        return isSetAgentEmailId();
18316
      case PASSWORD:
18317
        return isSetPassword();
18318
      }
18319
      throw new IllegalStateException();
18320
    }
18321
 
18322
    @Override
18323
    public boolean equals(Object that) {
18324
      if (that == null)
18325
        return false;
18326
      if (that instanceof updatePasswordForAgent_args)
18327
        return this.equals((updatePasswordForAgent_args)that);
18328
      return false;
18329
    }
18330
 
18331
    public boolean equals(updatePasswordForAgent_args that) {
18332
      if (that == null)
18333
        return false;
18334
 
18335
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18336
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18337
      if (this_present_agentEmailId || that_present_agentEmailId) {
18338
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18339
          return false;
18340
        if (!this.agentEmailId.equals(that.agentEmailId))
18341
          return false;
18342
      }
18343
 
18344
      boolean this_present_password = true && this.isSetPassword();
18345
      boolean that_present_password = true && that.isSetPassword();
18346
      if (this_present_password || that_present_password) {
18347
        if (!(this_present_password && that_present_password))
18348
          return false;
18349
        if (!this.password.equals(that.password))
18350
          return false;
18351
      }
18352
 
18353
      return true;
18354
    }
18355
 
18356
    @Override
18357
    public int hashCode() {
18358
      return 0;
18359
    }
18360
 
18361
    public int compareTo(updatePasswordForAgent_args other) {
18362
      if (!getClass().equals(other.getClass())) {
18363
        return getClass().getName().compareTo(other.getClass().getName());
18364
      }
18365
 
18366
      int lastComparison = 0;
18367
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18368
 
18369
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18370
      if (lastComparison != 0) {
18371
        return lastComparison;
18372
      }
18373
      if (isSetAgentEmailId()) {
18374
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18375
        if (lastComparison != 0) {
18376
          return lastComparison;
18377
        }
18378
      }
18379
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18380
      if (lastComparison != 0) {
18381
        return lastComparison;
18382
      }
18383
      if (isSetPassword()) {
18384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18385
        if (lastComparison != 0) {
18386
          return lastComparison;
18387
        }
18388
      }
18389
      return 0;
18390
    }
18391
 
18392
    public _Fields fieldForId(int fieldId) {
18393
      return _Fields.findByThriftId(fieldId);
18394
    }
18395
 
18396
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18397
      org.apache.thrift.protocol.TField field;
18398
      iprot.readStructBegin();
18399
      while (true)
18400
      {
18401
        field = iprot.readFieldBegin();
18402
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18403
          break;
18404
        }
18405
        switch (field.id) {
18406
          case 1: // AGENT_EMAIL_ID
18407
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18408
              this.agentEmailId = iprot.readString();
18409
            } else { 
18410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18411
            }
18412
            break;
18413
          case 2: // PASSWORD
18414
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18415
              this.password = iprot.readString();
18416
            } else { 
18417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18418
            }
18419
            break;
18420
          default:
18421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18422
        }
18423
        iprot.readFieldEnd();
18424
      }
18425
      iprot.readStructEnd();
18426
      validate();
18427
    }
18428
 
18429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18430
      validate();
18431
 
18432
      oprot.writeStructBegin(STRUCT_DESC);
18433
      if (this.agentEmailId != null) {
18434
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18435
        oprot.writeString(this.agentEmailId);
18436
        oprot.writeFieldEnd();
18437
      }
18438
      if (this.password != null) {
18439
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18440
        oprot.writeString(this.password);
18441
        oprot.writeFieldEnd();
18442
      }
18443
      oprot.writeFieldStop();
18444
      oprot.writeStructEnd();
18445
    }
18446
 
18447
    @Override
18448
    public String toString() {
18449
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18450
      boolean first = true;
18451
 
18452
      sb.append("agentEmailId:");
18453
      if (this.agentEmailId == null) {
18454
        sb.append("null");
18455
      } else {
18456
        sb.append(this.agentEmailId);
18457
      }
18458
      first = false;
18459
      if (!first) sb.append(", ");
18460
      sb.append("password:");
18461
      if (this.password == null) {
18462
        sb.append("null");
18463
      } else {
18464
        sb.append(this.password);
18465
      }
18466
      first = false;
18467
      sb.append(")");
18468
      return sb.toString();
18469
    }
18470
 
18471
    public void validate() throws org.apache.thrift.TException {
18472
      // check for required fields
18473
    }
18474
 
18475
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18476
      try {
18477
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18478
      } catch (org.apache.thrift.TException te) {
18479
        throw new java.io.IOException(te);
18480
      }
18481
    }
18482
 
18483
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18484
      try {
18485
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18486
      } catch (org.apache.thrift.TException te) {
18487
        throw new java.io.IOException(te);
18488
      }
18489
    }
18490
 
18491
  }
18492
 
18493
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18494
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18495
 
18496
 
18497
 
18498
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18499
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18500
;
18501
 
18502
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18503
 
18504
      static {
18505
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18506
          byName.put(field.getFieldName(), field);
18507
        }
18508
      }
18509
 
18510
      /**
18511
       * Find the _Fields constant that matches fieldId, or null if its not found.
18512
       */
18513
      public static _Fields findByThriftId(int fieldId) {
18514
        switch(fieldId) {
18515
          default:
18516
            return null;
18517
        }
18518
      }
18519
 
18520
      /**
18521
       * Find the _Fields constant that matches fieldId, throwing an exception
18522
       * if it is not found.
18523
       */
18524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18525
        _Fields fields = findByThriftId(fieldId);
18526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18527
        return fields;
18528
      }
18529
 
18530
      /**
18531
       * Find the _Fields constant that matches name, or null if its not found.
18532
       */
18533
      public static _Fields findByName(String name) {
18534
        return byName.get(name);
18535
      }
18536
 
18537
      private final short _thriftId;
18538
      private final String _fieldName;
18539
 
18540
      _Fields(short thriftId, String fieldName) {
18541
        _thriftId = thriftId;
18542
        _fieldName = fieldName;
18543
      }
18544
 
18545
      public short getThriftFieldId() {
18546
        return _thriftId;
18547
      }
18548
 
18549
      public String getFieldName() {
18550
        return _fieldName;
18551
      }
18552
    }
18553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18554
    static {
18555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18556
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18557
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18558
    }
18559
 
18560
    public updatePasswordForAgent_result() {
18561
    }
18562
 
18563
    /**
18564
     * Performs a deep copy on <i>other</i>.
18565
     */
18566
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18567
    }
18568
 
18569
    public updatePasswordForAgent_result deepCopy() {
18570
      return new updatePasswordForAgent_result(this);
18571
    }
18572
 
18573
    @Override
18574
    public void clear() {
18575
    }
18576
 
18577
    public void setFieldValue(_Fields field, Object value) {
18578
      switch (field) {
18579
      }
18580
    }
18581
 
18582
    public Object getFieldValue(_Fields field) {
18583
      switch (field) {
18584
      }
18585
      throw new IllegalStateException();
18586
    }
18587
 
18588
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18589
    public boolean isSet(_Fields field) {
18590
      if (field == null) {
18591
        throw new IllegalArgumentException();
18592
      }
18593
 
18594
      switch (field) {
18595
      }
18596
      throw new IllegalStateException();
18597
    }
18598
 
18599
    @Override
18600
    public boolean equals(Object that) {
18601
      if (that == null)
18602
        return false;
18603
      if (that instanceof updatePasswordForAgent_result)
18604
        return this.equals((updatePasswordForAgent_result)that);
18605
      return false;
18606
    }
18607
 
18608
    public boolean equals(updatePasswordForAgent_result that) {
18609
      if (that == null)
18610
        return false;
18611
 
18612
      return true;
18613
    }
18614
 
18615
    @Override
18616
    public int hashCode() {
18617
      return 0;
18618
    }
18619
 
18620
    public int compareTo(updatePasswordForAgent_result other) {
18621
      if (!getClass().equals(other.getClass())) {
18622
        return getClass().getName().compareTo(other.getClass().getName());
18623
      }
18624
 
18625
      int lastComparison = 0;
18626
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18627
 
18628
      return 0;
18629
    }
18630
 
18631
    public _Fields fieldForId(int fieldId) {
18632
      return _Fields.findByThriftId(fieldId);
18633
    }
18634
 
18635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18636
      org.apache.thrift.protocol.TField field;
18637
      iprot.readStructBegin();
18638
      while (true)
18639
      {
18640
        field = iprot.readFieldBegin();
18641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18642
          break;
18643
        }
18644
        switch (field.id) {
18645
          default:
18646
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18647
        }
18648
        iprot.readFieldEnd();
18649
      }
18650
      iprot.readStructEnd();
18651
      validate();
18652
    }
18653
 
18654
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18655
      oprot.writeStructBegin(STRUCT_DESC);
18656
 
18657
      oprot.writeFieldStop();
18658
      oprot.writeStructEnd();
18659
    }
18660
 
18661
    @Override
18662
    public String toString() {
18663
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18664
      boolean first = true;
18665
 
18666
      sb.append(")");
18667
      return sb.toString();
18668
    }
18669
 
18670
    public void validate() throws org.apache.thrift.TException {
18671
      // check for required fields
18672
    }
18673
 
18674
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18675
      try {
18676
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18677
      } catch (org.apache.thrift.TException te) {
18678
        throw new java.io.IOException(te);
18679
      }
18680
    }
18681
 
18682
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18683
      try {
18684
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18685
      } catch (org.apache.thrift.TException te) {
18686
        throw new java.io.IOException(te);
18687
      }
18688
    }
18689
 
18690
  }
18691
 
18692
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18693
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18694
 
18695
    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);
18696
 
18697
    private String agentEmailId; // required
18698
 
18699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18701
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18702
 
18703
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18704
 
18705
      static {
18706
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18707
          byName.put(field.getFieldName(), field);
18708
        }
18709
      }
18710
 
18711
      /**
18712
       * Find the _Fields constant that matches fieldId, or null if its not found.
18713
       */
18714
      public static _Fields findByThriftId(int fieldId) {
18715
        switch(fieldId) {
18716
          case 1: // AGENT_EMAIL_ID
18717
            return AGENT_EMAIL_ID;
18718
          default:
18719
            return null;
18720
        }
18721
      }
18722
 
18723
      /**
18724
       * Find the _Fields constant that matches fieldId, throwing an exception
18725
       * if it is not found.
18726
       */
18727
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18728
        _Fields fields = findByThriftId(fieldId);
18729
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18730
        return fields;
18731
      }
18732
 
18733
      /**
18734
       * Find the _Fields constant that matches name, or null if its not found.
18735
       */
18736
      public static _Fields findByName(String name) {
18737
        return byName.get(name);
18738
      }
18739
 
18740
      private final short _thriftId;
18741
      private final String _fieldName;
18742
 
18743
      _Fields(short thriftId, String fieldName) {
18744
        _thriftId = thriftId;
18745
        _fieldName = fieldName;
18746
      }
18747
 
18748
      public short getThriftFieldId() {
18749
        return _thriftId;
18750
      }
18751
 
18752
      public String getFieldName() {
18753
        return _fieldName;
18754
      }
18755
    }
18756
 
18757
    // isset id assignments
18758
 
18759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18760
    static {
18761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18762
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18766
    }
18767
 
18768
    public getRoleNamesForAgent_args() {
18769
    }
18770
 
18771
    public getRoleNamesForAgent_args(
18772
      String agentEmailId)
18773
    {
18774
      this();
18775
      this.agentEmailId = agentEmailId;
18776
    }
18777
 
18778
    /**
18779
     * Performs a deep copy on <i>other</i>.
18780
     */
18781
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18782
      if (other.isSetAgentEmailId()) {
18783
        this.agentEmailId = other.agentEmailId;
18784
      }
18785
    }
18786
 
18787
    public getRoleNamesForAgent_args deepCopy() {
18788
      return new getRoleNamesForAgent_args(this);
18789
    }
18790
 
18791
    @Override
18792
    public void clear() {
18793
      this.agentEmailId = null;
18794
    }
18795
 
18796
    public String getAgentEmailId() {
18797
      return this.agentEmailId;
18798
    }
18799
 
18800
    public void setAgentEmailId(String agentEmailId) {
18801
      this.agentEmailId = agentEmailId;
18802
    }
18803
 
18804
    public void unsetAgentEmailId() {
18805
      this.agentEmailId = null;
18806
    }
18807
 
18808
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18809
    public boolean isSetAgentEmailId() {
18810
      return this.agentEmailId != null;
18811
    }
18812
 
18813
    public void setAgentEmailIdIsSet(boolean value) {
18814
      if (!value) {
18815
        this.agentEmailId = null;
18816
      }
18817
    }
18818
 
18819
    public void setFieldValue(_Fields field, Object value) {
18820
      switch (field) {
18821
      case AGENT_EMAIL_ID:
18822
        if (value == null) {
18823
          unsetAgentEmailId();
18824
        } else {
18825
          setAgentEmailId((String)value);
18826
        }
18827
        break;
18828
 
18829
      }
18830
    }
18831
 
18832
    public Object getFieldValue(_Fields field) {
18833
      switch (field) {
18834
      case AGENT_EMAIL_ID:
18835
        return getAgentEmailId();
18836
 
18837
      }
18838
      throw new IllegalStateException();
18839
    }
18840
 
18841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18842
    public boolean isSet(_Fields field) {
18843
      if (field == null) {
18844
        throw new IllegalArgumentException();
18845
      }
18846
 
18847
      switch (field) {
18848
      case AGENT_EMAIL_ID:
18849
        return isSetAgentEmailId();
18850
      }
18851
      throw new IllegalStateException();
18852
    }
18853
 
18854
    @Override
18855
    public boolean equals(Object that) {
18856
      if (that == null)
18857
        return false;
18858
      if (that instanceof getRoleNamesForAgent_args)
18859
        return this.equals((getRoleNamesForAgent_args)that);
18860
      return false;
18861
    }
18862
 
18863
    public boolean equals(getRoleNamesForAgent_args that) {
18864
      if (that == null)
18865
        return false;
18866
 
18867
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18868
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18869
      if (this_present_agentEmailId || that_present_agentEmailId) {
18870
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18871
          return false;
18872
        if (!this.agentEmailId.equals(that.agentEmailId))
18873
          return false;
18874
      }
18875
 
18876
      return true;
18877
    }
18878
 
18879
    @Override
18880
    public int hashCode() {
18881
      return 0;
18882
    }
18883
 
18884
    public int compareTo(getRoleNamesForAgent_args other) {
18885
      if (!getClass().equals(other.getClass())) {
18886
        return getClass().getName().compareTo(other.getClass().getName());
18887
      }
18888
 
18889
      int lastComparison = 0;
18890
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18891
 
18892
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18893
      if (lastComparison != 0) {
18894
        return lastComparison;
18895
      }
18896
      if (isSetAgentEmailId()) {
18897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18898
        if (lastComparison != 0) {
18899
          return lastComparison;
18900
        }
18901
      }
18902
      return 0;
18903
    }
18904
 
18905
    public _Fields fieldForId(int fieldId) {
18906
      return _Fields.findByThriftId(fieldId);
18907
    }
18908
 
18909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18910
      org.apache.thrift.protocol.TField field;
18911
      iprot.readStructBegin();
18912
      while (true)
18913
      {
18914
        field = iprot.readFieldBegin();
18915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18916
          break;
18917
        }
18918
        switch (field.id) {
18919
          case 1: // AGENT_EMAIL_ID
18920
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18921
              this.agentEmailId = iprot.readString();
18922
            } else { 
18923
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18924
            }
18925
            break;
18926
          default:
18927
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18928
        }
18929
        iprot.readFieldEnd();
18930
      }
18931
      iprot.readStructEnd();
18932
      validate();
18933
    }
18934
 
18935
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18936
      validate();
18937
 
18938
      oprot.writeStructBegin(STRUCT_DESC);
18939
      if (this.agentEmailId != null) {
18940
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18941
        oprot.writeString(this.agentEmailId);
18942
        oprot.writeFieldEnd();
18943
      }
18944
      oprot.writeFieldStop();
18945
      oprot.writeStructEnd();
18946
    }
18947
 
18948
    @Override
18949
    public String toString() {
18950
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18951
      boolean first = true;
18952
 
18953
      sb.append("agentEmailId:");
18954
      if (this.agentEmailId == null) {
18955
        sb.append("null");
18956
      } else {
18957
        sb.append(this.agentEmailId);
18958
      }
18959
      first = false;
18960
      sb.append(")");
18961
      return sb.toString();
18962
    }
18963
 
18964
    public void validate() throws org.apache.thrift.TException {
18965
      // check for required fields
18966
    }
18967
 
18968
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18969
      try {
18970
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18971
      } catch (org.apache.thrift.TException te) {
18972
        throw new java.io.IOException(te);
18973
      }
18974
    }
18975
 
18976
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18977
      try {
18978
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18979
      } catch (org.apache.thrift.TException te) {
18980
        throw new java.io.IOException(te);
18981
      }
18982
    }
18983
 
18984
  }
18985
 
18986
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18987
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18988
 
18989
    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);
18990
 
18991
    private List<String> success; // required
18992
 
18993
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18994
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18995
      SUCCESS((short)0, "success");
18996
 
18997
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18998
 
18999
      static {
19000
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19001
          byName.put(field.getFieldName(), field);
19002
        }
19003
      }
19004
 
19005
      /**
19006
       * Find the _Fields constant that matches fieldId, or null if its not found.
19007
       */
19008
      public static _Fields findByThriftId(int fieldId) {
19009
        switch(fieldId) {
19010
          case 0: // SUCCESS
19011
            return SUCCESS;
19012
          default:
19013
            return null;
19014
        }
19015
      }
19016
 
19017
      /**
19018
       * Find the _Fields constant that matches fieldId, throwing an exception
19019
       * if it is not found.
19020
       */
19021
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19022
        _Fields fields = findByThriftId(fieldId);
19023
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19024
        return fields;
19025
      }
19026
 
19027
      /**
19028
       * Find the _Fields constant that matches name, or null if its not found.
19029
       */
19030
      public static _Fields findByName(String name) {
19031
        return byName.get(name);
19032
      }
19033
 
19034
      private final short _thriftId;
19035
      private final String _fieldName;
19036
 
19037
      _Fields(short thriftId, String fieldName) {
19038
        _thriftId = thriftId;
19039
        _fieldName = fieldName;
19040
      }
19041
 
19042
      public short getThriftFieldId() {
19043
        return _thriftId;
19044
      }
19045
 
19046
      public String getFieldName() {
19047
        return _fieldName;
19048
      }
19049
    }
19050
 
19051
    // isset id assignments
19052
 
19053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19054
    static {
19055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19056
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19057
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19058
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
19061
    }
19062
 
19063
    public getRoleNamesForAgent_result() {
19064
    }
19065
 
19066
    public getRoleNamesForAgent_result(
19067
      List<String> success)
19068
    {
19069
      this();
19070
      this.success = success;
19071
    }
19072
 
19073
    /**
19074
     * Performs a deep copy on <i>other</i>.
19075
     */
19076
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
19077
      if (other.isSetSuccess()) {
19078
        List<String> __this__success = new ArrayList<String>();
19079
        for (String other_element : other.success) {
19080
          __this__success.add(other_element);
19081
        }
19082
        this.success = __this__success;
19083
      }
19084
    }
19085
 
19086
    public getRoleNamesForAgent_result deepCopy() {
19087
      return new getRoleNamesForAgent_result(this);
19088
    }
19089
 
19090
    @Override
19091
    public void clear() {
19092
      this.success = null;
19093
    }
19094
 
19095
    public int getSuccessSize() {
19096
      return (this.success == null) ? 0 : this.success.size();
19097
    }
19098
 
19099
    public java.util.Iterator<String> getSuccessIterator() {
19100
      return (this.success == null) ? null : this.success.iterator();
19101
    }
19102
 
19103
    public void addToSuccess(String elem) {
19104
      if (this.success == null) {
19105
        this.success = new ArrayList<String>();
19106
      }
19107
      this.success.add(elem);
19108
    }
19109
 
19110
    public List<String> getSuccess() {
19111
      return this.success;
19112
    }
19113
 
19114
    public void setSuccess(List<String> success) {
19115
      this.success = success;
19116
    }
19117
 
19118
    public void unsetSuccess() {
19119
      this.success = null;
19120
    }
19121
 
19122
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19123
    public boolean isSetSuccess() {
19124
      return this.success != null;
19125
    }
19126
 
19127
    public void setSuccessIsSet(boolean value) {
19128
      if (!value) {
19129
        this.success = null;
19130
      }
19131
    }
19132
 
19133
    public void setFieldValue(_Fields field, Object value) {
19134
      switch (field) {
19135
      case SUCCESS:
19136
        if (value == null) {
19137
          unsetSuccess();
19138
        } else {
19139
          setSuccess((List<String>)value);
19140
        }
19141
        break;
19142
 
19143
      }
19144
    }
19145
 
19146
    public Object getFieldValue(_Fields field) {
19147
      switch (field) {
19148
      case SUCCESS:
19149
        return getSuccess();
19150
 
19151
      }
19152
      throw new IllegalStateException();
19153
    }
19154
 
19155
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19156
    public boolean isSet(_Fields field) {
19157
      if (field == null) {
19158
        throw new IllegalArgumentException();
19159
      }
19160
 
19161
      switch (field) {
19162
      case SUCCESS:
19163
        return isSetSuccess();
19164
      }
19165
      throw new IllegalStateException();
19166
    }
19167
 
19168
    @Override
19169
    public boolean equals(Object that) {
19170
      if (that == null)
19171
        return false;
19172
      if (that instanceof getRoleNamesForAgent_result)
19173
        return this.equals((getRoleNamesForAgent_result)that);
19174
      return false;
19175
    }
19176
 
19177
    public boolean equals(getRoleNamesForAgent_result that) {
19178
      if (that == null)
19179
        return false;
19180
 
19181
      boolean this_present_success = true && this.isSetSuccess();
19182
      boolean that_present_success = true && that.isSetSuccess();
19183
      if (this_present_success || that_present_success) {
19184
        if (!(this_present_success && that_present_success))
19185
          return false;
19186
        if (!this.success.equals(that.success))
19187
          return false;
19188
      }
19189
 
19190
      return true;
19191
    }
19192
 
19193
    @Override
19194
    public int hashCode() {
19195
      return 0;
19196
    }
19197
 
19198
    public int compareTo(getRoleNamesForAgent_result other) {
19199
      if (!getClass().equals(other.getClass())) {
19200
        return getClass().getName().compareTo(other.getClass().getName());
19201
      }
19202
 
19203
      int lastComparison = 0;
19204
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
19205
 
19206
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19207
      if (lastComparison != 0) {
19208
        return lastComparison;
19209
      }
19210
      if (isSetSuccess()) {
19211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19212
        if (lastComparison != 0) {
19213
          return lastComparison;
19214
        }
19215
      }
19216
      return 0;
19217
    }
19218
 
19219
    public _Fields fieldForId(int fieldId) {
19220
      return _Fields.findByThriftId(fieldId);
19221
    }
19222
 
19223
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19224
      org.apache.thrift.protocol.TField field;
19225
      iprot.readStructBegin();
19226
      while (true)
19227
      {
19228
        field = iprot.readFieldBegin();
19229
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19230
          break;
19231
        }
19232
        switch (field.id) {
19233
          case 0: // SUCCESS
19234
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19235
              {
5864 rajveer 19236
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19237
                this.success = new ArrayList<String>(_list53.size);
19238
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19239
                {
5864 rajveer 19240
                  String _elem55; // required
19241
                  _elem55 = iprot.readString();
19242
                  this.success.add(_elem55);
4693 mandeep.dh 19243
                }
19244
                iprot.readListEnd();
19245
              }
19246
            } else { 
19247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19248
            }
19249
            break;
19250
          default:
19251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19252
        }
19253
        iprot.readFieldEnd();
19254
      }
19255
      iprot.readStructEnd();
19256
      validate();
19257
    }
19258
 
19259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19260
      oprot.writeStructBegin(STRUCT_DESC);
19261
 
19262
      if (this.isSetSuccess()) {
19263
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19264
        {
19265
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19266
          for (String _iter56 : this.success)
4693 mandeep.dh 19267
          {
5864 rajveer 19268
            oprot.writeString(_iter56);
4693 mandeep.dh 19269
          }
19270
          oprot.writeListEnd();
19271
        }
19272
        oprot.writeFieldEnd();
19273
      }
19274
      oprot.writeFieldStop();
19275
      oprot.writeStructEnd();
19276
    }
19277
 
19278
    @Override
19279
    public String toString() {
19280
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19281
      boolean first = true;
19282
 
19283
      sb.append("success:");
19284
      if (this.success == null) {
19285
        sb.append("null");
19286
      } else {
19287
        sb.append(this.success);
19288
      }
19289
      first = false;
19290
      sb.append(")");
19291
      return sb.toString();
19292
    }
19293
 
19294
    public void validate() throws org.apache.thrift.TException {
19295
      // check for required fields
19296
    }
19297
 
19298
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19299
      try {
19300
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19301
      } catch (org.apache.thrift.TException te) {
19302
        throw new java.io.IOException(te);
19303
      }
19304
    }
19305
 
19306
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19307
      try {
19308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19309
      } catch (org.apache.thrift.TException te) {
19310
        throw new java.io.IOException(te);
19311
      }
19312
    }
19313
 
19314
  }
19315
 
19316
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19318
 
19319
    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);
19320
 
19321
    private String roleName; // required
19322
 
19323
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19324
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19325
      ROLE_NAME((short)1, "roleName");
19326
 
19327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19328
 
19329
      static {
19330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19331
          byName.put(field.getFieldName(), field);
19332
        }
19333
      }
19334
 
19335
      /**
19336
       * Find the _Fields constant that matches fieldId, or null if its not found.
19337
       */
19338
      public static _Fields findByThriftId(int fieldId) {
19339
        switch(fieldId) {
19340
          case 1: // ROLE_NAME
19341
            return ROLE_NAME;
19342
          default:
19343
            return null;
19344
        }
19345
      }
19346
 
19347
      /**
19348
       * Find the _Fields constant that matches fieldId, throwing an exception
19349
       * if it is not found.
19350
       */
19351
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19352
        _Fields fields = findByThriftId(fieldId);
19353
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19354
        return fields;
19355
      }
19356
 
19357
      /**
19358
       * Find the _Fields constant that matches name, or null if its not found.
19359
       */
19360
      public static _Fields findByName(String name) {
19361
        return byName.get(name);
19362
      }
19363
 
19364
      private final short _thriftId;
19365
      private final String _fieldName;
19366
 
19367
      _Fields(short thriftId, String fieldName) {
19368
        _thriftId = thriftId;
19369
        _fieldName = fieldName;
19370
      }
19371
 
19372
      public short getThriftFieldId() {
19373
        return _thriftId;
19374
      }
19375
 
19376
      public String getFieldName() {
19377
        return _fieldName;
19378
      }
19379
    }
19380
 
19381
    // isset id assignments
19382
 
19383
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19384
    static {
19385
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19386
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19387
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19388
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19389
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19390
    }
19391
 
19392
    public getPermissionsForRoleName_args() {
19393
    }
19394
 
19395
    public getPermissionsForRoleName_args(
19396
      String roleName)
19397
    {
19398
      this();
19399
      this.roleName = roleName;
19400
    }
19401
 
19402
    /**
19403
     * Performs a deep copy on <i>other</i>.
19404
     */
19405
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19406
      if (other.isSetRoleName()) {
19407
        this.roleName = other.roleName;
19408
      }
19409
    }
19410
 
19411
    public getPermissionsForRoleName_args deepCopy() {
19412
      return new getPermissionsForRoleName_args(this);
19413
    }
19414
 
19415
    @Override
19416
    public void clear() {
19417
      this.roleName = null;
19418
    }
19419
 
19420
    public String getRoleName() {
19421
      return this.roleName;
19422
    }
19423
 
19424
    public void setRoleName(String roleName) {
19425
      this.roleName = roleName;
19426
    }
19427
 
19428
    public void unsetRoleName() {
19429
      this.roleName = null;
19430
    }
19431
 
19432
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19433
    public boolean isSetRoleName() {
19434
      return this.roleName != null;
19435
    }
19436
 
19437
    public void setRoleNameIsSet(boolean value) {
19438
      if (!value) {
19439
        this.roleName = null;
19440
      }
19441
    }
19442
 
19443
    public void setFieldValue(_Fields field, Object value) {
19444
      switch (field) {
19445
      case ROLE_NAME:
19446
        if (value == null) {
19447
          unsetRoleName();
19448
        } else {
19449
          setRoleName((String)value);
19450
        }
19451
        break;
19452
 
19453
      }
19454
    }
19455
 
19456
    public Object getFieldValue(_Fields field) {
19457
      switch (field) {
19458
      case ROLE_NAME:
19459
        return getRoleName();
19460
 
19461
      }
19462
      throw new IllegalStateException();
19463
    }
19464
 
19465
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19466
    public boolean isSet(_Fields field) {
19467
      if (field == null) {
19468
        throw new IllegalArgumentException();
19469
      }
19470
 
19471
      switch (field) {
19472
      case ROLE_NAME:
19473
        return isSetRoleName();
19474
      }
19475
      throw new IllegalStateException();
19476
    }
19477
 
19478
    @Override
19479
    public boolean equals(Object that) {
19480
      if (that == null)
19481
        return false;
19482
      if (that instanceof getPermissionsForRoleName_args)
19483
        return this.equals((getPermissionsForRoleName_args)that);
19484
      return false;
19485
    }
19486
 
19487
    public boolean equals(getPermissionsForRoleName_args that) {
19488
      if (that == null)
19489
        return false;
19490
 
19491
      boolean this_present_roleName = true && this.isSetRoleName();
19492
      boolean that_present_roleName = true && that.isSetRoleName();
19493
      if (this_present_roleName || that_present_roleName) {
19494
        if (!(this_present_roleName && that_present_roleName))
19495
          return false;
19496
        if (!this.roleName.equals(that.roleName))
19497
          return false;
19498
      }
19499
 
19500
      return true;
19501
    }
19502
 
19503
    @Override
19504
    public int hashCode() {
19505
      return 0;
19506
    }
19507
 
19508
    public int compareTo(getPermissionsForRoleName_args other) {
19509
      if (!getClass().equals(other.getClass())) {
19510
        return getClass().getName().compareTo(other.getClass().getName());
19511
      }
19512
 
19513
      int lastComparison = 0;
19514
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19515
 
19516
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19517
      if (lastComparison != 0) {
19518
        return lastComparison;
19519
      }
19520
      if (isSetRoleName()) {
19521
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19522
        if (lastComparison != 0) {
19523
          return lastComparison;
19524
        }
19525
      }
19526
      return 0;
19527
    }
19528
 
19529
    public _Fields fieldForId(int fieldId) {
19530
      return _Fields.findByThriftId(fieldId);
19531
    }
19532
 
19533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19534
      org.apache.thrift.protocol.TField field;
19535
      iprot.readStructBegin();
19536
      while (true)
19537
      {
19538
        field = iprot.readFieldBegin();
19539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19540
          break;
19541
        }
19542
        switch (field.id) {
19543
          case 1: // ROLE_NAME
19544
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19545
              this.roleName = iprot.readString();
19546
            } else { 
19547
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19548
            }
19549
            break;
19550
          default:
19551
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19552
        }
19553
        iprot.readFieldEnd();
19554
      }
19555
      iprot.readStructEnd();
19556
      validate();
19557
    }
19558
 
19559
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19560
      validate();
19561
 
19562
      oprot.writeStructBegin(STRUCT_DESC);
19563
      if (this.roleName != null) {
19564
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19565
        oprot.writeString(this.roleName);
19566
        oprot.writeFieldEnd();
19567
      }
19568
      oprot.writeFieldStop();
19569
      oprot.writeStructEnd();
19570
    }
19571
 
19572
    @Override
19573
    public String toString() {
19574
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19575
      boolean first = true;
19576
 
19577
      sb.append("roleName:");
19578
      if (this.roleName == null) {
19579
        sb.append("null");
19580
      } else {
19581
        sb.append(this.roleName);
19582
      }
19583
      first = false;
19584
      sb.append(")");
19585
      return sb.toString();
19586
    }
19587
 
19588
    public void validate() throws org.apache.thrift.TException {
19589
      // check for required fields
19590
    }
19591
 
19592
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19593
      try {
19594
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19595
      } catch (org.apache.thrift.TException te) {
19596
        throw new java.io.IOException(te);
19597
      }
19598
    }
19599
 
19600
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19601
      try {
19602
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19603
      } catch (org.apache.thrift.TException te) {
19604
        throw new java.io.IOException(te);
19605
      }
19606
    }
19607
 
19608
  }
19609
 
19610
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19611
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19612
 
19613
    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);
19614
 
19615
    private List<String> success; // required
19616
 
19617
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19618
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19619
      SUCCESS((short)0, "success");
19620
 
19621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19622
 
19623
      static {
19624
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19625
          byName.put(field.getFieldName(), field);
19626
        }
19627
      }
19628
 
19629
      /**
19630
       * Find the _Fields constant that matches fieldId, or null if its not found.
19631
       */
19632
      public static _Fields findByThriftId(int fieldId) {
19633
        switch(fieldId) {
19634
          case 0: // SUCCESS
19635
            return SUCCESS;
19636
          default:
19637
            return null;
19638
        }
19639
      }
19640
 
19641
      /**
19642
       * Find the _Fields constant that matches fieldId, throwing an exception
19643
       * if it is not found.
19644
       */
19645
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19646
        _Fields fields = findByThriftId(fieldId);
19647
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19648
        return fields;
19649
      }
19650
 
19651
      /**
19652
       * Find the _Fields constant that matches name, or null if its not found.
19653
       */
19654
      public static _Fields findByName(String name) {
19655
        return byName.get(name);
19656
      }
19657
 
19658
      private final short _thriftId;
19659
      private final String _fieldName;
19660
 
19661
      _Fields(short thriftId, String fieldName) {
19662
        _thriftId = thriftId;
19663
        _fieldName = fieldName;
19664
      }
19665
 
19666
      public short getThriftFieldId() {
19667
        return _thriftId;
19668
      }
19669
 
19670
      public String getFieldName() {
19671
        return _fieldName;
19672
      }
19673
    }
19674
 
19675
    // isset id assignments
19676
 
19677
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19678
    static {
19679
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19680
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19681
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19682
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19683
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19684
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19685
    }
19686
 
19687
    public getPermissionsForRoleName_result() {
19688
    }
19689
 
19690
    public getPermissionsForRoleName_result(
19691
      List<String> success)
19692
    {
19693
      this();
19694
      this.success = success;
19695
    }
19696
 
19697
    /**
19698
     * Performs a deep copy on <i>other</i>.
19699
     */
19700
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19701
      if (other.isSetSuccess()) {
19702
        List<String> __this__success = new ArrayList<String>();
19703
        for (String other_element : other.success) {
19704
          __this__success.add(other_element);
19705
        }
19706
        this.success = __this__success;
19707
      }
19708
    }
19709
 
19710
    public getPermissionsForRoleName_result deepCopy() {
19711
      return new getPermissionsForRoleName_result(this);
19712
    }
19713
 
19714
    @Override
19715
    public void clear() {
19716
      this.success = null;
19717
    }
19718
 
19719
    public int getSuccessSize() {
19720
      return (this.success == null) ? 0 : this.success.size();
19721
    }
19722
 
19723
    public java.util.Iterator<String> getSuccessIterator() {
19724
      return (this.success == null) ? null : this.success.iterator();
19725
    }
19726
 
19727
    public void addToSuccess(String elem) {
19728
      if (this.success == null) {
19729
        this.success = new ArrayList<String>();
19730
      }
19731
      this.success.add(elem);
19732
    }
19733
 
19734
    public List<String> getSuccess() {
19735
      return this.success;
19736
    }
19737
 
19738
    public void setSuccess(List<String> success) {
19739
      this.success = success;
19740
    }
19741
 
19742
    public void unsetSuccess() {
19743
      this.success = null;
19744
    }
19745
 
19746
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19747
    public boolean isSetSuccess() {
19748
      return this.success != null;
19749
    }
19750
 
19751
    public void setSuccessIsSet(boolean value) {
19752
      if (!value) {
19753
        this.success = null;
19754
      }
19755
    }
19756
 
19757
    public void setFieldValue(_Fields field, Object value) {
19758
      switch (field) {
19759
      case SUCCESS:
19760
        if (value == null) {
19761
          unsetSuccess();
19762
        } else {
19763
          setSuccess((List<String>)value);
19764
        }
19765
        break;
19766
 
19767
      }
19768
    }
19769
 
19770
    public Object getFieldValue(_Fields field) {
19771
      switch (field) {
19772
      case SUCCESS:
19773
        return getSuccess();
19774
 
19775
      }
19776
      throw new IllegalStateException();
19777
    }
19778
 
19779
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19780
    public boolean isSet(_Fields field) {
19781
      if (field == null) {
19782
        throw new IllegalArgumentException();
19783
      }
19784
 
19785
      switch (field) {
19786
      case SUCCESS:
19787
        return isSetSuccess();
19788
      }
19789
      throw new IllegalStateException();
19790
    }
19791
 
19792
    @Override
19793
    public boolean equals(Object that) {
19794
      if (that == null)
19795
        return false;
19796
      if (that instanceof getPermissionsForRoleName_result)
19797
        return this.equals((getPermissionsForRoleName_result)that);
19798
      return false;
19799
    }
19800
 
19801
    public boolean equals(getPermissionsForRoleName_result that) {
19802
      if (that == null)
19803
        return false;
19804
 
19805
      boolean this_present_success = true && this.isSetSuccess();
19806
      boolean that_present_success = true && that.isSetSuccess();
19807
      if (this_present_success || that_present_success) {
19808
        if (!(this_present_success && that_present_success))
19809
          return false;
19810
        if (!this.success.equals(that.success))
19811
          return false;
19812
      }
19813
 
19814
      return true;
19815
    }
19816
 
19817
    @Override
19818
    public int hashCode() {
19819
      return 0;
19820
    }
19821
 
19822
    public int compareTo(getPermissionsForRoleName_result other) {
19823
      if (!getClass().equals(other.getClass())) {
19824
        return getClass().getName().compareTo(other.getClass().getName());
19825
      }
19826
 
19827
      int lastComparison = 0;
19828
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19829
 
19830
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19831
      if (lastComparison != 0) {
19832
        return lastComparison;
19833
      }
19834
      if (isSetSuccess()) {
19835
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19836
        if (lastComparison != 0) {
19837
          return lastComparison;
19838
        }
19839
      }
19840
      return 0;
19841
    }
19842
 
19843
    public _Fields fieldForId(int fieldId) {
19844
      return _Fields.findByThriftId(fieldId);
19845
    }
19846
 
19847
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19848
      org.apache.thrift.protocol.TField field;
19849
      iprot.readStructBegin();
19850
      while (true)
19851
      {
19852
        field = iprot.readFieldBegin();
19853
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19854
          break;
19855
        }
19856
        switch (field.id) {
19857
          case 0: // SUCCESS
19858
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19859
              {
5864 rajveer 19860
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19861
                this.success = new ArrayList<String>(_list57.size);
19862
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19863
                {
5864 rajveer 19864
                  String _elem59; // required
19865
                  _elem59 = iprot.readString();
19866
                  this.success.add(_elem59);
4693 mandeep.dh 19867
                }
19868
                iprot.readListEnd();
19869
              }
19870
            } else { 
19871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19872
            }
19873
            break;
19874
          default:
19875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19876
        }
19877
        iprot.readFieldEnd();
19878
      }
19879
      iprot.readStructEnd();
19880
      validate();
19881
    }
19882
 
19883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19884
      oprot.writeStructBegin(STRUCT_DESC);
19885
 
19886
      if (this.isSetSuccess()) {
19887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19888
        {
19889
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19890
          for (String _iter60 : this.success)
4693 mandeep.dh 19891
          {
5864 rajveer 19892
            oprot.writeString(_iter60);
4693 mandeep.dh 19893
          }
19894
          oprot.writeListEnd();
19895
        }
19896
        oprot.writeFieldEnd();
19897
      }
19898
      oprot.writeFieldStop();
19899
      oprot.writeStructEnd();
19900
    }
19901
 
19902
    @Override
19903
    public String toString() {
19904
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19905
      boolean first = true;
19906
 
19907
      sb.append("success:");
19908
      if (this.success == null) {
19909
        sb.append("null");
19910
      } else {
19911
        sb.append(this.success);
19912
      }
19913
      first = false;
19914
      sb.append(")");
19915
      return sb.toString();
19916
    }
19917
 
19918
    public void validate() throws org.apache.thrift.TException {
19919
      // check for required fields
19920
    }
19921
 
19922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19923
      try {
19924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19925
      } catch (org.apache.thrift.TException te) {
19926
        throw new java.io.IOException(te);
19927
      }
19928
    }
19929
 
19930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19931
      try {
19932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19933
      } catch (org.apache.thrift.TException te) {
19934
        throw new java.io.IOException(te);
19935
      }
19936
    }
19937
 
19938
  }
19939
 
4806 varun.gupt 19940
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19942
 
19943
    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);
19944
    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);
19945
 
19946
    private String url; // required
19947
    private String text; // required
19948
 
19949
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19950
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19951
      URL((short)1, "url"),
19952
      TEXT((short)2, "text");
19953
 
19954
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19955
 
19956
      static {
19957
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19958
          byName.put(field.getFieldName(), field);
19959
        }
19960
      }
19961
 
19962
      /**
19963
       * Find the _Fields constant that matches fieldId, or null if its not found.
19964
       */
19965
      public static _Fields findByThriftId(int fieldId) {
19966
        switch(fieldId) {
19967
          case 1: // URL
19968
            return URL;
19969
          case 2: // TEXT
19970
            return TEXT;
19971
          default:
19972
            return null;
19973
        }
19974
      }
19975
 
19976
      /**
19977
       * Find the _Fields constant that matches fieldId, throwing an exception
19978
       * if it is not found.
19979
       */
19980
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19981
        _Fields fields = findByThriftId(fieldId);
19982
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19983
        return fields;
19984
      }
19985
 
19986
      /**
19987
       * Find the _Fields constant that matches name, or null if its not found.
19988
       */
19989
      public static _Fields findByName(String name) {
19990
        return byName.get(name);
19991
      }
19992
 
19993
      private final short _thriftId;
19994
      private final String _fieldName;
19995
 
19996
      _Fields(short thriftId, String fieldName) {
19997
        _thriftId = thriftId;
19998
        _fieldName = fieldName;
19999
      }
20000
 
20001
      public short getThriftFieldId() {
20002
        return _thriftId;
20003
      }
20004
 
20005
      public String getFieldName() {
20006
        return _fieldName;
20007
      }
20008
    }
20009
 
20010
    // isset id assignments
20011
 
20012
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20013
    static {
20014
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20015
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20016
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20017
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20019
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20020
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
20021
    }
20022
 
20023
    public saveQuickLink_args() {
20024
    }
20025
 
20026
    public saveQuickLink_args(
20027
      String url,
20028
      String text)
20029
    {
20030
      this();
20031
      this.url = url;
20032
      this.text = text;
20033
    }
20034
 
20035
    /**
20036
     * Performs a deep copy on <i>other</i>.
20037
     */
20038
    public saveQuickLink_args(saveQuickLink_args other) {
20039
      if (other.isSetUrl()) {
20040
        this.url = other.url;
20041
      }
20042
      if (other.isSetText()) {
20043
        this.text = other.text;
20044
      }
20045
    }
20046
 
20047
    public saveQuickLink_args deepCopy() {
20048
      return new saveQuickLink_args(this);
20049
    }
20050
 
20051
    @Override
20052
    public void clear() {
20053
      this.url = null;
20054
      this.text = null;
20055
    }
20056
 
20057
    public String getUrl() {
20058
      return this.url;
20059
    }
20060
 
20061
    public void setUrl(String url) {
20062
      this.url = url;
20063
    }
20064
 
20065
    public void unsetUrl() {
20066
      this.url = null;
20067
    }
20068
 
20069
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
20070
    public boolean isSetUrl() {
20071
      return this.url != null;
20072
    }
20073
 
20074
    public void setUrlIsSet(boolean value) {
20075
      if (!value) {
20076
        this.url = null;
20077
      }
20078
    }
20079
 
20080
    public String getText() {
20081
      return this.text;
20082
    }
20083
 
20084
    public void setText(String text) {
20085
      this.text = text;
20086
    }
20087
 
20088
    public void unsetText() {
20089
      this.text = null;
20090
    }
20091
 
20092
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20093
    public boolean isSetText() {
20094
      return this.text != null;
20095
    }
20096
 
20097
    public void setTextIsSet(boolean value) {
20098
      if (!value) {
20099
        this.text = null;
20100
      }
20101
    }
20102
 
20103
    public void setFieldValue(_Fields field, Object value) {
20104
      switch (field) {
20105
      case URL:
20106
        if (value == null) {
20107
          unsetUrl();
20108
        } else {
20109
          setUrl((String)value);
20110
        }
20111
        break;
20112
 
20113
      case TEXT:
20114
        if (value == null) {
20115
          unsetText();
20116
        } else {
20117
          setText((String)value);
20118
        }
20119
        break;
20120
 
20121
      }
20122
    }
20123
 
20124
    public Object getFieldValue(_Fields field) {
20125
      switch (field) {
20126
      case URL:
20127
        return getUrl();
20128
 
20129
      case TEXT:
20130
        return getText();
20131
 
20132
      }
20133
      throw new IllegalStateException();
20134
    }
20135
 
20136
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20137
    public boolean isSet(_Fields field) {
20138
      if (field == null) {
20139
        throw new IllegalArgumentException();
20140
      }
20141
 
20142
      switch (field) {
20143
      case URL:
20144
        return isSetUrl();
20145
      case TEXT:
20146
        return isSetText();
20147
      }
20148
      throw new IllegalStateException();
20149
    }
20150
 
20151
    @Override
20152
    public boolean equals(Object that) {
20153
      if (that == null)
20154
        return false;
20155
      if (that instanceof saveQuickLink_args)
20156
        return this.equals((saveQuickLink_args)that);
20157
      return false;
20158
    }
20159
 
20160
    public boolean equals(saveQuickLink_args that) {
20161
      if (that == null)
20162
        return false;
20163
 
20164
      boolean this_present_url = true && this.isSetUrl();
20165
      boolean that_present_url = true && that.isSetUrl();
20166
      if (this_present_url || that_present_url) {
20167
        if (!(this_present_url && that_present_url))
20168
          return false;
20169
        if (!this.url.equals(that.url))
20170
          return false;
20171
      }
20172
 
20173
      boolean this_present_text = true && this.isSetText();
20174
      boolean that_present_text = true && that.isSetText();
20175
      if (this_present_text || that_present_text) {
20176
        if (!(this_present_text && that_present_text))
20177
          return false;
20178
        if (!this.text.equals(that.text))
20179
          return false;
20180
      }
20181
 
20182
      return true;
20183
    }
20184
 
20185
    @Override
20186
    public int hashCode() {
20187
      return 0;
20188
    }
20189
 
20190
    public int compareTo(saveQuickLink_args other) {
20191
      if (!getClass().equals(other.getClass())) {
20192
        return getClass().getName().compareTo(other.getClass().getName());
20193
      }
20194
 
20195
      int lastComparison = 0;
20196
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
20197
 
20198
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20199
      if (lastComparison != 0) {
20200
        return lastComparison;
20201
      }
20202
      if (isSetUrl()) {
20203
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20204
        if (lastComparison != 0) {
20205
          return lastComparison;
20206
        }
20207
      }
20208
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20209
      if (lastComparison != 0) {
20210
        return lastComparison;
20211
      }
20212
      if (isSetText()) {
20213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20214
        if (lastComparison != 0) {
20215
          return lastComparison;
20216
        }
20217
      }
20218
      return 0;
20219
    }
20220
 
20221
    public _Fields fieldForId(int fieldId) {
20222
      return _Fields.findByThriftId(fieldId);
20223
    }
20224
 
20225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20226
      org.apache.thrift.protocol.TField field;
20227
      iprot.readStructBegin();
20228
      while (true)
20229
      {
20230
        field = iprot.readFieldBegin();
20231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20232
          break;
20233
        }
20234
        switch (field.id) {
20235
          case 1: // URL
20236
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20237
              this.url = iprot.readString();
20238
            } else { 
20239
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20240
            }
20241
            break;
20242
          case 2: // TEXT
20243
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20244
              this.text = iprot.readString();
20245
            } else { 
20246
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20247
            }
20248
            break;
20249
          default:
20250
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20251
        }
20252
        iprot.readFieldEnd();
20253
      }
20254
      iprot.readStructEnd();
20255
      validate();
20256
    }
20257
 
20258
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20259
      validate();
20260
 
20261
      oprot.writeStructBegin(STRUCT_DESC);
20262
      if (this.url != null) {
20263
        oprot.writeFieldBegin(URL_FIELD_DESC);
20264
        oprot.writeString(this.url);
20265
        oprot.writeFieldEnd();
20266
      }
20267
      if (this.text != null) {
20268
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20269
        oprot.writeString(this.text);
20270
        oprot.writeFieldEnd();
20271
      }
20272
      oprot.writeFieldStop();
20273
      oprot.writeStructEnd();
20274
    }
20275
 
20276
    @Override
20277
    public String toString() {
20278
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20279
      boolean first = true;
20280
 
20281
      sb.append("url:");
20282
      if (this.url == null) {
20283
        sb.append("null");
20284
      } else {
20285
        sb.append(this.url);
20286
      }
20287
      first = false;
20288
      if (!first) sb.append(", ");
20289
      sb.append("text:");
20290
      if (this.text == null) {
20291
        sb.append("null");
20292
      } else {
20293
        sb.append(this.text);
20294
      }
20295
      first = false;
20296
      sb.append(")");
20297
      return sb.toString();
20298
    }
20299
 
20300
    public void validate() throws org.apache.thrift.TException {
20301
      // check for required fields
20302
    }
20303
 
20304
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20305
      try {
20306
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20307
      } catch (org.apache.thrift.TException te) {
20308
        throw new java.io.IOException(te);
20309
      }
20310
    }
20311
 
20312
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20313
      try {
20314
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20315
      } catch (org.apache.thrift.TException te) {
20316
        throw new java.io.IOException(te);
20317
      }
20318
    }
20319
 
20320
  }
20321
 
20322
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20323
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20324
 
20325
    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);
20326
 
20327
    private HelperServiceException hse; // required
20328
 
20329
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20330
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20331
      HSE((short)1, "hse");
20332
 
20333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20334
 
20335
      static {
20336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20337
          byName.put(field.getFieldName(), field);
20338
        }
20339
      }
20340
 
20341
      /**
20342
       * Find the _Fields constant that matches fieldId, or null if its not found.
20343
       */
20344
      public static _Fields findByThriftId(int fieldId) {
20345
        switch(fieldId) {
20346
          case 1: // HSE
20347
            return HSE;
20348
          default:
20349
            return null;
20350
        }
20351
      }
20352
 
20353
      /**
20354
       * Find the _Fields constant that matches fieldId, throwing an exception
20355
       * if it is not found.
20356
       */
20357
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20358
        _Fields fields = findByThriftId(fieldId);
20359
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20360
        return fields;
20361
      }
20362
 
20363
      /**
20364
       * Find the _Fields constant that matches name, or null if its not found.
20365
       */
20366
      public static _Fields findByName(String name) {
20367
        return byName.get(name);
20368
      }
20369
 
20370
      private final short _thriftId;
20371
      private final String _fieldName;
20372
 
20373
      _Fields(short thriftId, String fieldName) {
20374
        _thriftId = thriftId;
20375
        _fieldName = fieldName;
20376
      }
20377
 
20378
      public short getThriftFieldId() {
20379
        return _thriftId;
20380
      }
20381
 
20382
      public String getFieldName() {
20383
        return _fieldName;
20384
      }
20385
    }
20386
 
20387
    // isset id assignments
20388
 
20389
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20390
    static {
20391
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20392
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20393
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20394
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20395
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20396
    }
20397
 
20398
    public saveQuickLink_result() {
20399
    }
20400
 
20401
    public saveQuickLink_result(
20402
      HelperServiceException hse)
20403
    {
20404
      this();
20405
      this.hse = hse;
20406
    }
20407
 
20408
    /**
20409
     * Performs a deep copy on <i>other</i>.
20410
     */
20411
    public saveQuickLink_result(saveQuickLink_result other) {
20412
      if (other.isSetHse()) {
20413
        this.hse = new HelperServiceException(other.hse);
20414
      }
20415
    }
20416
 
20417
    public saveQuickLink_result deepCopy() {
20418
      return new saveQuickLink_result(this);
20419
    }
20420
 
20421
    @Override
20422
    public void clear() {
20423
      this.hse = null;
20424
    }
20425
 
20426
    public HelperServiceException getHse() {
20427
      return this.hse;
20428
    }
20429
 
20430
    public void setHse(HelperServiceException hse) {
20431
      this.hse = hse;
20432
    }
20433
 
20434
    public void unsetHse() {
20435
      this.hse = null;
20436
    }
20437
 
20438
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20439
    public boolean isSetHse() {
20440
      return this.hse != null;
20441
    }
20442
 
20443
    public void setHseIsSet(boolean value) {
20444
      if (!value) {
20445
        this.hse = null;
20446
      }
20447
    }
20448
 
20449
    public void setFieldValue(_Fields field, Object value) {
20450
      switch (field) {
20451
      case HSE:
20452
        if (value == null) {
20453
          unsetHse();
20454
        } else {
20455
          setHse((HelperServiceException)value);
20456
        }
20457
        break;
20458
 
20459
      }
20460
    }
20461
 
20462
    public Object getFieldValue(_Fields field) {
20463
      switch (field) {
20464
      case HSE:
20465
        return getHse();
20466
 
20467
      }
20468
      throw new IllegalStateException();
20469
    }
20470
 
20471
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20472
    public boolean isSet(_Fields field) {
20473
      if (field == null) {
20474
        throw new IllegalArgumentException();
20475
      }
20476
 
20477
      switch (field) {
20478
      case HSE:
20479
        return isSetHse();
20480
      }
20481
      throw new IllegalStateException();
20482
    }
20483
 
20484
    @Override
20485
    public boolean equals(Object that) {
20486
      if (that == null)
20487
        return false;
20488
      if (that instanceof saveQuickLink_result)
20489
        return this.equals((saveQuickLink_result)that);
20490
      return false;
20491
    }
20492
 
20493
    public boolean equals(saveQuickLink_result that) {
20494
      if (that == null)
20495
        return false;
20496
 
20497
      boolean this_present_hse = true && this.isSetHse();
20498
      boolean that_present_hse = true && that.isSetHse();
20499
      if (this_present_hse || that_present_hse) {
20500
        if (!(this_present_hse && that_present_hse))
20501
          return false;
20502
        if (!this.hse.equals(that.hse))
20503
          return false;
20504
      }
20505
 
20506
      return true;
20507
    }
20508
 
20509
    @Override
20510
    public int hashCode() {
20511
      return 0;
20512
    }
20513
 
20514
    public int compareTo(saveQuickLink_result other) {
20515
      if (!getClass().equals(other.getClass())) {
20516
        return getClass().getName().compareTo(other.getClass().getName());
20517
      }
20518
 
20519
      int lastComparison = 0;
20520
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20521
 
20522
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20523
      if (lastComparison != 0) {
20524
        return lastComparison;
20525
      }
20526
      if (isSetHse()) {
20527
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20528
        if (lastComparison != 0) {
20529
          return lastComparison;
20530
        }
20531
      }
20532
      return 0;
20533
    }
20534
 
20535
    public _Fields fieldForId(int fieldId) {
20536
      return _Fields.findByThriftId(fieldId);
20537
    }
20538
 
20539
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20540
      org.apache.thrift.protocol.TField field;
20541
      iprot.readStructBegin();
20542
      while (true)
20543
      {
20544
        field = iprot.readFieldBegin();
20545
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20546
          break;
20547
        }
20548
        switch (field.id) {
20549
          case 1: // HSE
20550
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20551
              this.hse = new HelperServiceException();
20552
              this.hse.read(iprot);
20553
            } else { 
20554
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20555
            }
20556
            break;
20557
          default:
20558
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20559
        }
20560
        iprot.readFieldEnd();
20561
      }
20562
      iprot.readStructEnd();
20563
      validate();
20564
    }
20565
 
20566
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20567
      oprot.writeStructBegin(STRUCT_DESC);
20568
 
20569
      if (this.isSetHse()) {
20570
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20571
        this.hse.write(oprot);
20572
        oprot.writeFieldEnd();
20573
      }
20574
      oprot.writeFieldStop();
20575
      oprot.writeStructEnd();
20576
    }
20577
 
20578
    @Override
20579
    public String toString() {
20580
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20581
      boolean first = true;
20582
 
20583
      sb.append("hse:");
20584
      if (this.hse == null) {
20585
        sb.append("null");
20586
      } else {
20587
        sb.append(this.hse);
20588
      }
20589
      first = false;
20590
      sb.append(")");
20591
      return sb.toString();
20592
    }
20593
 
20594
    public void validate() throws org.apache.thrift.TException {
20595
      // check for required fields
20596
    }
20597
 
20598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20599
      try {
20600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20601
      } catch (org.apache.thrift.TException te) {
20602
        throw new java.io.IOException(te);
20603
      }
20604
    }
20605
 
20606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20607
      try {
20608
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20609
      } catch (org.apache.thrift.TException te) {
20610
        throw new java.io.IOException(te);
20611
      }
20612
    }
20613
 
20614
  }
20615
 
20616
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20617
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20618
 
20619
 
20620
 
20621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20623
;
20624
 
20625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20626
 
20627
      static {
20628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20629
          byName.put(field.getFieldName(), field);
20630
        }
20631
      }
20632
 
20633
      /**
20634
       * Find the _Fields constant that matches fieldId, or null if its not found.
20635
       */
20636
      public static _Fields findByThriftId(int fieldId) {
20637
        switch(fieldId) {
20638
          default:
20639
            return null;
20640
        }
20641
      }
20642
 
20643
      /**
20644
       * Find the _Fields constant that matches fieldId, throwing an exception
20645
       * if it is not found.
20646
       */
20647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20648
        _Fields fields = findByThriftId(fieldId);
20649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20650
        return fields;
20651
      }
20652
 
20653
      /**
20654
       * Find the _Fields constant that matches name, or null if its not found.
20655
       */
20656
      public static _Fields findByName(String name) {
20657
        return byName.get(name);
20658
      }
20659
 
20660
      private final short _thriftId;
20661
      private final String _fieldName;
20662
 
20663
      _Fields(short thriftId, String fieldName) {
20664
        _thriftId = thriftId;
20665
        _fieldName = fieldName;
20666
      }
20667
 
20668
      public short getThriftFieldId() {
20669
        return _thriftId;
20670
      }
20671
 
20672
      public String getFieldName() {
20673
        return _fieldName;
20674
      }
20675
    }
20676
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20677
    static {
20678
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20679
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20680
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20681
    }
20682
 
20683
    public getQuickLinks_args() {
20684
    }
20685
 
20686
    /**
20687
     * Performs a deep copy on <i>other</i>.
20688
     */
20689
    public getQuickLinks_args(getQuickLinks_args other) {
20690
    }
20691
 
20692
    public getQuickLinks_args deepCopy() {
20693
      return new getQuickLinks_args(this);
20694
    }
20695
 
20696
    @Override
20697
    public void clear() {
20698
    }
20699
 
20700
    public void setFieldValue(_Fields field, Object value) {
20701
      switch (field) {
20702
      }
20703
    }
20704
 
20705
    public Object getFieldValue(_Fields field) {
20706
      switch (field) {
20707
      }
20708
      throw new IllegalStateException();
20709
    }
20710
 
20711
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20712
    public boolean isSet(_Fields field) {
20713
      if (field == null) {
20714
        throw new IllegalArgumentException();
20715
      }
20716
 
20717
      switch (field) {
20718
      }
20719
      throw new IllegalStateException();
20720
    }
20721
 
20722
    @Override
20723
    public boolean equals(Object that) {
20724
      if (that == null)
20725
        return false;
20726
      if (that instanceof getQuickLinks_args)
20727
        return this.equals((getQuickLinks_args)that);
20728
      return false;
20729
    }
20730
 
20731
    public boolean equals(getQuickLinks_args that) {
20732
      if (that == null)
20733
        return false;
20734
 
20735
      return true;
20736
    }
20737
 
20738
    @Override
20739
    public int hashCode() {
20740
      return 0;
20741
    }
20742
 
20743
    public int compareTo(getQuickLinks_args other) {
20744
      if (!getClass().equals(other.getClass())) {
20745
        return getClass().getName().compareTo(other.getClass().getName());
20746
      }
20747
 
20748
      int lastComparison = 0;
20749
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20750
 
20751
      return 0;
20752
    }
20753
 
20754
    public _Fields fieldForId(int fieldId) {
20755
      return _Fields.findByThriftId(fieldId);
20756
    }
20757
 
20758
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20759
      org.apache.thrift.protocol.TField field;
20760
      iprot.readStructBegin();
20761
      while (true)
20762
      {
20763
        field = iprot.readFieldBegin();
20764
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20765
          break;
20766
        }
20767
        switch (field.id) {
20768
          default:
20769
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20770
        }
20771
        iprot.readFieldEnd();
20772
      }
20773
      iprot.readStructEnd();
20774
      validate();
20775
    }
20776
 
20777
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20778
      validate();
20779
 
20780
      oprot.writeStructBegin(STRUCT_DESC);
20781
      oprot.writeFieldStop();
20782
      oprot.writeStructEnd();
20783
    }
20784
 
20785
    @Override
20786
    public String toString() {
20787
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20788
      boolean first = true;
20789
 
20790
      sb.append(")");
20791
      return sb.toString();
20792
    }
20793
 
20794
    public void validate() throws org.apache.thrift.TException {
20795
      // check for required fields
20796
    }
20797
 
20798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20799
      try {
20800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20801
      } catch (org.apache.thrift.TException te) {
20802
        throw new java.io.IOException(te);
20803
      }
20804
    }
20805
 
20806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20807
      try {
20808
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20809
      } catch (org.apache.thrift.TException te) {
20810
        throw new java.io.IOException(te);
20811
      }
20812
    }
20813
 
20814
  }
20815
 
20816
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20817
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20818
 
20819
    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);
20820
    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);
20821
 
20822
    private List<QuickLink> success; // required
20823
    private HelperServiceException hse; // required
20824
 
20825
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20826
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20827
      SUCCESS((short)0, "success"),
20828
      HSE((short)1, "hse");
20829
 
20830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20831
 
20832
      static {
20833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20834
          byName.put(field.getFieldName(), field);
20835
        }
20836
      }
20837
 
20838
      /**
20839
       * Find the _Fields constant that matches fieldId, or null if its not found.
20840
       */
20841
      public static _Fields findByThriftId(int fieldId) {
20842
        switch(fieldId) {
20843
          case 0: // SUCCESS
20844
            return SUCCESS;
20845
          case 1: // HSE
20846
            return HSE;
20847
          default:
20848
            return null;
20849
        }
20850
      }
20851
 
20852
      /**
20853
       * Find the _Fields constant that matches fieldId, throwing an exception
20854
       * if it is not found.
20855
       */
20856
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20857
        _Fields fields = findByThriftId(fieldId);
20858
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20859
        return fields;
20860
      }
20861
 
20862
      /**
20863
       * Find the _Fields constant that matches name, or null if its not found.
20864
       */
20865
      public static _Fields findByName(String name) {
20866
        return byName.get(name);
20867
      }
20868
 
20869
      private final short _thriftId;
20870
      private final String _fieldName;
20871
 
20872
      _Fields(short thriftId, String fieldName) {
20873
        _thriftId = thriftId;
20874
        _fieldName = fieldName;
20875
      }
20876
 
20877
      public short getThriftFieldId() {
20878
        return _thriftId;
20879
      }
20880
 
20881
      public String getFieldName() {
20882
        return _fieldName;
20883
      }
20884
    }
20885
 
20886
    // isset id assignments
20887
 
20888
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20889
    static {
20890
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20891
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20892
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20893
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20894
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20895
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20896
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20897
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20898
    }
20899
 
20900
    public getQuickLinks_result() {
20901
    }
20902
 
20903
    public getQuickLinks_result(
20904
      List<QuickLink> success,
20905
      HelperServiceException hse)
20906
    {
20907
      this();
20908
      this.success = success;
20909
      this.hse = hse;
20910
    }
20911
 
20912
    /**
20913
     * Performs a deep copy on <i>other</i>.
20914
     */
20915
    public getQuickLinks_result(getQuickLinks_result other) {
20916
      if (other.isSetSuccess()) {
20917
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20918
        for (QuickLink other_element : other.success) {
20919
          __this__success.add(new QuickLink(other_element));
20920
        }
20921
        this.success = __this__success;
20922
      }
20923
      if (other.isSetHse()) {
20924
        this.hse = new HelperServiceException(other.hse);
20925
      }
20926
    }
20927
 
20928
    public getQuickLinks_result deepCopy() {
20929
      return new getQuickLinks_result(this);
20930
    }
20931
 
20932
    @Override
20933
    public void clear() {
20934
      this.success = null;
20935
      this.hse = null;
20936
    }
20937
 
20938
    public int getSuccessSize() {
20939
      return (this.success == null) ? 0 : this.success.size();
20940
    }
20941
 
20942
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20943
      return (this.success == null) ? null : this.success.iterator();
20944
    }
20945
 
20946
    public void addToSuccess(QuickLink elem) {
20947
      if (this.success == null) {
20948
        this.success = new ArrayList<QuickLink>();
20949
      }
20950
      this.success.add(elem);
20951
    }
20952
 
20953
    public List<QuickLink> getSuccess() {
20954
      return this.success;
20955
    }
20956
 
20957
    public void setSuccess(List<QuickLink> success) {
20958
      this.success = success;
20959
    }
20960
 
20961
    public void unsetSuccess() {
20962
      this.success = null;
20963
    }
20964
 
20965
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20966
    public boolean isSetSuccess() {
20967
      return this.success != null;
20968
    }
20969
 
20970
    public void setSuccessIsSet(boolean value) {
20971
      if (!value) {
20972
        this.success = null;
20973
      }
20974
    }
20975
 
20976
    public HelperServiceException getHse() {
20977
      return this.hse;
20978
    }
20979
 
20980
    public void setHse(HelperServiceException hse) {
20981
      this.hse = hse;
20982
    }
20983
 
20984
    public void unsetHse() {
20985
      this.hse = null;
20986
    }
20987
 
20988
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20989
    public boolean isSetHse() {
20990
      return this.hse != null;
20991
    }
20992
 
20993
    public void setHseIsSet(boolean value) {
20994
      if (!value) {
20995
        this.hse = null;
20996
      }
20997
    }
20998
 
20999
    public void setFieldValue(_Fields field, Object value) {
21000
      switch (field) {
21001
      case SUCCESS:
21002
        if (value == null) {
21003
          unsetSuccess();
21004
        } else {
21005
          setSuccess((List<QuickLink>)value);
21006
        }
21007
        break;
21008
 
21009
      case HSE:
21010
        if (value == null) {
21011
          unsetHse();
21012
        } else {
21013
          setHse((HelperServiceException)value);
21014
        }
21015
        break;
21016
 
21017
      }
21018
    }
21019
 
21020
    public Object getFieldValue(_Fields field) {
21021
      switch (field) {
21022
      case SUCCESS:
21023
        return getSuccess();
21024
 
21025
      case HSE:
21026
        return getHse();
21027
 
21028
      }
21029
      throw new IllegalStateException();
21030
    }
21031
 
21032
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21033
    public boolean isSet(_Fields field) {
21034
      if (field == null) {
21035
        throw new IllegalArgumentException();
21036
      }
21037
 
21038
      switch (field) {
21039
      case SUCCESS:
21040
        return isSetSuccess();
21041
      case HSE:
21042
        return isSetHse();
21043
      }
21044
      throw new IllegalStateException();
21045
    }
21046
 
21047
    @Override
21048
    public boolean equals(Object that) {
21049
      if (that == null)
21050
        return false;
21051
      if (that instanceof getQuickLinks_result)
21052
        return this.equals((getQuickLinks_result)that);
21053
      return false;
21054
    }
21055
 
21056
    public boolean equals(getQuickLinks_result that) {
21057
      if (that == null)
21058
        return false;
21059
 
21060
      boolean this_present_success = true && this.isSetSuccess();
21061
      boolean that_present_success = true && that.isSetSuccess();
21062
      if (this_present_success || that_present_success) {
21063
        if (!(this_present_success && that_present_success))
21064
          return false;
21065
        if (!this.success.equals(that.success))
21066
          return false;
21067
      }
21068
 
21069
      boolean this_present_hse = true && this.isSetHse();
21070
      boolean that_present_hse = true && that.isSetHse();
21071
      if (this_present_hse || that_present_hse) {
21072
        if (!(this_present_hse && that_present_hse))
21073
          return false;
21074
        if (!this.hse.equals(that.hse))
21075
          return false;
21076
      }
21077
 
21078
      return true;
21079
    }
21080
 
21081
    @Override
21082
    public int hashCode() {
21083
      return 0;
21084
    }
21085
 
21086
    public int compareTo(getQuickLinks_result other) {
21087
      if (!getClass().equals(other.getClass())) {
21088
        return getClass().getName().compareTo(other.getClass().getName());
21089
      }
21090
 
21091
      int lastComparison = 0;
21092
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
21093
 
21094
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21095
      if (lastComparison != 0) {
21096
        return lastComparison;
21097
      }
21098
      if (isSetSuccess()) {
21099
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21100
        if (lastComparison != 0) {
21101
          return lastComparison;
21102
        }
21103
      }
21104
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21105
      if (lastComparison != 0) {
21106
        return lastComparison;
21107
      }
21108
      if (isSetHse()) {
21109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21110
        if (lastComparison != 0) {
21111
          return lastComparison;
21112
        }
21113
      }
21114
      return 0;
21115
    }
21116
 
21117
    public _Fields fieldForId(int fieldId) {
21118
      return _Fields.findByThriftId(fieldId);
21119
    }
21120
 
21121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21122
      org.apache.thrift.protocol.TField field;
21123
      iprot.readStructBegin();
21124
      while (true)
21125
      {
21126
        field = iprot.readFieldBegin();
21127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21128
          break;
21129
        }
21130
        switch (field.id) {
21131
          case 0: // SUCCESS
21132
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21133
              {
5864 rajveer 21134
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
21135
                this.success = new ArrayList<QuickLink>(_list61.size);
21136
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 21137
                {
5864 rajveer 21138
                  QuickLink _elem63; // required
21139
                  _elem63 = new QuickLink();
21140
                  _elem63.read(iprot);
21141
                  this.success.add(_elem63);
4806 varun.gupt 21142
                }
21143
                iprot.readListEnd();
21144
              }
21145
            } else { 
21146
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21147
            }
21148
            break;
21149
          case 1: // HSE
21150
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21151
              this.hse = new HelperServiceException();
21152
              this.hse.read(iprot);
21153
            } else { 
21154
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21155
            }
21156
            break;
21157
          default:
21158
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21159
        }
21160
        iprot.readFieldEnd();
21161
      }
21162
      iprot.readStructEnd();
21163
      validate();
21164
    }
21165
 
21166
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21167
      oprot.writeStructBegin(STRUCT_DESC);
21168
 
21169
      if (this.isSetSuccess()) {
21170
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21171
        {
21172
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 21173
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 21174
          {
5864 rajveer 21175
            _iter64.write(oprot);
4806 varun.gupt 21176
          }
21177
          oprot.writeListEnd();
21178
        }
21179
        oprot.writeFieldEnd();
21180
      } else if (this.isSetHse()) {
21181
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21182
        this.hse.write(oprot);
21183
        oprot.writeFieldEnd();
21184
      }
21185
      oprot.writeFieldStop();
21186
      oprot.writeStructEnd();
21187
    }
21188
 
21189
    @Override
21190
    public String toString() {
21191
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
21192
      boolean first = true;
21193
 
21194
      sb.append("success:");
21195
      if (this.success == null) {
21196
        sb.append("null");
21197
      } else {
21198
        sb.append(this.success);
21199
      }
21200
      first = false;
21201
      if (!first) sb.append(", ");
21202
      sb.append("hse:");
21203
      if (this.hse == null) {
21204
        sb.append("null");
21205
      } else {
21206
        sb.append(this.hse);
21207
      }
21208
      first = false;
21209
      sb.append(")");
21210
      return sb.toString();
21211
    }
21212
 
21213
    public void validate() throws org.apache.thrift.TException {
21214
      // check for required fields
21215
    }
21216
 
21217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21218
      try {
21219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21220
      } catch (org.apache.thrift.TException te) {
21221
        throw new java.io.IOException(te);
21222
      }
21223
    }
21224
 
21225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21226
      try {
21227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21228
      } catch (org.apache.thrift.TException te) {
21229
        throw new java.io.IOException(te);
21230
      }
21231
    }
21232
 
21233
  }
21234
 
4996 varun.gupt 21235
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21237
 
21238
    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);
21239
    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);
21240
    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);
21241
 
21242
    private long id; // required
21243
    private String url; // required
21244
    private String text; // required
21245
 
21246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21248
      ID((short)1, "id"),
21249
      URL((short)2, "url"),
21250
      TEXT((short)3, "text");
21251
 
21252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21253
 
21254
      static {
21255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21256
          byName.put(field.getFieldName(), field);
21257
        }
21258
      }
21259
 
21260
      /**
21261
       * Find the _Fields constant that matches fieldId, or null if its not found.
21262
       */
21263
      public static _Fields findByThriftId(int fieldId) {
21264
        switch(fieldId) {
21265
          case 1: // ID
21266
            return ID;
21267
          case 2: // URL
21268
            return URL;
21269
          case 3: // TEXT
21270
            return TEXT;
21271
          default:
21272
            return null;
21273
        }
21274
      }
21275
 
21276
      /**
21277
       * Find the _Fields constant that matches fieldId, throwing an exception
21278
       * if it is not found.
21279
       */
21280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21281
        _Fields fields = findByThriftId(fieldId);
21282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21283
        return fields;
21284
      }
21285
 
21286
      /**
21287
       * Find the _Fields constant that matches name, or null if its not found.
21288
       */
21289
      public static _Fields findByName(String name) {
21290
        return byName.get(name);
21291
      }
21292
 
21293
      private final short _thriftId;
21294
      private final String _fieldName;
21295
 
21296
      _Fields(short thriftId, String fieldName) {
21297
        _thriftId = thriftId;
21298
        _fieldName = fieldName;
21299
      }
21300
 
21301
      public short getThriftFieldId() {
21302
        return _thriftId;
21303
      }
21304
 
21305
      public String getFieldName() {
21306
        return _fieldName;
21307
      }
21308
    }
21309
 
21310
    // isset id assignments
21311
    private static final int __ID_ISSET_ID = 0;
21312
    private BitSet __isset_bit_vector = new BitSet(1);
21313
 
21314
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21315
    static {
21316
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21317
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21319
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21321
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21323
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21324
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21325
    }
21326
 
21327
    public updateQuickLink_args() {
21328
    }
21329
 
21330
    public updateQuickLink_args(
21331
      long id,
21332
      String url,
21333
      String text)
21334
    {
21335
      this();
21336
      this.id = id;
21337
      setIdIsSet(true);
21338
      this.url = url;
21339
      this.text = text;
21340
    }
21341
 
21342
    /**
21343
     * Performs a deep copy on <i>other</i>.
21344
     */
21345
    public updateQuickLink_args(updateQuickLink_args other) {
21346
      __isset_bit_vector.clear();
21347
      __isset_bit_vector.or(other.__isset_bit_vector);
21348
      this.id = other.id;
21349
      if (other.isSetUrl()) {
21350
        this.url = other.url;
21351
      }
21352
      if (other.isSetText()) {
21353
        this.text = other.text;
21354
      }
21355
    }
21356
 
21357
    public updateQuickLink_args deepCopy() {
21358
      return new updateQuickLink_args(this);
21359
    }
21360
 
21361
    @Override
21362
    public void clear() {
21363
      setIdIsSet(false);
21364
      this.id = 0;
21365
      this.url = null;
21366
      this.text = null;
21367
    }
21368
 
21369
    public long getId() {
21370
      return this.id;
21371
    }
21372
 
21373
    public void setId(long id) {
21374
      this.id = id;
21375
      setIdIsSet(true);
21376
    }
21377
 
21378
    public void unsetId() {
21379
      __isset_bit_vector.clear(__ID_ISSET_ID);
21380
    }
21381
 
21382
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21383
    public boolean isSetId() {
21384
      return __isset_bit_vector.get(__ID_ISSET_ID);
21385
    }
21386
 
21387
    public void setIdIsSet(boolean value) {
21388
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21389
    }
21390
 
21391
    public String getUrl() {
21392
      return this.url;
21393
    }
21394
 
21395
    public void setUrl(String url) {
21396
      this.url = url;
21397
    }
21398
 
21399
    public void unsetUrl() {
21400
      this.url = null;
21401
    }
21402
 
21403
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21404
    public boolean isSetUrl() {
21405
      return this.url != null;
21406
    }
21407
 
21408
    public void setUrlIsSet(boolean value) {
21409
      if (!value) {
21410
        this.url = null;
21411
      }
21412
    }
21413
 
21414
    public String getText() {
21415
      return this.text;
21416
    }
21417
 
21418
    public void setText(String text) {
21419
      this.text = text;
21420
    }
21421
 
21422
    public void unsetText() {
21423
      this.text = null;
21424
    }
21425
 
21426
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21427
    public boolean isSetText() {
21428
      return this.text != null;
21429
    }
21430
 
21431
    public void setTextIsSet(boolean value) {
21432
      if (!value) {
21433
        this.text = null;
21434
      }
21435
    }
21436
 
21437
    public void setFieldValue(_Fields field, Object value) {
21438
      switch (field) {
21439
      case ID:
21440
        if (value == null) {
21441
          unsetId();
21442
        } else {
21443
          setId((Long)value);
21444
        }
21445
        break;
21446
 
21447
      case URL:
21448
        if (value == null) {
21449
          unsetUrl();
21450
        } else {
21451
          setUrl((String)value);
21452
        }
21453
        break;
21454
 
21455
      case TEXT:
21456
        if (value == null) {
21457
          unsetText();
21458
        } else {
21459
          setText((String)value);
21460
        }
21461
        break;
21462
 
21463
      }
21464
    }
21465
 
21466
    public Object getFieldValue(_Fields field) {
21467
      switch (field) {
21468
      case ID:
21469
        return Long.valueOf(getId());
21470
 
21471
      case URL:
21472
        return getUrl();
21473
 
21474
      case TEXT:
21475
        return getText();
21476
 
21477
      }
21478
      throw new IllegalStateException();
21479
    }
21480
 
21481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21482
    public boolean isSet(_Fields field) {
21483
      if (field == null) {
21484
        throw new IllegalArgumentException();
21485
      }
21486
 
21487
      switch (field) {
21488
      case ID:
21489
        return isSetId();
21490
      case URL:
21491
        return isSetUrl();
21492
      case TEXT:
21493
        return isSetText();
21494
      }
21495
      throw new IllegalStateException();
21496
    }
21497
 
21498
    @Override
21499
    public boolean equals(Object that) {
21500
      if (that == null)
21501
        return false;
21502
      if (that instanceof updateQuickLink_args)
21503
        return this.equals((updateQuickLink_args)that);
21504
      return false;
21505
    }
21506
 
21507
    public boolean equals(updateQuickLink_args that) {
21508
      if (that == null)
21509
        return false;
21510
 
21511
      boolean this_present_id = true;
21512
      boolean that_present_id = true;
21513
      if (this_present_id || that_present_id) {
21514
        if (!(this_present_id && that_present_id))
21515
          return false;
21516
        if (this.id != that.id)
21517
          return false;
21518
      }
21519
 
21520
      boolean this_present_url = true && this.isSetUrl();
21521
      boolean that_present_url = true && that.isSetUrl();
21522
      if (this_present_url || that_present_url) {
21523
        if (!(this_present_url && that_present_url))
21524
          return false;
21525
        if (!this.url.equals(that.url))
21526
          return false;
21527
      }
21528
 
21529
      boolean this_present_text = true && this.isSetText();
21530
      boolean that_present_text = true && that.isSetText();
21531
      if (this_present_text || that_present_text) {
21532
        if (!(this_present_text && that_present_text))
21533
          return false;
21534
        if (!this.text.equals(that.text))
21535
          return false;
21536
      }
21537
 
21538
      return true;
21539
    }
21540
 
21541
    @Override
21542
    public int hashCode() {
21543
      return 0;
21544
    }
21545
 
21546
    public int compareTo(updateQuickLink_args other) {
21547
      if (!getClass().equals(other.getClass())) {
21548
        return getClass().getName().compareTo(other.getClass().getName());
21549
      }
21550
 
21551
      int lastComparison = 0;
21552
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21553
 
21554
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21555
      if (lastComparison != 0) {
21556
        return lastComparison;
21557
      }
21558
      if (isSetId()) {
21559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21560
        if (lastComparison != 0) {
21561
          return lastComparison;
21562
        }
21563
      }
21564
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21565
      if (lastComparison != 0) {
21566
        return lastComparison;
21567
      }
21568
      if (isSetUrl()) {
21569
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21570
        if (lastComparison != 0) {
21571
          return lastComparison;
21572
        }
21573
      }
21574
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21575
      if (lastComparison != 0) {
21576
        return lastComparison;
21577
      }
21578
      if (isSetText()) {
21579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21580
        if (lastComparison != 0) {
21581
          return lastComparison;
21582
        }
21583
      }
21584
      return 0;
21585
    }
21586
 
21587
    public _Fields fieldForId(int fieldId) {
21588
      return _Fields.findByThriftId(fieldId);
21589
    }
21590
 
21591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21592
      org.apache.thrift.protocol.TField field;
21593
      iprot.readStructBegin();
21594
      while (true)
21595
      {
21596
        field = iprot.readFieldBegin();
21597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21598
          break;
21599
        }
21600
        switch (field.id) {
21601
          case 1: // ID
21602
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21603
              this.id = iprot.readI64();
21604
              setIdIsSet(true);
21605
            } else { 
21606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21607
            }
21608
            break;
21609
          case 2: // URL
21610
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21611
              this.url = iprot.readString();
21612
            } else { 
21613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21614
            }
21615
            break;
21616
          case 3: // TEXT
21617
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21618
              this.text = iprot.readString();
21619
            } else { 
21620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21621
            }
21622
            break;
21623
          default:
21624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21625
        }
21626
        iprot.readFieldEnd();
21627
      }
21628
      iprot.readStructEnd();
21629
      validate();
21630
    }
21631
 
21632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21633
      validate();
21634
 
21635
      oprot.writeStructBegin(STRUCT_DESC);
21636
      oprot.writeFieldBegin(ID_FIELD_DESC);
21637
      oprot.writeI64(this.id);
21638
      oprot.writeFieldEnd();
21639
      if (this.url != null) {
21640
        oprot.writeFieldBegin(URL_FIELD_DESC);
21641
        oprot.writeString(this.url);
21642
        oprot.writeFieldEnd();
21643
      }
21644
      if (this.text != null) {
21645
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21646
        oprot.writeString(this.text);
21647
        oprot.writeFieldEnd();
21648
      }
21649
      oprot.writeFieldStop();
21650
      oprot.writeStructEnd();
21651
    }
21652
 
21653
    @Override
21654
    public String toString() {
21655
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21656
      boolean first = true;
21657
 
21658
      sb.append("id:");
21659
      sb.append(this.id);
21660
      first = false;
21661
      if (!first) sb.append(", ");
21662
      sb.append("url:");
21663
      if (this.url == null) {
21664
        sb.append("null");
21665
      } else {
21666
        sb.append(this.url);
21667
      }
21668
      first = false;
21669
      if (!first) sb.append(", ");
21670
      sb.append("text:");
21671
      if (this.text == null) {
21672
        sb.append("null");
21673
      } else {
21674
        sb.append(this.text);
21675
      }
21676
      first = false;
21677
      sb.append(")");
21678
      return sb.toString();
21679
    }
21680
 
21681
    public void validate() throws org.apache.thrift.TException {
21682
      // check for required fields
21683
    }
21684
 
21685
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21686
      try {
21687
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21688
      } catch (org.apache.thrift.TException te) {
21689
        throw new java.io.IOException(te);
21690
      }
21691
    }
21692
 
21693
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21694
      try {
21695
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21696
        __isset_bit_vector = new BitSet(1);
21697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21698
      } catch (org.apache.thrift.TException te) {
21699
        throw new java.io.IOException(te);
21700
      }
21701
    }
21702
 
21703
  }
21704
 
21705
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21707
 
21708
    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);
21709
 
21710
    private HelperServiceException hse; // required
21711
 
21712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21713
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21714
      HSE((short)1, "hse");
21715
 
21716
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21717
 
21718
      static {
21719
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21720
          byName.put(field.getFieldName(), field);
21721
        }
21722
      }
21723
 
21724
      /**
21725
       * Find the _Fields constant that matches fieldId, or null if its not found.
21726
       */
21727
      public static _Fields findByThriftId(int fieldId) {
21728
        switch(fieldId) {
21729
          case 1: // HSE
21730
            return HSE;
21731
          default:
21732
            return null;
21733
        }
21734
      }
21735
 
21736
      /**
21737
       * Find the _Fields constant that matches fieldId, throwing an exception
21738
       * if it is not found.
21739
       */
21740
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21741
        _Fields fields = findByThriftId(fieldId);
21742
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21743
        return fields;
21744
      }
21745
 
21746
      /**
21747
       * Find the _Fields constant that matches name, or null if its not found.
21748
       */
21749
      public static _Fields findByName(String name) {
21750
        return byName.get(name);
21751
      }
21752
 
21753
      private final short _thriftId;
21754
      private final String _fieldName;
21755
 
21756
      _Fields(short thriftId, String fieldName) {
21757
        _thriftId = thriftId;
21758
        _fieldName = fieldName;
21759
      }
21760
 
21761
      public short getThriftFieldId() {
21762
        return _thriftId;
21763
      }
21764
 
21765
      public String getFieldName() {
21766
        return _fieldName;
21767
      }
21768
    }
21769
 
21770
    // isset id assignments
21771
 
21772
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21773
    static {
21774
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21775
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21776
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21777
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21778
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21779
    }
21780
 
21781
    public updateQuickLink_result() {
21782
    }
21783
 
21784
    public updateQuickLink_result(
21785
      HelperServiceException hse)
21786
    {
21787
      this();
21788
      this.hse = hse;
21789
    }
21790
 
21791
    /**
21792
     * Performs a deep copy on <i>other</i>.
21793
     */
21794
    public updateQuickLink_result(updateQuickLink_result other) {
21795
      if (other.isSetHse()) {
21796
        this.hse = new HelperServiceException(other.hse);
21797
      }
21798
    }
21799
 
21800
    public updateQuickLink_result deepCopy() {
21801
      return new updateQuickLink_result(this);
21802
    }
21803
 
21804
    @Override
21805
    public void clear() {
21806
      this.hse = null;
21807
    }
21808
 
21809
    public HelperServiceException getHse() {
21810
      return this.hse;
21811
    }
21812
 
21813
    public void setHse(HelperServiceException hse) {
21814
      this.hse = hse;
21815
    }
21816
 
21817
    public void unsetHse() {
21818
      this.hse = null;
21819
    }
21820
 
21821
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21822
    public boolean isSetHse() {
21823
      return this.hse != null;
21824
    }
21825
 
21826
    public void setHseIsSet(boolean value) {
21827
      if (!value) {
21828
        this.hse = null;
21829
      }
21830
    }
21831
 
21832
    public void setFieldValue(_Fields field, Object value) {
21833
      switch (field) {
21834
      case HSE:
21835
        if (value == null) {
21836
          unsetHse();
21837
        } else {
21838
          setHse((HelperServiceException)value);
21839
        }
21840
        break;
21841
 
21842
      }
21843
    }
21844
 
21845
    public Object getFieldValue(_Fields field) {
21846
      switch (field) {
21847
      case HSE:
21848
        return getHse();
21849
 
21850
      }
21851
      throw new IllegalStateException();
21852
    }
21853
 
21854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21855
    public boolean isSet(_Fields field) {
21856
      if (field == null) {
21857
        throw new IllegalArgumentException();
21858
      }
21859
 
21860
      switch (field) {
21861
      case HSE:
21862
        return isSetHse();
21863
      }
21864
      throw new IllegalStateException();
21865
    }
21866
 
21867
    @Override
21868
    public boolean equals(Object that) {
21869
      if (that == null)
21870
        return false;
21871
      if (that instanceof updateQuickLink_result)
21872
        return this.equals((updateQuickLink_result)that);
21873
      return false;
21874
    }
21875
 
21876
    public boolean equals(updateQuickLink_result that) {
21877
      if (that == null)
21878
        return false;
21879
 
21880
      boolean this_present_hse = true && this.isSetHse();
21881
      boolean that_present_hse = true && that.isSetHse();
21882
      if (this_present_hse || that_present_hse) {
21883
        if (!(this_present_hse && that_present_hse))
21884
          return false;
21885
        if (!this.hse.equals(that.hse))
21886
          return false;
21887
      }
21888
 
21889
      return true;
21890
    }
21891
 
21892
    @Override
21893
    public int hashCode() {
21894
      return 0;
21895
    }
21896
 
21897
    public int compareTo(updateQuickLink_result other) {
21898
      if (!getClass().equals(other.getClass())) {
21899
        return getClass().getName().compareTo(other.getClass().getName());
21900
      }
21901
 
21902
      int lastComparison = 0;
21903
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21904
 
21905
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21906
      if (lastComparison != 0) {
21907
        return lastComparison;
21908
      }
21909
      if (isSetHse()) {
21910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21911
        if (lastComparison != 0) {
21912
          return lastComparison;
21913
        }
21914
      }
21915
      return 0;
21916
    }
21917
 
21918
    public _Fields fieldForId(int fieldId) {
21919
      return _Fields.findByThriftId(fieldId);
21920
    }
21921
 
21922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21923
      org.apache.thrift.protocol.TField field;
21924
      iprot.readStructBegin();
21925
      while (true)
21926
      {
21927
        field = iprot.readFieldBegin();
21928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21929
          break;
21930
        }
21931
        switch (field.id) {
21932
          case 1: // HSE
21933
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21934
              this.hse = new HelperServiceException();
21935
              this.hse.read(iprot);
21936
            } else { 
21937
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21938
            }
21939
            break;
21940
          default:
21941
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21942
        }
21943
        iprot.readFieldEnd();
21944
      }
21945
      iprot.readStructEnd();
21946
      validate();
21947
    }
21948
 
21949
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21950
      oprot.writeStructBegin(STRUCT_DESC);
21951
 
21952
      if (this.isSetHse()) {
21953
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21954
        this.hse.write(oprot);
21955
        oprot.writeFieldEnd();
21956
      }
21957
      oprot.writeFieldStop();
21958
      oprot.writeStructEnd();
21959
    }
21960
 
21961
    @Override
21962
    public String toString() {
21963
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21964
      boolean first = true;
21965
 
21966
      sb.append("hse:");
21967
      if (this.hse == null) {
21968
        sb.append("null");
21969
      } else {
21970
        sb.append(this.hse);
21971
      }
21972
      first = false;
21973
      sb.append(")");
21974
      return sb.toString();
21975
    }
21976
 
21977
    public void validate() throws org.apache.thrift.TException {
21978
      // check for required fields
21979
    }
21980
 
21981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21982
      try {
21983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21984
      } catch (org.apache.thrift.TException te) {
21985
        throw new java.io.IOException(te);
21986
      }
21987
    }
21988
 
21989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21990
      try {
21991
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21992
      } catch (org.apache.thrift.TException te) {
21993
        throw new java.io.IOException(te);
21994
      }
21995
    }
21996
 
21997
  }
21998
 
5055 varun.gupt 21999
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
22000
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
22001
 
22002
    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);
22003
    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);
22004
 
22005
    private long startDatetime; // required
22006
    private long endDatetime; // required
22007
 
22008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22010
      START_DATETIME((short)1, "startDatetime"),
22011
      END_DATETIME((short)2, "endDatetime");
22012
 
22013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22014
 
22015
      static {
22016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22017
          byName.put(field.getFieldName(), field);
22018
        }
22019
      }
22020
 
22021
      /**
22022
       * Find the _Fields constant that matches fieldId, or null if its not found.
22023
       */
22024
      public static _Fields findByThriftId(int fieldId) {
22025
        switch(fieldId) {
22026
          case 1: // START_DATETIME
22027
            return START_DATETIME;
22028
          case 2: // END_DATETIME
22029
            return END_DATETIME;
22030
          default:
22031
            return null;
22032
        }
22033
      }
22034
 
22035
      /**
22036
       * Find the _Fields constant that matches fieldId, throwing an exception
22037
       * if it is not found.
22038
       */
22039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22040
        _Fields fields = findByThriftId(fieldId);
22041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22042
        return fields;
22043
      }
22044
 
22045
      /**
22046
       * Find the _Fields constant that matches name, or null if its not found.
22047
       */
22048
      public static _Fields findByName(String name) {
22049
        return byName.get(name);
22050
      }
22051
 
22052
      private final short _thriftId;
22053
      private final String _fieldName;
22054
 
22055
      _Fields(short thriftId, String fieldName) {
22056
        _thriftId = thriftId;
22057
        _fieldName = fieldName;
22058
      }
22059
 
22060
      public short getThriftFieldId() {
22061
        return _thriftId;
22062
      }
22063
 
22064
      public String getFieldName() {
22065
        return _fieldName;
22066
      }
22067
    }
22068
 
22069
    // isset id assignments
22070
    private static final int __STARTDATETIME_ISSET_ID = 0;
22071
    private static final int __ENDDATETIME_ISSET_ID = 1;
22072
    private BitSet __isset_bit_vector = new BitSet(2);
22073
 
22074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22075
    static {
22076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22077
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22079
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
22083
    }
22084
 
22085
    public getEmailsForNotificationsSent_args() {
22086
    }
22087
 
22088
    public getEmailsForNotificationsSent_args(
22089
      long startDatetime,
22090
      long endDatetime)
22091
    {
22092
      this();
22093
      this.startDatetime = startDatetime;
22094
      setStartDatetimeIsSet(true);
22095
      this.endDatetime = endDatetime;
22096
      setEndDatetimeIsSet(true);
22097
    }
22098
 
22099
    /**
22100
     * Performs a deep copy on <i>other</i>.
22101
     */
22102
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
22103
      __isset_bit_vector.clear();
22104
      __isset_bit_vector.or(other.__isset_bit_vector);
22105
      this.startDatetime = other.startDatetime;
22106
      this.endDatetime = other.endDatetime;
22107
    }
22108
 
22109
    public getEmailsForNotificationsSent_args deepCopy() {
22110
      return new getEmailsForNotificationsSent_args(this);
22111
    }
22112
 
22113
    @Override
22114
    public void clear() {
22115
      setStartDatetimeIsSet(false);
22116
      this.startDatetime = 0;
22117
      setEndDatetimeIsSet(false);
22118
      this.endDatetime = 0;
22119
    }
22120
 
22121
    public long getStartDatetime() {
22122
      return this.startDatetime;
22123
    }
22124
 
22125
    public void setStartDatetime(long startDatetime) {
22126
      this.startDatetime = startDatetime;
22127
      setStartDatetimeIsSet(true);
22128
    }
22129
 
22130
    public void unsetStartDatetime() {
22131
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
22132
    }
22133
 
22134
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
22135
    public boolean isSetStartDatetime() {
22136
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
22137
    }
22138
 
22139
    public void setStartDatetimeIsSet(boolean value) {
22140
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
22141
    }
22142
 
22143
    public long getEndDatetime() {
22144
      return this.endDatetime;
22145
    }
22146
 
22147
    public void setEndDatetime(long endDatetime) {
22148
      this.endDatetime = endDatetime;
22149
      setEndDatetimeIsSet(true);
22150
    }
22151
 
22152
    public void unsetEndDatetime() {
22153
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
22154
    }
22155
 
22156
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
22157
    public boolean isSetEndDatetime() {
22158
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
22159
    }
22160
 
22161
    public void setEndDatetimeIsSet(boolean value) {
22162
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
22163
    }
22164
 
22165
    public void setFieldValue(_Fields field, Object value) {
22166
      switch (field) {
22167
      case START_DATETIME:
22168
        if (value == null) {
22169
          unsetStartDatetime();
22170
        } else {
22171
          setStartDatetime((Long)value);
22172
        }
22173
        break;
22174
 
22175
      case END_DATETIME:
22176
        if (value == null) {
22177
          unsetEndDatetime();
22178
        } else {
22179
          setEndDatetime((Long)value);
22180
        }
22181
        break;
22182
 
22183
      }
22184
    }
22185
 
22186
    public Object getFieldValue(_Fields field) {
22187
      switch (field) {
22188
      case START_DATETIME:
22189
        return Long.valueOf(getStartDatetime());
22190
 
22191
      case END_DATETIME:
22192
        return Long.valueOf(getEndDatetime());
22193
 
22194
      }
22195
      throw new IllegalStateException();
22196
    }
22197
 
22198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22199
    public boolean isSet(_Fields field) {
22200
      if (field == null) {
22201
        throw new IllegalArgumentException();
22202
      }
22203
 
22204
      switch (field) {
22205
      case START_DATETIME:
22206
        return isSetStartDatetime();
22207
      case END_DATETIME:
22208
        return isSetEndDatetime();
22209
      }
22210
      throw new IllegalStateException();
22211
    }
22212
 
22213
    @Override
22214
    public boolean equals(Object that) {
22215
      if (that == null)
22216
        return false;
22217
      if (that instanceof getEmailsForNotificationsSent_args)
22218
        return this.equals((getEmailsForNotificationsSent_args)that);
22219
      return false;
22220
    }
22221
 
22222
    public boolean equals(getEmailsForNotificationsSent_args that) {
22223
      if (that == null)
22224
        return false;
22225
 
22226
      boolean this_present_startDatetime = true;
22227
      boolean that_present_startDatetime = true;
22228
      if (this_present_startDatetime || that_present_startDatetime) {
22229
        if (!(this_present_startDatetime && that_present_startDatetime))
22230
          return false;
22231
        if (this.startDatetime != that.startDatetime)
22232
          return false;
22233
      }
22234
 
22235
      boolean this_present_endDatetime = true;
22236
      boolean that_present_endDatetime = true;
22237
      if (this_present_endDatetime || that_present_endDatetime) {
22238
        if (!(this_present_endDatetime && that_present_endDatetime))
22239
          return false;
22240
        if (this.endDatetime != that.endDatetime)
22241
          return false;
22242
      }
22243
 
22244
      return true;
22245
    }
22246
 
22247
    @Override
22248
    public int hashCode() {
22249
      return 0;
22250
    }
22251
 
22252
    public int compareTo(getEmailsForNotificationsSent_args other) {
22253
      if (!getClass().equals(other.getClass())) {
22254
        return getClass().getName().compareTo(other.getClass().getName());
22255
      }
22256
 
22257
      int lastComparison = 0;
22258
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22259
 
22260
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22261
      if (lastComparison != 0) {
22262
        return lastComparison;
22263
      }
22264
      if (isSetStartDatetime()) {
22265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22266
        if (lastComparison != 0) {
22267
          return lastComparison;
22268
        }
22269
      }
22270
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22271
      if (lastComparison != 0) {
22272
        return lastComparison;
22273
      }
22274
      if (isSetEndDatetime()) {
22275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22276
        if (lastComparison != 0) {
22277
          return lastComparison;
22278
        }
22279
      }
22280
      return 0;
22281
    }
22282
 
22283
    public _Fields fieldForId(int fieldId) {
22284
      return _Fields.findByThriftId(fieldId);
22285
    }
22286
 
22287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22288
      org.apache.thrift.protocol.TField field;
22289
      iprot.readStructBegin();
22290
      while (true)
22291
      {
22292
        field = iprot.readFieldBegin();
22293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22294
          break;
22295
        }
22296
        switch (field.id) {
22297
          case 1: // START_DATETIME
22298
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22299
              this.startDatetime = iprot.readI64();
22300
              setStartDatetimeIsSet(true);
22301
            } else { 
22302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22303
            }
22304
            break;
22305
          case 2: // END_DATETIME
22306
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22307
              this.endDatetime = iprot.readI64();
22308
              setEndDatetimeIsSet(true);
22309
            } else { 
22310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22311
            }
22312
            break;
22313
          default:
22314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22315
        }
22316
        iprot.readFieldEnd();
22317
      }
22318
      iprot.readStructEnd();
22319
      validate();
22320
    }
22321
 
22322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22323
      validate();
22324
 
22325
      oprot.writeStructBegin(STRUCT_DESC);
22326
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22327
      oprot.writeI64(this.startDatetime);
22328
      oprot.writeFieldEnd();
22329
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22330
      oprot.writeI64(this.endDatetime);
22331
      oprot.writeFieldEnd();
22332
      oprot.writeFieldStop();
22333
      oprot.writeStructEnd();
22334
    }
22335
 
22336
    @Override
22337
    public String toString() {
22338
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22339
      boolean first = true;
22340
 
22341
      sb.append("startDatetime:");
22342
      sb.append(this.startDatetime);
22343
      first = false;
22344
      if (!first) sb.append(", ");
22345
      sb.append("endDatetime:");
22346
      sb.append(this.endDatetime);
22347
      first = false;
22348
      sb.append(")");
22349
      return sb.toString();
22350
    }
22351
 
22352
    public void validate() throws org.apache.thrift.TException {
22353
      // check for required fields
22354
    }
22355
 
22356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22357
      try {
22358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22359
      } catch (org.apache.thrift.TException te) {
22360
        throw new java.io.IOException(te);
22361
      }
22362
    }
22363
 
22364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22365
      try {
22366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22367
      } catch (org.apache.thrift.TException te) {
22368
        throw new java.io.IOException(te);
22369
      }
22370
    }
22371
 
22372
  }
22373
 
22374
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22376
 
22377
    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);
22378
    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);
22379
 
22380
    private List<String> success; // required
22381
    private HelperServiceException hse; // required
22382
 
22383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22385
      SUCCESS((short)0, "success"),
22386
      HSE((short)1, "hse");
22387
 
22388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22389
 
22390
      static {
22391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22392
          byName.put(field.getFieldName(), field);
22393
        }
22394
      }
22395
 
22396
      /**
22397
       * Find the _Fields constant that matches fieldId, or null if its not found.
22398
       */
22399
      public static _Fields findByThriftId(int fieldId) {
22400
        switch(fieldId) {
22401
          case 0: // SUCCESS
22402
            return SUCCESS;
22403
          case 1: // HSE
22404
            return HSE;
22405
          default:
22406
            return null;
22407
        }
22408
      }
22409
 
22410
      /**
22411
       * Find the _Fields constant that matches fieldId, throwing an exception
22412
       * if it is not found.
22413
       */
22414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22415
        _Fields fields = findByThriftId(fieldId);
22416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22417
        return fields;
22418
      }
22419
 
22420
      /**
22421
       * Find the _Fields constant that matches name, or null if its not found.
22422
       */
22423
      public static _Fields findByName(String name) {
22424
        return byName.get(name);
22425
      }
22426
 
22427
      private final short _thriftId;
22428
      private final String _fieldName;
22429
 
22430
      _Fields(short thriftId, String fieldName) {
22431
        _thriftId = thriftId;
22432
        _fieldName = fieldName;
22433
      }
22434
 
22435
      public short getThriftFieldId() {
22436
        return _thriftId;
22437
      }
22438
 
22439
      public String getFieldName() {
22440
        return _fieldName;
22441
      }
22442
    }
22443
 
22444
    // isset id assignments
22445
 
22446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22447
    static {
22448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22449
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22450
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22451
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22452
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22453
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22456
    }
22457
 
22458
    public getEmailsForNotificationsSent_result() {
22459
    }
22460
 
22461
    public getEmailsForNotificationsSent_result(
22462
      List<String> success,
22463
      HelperServiceException hse)
22464
    {
22465
      this();
22466
      this.success = success;
22467
      this.hse = hse;
22468
    }
22469
 
22470
    /**
22471
     * Performs a deep copy on <i>other</i>.
22472
     */
22473
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22474
      if (other.isSetSuccess()) {
22475
        List<String> __this__success = new ArrayList<String>();
22476
        for (String other_element : other.success) {
22477
          __this__success.add(other_element);
22478
        }
22479
        this.success = __this__success;
22480
      }
22481
      if (other.isSetHse()) {
22482
        this.hse = new HelperServiceException(other.hse);
22483
      }
22484
    }
22485
 
22486
    public getEmailsForNotificationsSent_result deepCopy() {
22487
      return new getEmailsForNotificationsSent_result(this);
22488
    }
22489
 
22490
    @Override
22491
    public void clear() {
22492
      this.success = null;
22493
      this.hse = null;
22494
    }
22495
 
22496
    public int getSuccessSize() {
22497
      return (this.success == null) ? 0 : this.success.size();
22498
    }
22499
 
22500
    public java.util.Iterator<String> getSuccessIterator() {
22501
      return (this.success == null) ? null : this.success.iterator();
22502
    }
22503
 
22504
    public void addToSuccess(String elem) {
22505
      if (this.success == null) {
22506
        this.success = new ArrayList<String>();
22507
      }
22508
      this.success.add(elem);
22509
    }
22510
 
22511
    public List<String> getSuccess() {
22512
      return this.success;
22513
    }
22514
 
22515
    public void setSuccess(List<String> success) {
22516
      this.success = success;
22517
    }
22518
 
22519
    public void unsetSuccess() {
22520
      this.success = null;
22521
    }
22522
 
22523
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22524
    public boolean isSetSuccess() {
22525
      return this.success != null;
22526
    }
22527
 
22528
    public void setSuccessIsSet(boolean value) {
22529
      if (!value) {
22530
        this.success = null;
22531
      }
22532
    }
22533
 
22534
    public HelperServiceException getHse() {
22535
      return this.hse;
22536
    }
22537
 
22538
    public void setHse(HelperServiceException hse) {
22539
      this.hse = hse;
22540
    }
22541
 
22542
    public void unsetHse() {
22543
      this.hse = null;
22544
    }
22545
 
22546
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22547
    public boolean isSetHse() {
22548
      return this.hse != null;
22549
    }
22550
 
22551
    public void setHseIsSet(boolean value) {
22552
      if (!value) {
22553
        this.hse = null;
22554
      }
22555
    }
22556
 
22557
    public void setFieldValue(_Fields field, Object value) {
22558
      switch (field) {
22559
      case SUCCESS:
22560
        if (value == null) {
22561
          unsetSuccess();
22562
        } else {
22563
          setSuccess((List<String>)value);
22564
        }
22565
        break;
22566
 
22567
      case HSE:
22568
        if (value == null) {
22569
          unsetHse();
22570
        } else {
22571
          setHse((HelperServiceException)value);
22572
        }
22573
        break;
22574
 
22575
      }
22576
    }
22577
 
22578
    public Object getFieldValue(_Fields field) {
22579
      switch (field) {
22580
      case SUCCESS:
22581
        return getSuccess();
22582
 
22583
      case HSE:
22584
        return getHse();
22585
 
22586
      }
22587
      throw new IllegalStateException();
22588
    }
22589
 
22590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22591
    public boolean isSet(_Fields field) {
22592
      if (field == null) {
22593
        throw new IllegalArgumentException();
22594
      }
22595
 
22596
      switch (field) {
22597
      case SUCCESS:
22598
        return isSetSuccess();
22599
      case HSE:
22600
        return isSetHse();
22601
      }
22602
      throw new IllegalStateException();
22603
    }
22604
 
22605
    @Override
22606
    public boolean equals(Object that) {
22607
      if (that == null)
22608
        return false;
22609
      if (that instanceof getEmailsForNotificationsSent_result)
22610
        return this.equals((getEmailsForNotificationsSent_result)that);
22611
      return false;
22612
    }
22613
 
22614
    public boolean equals(getEmailsForNotificationsSent_result that) {
22615
      if (that == null)
22616
        return false;
22617
 
22618
      boolean this_present_success = true && this.isSetSuccess();
22619
      boolean that_present_success = true && that.isSetSuccess();
22620
      if (this_present_success || that_present_success) {
22621
        if (!(this_present_success && that_present_success))
22622
          return false;
22623
        if (!this.success.equals(that.success))
22624
          return false;
22625
      }
22626
 
22627
      boolean this_present_hse = true && this.isSetHse();
22628
      boolean that_present_hse = true && that.isSetHse();
22629
      if (this_present_hse || that_present_hse) {
22630
        if (!(this_present_hse && that_present_hse))
22631
          return false;
22632
        if (!this.hse.equals(that.hse))
22633
          return false;
22634
      }
22635
 
22636
      return true;
22637
    }
22638
 
22639
    @Override
22640
    public int hashCode() {
22641
      return 0;
22642
    }
22643
 
22644
    public int compareTo(getEmailsForNotificationsSent_result other) {
22645
      if (!getClass().equals(other.getClass())) {
22646
        return getClass().getName().compareTo(other.getClass().getName());
22647
      }
22648
 
22649
      int lastComparison = 0;
22650
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22651
 
22652
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22653
      if (lastComparison != 0) {
22654
        return lastComparison;
22655
      }
22656
      if (isSetSuccess()) {
22657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22658
        if (lastComparison != 0) {
22659
          return lastComparison;
22660
        }
22661
      }
22662
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22663
      if (lastComparison != 0) {
22664
        return lastComparison;
22665
      }
22666
      if (isSetHse()) {
22667
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22668
        if (lastComparison != 0) {
22669
          return lastComparison;
22670
        }
22671
      }
22672
      return 0;
22673
    }
22674
 
22675
    public _Fields fieldForId(int fieldId) {
22676
      return _Fields.findByThriftId(fieldId);
22677
    }
22678
 
22679
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22680
      org.apache.thrift.protocol.TField field;
22681
      iprot.readStructBegin();
22682
      while (true)
22683
      {
22684
        field = iprot.readFieldBegin();
22685
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22686
          break;
22687
        }
22688
        switch (field.id) {
22689
          case 0: // SUCCESS
22690
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22691
              {
5864 rajveer 22692
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22693
                this.success = new ArrayList<String>(_list65.size);
22694
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22695
                {
5864 rajveer 22696
                  String _elem67; // required
22697
                  _elem67 = iprot.readString();
22698
                  this.success.add(_elem67);
5055 varun.gupt 22699
                }
22700
                iprot.readListEnd();
22701
              }
22702
            } else { 
22703
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22704
            }
22705
            break;
22706
          case 1: // HSE
22707
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22708
              this.hse = new HelperServiceException();
22709
              this.hse.read(iprot);
22710
            } else { 
22711
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22712
            }
22713
            break;
22714
          default:
22715
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22716
        }
22717
        iprot.readFieldEnd();
22718
      }
22719
      iprot.readStructEnd();
22720
      validate();
22721
    }
22722
 
22723
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22724
      oprot.writeStructBegin(STRUCT_DESC);
22725
 
22726
      if (this.isSetSuccess()) {
22727
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22728
        {
22729
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22730
          for (String _iter68 : this.success)
5055 varun.gupt 22731
          {
5864 rajveer 22732
            oprot.writeString(_iter68);
5055 varun.gupt 22733
          }
22734
          oprot.writeListEnd();
22735
        }
22736
        oprot.writeFieldEnd();
22737
      } else if (this.isSetHse()) {
22738
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22739
        this.hse.write(oprot);
22740
        oprot.writeFieldEnd();
22741
      }
22742
      oprot.writeFieldStop();
22743
      oprot.writeStructEnd();
22744
    }
22745
 
22746
    @Override
22747
    public String toString() {
22748
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22749
      boolean first = true;
22750
 
22751
      sb.append("success:");
22752
      if (this.success == null) {
22753
        sb.append("null");
22754
      } else {
22755
        sb.append(this.success);
22756
      }
22757
      first = false;
22758
      if (!first) sb.append(", ");
22759
      sb.append("hse:");
22760
      if (this.hse == null) {
22761
        sb.append("null");
22762
      } else {
22763
        sb.append(this.hse);
22764
      }
22765
      first = false;
22766
      sb.append(")");
22767
      return sb.toString();
22768
    }
22769
 
22770
    public void validate() throws org.apache.thrift.TException {
22771
      // check for required fields
22772
    }
22773
 
22774
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22775
      try {
22776
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22777
      } catch (org.apache.thrift.TException te) {
22778
        throw new java.io.IOException(te);
22779
      }
22780
    }
22781
 
22782
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22783
      try {
22784
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22785
      } catch (org.apache.thrift.TException te) {
22786
        throw new java.io.IOException(te);
22787
      }
22788
    }
22789
 
22790
  }
22791
 
6322 amar.kumar 22792
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22793
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22794
 
22795
    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);
22796
 
22797
    private long orderId; // required
22798
 
22799
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22800
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22801
      ORDER_ID((short)1, "orderId");
22802
 
22803
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22804
 
22805
      static {
22806
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22807
          byName.put(field.getFieldName(), field);
22808
        }
22809
      }
22810
 
22811
      /**
22812
       * Find the _Fields constant that matches fieldId, or null if its not found.
22813
       */
22814
      public static _Fields findByThriftId(int fieldId) {
22815
        switch(fieldId) {
22816
          case 1: // ORDER_ID
22817
            return ORDER_ID;
22818
          default:
22819
            return null;
22820
        }
22821
      }
22822
 
22823
      /**
22824
       * Find the _Fields constant that matches fieldId, throwing an exception
22825
       * if it is not found.
22826
       */
22827
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22828
        _Fields fields = findByThriftId(fieldId);
22829
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22830
        return fields;
22831
      }
22832
 
22833
      /**
22834
       * Find the _Fields constant that matches name, or null if its not found.
22835
       */
22836
      public static _Fields findByName(String name) {
22837
        return byName.get(name);
22838
      }
22839
 
22840
      private final short _thriftId;
22841
      private final String _fieldName;
22842
 
22843
      _Fields(short thriftId, String fieldName) {
22844
        _thriftId = thriftId;
22845
        _fieldName = fieldName;
22846
      }
22847
 
22848
      public short getThriftFieldId() {
22849
        return _thriftId;
22850
      }
22851
 
22852
      public String getFieldName() {
22853
        return _fieldName;
22854
      }
22855
    }
22856
 
22857
    // isset id assignments
22858
    private static final int __ORDERID_ISSET_ID = 0;
22859
    private BitSet __isset_bit_vector = new BitSet(1);
22860
 
22861
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22862
    static {
22863
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22864
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22865
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22868
    }
22869
 
22870
    public getOrderConfirmationMail_args() {
22871
    }
22872
 
22873
    public getOrderConfirmationMail_args(
22874
      long orderId)
22875
    {
22876
      this();
22877
      this.orderId = orderId;
22878
      setOrderIdIsSet(true);
22879
    }
22880
 
22881
    /**
22882
     * Performs a deep copy on <i>other</i>.
22883
     */
22884
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22885
      __isset_bit_vector.clear();
22886
      __isset_bit_vector.or(other.__isset_bit_vector);
22887
      this.orderId = other.orderId;
22888
    }
22889
 
22890
    public getOrderConfirmationMail_args deepCopy() {
22891
      return new getOrderConfirmationMail_args(this);
22892
    }
22893
 
22894
    @Override
22895
    public void clear() {
22896
      setOrderIdIsSet(false);
22897
      this.orderId = 0;
22898
    }
22899
 
22900
    public long getOrderId() {
22901
      return this.orderId;
22902
    }
22903
 
22904
    public void setOrderId(long orderId) {
22905
      this.orderId = orderId;
22906
      setOrderIdIsSet(true);
22907
    }
22908
 
22909
    public void unsetOrderId() {
22910
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22911
    }
22912
 
22913
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22914
    public boolean isSetOrderId() {
22915
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22916
    }
22917
 
22918
    public void setOrderIdIsSet(boolean value) {
22919
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22920
    }
22921
 
22922
    public void setFieldValue(_Fields field, Object value) {
22923
      switch (field) {
22924
      case ORDER_ID:
22925
        if (value == null) {
22926
          unsetOrderId();
22927
        } else {
22928
          setOrderId((Long)value);
22929
        }
22930
        break;
22931
 
22932
      }
22933
    }
22934
 
22935
    public Object getFieldValue(_Fields field) {
22936
      switch (field) {
22937
      case ORDER_ID:
22938
        return Long.valueOf(getOrderId());
22939
 
22940
      }
22941
      throw new IllegalStateException();
22942
    }
22943
 
22944
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22945
    public boolean isSet(_Fields field) {
22946
      if (field == null) {
22947
        throw new IllegalArgumentException();
22948
      }
22949
 
22950
      switch (field) {
22951
      case ORDER_ID:
22952
        return isSetOrderId();
22953
      }
22954
      throw new IllegalStateException();
22955
    }
22956
 
22957
    @Override
22958
    public boolean equals(Object that) {
22959
      if (that == null)
22960
        return false;
22961
      if (that instanceof getOrderConfirmationMail_args)
22962
        return this.equals((getOrderConfirmationMail_args)that);
22963
      return false;
22964
    }
22965
 
22966
    public boolean equals(getOrderConfirmationMail_args that) {
22967
      if (that == null)
22968
        return false;
22969
 
22970
      boolean this_present_orderId = true;
22971
      boolean that_present_orderId = true;
22972
      if (this_present_orderId || that_present_orderId) {
22973
        if (!(this_present_orderId && that_present_orderId))
22974
          return false;
22975
        if (this.orderId != that.orderId)
22976
          return false;
22977
      }
22978
 
22979
      return true;
22980
    }
22981
 
22982
    @Override
22983
    public int hashCode() {
22984
      return 0;
22985
    }
22986
 
22987
    public int compareTo(getOrderConfirmationMail_args other) {
22988
      if (!getClass().equals(other.getClass())) {
22989
        return getClass().getName().compareTo(other.getClass().getName());
22990
      }
22991
 
22992
      int lastComparison = 0;
22993
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22994
 
22995
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22996
      if (lastComparison != 0) {
22997
        return lastComparison;
22998
      }
22999
      if (isSetOrderId()) {
23000
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23001
        if (lastComparison != 0) {
23002
          return lastComparison;
23003
        }
23004
      }
23005
      return 0;
23006
    }
23007
 
23008
    public _Fields fieldForId(int fieldId) {
23009
      return _Fields.findByThriftId(fieldId);
23010
    }
23011
 
23012
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23013
      org.apache.thrift.protocol.TField field;
23014
      iprot.readStructBegin();
23015
      while (true)
23016
      {
23017
        field = iprot.readFieldBegin();
23018
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23019
          break;
23020
        }
23021
        switch (field.id) {
23022
          case 1: // ORDER_ID
23023
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23024
              this.orderId = iprot.readI64();
23025
              setOrderIdIsSet(true);
23026
            } else { 
23027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23028
            }
23029
            break;
23030
          default:
23031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23032
        }
23033
        iprot.readFieldEnd();
23034
      }
23035
      iprot.readStructEnd();
23036
      validate();
23037
    }
23038
 
23039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23040
      validate();
23041
 
23042
      oprot.writeStructBegin(STRUCT_DESC);
23043
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23044
      oprot.writeI64(this.orderId);
23045
      oprot.writeFieldEnd();
23046
      oprot.writeFieldStop();
23047
      oprot.writeStructEnd();
23048
    }
23049
 
23050
    @Override
23051
    public String toString() {
23052
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
23053
      boolean first = true;
23054
 
23055
      sb.append("orderId:");
23056
      sb.append(this.orderId);
23057
      first = false;
23058
      sb.append(")");
23059
      return sb.toString();
23060
    }
23061
 
23062
    public void validate() throws org.apache.thrift.TException {
23063
      // check for required fields
23064
    }
23065
 
23066
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23067
      try {
23068
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23069
      } catch (org.apache.thrift.TException te) {
23070
        throw new java.io.IOException(te);
23071
      }
23072
    }
23073
 
23074
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23075
      try {
23076
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23077
        __isset_bit_vector = new BitSet(1);
23078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23079
      } catch (org.apache.thrift.TException te) {
23080
        throw new java.io.IOException(te);
23081
      }
23082
    }
23083
 
23084
  }
23085
 
23086
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
23087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
23088
 
23089
    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);
23090
 
23091
    private String success; // required
23092
 
23093
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23094
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23095
      SUCCESS((short)0, "success");
23096
 
23097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23098
 
23099
      static {
23100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23101
          byName.put(field.getFieldName(), field);
23102
        }
23103
      }
23104
 
23105
      /**
23106
       * Find the _Fields constant that matches fieldId, or null if its not found.
23107
       */
23108
      public static _Fields findByThriftId(int fieldId) {
23109
        switch(fieldId) {
23110
          case 0: // SUCCESS
23111
            return SUCCESS;
23112
          default:
23113
            return null;
23114
        }
23115
      }
23116
 
23117
      /**
23118
       * Find the _Fields constant that matches fieldId, throwing an exception
23119
       * if it is not found.
23120
       */
23121
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23122
        _Fields fields = findByThriftId(fieldId);
23123
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23124
        return fields;
23125
      }
23126
 
23127
      /**
23128
       * Find the _Fields constant that matches name, or null if its not found.
23129
       */
23130
      public static _Fields findByName(String name) {
23131
        return byName.get(name);
23132
      }
23133
 
23134
      private final short _thriftId;
23135
      private final String _fieldName;
23136
 
23137
      _Fields(short thriftId, String fieldName) {
23138
        _thriftId = thriftId;
23139
        _fieldName = fieldName;
23140
      }
23141
 
23142
      public short getThriftFieldId() {
23143
        return _thriftId;
23144
      }
23145
 
23146
      public String getFieldName() {
23147
        return _fieldName;
23148
      }
23149
    }
23150
 
23151
    // isset id assignments
23152
 
23153
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23154
    static {
23155
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23156
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23157
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23158
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23159
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
23160
    }
23161
 
23162
    public getOrderConfirmationMail_result() {
23163
    }
23164
 
23165
    public getOrderConfirmationMail_result(
23166
      String success)
23167
    {
23168
      this();
23169
      this.success = success;
23170
    }
23171
 
23172
    /**
23173
     * Performs a deep copy on <i>other</i>.
23174
     */
23175
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
23176
      if (other.isSetSuccess()) {
23177
        this.success = other.success;
23178
      }
23179
    }
23180
 
23181
    public getOrderConfirmationMail_result deepCopy() {
23182
      return new getOrderConfirmationMail_result(this);
23183
    }
23184
 
23185
    @Override
23186
    public void clear() {
23187
      this.success = null;
23188
    }
23189
 
23190
    public String getSuccess() {
23191
      return this.success;
23192
    }
23193
 
23194
    public void setSuccess(String success) {
23195
      this.success = success;
23196
    }
23197
 
23198
    public void unsetSuccess() {
23199
      this.success = null;
23200
    }
23201
 
23202
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23203
    public boolean isSetSuccess() {
23204
      return this.success != null;
23205
    }
23206
 
23207
    public void setSuccessIsSet(boolean value) {
23208
      if (!value) {
23209
        this.success = null;
23210
      }
23211
    }
23212
 
23213
    public void setFieldValue(_Fields field, Object value) {
23214
      switch (field) {
23215
      case SUCCESS:
23216
        if (value == null) {
23217
          unsetSuccess();
23218
        } else {
23219
          setSuccess((String)value);
23220
        }
23221
        break;
23222
 
23223
      }
23224
    }
23225
 
23226
    public Object getFieldValue(_Fields field) {
23227
      switch (field) {
23228
      case SUCCESS:
23229
        return getSuccess();
23230
 
23231
      }
23232
      throw new IllegalStateException();
23233
    }
23234
 
23235
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23236
    public boolean isSet(_Fields field) {
23237
      if (field == null) {
23238
        throw new IllegalArgumentException();
23239
      }
23240
 
23241
      switch (field) {
23242
      case SUCCESS:
23243
        return isSetSuccess();
23244
      }
23245
      throw new IllegalStateException();
23246
    }
23247
 
23248
    @Override
23249
    public boolean equals(Object that) {
23250
      if (that == null)
23251
        return false;
23252
      if (that instanceof getOrderConfirmationMail_result)
23253
        return this.equals((getOrderConfirmationMail_result)that);
23254
      return false;
23255
    }
23256
 
23257
    public boolean equals(getOrderConfirmationMail_result that) {
23258
      if (that == null)
23259
        return false;
23260
 
23261
      boolean this_present_success = true && this.isSetSuccess();
23262
      boolean that_present_success = true && that.isSetSuccess();
23263
      if (this_present_success || that_present_success) {
23264
        if (!(this_present_success && that_present_success))
23265
          return false;
23266
        if (!this.success.equals(that.success))
23267
          return false;
23268
      }
23269
 
23270
      return true;
23271
    }
23272
 
23273
    @Override
23274
    public int hashCode() {
23275
      return 0;
23276
    }
23277
 
23278
    public int compareTo(getOrderConfirmationMail_result other) {
23279
      if (!getClass().equals(other.getClass())) {
23280
        return getClass().getName().compareTo(other.getClass().getName());
23281
      }
23282
 
23283
      int lastComparison = 0;
23284
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23285
 
23286
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23287
      if (lastComparison != 0) {
23288
        return lastComparison;
23289
      }
23290
      if (isSetSuccess()) {
23291
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23292
        if (lastComparison != 0) {
23293
          return lastComparison;
23294
        }
23295
      }
23296
      return 0;
23297
    }
23298
 
23299
    public _Fields fieldForId(int fieldId) {
23300
      return _Fields.findByThriftId(fieldId);
23301
    }
23302
 
23303
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23304
      org.apache.thrift.protocol.TField field;
23305
      iprot.readStructBegin();
23306
      while (true)
23307
      {
23308
        field = iprot.readFieldBegin();
23309
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23310
          break;
23311
        }
23312
        switch (field.id) {
23313
          case 0: // SUCCESS
23314
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23315
              this.success = iprot.readString();
23316
            } else { 
23317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23318
            }
23319
            break;
23320
          default:
23321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23322
        }
23323
        iprot.readFieldEnd();
23324
      }
23325
      iprot.readStructEnd();
23326
      validate();
23327
    }
23328
 
23329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23330
      oprot.writeStructBegin(STRUCT_DESC);
23331
 
23332
      if (this.isSetSuccess()) {
23333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23334
        oprot.writeString(this.success);
23335
        oprot.writeFieldEnd();
23336
      }
23337
      oprot.writeFieldStop();
23338
      oprot.writeStructEnd();
23339
    }
23340
 
23341
    @Override
23342
    public String toString() {
23343
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23344
      boolean first = true;
23345
 
23346
      sb.append("success:");
23347
      if (this.success == null) {
23348
        sb.append("null");
23349
      } else {
23350
        sb.append(this.success);
23351
      }
23352
      first = false;
23353
      sb.append(")");
23354
      return sb.toString();
23355
    }
23356
 
23357
    public void validate() throws org.apache.thrift.TException {
23358
      // check for required fields
23359
    }
23360
 
23361
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23362
      try {
23363
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23364
      } catch (org.apache.thrift.TException te) {
23365
        throw new java.io.IOException(te);
23366
      }
23367
    }
23368
 
23369
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23370
      try {
23371
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23372
      } catch (org.apache.thrift.TException te) {
23373
        throw new java.io.IOException(te);
23374
      }
23375
    }
23376
 
23377
  }
23378
 
7221 kshitij.so 23379
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
23380
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
23381
 
23382
    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);
23383
 
23384
    private long orderId; // required
23385
 
23386
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23387
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23388
      ORDER_ID((short)1, "orderId");
23389
 
23390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23391
 
23392
      static {
23393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23394
          byName.put(field.getFieldName(), field);
23395
        }
23396
      }
23397
 
23398
      /**
23399
       * Find the _Fields constant that matches fieldId, or null if its not found.
23400
       */
23401
      public static _Fields findByThriftId(int fieldId) {
23402
        switch(fieldId) {
23403
          case 1: // ORDER_ID
23404
            return ORDER_ID;
23405
          default:
23406
            return null;
23407
        }
23408
      }
23409
 
23410
      /**
23411
       * Find the _Fields constant that matches fieldId, throwing an exception
23412
       * if it is not found.
23413
       */
23414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23415
        _Fields fields = findByThriftId(fieldId);
23416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23417
        return fields;
23418
      }
23419
 
23420
      /**
23421
       * Find the _Fields constant that matches name, or null if its not found.
23422
       */
23423
      public static _Fields findByName(String name) {
23424
        return byName.get(name);
23425
      }
23426
 
23427
      private final short _thriftId;
23428
      private final String _fieldName;
23429
 
23430
      _Fields(short thriftId, String fieldName) {
23431
        _thriftId = thriftId;
23432
        _fieldName = fieldName;
23433
      }
23434
 
23435
      public short getThriftFieldId() {
23436
        return _thriftId;
23437
      }
23438
 
23439
      public String getFieldName() {
23440
        return _fieldName;
23441
      }
23442
    }
23443
 
23444
    // isset id assignments
23445
    private static final int __ORDERID_ISSET_ID = 0;
23446
    private BitSet __isset_bit_vector = new BitSet(1);
23447
 
23448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23449
    static {
23450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23451
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23453
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23454
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
23455
    }
23456
 
23457
    public getOrderDeliveryMail_args() {
23458
    }
23459
 
23460
    public getOrderDeliveryMail_args(
23461
      long orderId)
23462
    {
23463
      this();
23464
      this.orderId = orderId;
23465
      setOrderIdIsSet(true);
23466
    }
23467
 
23468
    /**
23469
     * Performs a deep copy on <i>other</i>.
23470
     */
23471
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
23472
      __isset_bit_vector.clear();
23473
      __isset_bit_vector.or(other.__isset_bit_vector);
23474
      this.orderId = other.orderId;
23475
    }
23476
 
23477
    public getOrderDeliveryMail_args deepCopy() {
23478
      return new getOrderDeliveryMail_args(this);
23479
    }
23480
 
23481
    @Override
23482
    public void clear() {
23483
      setOrderIdIsSet(false);
23484
      this.orderId = 0;
23485
    }
23486
 
23487
    public long getOrderId() {
23488
      return this.orderId;
23489
    }
23490
 
23491
    public void setOrderId(long orderId) {
23492
      this.orderId = orderId;
23493
      setOrderIdIsSet(true);
23494
    }
23495
 
23496
    public void unsetOrderId() {
23497
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23498
    }
23499
 
23500
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23501
    public boolean isSetOrderId() {
23502
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23503
    }
23504
 
23505
    public void setOrderIdIsSet(boolean value) {
23506
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23507
    }
23508
 
23509
    public void setFieldValue(_Fields field, Object value) {
23510
      switch (field) {
23511
      case ORDER_ID:
23512
        if (value == null) {
23513
          unsetOrderId();
23514
        } else {
23515
          setOrderId((Long)value);
23516
        }
23517
        break;
23518
 
23519
      }
23520
    }
23521
 
23522
    public Object getFieldValue(_Fields field) {
23523
      switch (field) {
23524
      case ORDER_ID:
23525
        return Long.valueOf(getOrderId());
23526
 
23527
      }
23528
      throw new IllegalStateException();
23529
    }
23530
 
23531
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23532
    public boolean isSet(_Fields field) {
23533
      if (field == null) {
23534
        throw new IllegalArgumentException();
23535
      }
23536
 
23537
      switch (field) {
23538
      case ORDER_ID:
23539
        return isSetOrderId();
23540
      }
23541
      throw new IllegalStateException();
23542
    }
23543
 
23544
    @Override
23545
    public boolean equals(Object that) {
23546
      if (that == null)
23547
        return false;
23548
      if (that instanceof getOrderDeliveryMail_args)
23549
        return this.equals((getOrderDeliveryMail_args)that);
23550
      return false;
23551
    }
23552
 
23553
    public boolean equals(getOrderDeliveryMail_args that) {
23554
      if (that == null)
23555
        return false;
23556
 
23557
      boolean this_present_orderId = true;
23558
      boolean that_present_orderId = true;
23559
      if (this_present_orderId || that_present_orderId) {
23560
        if (!(this_present_orderId && that_present_orderId))
23561
          return false;
23562
        if (this.orderId != that.orderId)
23563
          return false;
23564
      }
23565
 
23566
      return true;
23567
    }
23568
 
23569
    @Override
23570
    public int hashCode() {
23571
      return 0;
23572
    }
23573
 
23574
    public int compareTo(getOrderDeliveryMail_args other) {
23575
      if (!getClass().equals(other.getClass())) {
23576
        return getClass().getName().compareTo(other.getClass().getName());
23577
      }
23578
 
23579
      int lastComparison = 0;
23580
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
23581
 
23582
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23583
      if (lastComparison != 0) {
23584
        return lastComparison;
23585
      }
23586
      if (isSetOrderId()) {
23587
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23588
        if (lastComparison != 0) {
23589
          return lastComparison;
23590
        }
23591
      }
23592
      return 0;
23593
    }
23594
 
23595
    public _Fields fieldForId(int fieldId) {
23596
      return _Fields.findByThriftId(fieldId);
23597
    }
23598
 
23599
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23600
      org.apache.thrift.protocol.TField field;
23601
      iprot.readStructBegin();
23602
      while (true)
23603
      {
23604
        field = iprot.readFieldBegin();
23605
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23606
          break;
23607
        }
23608
        switch (field.id) {
23609
          case 1: // ORDER_ID
23610
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23611
              this.orderId = iprot.readI64();
23612
              setOrderIdIsSet(true);
23613
            } else { 
23614
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23615
            }
23616
            break;
23617
          default:
23618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23619
        }
23620
        iprot.readFieldEnd();
23621
      }
23622
      iprot.readStructEnd();
23623
      validate();
23624
    }
23625
 
23626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23627
      validate();
23628
 
23629
      oprot.writeStructBegin(STRUCT_DESC);
23630
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23631
      oprot.writeI64(this.orderId);
23632
      oprot.writeFieldEnd();
23633
      oprot.writeFieldStop();
23634
      oprot.writeStructEnd();
23635
    }
23636
 
23637
    @Override
23638
    public String toString() {
23639
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
23640
      boolean first = true;
23641
 
23642
      sb.append("orderId:");
23643
      sb.append(this.orderId);
23644
      first = false;
23645
      sb.append(")");
23646
      return sb.toString();
23647
    }
23648
 
23649
    public void validate() throws org.apache.thrift.TException {
23650
      // check for required fields
23651
    }
23652
 
23653
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23654
      try {
23655
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23656
      } catch (org.apache.thrift.TException te) {
23657
        throw new java.io.IOException(te);
23658
      }
23659
    }
23660
 
23661
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23662
      try {
23663
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23664
        __isset_bit_vector = new BitSet(1);
23665
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23666
      } catch (org.apache.thrift.TException te) {
23667
        throw new java.io.IOException(te);
23668
      }
23669
    }
23670
 
23671
  }
23672
 
23673
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
23674
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
23675
 
23676
    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);
23677
 
23678
    private String success; // required
23679
 
23680
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23681
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23682
      SUCCESS((short)0, "success");
23683
 
23684
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23685
 
23686
      static {
23687
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23688
          byName.put(field.getFieldName(), field);
23689
        }
23690
      }
23691
 
23692
      /**
23693
       * Find the _Fields constant that matches fieldId, or null if its not found.
23694
       */
23695
      public static _Fields findByThriftId(int fieldId) {
23696
        switch(fieldId) {
23697
          case 0: // SUCCESS
23698
            return SUCCESS;
23699
          default:
23700
            return null;
23701
        }
23702
      }
23703
 
23704
      /**
23705
       * Find the _Fields constant that matches fieldId, throwing an exception
23706
       * if it is not found.
23707
       */
23708
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23709
        _Fields fields = findByThriftId(fieldId);
23710
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23711
        return fields;
23712
      }
23713
 
23714
      /**
23715
       * Find the _Fields constant that matches name, or null if its not found.
23716
       */
23717
      public static _Fields findByName(String name) {
23718
        return byName.get(name);
23719
      }
23720
 
23721
      private final short _thriftId;
23722
      private final String _fieldName;
23723
 
23724
      _Fields(short thriftId, String fieldName) {
23725
        _thriftId = thriftId;
23726
        _fieldName = fieldName;
23727
      }
23728
 
23729
      public short getThriftFieldId() {
23730
        return _thriftId;
23731
      }
23732
 
23733
      public String getFieldName() {
23734
        return _fieldName;
23735
      }
23736
    }
23737
 
23738
    // isset id assignments
23739
 
23740
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23741
    static {
23742
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23743
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23744
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
23747
    }
23748
 
23749
    public getOrderDeliveryMail_result() {
23750
    }
23751
 
23752
    public getOrderDeliveryMail_result(
23753
      String success)
23754
    {
23755
      this();
23756
      this.success = success;
23757
    }
23758
 
23759
    /**
23760
     * Performs a deep copy on <i>other</i>.
23761
     */
23762
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
23763
      if (other.isSetSuccess()) {
23764
        this.success = other.success;
23765
      }
23766
    }
23767
 
23768
    public getOrderDeliveryMail_result deepCopy() {
23769
      return new getOrderDeliveryMail_result(this);
23770
    }
23771
 
23772
    @Override
23773
    public void clear() {
23774
      this.success = null;
23775
    }
23776
 
23777
    public String getSuccess() {
23778
      return this.success;
23779
    }
23780
 
23781
    public void setSuccess(String success) {
23782
      this.success = success;
23783
    }
23784
 
23785
    public void unsetSuccess() {
23786
      this.success = null;
23787
    }
23788
 
23789
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23790
    public boolean isSetSuccess() {
23791
      return this.success != null;
23792
    }
23793
 
23794
    public void setSuccessIsSet(boolean value) {
23795
      if (!value) {
23796
        this.success = null;
23797
      }
23798
    }
23799
 
23800
    public void setFieldValue(_Fields field, Object value) {
23801
      switch (field) {
23802
      case SUCCESS:
23803
        if (value == null) {
23804
          unsetSuccess();
23805
        } else {
23806
          setSuccess((String)value);
23807
        }
23808
        break;
23809
 
23810
      }
23811
    }
23812
 
23813
    public Object getFieldValue(_Fields field) {
23814
      switch (field) {
23815
      case SUCCESS:
23816
        return getSuccess();
23817
 
23818
      }
23819
      throw new IllegalStateException();
23820
    }
23821
 
23822
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23823
    public boolean isSet(_Fields field) {
23824
      if (field == null) {
23825
        throw new IllegalArgumentException();
23826
      }
23827
 
23828
      switch (field) {
23829
      case SUCCESS:
23830
        return isSetSuccess();
23831
      }
23832
      throw new IllegalStateException();
23833
    }
23834
 
23835
    @Override
23836
    public boolean equals(Object that) {
23837
      if (that == null)
23838
        return false;
23839
      if (that instanceof getOrderDeliveryMail_result)
23840
        return this.equals((getOrderDeliveryMail_result)that);
23841
      return false;
23842
    }
23843
 
23844
    public boolean equals(getOrderDeliveryMail_result that) {
23845
      if (that == null)
23846
        return false;
23847
 
23848
      boolean this_present_success = true && this.isSetSuccess();
23849
      boolean that_present_success = true && that.isSetSuccess();
23850
      if (this_present_success || that_present_success) {
23851
        if (!(this_present_success && that_present_success))
23852
          return false;
23853
        if (!this.success.equals(that.success))
23854
          return false;
23855
      }
23856
 
23857
      return true;
23858
    }
23859
 
23860
    @Override
23861
    public int hashCode() {
23862
      return 0;
23863
    }
23864
 
23865
    public int compareTo(getOrderDeliveryMail_result other) {
23866
      if (!getClass().equals(other.getClass())) {
23867
        return getClass().getName().compareTo(other.getClass().getName());
23868
      }
23869
 
23870
      int lastComparison = 0;
23871
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
23872
 
23873
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23874
      if (lastComparison != 0) {
23875
        return lastComparison;
23876
      }
23877
      if (isSetSuccess()) {
23878
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23879
        if (lastComparison != 0) {
23880
          return lastComparison;
23881
        }
23882
      }
23883
      return 0;
23884
    }
23885
 
23886
    public _Fields fieldForId(int fieldId) {
23887
      return _Fields.findByThriftId(fieldId);
23888
    }
23889
 
23890
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23891
      org.apache.thrift.protocol.TField field;
23892
      iprot.readStructBegin();
23893
      while (true)
23894
      {
23895
        field = iprot.readFieldBegin();
23896
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23897
          break;
23898
        }
23899
        switch (field.id) {
23900
          case 0: // SUCCESS
23901
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23902
              this.success = iprot.readString();
23903
            } else { 
23904
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23905
            }
23906
            break;
23907
          default:
23908
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23909
        }
23910
        iprot.readFieldEnd();
23911
      }
23912
      iprot.readStructEnd();
23913
      validate();
23914
    }
23915
 
23916
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23917
      oprot.writeStructBegin(STRUCT_DESC);
23918
 
23919
      if (this.isSetSuccess()) {
23920
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23921
        oprot.writeString(this.success);
23922
        oprot.writeFieldEnd();
23923
      }
23924
      oprot.writeFieldStop();
23925
      oprot.writeStructEnd();
23926
    }
23927
 
23928
    @Override
23929
    public String toString() {
23930
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
23931
      boolean first = true;
23932
 
23933
      sb.append("success:");
23934
      if (this.success == null) {
23935
        sb.append("null");
23936
      } else {
23937
        sb.append(this.success);
23938
      }
23939
      first = false;
23940
      sb.append(")");
23941
      return sb.toString();
23942
    }
23943
 
23944
    public void validate() throws org.apache.thrift.TException {
23945
      // check for required fields
23946
    }
23947
 
23948
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23949
      try {
23950
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23951
      } catch (org.apache.thrift.TException te) {
23952
        throw new java.io.IOException(te);
23953
      }
23954
    }
23955
 
23956
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23957
      try {
23958
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23959
      } catch (org.apache.thrift.TException te) {
23960
        throw new java.io.IOException(te);
23961
      }
23962
    }
23963
 
23964
  }
23965
 
7410 amar.kumar 23966
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
23967
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
23968
 
23969
    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);
23970
 
23971
    private String agentEmailId; // required
23972
 
23973
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23974
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23975
      AGENT_EMAIL_ID((short)1, "agentEmailId");
23976
 
23977
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23978
 
23979
      static {
23980
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23981
          byName.put(field.getFieldName(), field);
23982
        }
23983
      }
23984
 
23985
      /**
23986
       * Find the _Fields constant that matches fieldId, or null if its not found.
23987
       */
23988
      public static _Fields findByThriftId(int fieldId) {
23989
        switch(fieldId) {
23990
          case 1: // AGENT_EMAIL_ID
23991
            return AGENT_EMAIL_ID;
23992
          default:
23993
            return null;
23994
        }
23995
      }
23996
 
23997
      /**
23998
       * Find the _Fields constant that matches fieldId, throwing an exception
23999
       * if it is not found.
24000
       */
24001
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24002
        _Fields fields = findByThriftId(fieldId);
24003
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24004
        return fields;
24005
      }
24006
 
24007
      /**
24008
       * Find the _Fields constant that matches name, or null if its not found.
24009
       */
24010
      public static _Fields findByName(String name) {
24011
        return byName.get(name);
24012
      }
24013
 
24014
      private final short _thriftId;
24015
      private final String _fieldName;
24016
 
24017
      _Fields(short thriftId, String fieldName) {
24018
        _thriftId = thriftId;
24019
        _fieldName = fieldName;
24020
      }
24021
 
24022
      public short getThriftFieldId() {
24023
        return _thriftId;
24024
      }
24025
 
24026
      public String getFieldName() {
24027
        return _fieldName;
24028
      }
24029
    }
24030
 
24031
    // isset id assignments
24032
 
24033
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24034
    static {
24035
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24036
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24037
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24038
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24039
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
24040
    }
24041
 
24042
    public getWarehouseIdsForAgent_args() {
24043
    }
24044
 
24045
    public getWarehouseIdsForAgent_args(
24046
      String agentEmailId)
24047
    {
24048
      this();
24049
      this.agentEmailId = agentEmailId;
24050
    }
24051
 
24052
    /**
24053
     * Performs a deep copy on <i>other</i>.
24054
     */
24055
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
24056
      if (other.isSetAgentEmailId()) {
24057
        this.agentEmailId = other.agentEmailId;
24058
      }
24059
    }
24060
 
24061
    public getWarehouseIdsForAgent_args deepCopy() {
24062
      return new getWarehouseIdsForAgent_args(this);
24063
    }
24064
 
24065
    @Override
24066
    public void clear() {
24067
      this.agentEmailId = null;
24068
    }
24069
 
24070
    public String getAgentEmailId() {
24071
      return this.agentEmailId;
24072
    }
24073
 
24074
    public void setAgentEmailId(String agentEmailId) {
24075
      this.agentEmailId = agentEmailId;
24076
    }
24077
 
24078
    public void unsetAgentEmailId() {
24079
      this.agentEmailId = null;
24080
    }
24081
 
24082
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
24083
    public boolean isSetAgentEmailId() {
24084
      return this.agentEmailId != null;
24085
    }
24086
 
24087
    public void setAgentEmailIdIsSet(boolean value) {
24088
      if (!value) {
24089
        this.agentEmailId = null;
24090
      }
24091
    }
24092
 
24093
    public void setFieldValue(_Fields field, Object value) {
24094
      switch (field) {
24095
      case AGENT_EMAIL_ID:
24096
        if (value == null) {
24097
          unsetAgentEmailId();
24098
        } else {
24099
          setAgentEmailId((String)value);
24100
        }
24101
        break;
24102
 
24103
      }
24104
    }
24105
 
24106
    public Object getFieldValue(_Fields field) {
24107
      switch (field) {
24108
      case AGENT_EMAIL_ID:
24109
        return getAgentEmailId();
24110
 
24111
      }
24112
      throw new IllegalStateException();
24113
    }
24114
 
24115
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24116
    public boolean isSet(_Fields field) {
24117
      if (field == null) {
24118
        throw new IllegalArgumentException();
24119
      }
24120
 
24121
      switch (field) {
24122
      case AGENT_EMAIL_ID:
24123
        return isSetAgentEmailId();
24124
      }
24125
      throw new IllegalStateException();
24126
    }
24127
 
24128
    @Override
24129
    public boolean equals(Object that) {
24130
      if (that == null)
24131
        return false;
24132
      if (that instanceof getWarehouseIdsForAgent_args)
24133
        return this.equals((getWarehouseIdsForAgent_args)that);
24134
      return false;
24135
    }
24136
 
24137
    public boolean equals(getWarehouseIdsForAgent_args that) {
24138
      if (that == null)
24139
        return false;
24140
 
24141
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
24142
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
24143
      if (this_present_agentEmailId || that_present_agentEmailId) {
24144
        if (!(this_present_agentEmailId && that_present_agentEmailId))
24145
          return false;
24146
        if (!this.agentEmailId.equals(that.agentEmailId))
24147
          return false;
24148
      }
24149
 
24150
      return true;
24151
    }
24152
 
24153
    @Override
24154
    public int hashCode() {
24155
      return 0;
24156
    }
24157
 
24158
    public int compareTo(getWarehouseIdsForAgent_args other) {
24159
      if (!getClass().equals(other.getClass())) {
24160
        return getClass().getName().compareTo(other.getClass().getName());
24161
      }
24162
 
24163
      int lastComparison = 0;
24164
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
24165
 
24166
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
24167
      if (lastComparison != 0) {
24168
        return lastComparison;
24169
      }
24170
      if (isSetAgentEmailId()) {
24171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
24172
        if (lastComparison != 0) {
24173
          return lastComparison;
24174
        }
24175
      }
24176
      return 0;
24177
    }
24178
 
24179
    public _Fields fieldForId(int fieldId) {
24180
      return _Fields.findByThriftId(fieldId);
24181
    }
24182
 
24183
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24184
      org.apache.thrift.protocol.TField field;
24185
      iprot.readStructBegin();
24186
      while (true)
24187
      {
24188
        field = iprot.readFieldBegin();
24189
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24190
          break;
24191
        }
24192
        switch (field.id) {
24193
          case 1: // AGENT_EMAIL_ID
24194
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24195
              this.agentEmailId = iprot.readString();
24196
            } else { 
24197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24198
            }
24199
            break;
24200
          default:
24201
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24202
        }
24203
        iprot.readFieldEnd();
24204
      }
24205
      iprot.readStructEnd();
24206
      validate();
24207
    }
24208
 
24209
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24210
      validate();
24211
 
24212
      oprot.writeStructBegin(STRUCT_DESC);
24213
      if (this.agentEmailId != null) {
24214
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
24215
        oprot.writeString(this.agentEmailId);
24216
        oprot.writeFieldEnd();
24217
      }
24218
      oprot.writeFieldStop();
24219
      oprot.writeStructEnd();
24220
    }
24221
 
24222
    @Override
24223
    public String toString() {
24224
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
24225
      boolean first = true;
24226
 
24227
      sb.append("agentEmailId:");
24228
      if (this.agentEmailId == null) {
24229
        sb.append("null");
24230
      } else {
24231
        sb.append(this.agentEmailId);
24232
      }
24233
      first = false;
24234
      sb.append(")");
24235
      return sb.toString();
24236
    }
24237
 
24238
    public void validate() throws org.apache.thrift.TException {
24239
      // check for required fields
24240
    }
24241
 
24242
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24243
      try {
24244
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24245
      } catch (org.apache.thrift.TException te) {
24246
        throw new java.io.IOException(te);
24247
      }
24248
    }
24249
 
24250
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24251
      try {
24252
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24253
      } catch (org.apache.thrift.TException te) {
24254
        throw new java.io.IOException(te);
24255
      }
24256
    }
24257
 
24258
  }
24259
 
24260
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
24261
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
24262
 
24263
    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);
24264
 
24265
    private List<Long> success; // required
24266
 
24267
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24268
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24269
      SUCCESS((short)0, "success");
24270
 
24271
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24272
 
24273
      static {
24274
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24275
          byName.put(field.getFieldName(), field);
24276
        }
24277
      }
24278
 
24279
      /**
24280
       * Find the _Fields constant that matches fieldId, or null if its not found.
24281
       */
24282
      public static _Fields findByThriftId(int fieldId) {
24283
        switch(fieldId) {
24284
          case 0: // SUCCESS
24285
            return SUCCESS;
24286
          default:
24287
            return null;
24288
        }
24289
      }
24290
 
24291
      /**
24292
       * Find the _Fields constant that matches fieldId, throwing an exception
24293
       * if it is not found.
24294
       */
24295
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24296
        _Fields fields = findByThriftId(fieldId);
24297
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24298
        return fields;
24299
      }
24300
 
24301
      /**
24302
       * Find the _Fields constant that matches name, or null if its not found.
24303
       */
24304
      public static _Fields findByName(String name) {
24305
        return byName.get(name);
24306
      }
24307
 
24308
      private final short _thriftId;
24309
      private final String _fieldName;
24310
 
24311
      _Fields(short thriftId, String fieldName) {
24312
        _thriftId = thriftId;
24313
        _fieldName = fieldName;
24314
      }
24315
 
24316
      public short getThriftFieldId() {
24317
        return _thriftId;
24318
      }
24319
 
24320
      public String getFieldName() {
24321
        return _fieldName;
24322
      }
24323
    }
24324
 
24325
    // isset id assignments
24326
 
24327
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24328
    static {
24329
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24330
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24331
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24332
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
24333
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24334
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
24335
    }
24336
 
24337
    public getWarehouseIdsForAgent_result() {
24338
    }
24339
 
24340
    public getWarehouseIdsForAgent_result(
24341
      List<Long> success)
24342
    {
24343
      this();
24344
      this.success = success;
24345
    }
24346
 
24347
    /**
24348
     * Performs a deep copy on <i>other</i>.
24349
     */
24350
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
24351
      if (other.isSetSuccess()) {
24352
        List<Long> __this__success = new ArrayList<Long>();
24353
        for (Long other_element : other.success) {
24354
          __this__success.add(other_element);
24355
        }
24356
        this.success = __this__success;
24357
      }
24358
    }
24359
 
24360
    public getWarehouseIdsForAgent_result deepCopy() {
24361
      return new getWarehouseIdsForAgent_result(this);
24362
    }
24363
 
24364
    @Override
24365
    public void clear() {
24366
      this.success = null;
24367
    }
24368
 
24369
    public int getSuccessSize() {
24370
      return (this.success == null) ? 0 : this.success.size();
24371
    }
24372
 
24373
    public java.util.Iterator<Long> getSuccessIterator() {
24374
      return (this.success == null) ? null : this.success.iterator();
24375
    }
24376
 
24377
    public void addToSuccess(long elem) {
24378
      if (this.success == null) {
24379
        this.success = new ArrayList<Long>();
24380
      }
24381
      this.success.add(elem);
24382
    }
24383
 
24384
    public List<Long> getSuccess() {
24385
      return this.success;
24386
    }
24387
 
24388
    public void setSuccess(List<Long> success) {
24389
      this.success = success;
24390
    }
24391
 
24392
    public void unsetSuccess() {
24393
      this.success = null;
24394
    }
24395
 
24396
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24397
    public boolean isSetSuccess() {
24398
      return this.success != null;
24399
    }
24400
 
24401
    public void setSuccessIsSet(boolean value) {
24402
      if (!value) {
24403
        this.success = null;
24404
      }
24405
    }
24406
 
24407
    public void setFieldValue(_Fields field, Object value) {
24408
      switch (field) {
24409
      case SUCCESS:
24410
        if (value == null) {
24411
          unsetSuccess();
24412
        } else {
24413
          setSuccess((List<Long>)value);
24414
        }
24415
        break;
24416
 
24417
      }
24418
    }
24419
 
24420
    public Object getFieldValue(_Fields field) {
24421
      switch (field) {
24422
      case SUCCESS:
24423
        return getSuccess();
24424
 
24425
      }
24426
      throw new IllegalStateException();
24427
    }
24428
 
24429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24430
    public boolean isSet(_Fields field) {
24431
      if (field == null) {
24432
        throw new IllegalArgumentException();
24433
      }
24434
 
24435
      switch (field) {
24436
      case SUCCESS:
24437
        return isSetSuccess();
24438
      }
24439
      throw new IllegalStateException();
24440
    }
24441
 
24442
    @Override
24443
    public boolean equals(Object that) {
24444
      if (that == null)
24445
        return false;
24446
      if (that instanceof getWarehouseIdsForAgent_result)
24447
        return this.equals((getWarehouseIdsForAgent_result)that);
24448
      return false;
24449
    }
24450
 
24451
    public boolean equals(getWarehouseIdsForAgent_result that) {
24452
      if (that == null)
24453
        return false;
24454
 
24455
      boolean this_present_success = true && this.isSetSuccess();
24456
      boolean that_present_success = true && that.isSetSuccess();
24457
      if (this_present_success || that_present_success) {
24458
        if (!(this_present_success && that_present_success))
24459
          return false;
24460
        if (!this.success.equals(that.success))
24461
          return false;
24462
      }
24463
 
24464
      return true;
24465
    }
24466
 
24467
    @Override
24468
    public int hashCode() {
24469
      return 0;
24470
    }
24471
 
24472
    public int compareTo(getWarehouseIdsForAgent_result other) {
24473
      if (!getClass().equals(other.getClass())) {
24474
        return getClass().getName().compareTo(other.getClass().getName());
24475
      }
24476
 
24477
      int lastComparison = 0;
24478
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
24479
 
24480
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24481
      if (lastComparison != 0) {
24482
        return lastComparison;
24483
      }
24484
      if (isSetSuccess()) {
24485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24486
        if (lastComparison != 0) {
24487
          return lastComparison;
24488
        }
24489
      }
24490
      return 0;
24491
    }
24492
 
24493
    public _Fields fieldForId(int fieldId) {
24494
      return _Fields.findByThriftId(fieldId);
24495
    }
24496
 
24497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24498
      org.apache.thrift.protocol.TField field;
24499
      iprot.readStructBegin();
24500
      while (true)
24501
      {
24502
        field = iprot.readFieldBegin();
24503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24504
          break;
24505
        }
24506
        switch (field.id) {
24507
          case 0: // SUCCESS
24508
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24509
              {
24510
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
24511
                this.success = new ArrayList<Long>(_list69.size);
24512
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
24513
                {
24514
                  long _elem71; // required
24515
                  _elem71 = iprot.readI64();
24516
                  this.success.add(_elem71);
24517
                }
24518
                iprot.readListEnd();
24519
              }
24520
            } else { 
24521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24522
            }
24523
            break;
24524
          default:
24525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24526
        }
24527
        iprot.readFieldEnd();
24528
      }
24529
      iprot.readStructEnd();
24530
      validate();
24531
    }
24532
 
24533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24534
      oprot.writeStructBegin(STRUCT_DESC);
24535
 
24536
      if (this.isSetSuccess()) {
24537
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24538
        {
24539
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
24540
          for (long _iter72 : this.success)
24541
          {
24542
            oprot.writeI64(_iter72);
24543
          }
24544
          oprot.writeListEnd();
24545
        }
24546
        oprot.writeFieldEnd();
24547
      }
24548
      oprot.writeFieldStop();
24549
      oprot.writeStructEnd();
24550
    }
24551
 
24552
    @Override
24553
    public String toString() {
24554
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
24555
      boolean first = true;
24556
 
24557
      sb.append("success:");
24558
      if (this.success == null) {
24559
        sb.append("null");
24560
      } else {
24561
        sb.append(this.success);
24562
      }
24563
      first = false;
24564
      sb.append(")");
24565
      return sb.toString();
24566
    }
24567
 
24568
    public void validate() throws org.apache.thrift.TException {
24569
      // check for required fields
24570
    }
24571
 
24572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24573
      try {
24574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24575
      } catch (org.apache.thrift.TException te) {
24576
        throw new java.io.IOException(te);
24577
      }
24578
    }
24579
 
24580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24581
      try {
24582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24583
      } catch (org.apache.thrift.TException te) {
24584
        throw new java.io.IOException(te);
24585
      }
24586
    }
24587
 
24588
  }
24589
 
352 ashish 24590
}