Subversion Repositories SmartDukaan

Rev

Rev 8303 | Rev 12691 | 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 {
12256 kshitij.so 5140
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5141
        __isset_bit_vector = new BitSet(1);
3430 rajveer 5142
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5143
      } catch (org.apache.thrift.TException te) {
5144
        throw new java.io.IOException(te);
5145
      }
5146
    }
5147
 
1422 varun.gupt 5148
  }
5149
 
3430 rajveer 5150
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
5151
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 5152
 
3430 rajveer 5153
    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 5154
 
3430 rajveer 5155
    private HelperServiceException se; // required
1422 varun.gupt 5156
 
5157
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5158
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5159
      SE((short)1, "se");
5160
 
5161
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5162
 
5163
      static {
5164
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5165
          byName.put(field.getFieldName(), field);
5166
        }
5167
      }
5168
 
5169
      /**
5170
       * Find the _Fields constant that matches fieldId, or null if its not found.
5171
       */
5172
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5173
        switch(fieldId) {
5174
          case 1: // SE
5175
            return SE;
5176
          default:
5177
            return null;
5178
        }
1422 varun.gupt 5179
      }
5180
 
5181
      /**
5182
       * Find the _Fields constant that matches fieldId, throwing an exception
5183
       * if it is not found.
5184
       */
5185
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5186
        _Fields fields = findByThriftId(fieldId);
5187
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5188
        return fields;
5189
      }
5190
 
5191
      /**
5192
       * Find the _Fields constant that matches name, or null if its not found.
5193
       */
5194
      public static _Fields findByName(String name) {
5195
        return byName.get(name);
5196
      }
5197
 
5198
      private final short _thriftId;
5199
      private final String _fieldName;
5200
 
5201
      _Fields(short thriftId, String fieldName) {
5202
        _thriftId = thriftId;
5203
        _fieldName = fieldName;
5204
      }
5205
 
5206
      public short getThriftFieldId() {
5207
        return _thriftId;
5208
      }
5209
 
5210
      public String getFieldName() {
5211
        return _fieldName;
5212
      }
5213
    }
5214
 
5215
    // isset id assignments
5216
 
3430 rajveer 5217
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5218
    static {
3430 rajveer 5219
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5220
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5221
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 5224
    }
5225
 
5226
    public markEmailAsSent_result() {
5227
    }
5228
 
5229
    public markEmailAsSent_result(
5230
      HelperServiceException se)
5231
    {
5232
      this();
5233
      this.se = se;
5234
    }
5235
 
5236
    /**
5237
     * Performs a deep copy on <i>other</i>.
5238
     */
5239
    public markEmailAsSent_result(markEmailAsSent_result other) {
5240
      if (other.isSetSe()) {
5241
        this.se = new HelperServiceException(other.se);
5242
      }
5243
    }
5244
 
5245
    public markEmailAsSent_result deepCopy() {
5246
      return new markEmailAsSent_result(this);
5247
    }
5248
 
3430 rajveer 5249
    @Override
5250
    public void clear() {
5251
      this.se = null;
1422 varun.gupt 5252
    }
5253
 
5254
    public HelperServiceException getSe() {
5255
      return this.se;
5256
    }
5257
 
3430 rajveer 5258
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5259
      this.se = se;
5260
    }
5261
 
5262
    public void unsetSe() {
5263
      this.se = null;
5264
    }
5265
 
3430 rajveer 5266
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5267
    public boolean isSetSe() {
5268
      return this.se != null;
5269
    }
5270
 
5271
    public void setSeIsSet(boolean value) {
5272
      if (!value) {
5273
        this.se = null;
5274
      }
5275
    }
5276
 
5277
    public void setFieldValue(_Fields field, Object value) {
5278
      switch (field) {
5279
      case SE:
5280
        if (value == null) {
5281
          unsetSe();
5282
        } else {
5283
          setSe((HelperServiceException)value);
5284
        }
5285
        break;
5286
 
5287
      }
5288
    }
5289
 
5290
    public Object getFieldValue(_Fields field) {
5291
      switch (field) {
5292
      case SE:
5293
        return getSe();
5294
 
5295
      }
5296
      throw new IllegalStateException();
5297
    }
5298
 
3430 rajveer 5299
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5300
    public boolean isSet(_Fields field) {
5301
      if (field == null) {
5302
        throw new IllegalArgumentException();
5303
      }
1422 varun.gupt 5304
 
5305
      switch (field) {
5306
      case SE:
5307
        return isSetSe();
5308
      }
5309
      throw new IllegalStateException();
5310
    }
5311
 
5312
    @Override
5313
    public boolean equals(Object that) {
5314
      if (that == null)
5315
        return false;
5316
      if (that instanceof markEmailAsSent_result)
5317
        return this.equals((markEmailAsSent_result)that);
5318
      return false;
5319
    }
5320
 
5321
    public boolean equals(markEmailAsSent_result that) {
5322
      if (that == null)
5323
        return false;
5324
 
5325
      boolean this_present_se = true && this.isSetSe();
5326
      boolean that_present_se = true && that.isSetSe();
5327
      if (this_present_se || that_present_se) {
5328
        if (!(this_present_se && that_present_se))
5329
          return false;
5330
        if (!this.se.equals(that.se))
5331
          return false;
5332
      }
5333
 
5334
      return true;
5335
    }
5336
 
5337
    @Override
5338
    public int hashCode() {
5339
      return 0;
5340
    }
5341
 
5342
    public int compareTo(markEmailAsSent_result other) {
5343
      if (!getClass().equals(other.getClass())) {
5344
        return getClass().getName().compareTo(other.getClass().getName());
5345
      }
5346
 
5347
      int lastComparison = 0;
5348
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5349
 
3430 rajveer 5350
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5351
      if (lastComparison != 0) {
5352
        return lastComparison;
5353
      }
3430 rajveer 5354
      if (isSetSe()) {
5355
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5356
        if (lastComparison != 0) {
5357
          return lastComparison;
5358
        }
1422 varun.gupt 5359
      }
5360
      return 0;
5361
    }
5362
 
3430 rajveer 5363
    public _Fields fieldForId(int fieldId) {
5364
      return _Fields.findByThriftId(fieldId);
5365
    }
5366
 
5367
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5368
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5369
      iprot.readStructBegin();
5370
      while (true)
5371
      {
5372
        field = iprot.readFieldBegin();
3430 rajveer 5373
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5374
          break;
5375
        }
3430 rajveer 5376
        switch (field.id) {
5377
          case 1: // SE
5378
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5379
              this.se = new HelperServiceException();
5380
              this.se.read(iprot);
5381
            } else { 
5382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5383
            }
5384
            break;
5385
          default:
5386
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5387
        }
3430 rajveer 5388
        iprot.readFieldEnd();
1422 varun.gupt 5389
      }
5390
      iprot.readStructEnd();
5391
      validate();
5392
    }
5393
 
3430 rajveer 5394
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5395
      oprot.writeStructBegin(STRUCT_DESC);
5396
 
5397
      if (this.isSetSe()) {
5398
        oprot.writeFieldBegin(SE_FIELD_DESC);
5399
        this.se.write(oprot);
5400
        oprot.writeFieldEnd();
5401
      }
5402
      oprot.writeFieldStop();
5403
      oprot.writeStructEnd();
5404
    }
5405
 
5406
    @Override
5407
    public String toString() {
5408
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5409
      boolean first = true;
5410
 
5411
      sb.append("se:");
5412
      if (this.se == null) {
5413
        sb.append("null");
5414
      } else {
5415
        sb.append(this.se);
5416
      }
5417
      first = false;
5418
      sb.append(")");
5419
      return sb.toString();
5420
    }
5421
 
3430 rajveer 5422
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5423
      // check for required fields
5424
    }
5425
 
3430 rajveer 5426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5427
      try {
5428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5429
      } catch (org.apache.thrift.TException te) {
5430
        throw new java.io.IOException(te);
5431
      }
5432
    }
5433
 
5434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5435
      try {
5436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5437
      } catch (org.apache.thrift.TException te) {
5438
        throw new java.io.IOException(te);
5439
      }
5440
    }
5441
 
1422 varun.gupt 5442
  }
5443
 
3430 rajveer 5444
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5446
 
3430 rajveer 5447
    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 5448
 
3430 rajveer 5449
    private Mail mail; // required
352 ashish 5450
 
5451
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5452
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5453
      MAIL((short)1, "mail");
5454
 
5455
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5456
 
5457
      static {
5458
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5459
          byName.put(field.getFieldName(), field);
5460
        }
5461
      }
5462
 
5463
      /**
5464
       * Find the _Fields constant that matches fieldId, or null if its not found.
5465
       */
5466
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5467
        switch(fieldId) {
5468
          case 1: // MAIL
5469
            return MAIL;
5470
          default:
5471
            return null;
5472
        }
352 ashish 5473
      }
5474
 
5475
      /**
5476
       * Find the _Fields constant that matches fieldId, throwing an exception
5477
       * if it is not found.
5478
       */
5479
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5480
        _Fields fields = findByThriftId(fieldId);
5481
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5482
        return fields;
5483
      }
5484
 
5485
      /**
5486
       * Find the _Fields constant that matches name, or null if its not found.
5487
       */
5488
      public static _Fields findByName(String name) {
5489
        return byName.get(name);
5490
      }
5491
 
5492
      private final short _thriftId;
5493
      private final String _fieldName;
5494
 
5495
      _Fields(short thriftId, String fieldName) {
5496
        _thriftId = thriftId;
5497
        _fieldName = fieldName;
5498
      }
5499
 
5500
      public short getThriftFieldId() {
5501
        return _thriftId;
5502
      }
5503
 
5504
      public String getFieldName() {
5505
        return _fieldName;
5506
      }
5507
    }
5508
 
5509
    // isset id assignments
5510
 
3430 rajveer 5511
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5512
    static {
3430 rajveer 5513
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5514
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5515
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5518
    }
5519
 
5520
    public sendMail_args() {
5521
    }
5522
 
5523
    public sendMail_args(
5524
      Mail mail)
5525
    {
5526
      this();
5527
      this.mail = mail;
5528
    }
5529
 
5530
    /**
5531
     * Performs a deep copy on <i>other</i>.
5532
     */
5533
    public sendMail_args(sendMail_args other) {
5534
      if (other.isSetMail()) {
5535
        this.mail = new Mail(other.mail);
5536
      }
5537
    }
5538
 
5539
    public sendMail_args deepCopy() {
5540
      return new sendMail_args(this);
5541
    }
5542
 
3430 rajveer 5543
    @Override
5544
    public void clear() {
5545
      this.mail = null;
352 ashish 5546
    }
5547
 
5548
    public Mail getMail() {
5549
      return this.mail;
5550
    }
5551
 
3430 rajveer 5552
    public void setMail(Mail mail) {
352 ashish 5553
      this.mail = mail;
5554
    }
5555
 
5556
    public void unsetMail() {
5557
      this.mail = null;
5558
    }
5559
 
3430 rajveer 5560
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5561
    public boolean isSetMail() {
5562
      return this.mail != null;
5563
    }
5564
 
5565
    public void setMailIsSet(boolean value) {
5566
      if (!value) {
5567
        this.mail = null;
5568
      }
5569
    }
5570
 
5571
    public void setFieldValue(_Fields field, Object value) {
5572
      switch (field) {
5573
      case MAIL:
5574
        if (value == null) {
5575
          unsetMail();
5576
        } else {
5577
          setMail((Mail)value);
5578
        }
5579
        break;
5580
 
5581
      }
5582
    }
5583
 
5584
    public Object getFieldValue(_Fields field) {
5585
      switch (field) {
5586
      case MAIL:
5587
        return getMail();
5588
 
5589
      }
5590
      throw new IllegalStateException();
5591
    }
5592
 
3430 rajveer 5593
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5594
    public boolean isSet(_Fields field) {
5595
      if (field == null) {
5596
        throw new IllegalArgumentException();
5597
      }
352 ashish 5598
 
5599
      switch (field) {
5600
      case MAIL:
5601
        return isSetMail();
5602
      }
5603
      throw new IllegalStateException();
5604
    }
5605
 
5606
    @Override
5607
    public boolean equals(Object that) {
5608
      if (that == null)
5609
        return false;
5610
      if (that instanceof sendMail_args)
5611
        return this.equals((sendMail_args)that);
5612
      return false;
5613
    }
5614
 
5615
    public boolean equals(sendMail_args that) {
5616
      if (that == null)
5617
        return false;
5618
 
5619
      boolean this_present_mail = true && this.isSetMail();
5620
      boolean that_present_mail = true && that.isSetMail();
5621
      if (this_present_mail || that_present_mail) {
5622
        if (!(this_present_mail && that_present_mail))
5623
          return false;
5624
        if (!this.mail.equals(that.mail))
5625
          return false;
5626
      }
5627
 
5628
      return true;
5629
    }
5630
 
5631
    @Override
5632
    public int hashCode() {
5633
      return 0;
5634
    }
5635
 
5636
    public int compareTo(sendMail_args other) {
5637
      if (!getClass().equals(other.getClass())) {
5638
        return getClass().getName().compareTo(other.getClass().getName());
5639
      }
5640
 
5641
      int lastComparison = 0;
5642
      sendMail_args typedOther = (sendMail_args)other;
5643
 
3430 rajveer 5644
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5645
      if (lastComparison != 0) {
5646
        return lastComparison;
5647
      }
3430 rajveer 5648
      if (isSetMail()) {
5649
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5650
        if (lastComparison != 0) {
5651
          return lastComparison;
5652
        }
352 ashish 5653
      }
5654
      return 0;
5655
    }
5656
 
3430 rajveer 5657
    public _Fields fieldForId(int fieldId) {
5658
      return _Fields.findByThriftId(fieldId);
5659
    }
5660
 
5661
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5662
      org.apache.thrift.protocol.TField field;
352 ashish 5663
      iprot.readStructBegin();
5664
      while (true)
5665
      {
5666
        field = iprot.readFieldBegin();
3430 rajveer 5667
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5668
          break;
5669
        }
3430 rajveer 5670
        switch (field.id) {
5671
          case 1: // MAIL
5672
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5673
              this.mail = new Mail();
5674
              this.mail.read(iprot);
5675
            } else { 
5676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5677
            }
5678
            break;
5679
          default:
5680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5681
        }
3430 rajveer 5682
        iprot.readFieldEnd();
352 ashish 5683
      }
5684
      iprot.readStructEnd();
5685
      validate();
5686
    }
5687
 
3430 rajveer 5688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5689
      validate();
5690
 
5691
      oprot.writeStructBegin(STRUCT_DESC);
5692
      if (this.mail != null) {
5693
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5694
        this.mail.write(oprot);
5695
        oprot.writeFieldEnd();
5696
      }
5697
      oprot.writeFieldStop();
5698
      oprot.writeStructEnd();
5699
    }
5700
 
5701
    @Override
5702
    public String toString() {
5703
      StringBuilder sb = new StringBuilder("sendMail_args(");
5704
      boolean first = true;
5705
 
5706
      sb.append("mail:");
5707
      if (this.mail == null) {
5708
        sb.append("null");
5709
      } else {
5710
        sb.append(this.mail);
5711
      }
5712
      first = false;
5713
      sb.append(")");
5714
      return sb.toString();
5715
    }
5716
 
3430 rajveer 5717
    public void validate() throws org.apache.thrift.TException {
352 ashish 5718
      // check for required fields
5719
    }
5720
 
3430 rajveer 5721
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5722
      try {
5723
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5724
      } catch (org.apache.thrift.TException te) {
5725
        throw new java.io.IOException(te);
5726
      }
5727
    }
5728
 
5729
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5730
      try {
5731
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5732
      } catch (org.apache.thrift.TException te) {
5733
        throw new java.io.IOException(te);
5734
      }
5735
    }
5736
 
352 ashish 5737
  }
5738
 
3430 rajveer 5739
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5740
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5741
 
3430 rajveer 5742
    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 5743
 
3430 rajveer 5744
    private HelperServiceException se; // required
352 ashish 5745
 
5746
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5747
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5748
      SE((short)1, "se");
5749
 
5750
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5751
 
5752
      static {
5753
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5754
          byName.put(field.getFieldName(), field);
5755
        }
5756
      }
5757
 
5758
      /**
5759
       * Find the _Fields constant that matches fieldId, or null if its not found.
5760
       */
5761
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5762
        switch(fieldId) {
5763
          case 1: // SE
5764
            return SE;
5765
          default:
5766
            return null;
5767
        }
352 ashish 5768
      }
5769
 
5770
      /**
5771
       * Find the _Fields constant that matches fieldId, throwing an exception
5772
       * if it is not found.
5773
       */
5774
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5775
        _Fields fields = findByThriftId(fieldId);
5776
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5777
        return fields;
5778
      }
5779
 
5780
      /**
5781
       * Find the _Fields constant that matches name, or null if its not found.
5782
       */
5783
      public static _Fields findByName(String name) {
5784
        return byName.get(name);
5785
      }
5786
 
5787
      private final short _thriftId;
5788
      private final String _fieldName;
5789
 
5790
      _Fields(short thriftId, String fieldName) {
5791
        _thriftId = thriftId;
5792
        _fieldName = fieldName;
5793
      }
5794
 
5795
      public short getThriftFieldId() {
5796
        return _thriftId;
5797
      }
5798
 
5799
      public String getFieldName() {
5800
        return _fieldName;
5801
      }
5802
    }
5803
 
5804
    // isset id assignments
5805
 
3430 rajveer 5806
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5807
    static {
3430 rajveer 5808
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5809
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5810
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5813
    }
5814
 
5815
    public sendMail_result() {
5816
    }
5817
 
5818
    public sendMail_result(
5819
      HelperServiceException se)
5820
    {
5821
      this();
5822
      this.se = se;
5823
    }
5824
 
5825
    /**
5826
     * Performs a deep copy on <i>other</i>.
5827
     */
5828
    public sendMail_result(sendMail_result other) {
5829
      if (other.isSetSe()) {
5830
        this.se = new HelperServiceException(other.se);
5831
      }
5832
    }
5833
 
5834
    public sendMail_result deepCopy() {
5835
      return new sendMail_result(this);
5836
    }
5837
 
3430 rajveer 5838
    @Override
5839
    public void clear() {
5840
      this.se = null;
352 ashish 5841
    }
5842
 
5843
    public HelperServiceException getSe() {
5844
      return this.se;
5845
    }
5846
 
3430 rajveer 5847
    public void setSe(HelperServiceException se) {
352 ashish 5848
      this.se = se;
5849
    }
5850
 
5851
    public void unsetSe() {
5852
      this.se = null;
5853
    }
5854
 
3430 rajveer 5855
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5856
    public boolean isSetSe() {
5857
      return this.se != null;
5858
    }
5859
 
5860
    public void setSeIsSet(boolean value) {
5861
      if (!value) {
5862
        this.se = null;
5863
      }
5864
    }
5865
 
5866
    public void setFieldValue(_Fields field, Object value) {
5867
      switch (field) {
5868
      case SE:
5869
        if (value == null) {
5870
          unsetSe();
5871
        } else {
5872
          setSe((HelperServiceException)value);
5873
        }
5874
        break;
5875
 
5876
      }
5877
    }
5878
 
5879
    public Object getFieldValue(_Fields field) {
5880
      switch (field) {
5881
      case SE:
5882
        return getSe();
5883
 
5884
      }
5885
      throw new IllegalStateException();
5886
    }
5887
 
3430 rajveer 5888
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5889
    public boolean isSet(_Fields field) {
5890
      if (field == null) {
5891
        throw new IllegalArgumentException();
5892
      }
352 ashish 5893
 
5894
      switch (field) {
5895
      case SE:
5896
        return isSetSe();
5897
      }
5898
      throw new IllegalStateException();
5899
    }
5900
 
5901
    @Override
5902
    public boolean equals(Object that) {
5903
      if (that == null)
5904
        return false;
5905
      if (that instanceof sendMail_result)
5906
        return this.equals((sendMail_result)that);
5907
      return false;
5908
    }
5909
 
5910
    public boolean equals(sendMail_result that) {
5911
      if (that == null)
5912
        return false;
5913
 
5914
      boolean this_present_se = true && this.isSetSe();
5915
      boolean that_present_se = true && that.isSetSe();
5916
      if (this_present_se || that_present_se) {
5917
        if (!(this_present_se && that_present_se))
5918
          return false;
5919
        if (!this.se.equals(that.se))
5920
          return false;
5921
      }
5922
 
5923
      return true;
5924
    }
5925
 
5926
    @Override
5927
    public int hashCode() {
5928
      return 0;
5929
    }
5930
 
5931
    public int compareTo(sendMail_result other) {
5932
      if (!getClass().equals(other.getClass())) {
5933
        return getClass().getName().compareTo(other.getClass().getName());
5934
      }
5935
 
5936
      int lastComparison = 0;
5937
      sendMail_result typedOther = (sendMail_result)other;
5938
 
3430 rajveer 5939
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5940
      if (lastComparison != 0) {
5941
        return lastComparison;
5942
      }
3430 rajveer 5943
      if (isSetSe()) {
5944
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5945
        if (lastComparison != 0) {
5946
          return lastComparison;
5947
        }
352 ashish 5948
      }
5949
      return 0;
5950
    }
5951
 
3430 rajveer 5952
    public _Fields fieldForId(int fieldId) {
5953
      return _Fields.findByThriftId(fieldId);
5954
    }
5955
 
5956
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5957
      org.apache.thrift.protocol.TField field;
352 ashish 5958
      iprot.readStructBegin();
5959
      while (true)
5960
      {
5961
        field = iprot.readFieldBegin();
3430 rajveer 5962
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5963
          break;
5964
        }
3430 rajveer 5965
        switch (field.id) {
5966
          case 1: // SE
5967
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5968
              this.se = new HelperServiceException();
5969
              this.se.read(iprot);
5970
            } else { 
5971
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5972
            }
5973
            break;
5974
          default:
5975
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5976
        }
3430 rajveer 5977
        iprot.readFieldEnd();
352 ashish 5978
      }
5979
      iprot.readStructEnd();
5980
      validate();
5981
    }
5982
 
3430 rajveer 5983
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5984
      oprot.writeStructBegin(STRUCT_DESC);
5985
 
5986
      if (this.isSetSe()) {
5987
        oprot.writeFieldBegin(SE_FIELD_DESC);
5988
        this.se.write(oprot);
5989
        oprot.writeFieldEnd();
5990
      }
5991
      oprot.writeFieldStop();
5992
      oprot.writeStructEnd();
5993
    }
5994
 
5995
    @Override
5996
    public String toString() {
5997
      StringBuilder sb = new StringBuilder("sendMail_result(");
5998
      boolean first = true;
5999
 
6000
      sb.append("se:");
6001
      if (this.se == null) {
6002
        sb.append("null");
6003
      } else {
6004
        sb.append(this.se);
6005
      }
6006
      first = false;
6007
      sb.append(")");
6008
      return sb.toString();
6009
    }
6010
 
3430 rajveer 6011
    public void validate() throws org.apache.thrift.TException {
352 ashish 6012
      // check for required fields
6013
    }
6014
 
3430 rajveer 6015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6016
      try {
6017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6018
      } catch (org.apache.thrift.TException te) {
6019
        throw new java.io.IOException(te);
6020
      }
6021
    }
6022
 
6023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6024
      try {
6025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6026
      } catch (org.apache.thrift.TException te) {
6027
        throw new java.io.IOException(te);
6028
      }
6029
    }
6030
 
352 ashish 6031
  }
6032
 
3430 rajveer 6033
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
6034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 6035
 
3430 rajveer 6036
    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 6037
 
3430 rajveer 6038
    private TextMessage message; // required
352 ashish 6039
 
6040
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6041
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6042
      MESSAGE((short)1, "message");
6043
 
6044
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6045
 
6046
      static {
6047
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6048
          byName.put(field.getFieldName(), field);
6049
        }
6050
      }
6051
 
6052
      /**
6053
       * Find the _Fields constant that matches fieldId, or null if its not found.
6054
       */
6055
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6056
        switch(fieldId) {
6057
          case 1: // MESSAGE
6058
            return MESSAGE;
6059
          default:
6060
            return null;
6061
        }
352 ashish 6062
      }
6063
 
6064
      /**
6065
       * Find the _Fields constant that matches fieldId, throwing an exception
6066
       * if it is not found.
6067
       */
6068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6069
        _Fields fields = findByThriftId(fieldId);
6070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6071
        return fields;
6072
      }
6073
 
6074
      /**
6075
       * Find the _Fields constant that matches name, or null if its not found.
6076
       */
6077
      public static _Fields findByName(String name) {
6078
        return byName.get(name);
6079
      }
6080
 
6081
      private final short _thriftId;
6082
      private final String _fieldName;
6083
 
6084
      _Fields(short thriftId, String fieldName) {
6085
        _thriftId = thriftId;
6086
        _fieldName = fieldName;
6087
      }
6088
 
6089
      public short getThriftFieldId() {
6090
        return _thriftId;
6091
      }
6092
 
6093
      public String getFieldName() {
6094
        return _fieldName;
6095
      }
6096
    }
6097
 
6098
    // isset id assignments
6099
 
3430 rajveer 6100
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6101
    static {
3430 rajveer 6102
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6103
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6104
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
6105
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6106
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 6107
    }
6108
 
6109
    public sendText_args() {
6110
    }
6111
 
6112
    public sendText_args(
6113
      TextMessage message)
6114
    {
6115
      this();
6116
      this.message = message;
6117
    }
6118
 
6119
    /**
6120
     * Performs a deep copy on <i>other</i>.
6121
     */
6122
    public sendText_args(sendText_args other) {
6123
      if (other.isSetMessage()) {
6124
        this.message = new TextMessage(other.message);
6125
      }
6126
    }
6127
 
6128
    public sendText_args deepCopy() {
6129
      return new sendText_args(this);
6130
    }
6131
 
3430 rajveer 6132
    @Override
6133
    public void clear() {
6134
      this.message = null;
352 ashish 6135
    }
6136
 
6137
    public TextMessage getMessage() {
6138
      return this.message;
6139
    }
6140
 
3430 rajveer 6141
    public void setMessage(TextMessage message) {
352 ashish 6142
      this.message = message;
6143
    }
6144
 
6145
    public void unsetMessage() {
6146
      this.message = null;
6147
    }
6148
 
3430 rajveer 6149
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6150
    public boolean isSetMessage() {
6151
      return this.message != null;
6152
    }
6153
 
6154
    public void setMessageIsSet(boolean value) {
6155
      if (!value) {
6156
        this.message = null;
6157
      }
6158
    }
6159
 
6160
    public void setFieldValue(_Fields field, Object value) {
6161
      switch (field) {
6162
      case MESSAGE:
6163
        if (value == null) {
6164
          unsetMessage();
6165
        } else {
6166
          setMessage((TextMessage)value);
6167
        }
6168
        break;
6169
 
6170
      }
6171
    }
6172
 
6173
    public Object getFieldValue(_Fields field) {
6174
      switch (field) {
6175
      case MESSAGE:
6176
        return getMessage();
6177
 
6178
      }
6179
      throw new IllegalStateException();
6180
    }
6181
 
3430 rajveer 6182
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6183
    public boolean isSet(_Fields field) {
6184
      if (field == null) {
6185
        throw new IllegalArgumentException();
6186
      }
352 ashish 6187
 
6188
      switch (field) {
6189
      case MESSAGE:
6190
        return isSetMessage();
6191
      }
6192
      throw new IllegalStateException();
6193
    }
6194
 
6195
    @Override
6196
    public boolean equals(Object that) {
6197
      if (that == null)
6198
        return false;
6199
      if (that instanceof sendText_args)
6200
        return this.equals((sendText_args)that);
6201
      return false;
6202
    }
6203
 
6204
    public boolean equals(sendText_args that) {
6205
      if (that == null)
6206
        return false;
6207
 
6208
      boolean this_present_message = true && this.isSetMessage();
6209
      boolean that_present_message = true && that.isSetMessage();
6210
      if (this_present_message || that_present_message) {
6211
        if (!(this_present_message && that_present_message))
6212
          return false;
6213
        if (!this.message.equals(that.message))
6214
          return false;
6215
      }
6216
 
6217
      return true;
6218
    }
6219
 
6220
    @Override
6221
    public int hashCode() {
6222
      return 0;
6223
    }
6224
 
6225
    public int compareTo(sendText_args other) {
6226
      if (!getClass().equals(other.getClass())) {
6227
        return getClass().getName().compareTo(other.getClass().getName());
6228
      }
6229
 
6230
      int lastComparison = 0;
6231
      sendText_args typedOther = (sendText_args)other;
6232
 
3430 rajveer 6233
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6234
      if (lastComparison != 0) {
6235
        return lastComparison;
6236
      }
3430 rajveer 6237
      if (isSetMessage()) {
6238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6239
        if (lastComparison != 0) {
6240
          return lastComparison;
6241
        }
352 ashish 6242
      }
6243
      return 0;
6244
    }
6245
 
3430 rajveer 6246
    public _Fields fieldForId(int fieldId) {
6247
      return _Fields.findByThriftId(fieldId);
6248
    }
6249
 
6250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6251
      org.apache.thrift.protocol.TField field;
352 ashish 6252
      iprot.readStructBegin();
6253
      while (true)
6254
      {
6255
        field = iprot.readFieldBegin();
3430 rajveer 6256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6257
          break;
6258
        }
3430 rajveer 6259
        switch (field.id) {
6260
          case 1: // MESSAGE
6261
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6262
              this.message = new TextMessage();
6263
              this.message.read(iprot);
6264
            } else { 
6265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6266
            }
6267
            break;
6268
          default:
6269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6270
        }
3430 rajveer 6271
        iprot.readFieldEnd();
352 ashish 6272
      }
6273
      iprot.readStructEnd();
6274
      validate();
6275
    }
6276
 
3430 rajveer 6277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6278
      validate();
6279
 
6280
      oprot.writeStructBegin(STRUCT_DESC);
6281
      if (this.message != null) {
6282
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6283
        this.message.write(oprot);
6284
        oprot.writeFieldEnd();
6285
      }
6286
      oprot.writeFieldStop();
6287
      oprot.writeStructEnd();
6288
    }
6289
 
6290
    @Override
6291
    public String toString() {
6292
      StringBuilder sb = new StringBuilder("sendText_args(");
6293
      boolean first = true;
6294
 
6295
      sb.append("message:");
6296
      if (this.message == null) {
6297
        sb.append("null");
6298
      } else {
6299
        sb.append(this.message);
6300
      }
6301
      first = false;
6302
      sb.append(")");
6303
      return sb.toString();
6304
    }
6305
 
3430 rajveer 6306
    public void validate() throws org.apache.thrift.TException {
352 ashish 6307
      // check for required fields
6308
    }
6309
 
3430 rajveer 6310
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6311
      try {
6312
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6313
      } catch (org.apache.thrift.TException te) {
6314
        throw new java.io.IOException(te);
6315
      }
6316
    }
6317
 
6318
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6319
      try {
6320
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6321
      } catch (org.apache.thrift.TException te) {
6322
        throw new java.io.IOException(te);
6323
      }
6324
    }
6325
 
352 ashish 6326
  }
6327
 
3430 rajveer 6328
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6329
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6330
 
3430 rajveer 6331
    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 6332
 
3430 rajveer 6333
    private HelperServiceException se; // required
352 ashish 6334
 
6335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6336
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6337
      SE((short)1, "se");
6338
 
6339
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6340
 
6341
      static {
6342
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6343
          byName.put(field.getFieldName(), field);
6344
        }
6345
      }
6346
 
6347
      /**
6348
       * Find the _Fields constant that matches fieldId, or null if its not found.
6349
       */
6350
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6351
        switch(fieldId) {
6352
          case 1: // SE
6353
            return SE;
6354
          default:
6355
            return null;
6356
        }
352 ashish 6357
      }
6358
 
6359
      /**
6360
       * Find the _Fields constant that matches fieldId, throwing an exception
6361
       * if it is not found.
6362
       */
6363
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6364
        _Fields fields = findByThriftId(fieldId);
6365
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6366
        return fields;
6367
      }
6368
 
6369
      /**
6370
       * Find the _Fields constant that matches name, or null if its not found.
6371
       */
6372
      public static _Fields findByName(String name) {
6373
        return byName.get(name);
6374
      }
6375
 
6376
      private final short _thriftId;
6377
      private final String _fieldName;
6378
 
6379
      _Fields(short thriftId, String fieldName) {
6380
        _thriftId = thriftId;
6381
        _fieldName = fieldName;
6382
      }
6383
 
6384
      public short getThriftFieldId() {
6385
        return _thriftId;
6386
      }
6387
 
6388
      public String getFieldName() {
6389
        return _fieldName;
6390
      }
6391
    }
6392
 
6393
    // isset id assignments
6394
 
3430 rajveer 6395
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6396
    static {
3430 rajveer 6397
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6398
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6399
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6400
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6401
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6402
    }
6403
 
6404
    public sendText_result() {
6405
    }
6406
 
6407
    public sendText_result(
6408
      HelperServiceException se)
6409
    {
6410
      this();
6411
      this.se = se;
6412
    }
6413
 
6414
    /**
6415
     * Performs a deep copy on <i>other</i>.
6416
     */
6417
    public sendText_result(sendText_result other) {
6418
      if (other.isSetSe()) {
6419
        this.se = new HelperServiceException(other.se);
6420
      }
6421
    }
6422
 
6423
    public sendText_result deepCopy() {
6424
      return new sendText_result(this);
6425
    }
6426
 
3430 rajveer 6427
    @Override
6428
    public void clear() {
6429
      this.se = null;
352 ashish 6430
    }
6431
 
6432
    public HelperServiceException getSe() {
6433
      return this.se;
6434
    }
6435
 
3430 rajveer 6436
    public void setSe(HelperServiceException se) {
352 ashish 6437
      this.se = se;
6438
    }
6439
 
6440
    public void unsetSe() {
6441
      this.se = null;
6442
    }
6443
 
3430 rajveer 6444
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6445
    public boolean isSetSe() {
6446
      return this.se != null;
6447
    }
6448
 
6449
    public void setSeIsSet(boolean value) {
6450
      if (!value) {
6451
        this.se = null;
6452
      }
6453
    }
6454
 
6455
    public void setFieldValue(_Fields field, Object value) {
6456
      switch (field) {
6457
      case SE:
6458
        if (value == null) {
6459
          unsetSe();
6460
        } else {
6461
          setSe((HelperServiceException)value);
6462
        }
6463
        break;
6464
 
6465
      }
6466
    }
6467
 
6468
    public Object getFieldValue(_Fields field) {
6469
      switch (field) {
6470
      case SE:
6471
        return getSe();
6472
 
6473
      }
6474
      throw new IllegalStateException();
6475
    }
6476
 
3430 rajveer 6477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6478
    public boolean isSet(_Fields field) {
6479
      if (field == null) {
6480
        throw new IllegalArgumentException();
6481
      }
352 ashish 6482
 
6483
      switch (field) {
6484
      case SE:
6485
        return isSetSe();
6486
      }
6487
      throw new IllegalStateException();
6488
    }
6489
 
6490
    @Override
6491
    public boolean equals(Object that) {
6492
      if (that == null)
6493
        return false;
6494
      if (that instanceof sendText_result)
6495
        return this.equals((sendText_result)that);
6496
      return false;
6497
    }
6498
 
6499
    public boolean equals(sendText_result that) {
6500
      if (that == null)
6501
        return false;
6502
 
6503
      boolean this_present_se = true && this.isSetSe();
6504
      boolean that_present_se = true && that.isSetSe();
6505
      if (this_present_se || that_present_se) {
6506
        if (!(this_present_se && that_present_se))
6507
          return false;
6508
        if (!this.se.equals(that.se))
6509
          return false;
6510
      }
6511
 
6512
      return true;
6513
    }
6514
 
6515
    @Override
6516
    public int hashCode() {
6517
      return 0;
6518
    }
6519
 
6520
    public int compareTo(sendText_result other) {
6521
      if (!getClass().equals(other.getClass())) {
6522
        return getClass().getName().compareTo(other.getClass().getName());
6523
      }
6524
 
6525
      int lastComparison = 0;
6526
      sendText_result typedOther = (sendText_result)other;
6527
 
3430 rajveer 6528
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6529
      if (lastComparison != 0) {
6530
        return lastComparison;
6531
      }
3430 rajveer 6532
      if (isSetSe()) {
6533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6534
        if (lastComparison != 0) {
6535
          return lastComparison;
6536
        }
352 ashish 6537
      }
6538
      return 0;
6539
    }
6540
 
3430 rajveer 6541
    public _Fields fieldForId(int fieldId) {
6542
      return _Fields.findByThriftId(fieldId);
6543
    }
6544
 
6545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6546
      org.apache.thrift.protocol.TField field;
352 ashish 6547
      iprot.readStructBegin();
6548
      while (true)
6549
      {
6550
        field = iprot.readFieldBegin();
3430 rajveer 6551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6552
          break;
6553
        }
3430 rajveer 6554
        switch (field.id) {
6555
          case 1: // SE
6556
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6557
              this.se = new HelperServiceException();
6558
              this.se.read(iprot);
6559
            } else { 
6560
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6561
            }
6562
            break;
6563
          default:
6564
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6565
        }
3430 rajveer 6566
        iprot.readFieldEnd();
352 ashish 6567
      }
6568
      iprot.readStructEnd();
6569
      validate();
6570
    }
6571
 
3430 rajveer 6572
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6573
      oprot.writeStructBegin(STRUCT_DESC);
6574
 
6575
      if (this.isSetSe()) {
6576
        oprot.writeFieldBegin(SE_FIELD_DESC);
6577
        this.se.write(oprot);
6578
        oprot.writeFieldEnd();
6579
      }
6580
      oprot.writeFieldStop();
6581
      oprot.writeStructEnd();
6582
    }
6583
 
6584
    @Override
6585
    public String toString() {
6586
      StringBuilder sb = new StringBuilder("sendText_result(");
6587
      boolean first = true;
6588
 
6589
      sb.append("se:");
6590
      if (this.se == null) {
6591
        sb.append("null");
6592
      } else {
6593
        sb.append(this.se);
6594
      }
6595
      first = false;
6596
      sb.append(")");
6597
      return sb.toString();
6598
    }
6599
 
3430 rajveer 6600
    public void validate() throws org.apache.thrift.TException {
352 ashish 6601
      // check for required fields
6602
    }
6603
 
3430 rajveer 6604
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6605
      try {
6606
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6607
      } catch (org.apache.thrift.TException te) {
6608
        throw new java.io.IOException(te);
6609
      }
6610
    }
6611
 
6612
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6613
      try {
6614
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6615
      } catch (org.apache.thrift.TException te) {
6616
        throw new java.io.IOException(te);
6617
      }
6618
    }
6619
 
352 ashish 6620
  }
6621
 
3430 rajveer 6622
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6623
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6624
 
3430 rajveer 6625
    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 6626
 
3430 rajveer 6627
    private Message message; // required
352 ashish 6628
 
6629
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6630
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6631
      MESSAGE((short)1, "message");
6632
 
6633
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6634
 
6635
      static {
6636
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6637
          byName.put(field.getFieldName(), field);
6638
        }
6639
      }
6640
 
6641
      /**
6642
       * Find the _Fields constant that matches fieldId, or null if its not found.
6643
       */
6644
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6645
        switch(fieldId) {
6646
          case 1: // MESSAGE
6647
            return MESSAGE;
6648
          default:
6649
            return null;
6650
        }
352 ashish 6651
      }
6652
 
6653
      /**
6654
       * Find the _Fields constant that matches fieldId, throwing an exception
6655
       * if it is not found.
6656
       */
6657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6658
        _Fields fields = findByThriftId(fieldId);
6659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6660
        return fields;
6661
      }
6662
 
6663
      /**
6664
       * Find the _Fields constant that matches name, or null if its not found.
6665
       */
6666
      public static _Fields findByName(String name) {
6667
        return byName.get(name);
6668
      }
6669
 
6670
      private final short _thriftId;
6671
      private final String _fieldName;
6672
 
6673
      _Fields(short thriftId, String fieldName) {
6674
        _thriftId = thriftId;
6675
        _fieldName = fieldName;
6676
      }
6677
 
6678
      public short getThriftFieldId() {
6679
        return _thriftId;
6680
      }
6681
 
6682
      public String getFieldName() {
6683
        return _fieldName;
6684
      }
6685
    }
6686
 
6687
    // isset id assignments
6688
 
3430 rajveer 6689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6690
    static {
3430 rajveer 6691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6692
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6693
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6694
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6695
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6696
    }
6697
 
6698
    public addMessage_args() {
6699
    }
6700
 
6701
    public addMessage_args(
6702
      Message message)
6703
    {
6704
      this();
6705
      this.message = message;
6706
    }
6707
 
6708
    /**
6709
     * Performs a deep copy on <i>other</i>.
6710
     */
6711
    public addMessage_args(addMessage_args other) {
6712
      if (other.isSetMessage()) {
6713
        this.message = new Message(other.message);
6714
      }
6715
    }
6716
 
6717
    public addMessage_args deepCopy() {
6718
      return new addMessage_args(this);
6719
    }
6720
 
3430 rajveer 6721
    @Override
6722
    public void clear() {
6723
      this.message = null;
352 ashish 6724
    }
6725
 
6726
    public Message getMessage() {
6727
      return this.message;
6728
    }
6729
 
3430 rajveer 6730
    public void setMessage(Message message) {
352 ashish 6731
      this.message = message;
6732
    }
6733
 
6734
    public void unsetMessage() {
6735
      this.message = null;
6736
    }
6737
 
3430 rajveer 6738
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6739
    public boolean isSetMessage() {
6740
      return this.message != null;
6741
    }
6742
 
6743
    public void setMessageIsSet(boolean value) {
6744
      if (!value) {
6745
        this.message = null;
6746
      }
6747
    }
6748
 
6749
    public void setFieldValue(_Fields field, Object value) {
6750
      switch (field) {
6751
      case MESSAGE:
6752
        if (value == null) {
6753
          unsetMessage();
6754
        } else {
6755
          setMessage((Message)value);
6756
        }
6757
        break;
6758
 
6759
      }
6760
    }
6761
 
6762
    public Object getFieldValue(_Fields field) {
6763
      switch (field) {
6764
      case MESSAGE:
6765
        return getMessage();
6766
 
6767
      }
6768
      throw new IllegalStateException();
6769
    }
6770
 
3430 rajveer 6771
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6772
    public boolean isSet(_Fields field) {
6773
      if (field == null) {
6774
        throw new IllegalArgumentException();
6775
      }
352 ashish 6776
 
6777
      switch (field) {
6778
      case MESSAGE:
6779
        return isSetMessage();
6780
      }
6781
      throw new IllegalStateException();
6782
    }
6783
 
6784
    @Override
6785
    public boolean equals(Object that) {
6786
      if (that == null)
6787
        return false;
6788
      if (that instanceof addMessage_args)
6789
        return this.equals((addMessage_args)that);
6790
      return false;
6791
    }
6792
 
6793
    public boolean equals(addMessage_args that) {
6794
      if (that == null)
6795
        return false;
6796
 
6797
      boolean this_present_message = true && this.isSetMessage();
6798
      boolean that_present_message = true && that.isSetMessage();
6799
      if (this_present_message || that_present_message) {
6800
        if (!(this_present_message && that_present_message))
6801
          return false;
6802
        if (!this.message.equals(that.message))
6803
          return false;
6804
      }
6805
 
6806
      return true;
6807
    }
6808
 
6809
    @Override
6810
    public int hashCode() {
6811
      return 0;
6812
    }
6813
 
6814
    public int compareTo(addMessage_args other) {
6815
      if (!getClass().equals(other.getClass())) {
6816
        return getClass().getName().compareTo(other.getClass().getName());
6817
      }
6818
 
6819
      int lastComparison = 0;
6820
      addMessage_args typedOther = (addMessage_args)other;
6821
 
3430 rajveer 6822
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6823
      if (lastComparison != 0) {
6824
        return lastComparison;
6825
      }
3430 rajveer 6826
      if (isSetMessage()) {
6827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6828
        if (lastComparison != 0) {
6829
          return lastComparison;
6830
        }
352 ashish 6831
      }
6832
      return 0;
6833
    }
6834
 
3430 rajveer 6835
    public _Fields fieldForId(int fieldId) {
6836
      return _Fields.findByThriftId(fieldId);
6837
    }
6838
 
6839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6840
      org.apache.thrift.protocol.TField field;
352 ashish 6841
      iprot.readStructBegin();
6842
      while (true)
6843
      {
6844
        field = iprot.readFieldBegin();
3430 rajveer 6845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6846
          break;
6847
        }
3430 rajveer 6848
        switch (field.id) {
6849
          case 1: // MESSAGE
6850
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6851
              this.message = new Message();
6852
              this.message.read(iprot);
6853
            } else { 
6854
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6855
            }
6856
            break;
6857
          default:
6858
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6859
        }
3430 rajveer 6860
        iprot.readFieldEnd();
352 ashish 6861
      }
6862
      iprot.readStructEnd();
6863
      validate();
6864
    }
6865
 
3430 rajveer 6866
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6867
      validate();
6868
 
6869
      oprot.writeStructBegin(STRUCT_DESC);
6870
      if (this.message != null) {
6871
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6872
        this.message.write(oprot);
6873
        oprot.writeFieldEnd();
6874
      }
6875
      oprot.writeFieldStop();
6876
      oprot.writeStructEnd();
6877
    }
6878
 
6879
    @Override
6880
    public String toString() {
6881
      StringBuilder sb = new StringBuilder("addMessage_args(");
6882
      boolean first = true;
6883
 
6884
      sb.append("message:");
6885
      if (this.message == null) {
6886
        sb.append("null");
6887
      } else {
6888
        sb.append(this.message);
6889
      }
6890
      first = false;
6891
      sb.append(")");
6892
      return sb.toString();
6893
    }
6894
 
3430 rajveer 6895
    public void validate() throws org.apache.thrift.TException {
352 ashish 6896
      // check for required fields
6897
    }
6898
 
3430 rajveer 6899
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6900
      try {
6901
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6902
      } catch (org.apache.thrift.TException te) {
6903
        throw new java.io.IOException(te);
6904
      }
6905
    }
6906
 
6907
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6908
      try {
6909
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6910
      } catch (org.apache.thrift.TException te) {
6911
        throw new java.io.IOException(te);
6912
      }
6913
    }
6914
 
352 ashish 6915
  }
6916
 
3430 rajveer 6917
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6918
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6919
 
3430 rajveer 6920
    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 6921
 
3430 rajveer 6922
    private HelperServiceException se; // required
352 ashish 6923
 
6924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6926
      SE((short)1, "se");
6927
 
6928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6929
 
6930
      static {
6931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6932
          byName.put(field.getFieldName(), field);
6933
        }
6934
      }
6935
 
6936
      /**
6937
       * Find the _Fields constant that matches fieldId, or null if its not found.
6938
       */
6939
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6940
        switch(fieldId) {
6941
          case 1: // SE
6942
            return SE;
6943
          default:
6944
            return null;
6945
        }
352 ashish 6946
      }
6947
 
6948
      /**
6949
       * Find the _Fields constant that matches fieldId, throwing an exception
6950
       * if it is not found.
6951
       */
6952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6953
        _Fields fields = findByThriftId(fieldId);
6954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6955
        return fields;
6956
      }
6957
 
6958
      /**
6959
       * Find the _Fields constant that matches name, or null if its not found.
6960
       */
6961
      public static _Fields findByName(String name) {
6962
        return byName.get(name);
6963
      }
6964
 
6965
      private final short _thriftId;
6966
      private final String _fieldName;
6967
 
6968
      _Fields(short thriftId, String fieldName) {
6969
        _thriftId = thriftId;
6970
        _fieldName = fieldName;
6971
      }
6972
 
6973
      public short getThriftFieldId() {
6974
        return _thriftId;
6975
      }
6976
 
6977
      public String getFieldName() {
6978
        return _fieldName;
6979
      }
6980
    }
6981
 
6982
    // isset id assignments
6983
 
3430 rajveer 6984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6985
    static {
3430 rajveer 6986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6987
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6989
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6990
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6991
    }
6992
 
6993
    public addMessage_result() {
6994
    }
6995
 
6996
    public addMessage_result(
6997
      HelperServiceException se)
6998
    {
6999
      this();
7000
      this.se = se;
7001
    }
7002
 
7003
    /**
7004
     * Performs a deep copy on <i>other</i>.
7005
     */
7006
    public addMessage_result(addMessage_result other) {
7007
      if (other.isSetSe()) {
7008
        this.se = new HelperServiceException(other.se);
7009
      }
7010
    }
7011
 
7012
    public addMessage_result deepCopy() {
7013
      return new addMessage_result(this);
7014
    }
7015
 
3430 rajveer 7016
    @Override
7017
    public void clear() {
7018
      this.se = null;
352 ashish 7019
    }
7020
 
7021
    public HelperServiceException getSe() {
7022
      return this.se;
7023
    }
7024
 
3430 rajveer 7025
    public void setSe(HelperServiceException se) {
352 ashish 7026
      this.se = se;
7027
    }
7028
 
7029
    public void unsetSe() {
7030
      this.se = null;
7031
    }
7032
 
3430 rajveer 7033
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7034
    public boolean isSetSe() {
7035
      return this.se != null;
7036
    }
7037
 
7038
    public void setSeIsSet(boolean value) {
7039
      if (!value) {
7040
        this.se = null;
7041
      }
7042
    }
7043
 
7044
    public void setFieldValue(_Fields field, Object value) {
7045
      switch (field) {
7046
      case SE:
7047
        if (value == null) {
7048
          unsetSe();
7049
        } else {
7050
          setSe((HelperServiceException)value);
7051
        }
7052
        break;
7053
 
7054
      }
7055
    }
7056
 
7057
    public Object getFieldValue(_Fields field) {
7058
      switch (field) {
7059
      case SE:
7060
        return getSe();
7061
 
7062
      }
7063
      throw new IllegalStateException();
7064
    }
7065
 
3430 rajveer 7066
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7067
    public boolean isSet(_Fields field) {
7068
      if (field == null) {
7069
        throw new IllegalArgumentException();
7070
      }
352 ashish 7071
 
7072
      switch (field) {
7073
      case SE:
7074
        return isSetSe();
7075
      }
7076
      throw new IllegalStateException();
7077
    }
7078
 
7079
    @Override
7080
    public boolean equals(Object that) {
7081
      if (that == null)
7082
        return false;
7083
      if (that instanceof addMessage_result)
7084
        return this.equals((addMessage_result)that);
7085
      return false;
7086
    }
7087
 
7088
    public boolean equals(addMessage_result that) {
7089
      if (that == null)
7090
        return false;
7091
 
7092
      boolean this_present_se = true && this.isSetSe();
7093
      boolean that_present_se = true && that.isSetSe();
7094
      if (this_present_se || that_present_se) {
7095
        if (!(this_present_se && that_present_se))
7096
          return false;
7097
        if (!this.se.equals(that.se))
7098
          return false;
7099
      }
7100
 
7101
      return true;
7102
    }
7103
 
7104
    @Override
7105
    public int hashCode() {
7106
      return 0;
7107
    }
7108
 
7109
    public int compareTo(addMessage_result other) {
7110
      if (!getClass().equals(other.getClass())) {
7111
        return getClass().getName().compareTo(other.getClass().getName());
7112
      }
7113
 
7114
      int lastComparison = 0;
7115
      addMessage_result typedOther = (addMessage_result)other;
7116
 
3430 rajveer 7117
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7118
      if (lastComparison != 0) {
7119
        return lastComparison;
7120
      }
3430 rajveer 7121
      if (isSetSe()) {
7122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7123
        if (lastComparison != 0) {
7124
          return lastComparison;
7125
        }
352 ashish 7126
      }
7127
      return 0;
7128
    }
7129
 
3430 rajveer 7130
    public _Fields fieldForId(int fieldId) {
7131
      return _Fields.findByThriftId(fieldId);
7132
    }
7133
 
7134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7135
      org.apache.thrift.protocol.TField field;
352 ashish 7136
      iprot.readStructBegin();
7137
      while (true)
7138
      {
7139
        field = iprot.readFieldBegin();
3430 rajveer 7140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7141
          break;
7142
        }
3430 rajveer 7143
        switch (field.id) {
7144
          case 1: // SE
7145
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7146
              this.se = new HelperServiceException();
7147
              this.se.read(iprot);
7148
            } else { 
7149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7150
            }
7151
            break;
7152
          default:
7153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7154
        }
3430 rajveer 7155
        iprot.readFieldEnd();
352 ashish 7156
      }
7157
      iprot.readStructEnd();
7158
      validate();
7159
    }
7160
 
3430 rajveer 7161
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7162
      oprot.writeStructBegin(STRUCT_DESC);
7163
 
7164
      if (this.isSetSe()) {
7165
        oprot.writeFieldBegin(SE_FIELD_DESC);
7166
        this.se.write(oprot);
7167
        oprot.writeFieldEnd();
7168
      }
7169
      oprot.writeFieldStop();
7170
      oprot.writeStructEnd();
7171
    }
7172
 
7173
    @Override
7174
    public String toString() {
7175
      StringBuilder sb = new StringBuilder("addMessage_result(");
7176
      boolean first = true;
7177
 
7178
      sb.append("se:");
7179
      if (this.se == null) {
7180
        sb.append("null");
7181
      } else {
7182
        sb.append(this.se);
7183
      }
7184
      first = false;
7185
      sb.append(")");
7186
      return sb.toString();
7187
    }
7188
 
3430 rajveer 7189
    public void validate() throws org.apache.thrift.TException {
352 ashish 7190
      // check for required fields
7191
    }
7192
 
3430 rajveer 7193
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7194
      try {
7195
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7196
      } catch (org.apache.thrift.TException te) {
7197
        throw new java.io.IOException(te);
7198
      }
7199
    }
7200
 
7201
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7202
      try {
7203
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7204
      } catch (org.apache.thrift.TException te) {
7205
        throw new java.io.IOException(te);
7206
      }
7207
    }
7208
 
352 ashish 7209
  }
7210
 
3430 rajveer 7211
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
7212
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 7213
 
3430 rajveer 7214
    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);
7215
    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 7216
 
3430 rajveer 7217
    private long id; // required
7218
    private String message; // required
352 ashish 7219
 
7220
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7221
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7222
      ID((short)1, "id"),
7223
      MESSAGE((short)2, "message");
7224
 
7225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7226
 
7227
      static {
7228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7229
          byName.put(field.getFieldName(), field);
7230
        }
7231
      }
7232
 
7233
      /**
7234
       * Find the _Fields constant that matches fieldId, or null if its not found.
7235
       */
7236
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7237
        switch(fieldId) {
7238
          case 1: // ID
7239
            return ID;
7240
          case 2: // MESSAGE
7241
            return MESSAGE;
7242
          default:
7243
            return null;
7244
        }
352 ashish 7245
      }
7246
 
7247
      /**
7248
       * Find the _Fields constant that matches fieldId, throwing an exception
7249
       * if it is not found.
7250
       */
7251
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7252
        _Fields fields = findByThriftId(fieldId);
7253
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7254
        return fields;
7255
      }
7256
 
7257
      /**
7258
       * Find the _Fields constant that matches name, or null if its not found.
7259
       */
7260
      public static _Fields findByName(String name) {
7261
        return byName.get(name);
7262
      }
7263
 
7264
      private final short _thriftId;
7265
      private final String _fieldName;
7266
 
7267
      _Fields(short thriftId, String fieldName) {
7268
        _thriftId = thriftId;
7269
        _fieldName = fieldName;
7270
      }
7271
 
7272
      public short getThriftFieldId() {
7273
        return _thriftId;
7274
      }
7275
 
7276
      public String getFieldName() {
7277
        return _fieldName;
7278
      }
7279
    }
7280
 
7281
    // isset id assignments
7282
    private static final int __ID_ISSET_ID = 0;
7283
    private BitSet __isset_bit_vector = new BitSet(1);
7284
 
3430 rajveer 7285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7286
    static {
3430 rajveer 7287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7288
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7290
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7294
    }
7295
 
7296
    public updateMessage_args() {
7297
    }
7298
 
7299
    public updateMessage_args(
7300
      long id,
7301
      String message)
7302
    {
7303
      this();
7304
      this.id = id;
7305
      setIdIsSet(true);
7306
      this.message = message;
7307
    }
7308
 
7309
    /**
7310
     * Performs a deep copy on <i>other</i>.
7311
     */
7312
    public updateMessage_args(updateMessage_args other) {
7313
      __isset_bit_vector.clear();
7314
      __isset_bit_vector.or(other.__isset_bit_vector);
7315
      this.id = other.id;
7316
      if (other.isSetMessage()) {
7317
        this.message = other.message;
7318
      }
7319
    }
7320
 
7321
    public updateMessage_args deepCopy() {
7322
      return new updateMessage_args(this);
7323
    }
7324
 
3430 rajveer 7325
    @Override
7326
    public void clear() {
7327
      setIdIsSet(false);
7328
      this.id = 0;
7329
      this.message = null;
352 ashish 7330
    }
7331
 
7332
    public long getId() {
7333
      return this.id;
7334
    }
7335
 
3430 rajveer 7336
    public void setId(long id) {
352 ashish 7337
      this.id = id;
7338
      setIdIsSet(true);
7339
    }
7340
 
7341
    public void unsetId() {
7342
      __isset_bit_vector.clear(__ID_ISSET_ID);
7343
    }
7344
 
3430 rajveer 7345
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7346
    public boolean isSetId() {
7347
      return __isset_bit_vector.get(__ID_ISSET_ID);
7348
    }
7349
 
7350
    public void setIdIsSet(boolean value) {
7351
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7352
    }
7353
 
7354
    public String getMessage() {
7355
      return this.message;
7356
    }
7357
 
3430 rajveer 7358
    public void setMessage(String message) {
352 ashish 7359
      this.message = message;
7360
    }
7361
 
7362
    public void unsetMessage() {
7363
      this.message = null;
7364
    }
7365
 
3430 rajveer 7366
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7367
    public boolean isSetMessage() {
7368
      return this.message != null;
7369
    }
7370
 
7371
    public void setMessageIsSet(boolean value) {
7372
      if (!value) {
7373
        this.message = null;
7374
      }
7375
    }
7376
 
7377
    public void setFieldValue(_Fields field, Object value) {
7378
      switch (field) {
7379
      case ID:
7380
        if (value == null) {
7381
          unsetId();
7382
        } else {
7383
          setId((Long)value);
7384
        }
7385
        break;
7386
 
7387
      case MESSAGE:
7388
        if (value == null) {
7389
          unsetMessage();
7390
        } else {
7391
          setMessage((String)value);
7392
        }
7393
        break;
7394
 
7395
      }
7396
    }
7397
 
7398
    public Object getFieldValue(_Fields field) {
7399
      switch (field) {
7400
      case ID:
3430 rajveer 7401
        return Long.valueOf(getId());
352 ashish 7402
 
7403
      case MESSAGE:
7404
        return getMessage();
7405
 
7406
      }
7407
      throw new IllegalStateException();
7408
    }
7409
 
3430 rajveer 7410
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7411
    public boolean isSet(_Fields field) {
7412
      if (field == null) {
7413
        throw new IllegalArgumentException();
7414
      }
352 ashish 7415
 
7416
      switch (field) {
7417
      case ID:
7418
        return isSetId();
7419
      case MESSAGE:
7420
        return isSetMessage();
7421
      }
7422
      throw new IllegalStateException();
7423
    }
7424
 
7425
    @Override
7426
    public boolean equals(Object that) {
7427
      if (that == null)
7428
        return false;
7429
      if (that instanceof updateMessage_args)
7430
        return this.equals((updateMessage_args)that);
7431
      return false;
7432
    }
7433
 
7434
    public boolean equals(updateMessage_args that) {
7435
      if (that == null)
7436
        return false;
7437
 
7438
      boolean this_present_id = true;
7439
      boolean that_present_id = true;
7440
      if (this_present_id || that_present_id) {
7441
        if (!(this_present_id && that_present_id))
7442
          return false;
7443
        if (this.id != that.id)
7444
          return false;
7445
      }
7446
 
7447
      boolean this_present_message = true && this.isSetMessage();
7448
      boolean that_present_message = true && that.isSetMessage();
7449
      if (this_present_message || that_present_message) {
7450
        if (!(this_present_message && that_present_message))
7451
          return false;
7452
        if (!this.message.equals(that.message))
7453
          return false;
7454
      }
7455
 
7456
      return true;
7457
    }
7458
 
7459
    @Override
7460
    public int hashCode() {
7461
      return 0;
7462
    }
7463
 
7464
    public int compareTo(updateMessage_args other) {
7465
      if (!getClass().equals(other.getClass())) {
7466
        return getClass().getName().compareTo(other.getClass().getName());
7467
      }
7468
 
7469
      int lastComparison = 0;
7470
      updateMessage_args typedOther = (updateMessage_args)other;
7471
 
3430 rajveer 7472
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7473
      if (lastComparison != 0) {
7474
        return lastComparison;
7475
      }
3430 rajveer 7476
      if (isSetId()) {
7477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7478
        if (lastComparison != 0) {
7479
          return lastComparison;
7480
        }
352 ashish 7481
      }
3430 rajveer 7482
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7483
      if (lastComparison != 0) {
7484
        return lastComparison;
7485
      }
3430 rajveer 7486
      if (isSetMessage()) {
7487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7488
        if (lastComparison != 0) {
7489
          return lastComparison;
7490
        }
352 ashish 7491
      }
7492
      return 0;
7493
    }
7494
 
3430 rajveer 7495
    public _Fields fieldForId(int fieldId) {
7496
      return _Fields.findByThriftId(fieldId);
7497
    }
7498
 
7499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7500
      org.apache.thrift.protocol.TField field;
352 ashish 7501
      iprot.readStructBegin();
7502
      while (true)
7503
      {
7504
        field = iprot.readFieldBegin();
3430 rajveer 7505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7506
          break;
7507
        }
3430 rajveer 7508
        switch (field.id) {
7509
          case 1: // ID
7510
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7511
              this.id = iprot.readI64();
7512
              setIdIsSet(true);
7513
            } else { 
7514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7515
            }
7516
            break;
7517
          case 2: // MESSAGE
7518
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7519
              this.message = iprot.readString();
7520
            } else { 
7521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7522
            }
7523
            break;
7524
          default:
7525
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7526
        }
3430 rajveer 7527
        iprot.readFieldEnd();
352 ashish 7528
      }
7529
      iprot.readStructEnd();
7530
      validate();
7531
    }
7532
 
3430 rajveer 7533
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7534
      validate();
7535
 
7536
      oprot.writeStructBegin(STRUCT_DESC);
7537
      oprot.writeFieldBegin(ID_FIELD_DESC);
7538
      oprot.writeI64(this.id);
7539
      oprot.writeFieldEnd();
7540
      if (this.message != null) {
7541
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7542
        oprot.writeString(this.message);
7543
        oprot.writeFieldEnd();
7544
      }
7545
      oprot.writeFieldStop();
7546
      oprot.writeStructEnd();
7547
    }
7548
 
7549
    @Override
7550
    public String toString() {
7551
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7552
      boolean first = true;
7553
 
7554
      sb.append("id:");
7555
      sb.append(this.id);
7556
      first = false;
7557
      if (!first) sb.append(", ");
7558
      sb.append("message:");
7559
      if (this.message == null) {
7560
        sb.append("null");
7561
      } else {
7562
        sb.append(this.message);
7563
      }
7564
      first = false;
7565
      sb.append(")");
7566
      return sb.toString();
7567
    }
7568
 
3430 rajveer 7569
    public void validate() throws org.apache.thrift.TException {
352 ashish 7570
      // check for required fields
7571
    }
7572
 
3430 rajveer 7573
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7574
      try {
7575
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7576
      } catch (org.apache.thrift.TException te) {
7577
        throw new java.io.IOException(te);
7578
      }
7579
    }
7580
 
7581
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7582
      try {
7583
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7584
        __isset_bit_vector = new BitSet(1);
7585
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7586
      } catch (org.apache.thrift.TException te) {
7587
        throw new java.io.IOException(te);
7588
      }
7589
    }
7590
 
352 ashish 7591
  }
7592
 
3430 rajveer 7593
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7594
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7595
 
3430 rajveer 7596
    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 7597
 
3430 rajveer 7598
    private HelperServiceException se; // required
352 ashish 7599
 
7600
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7601
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7602
      SE((short)1, "se");
7603
 
7604
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7605
 
7606
      static {
7607
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7608
          byName.put(field.getFieldName(), field);
7609
        }
7610
      }
7611
 
7612
      /**
7613
       * Find the _Fields constant that matches fieldId, or null if its not found.
7614
       */
7615
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7616
        switch(fieldId) {
7617
          case 1: // SE
7618
            return SE;
7619
          default:
7620
            return null;
7621
        }
352 ashish 7622
      }
7623
 
7624
      /**
7625
       * Find the _Fields constant that matches fieldId, throwing an exception
7626
       * if it is not found.
7627
       */
7628
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7629
        _Fields fields = findByThriftId(fieldId);
7630
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7631
        return fields;
7632
      }
7633
 
7634
      /**
7635
       * Find the _Fields constant that matches name, or null if its not found.
7636
       */
7637
      public static _Fields findByName(String name) {
7638
        return byName.get(name);
7639
      }
7640
 
7641
      private final short _thriftId;
7642
      private final String _fieldName;
7643
 
7644
      _Fields(short thriftId, String fieldName) {
7645
        _thriftId = thriftId;
7646
        _fieldName = fieldName;
7647
      }
7648
 
7649
      public short getThriftFieldId() {
7650
        return _thriftId;
7651
      }
7652
 
7653
      public String getFieldName() {
7654
        return _fieldName;
7655
      }
7656
    }
7657
 
7658
    // isset id assignments
7659
 
3430 rajveer 7660
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7661
    static {
3430 rajveer 7662
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7663
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7664
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7665
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7666
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7667
    }
7668
 
7669
    public updateMessage_result() {
7670
    }
7671
 
7672
    public updateMessage_result(
7673
      HelperServiceException se)
7674
    {
7675
      this();
7676
      this.se = se;
7677
    }
7678
 
7679
    /**
7680
     * Performs a deep copy on <i>other</i>.
7681
     */
7682
    public updateMessage_result(updateMessage_result other) {
7683
      if (other.isSetSe()) {
7684
        this.se = new HelperServiceException(other.se);
7685
      }
7686
    }
7687
 
7688
    public updateMessage_result deepCopy() {
7689
      return new updateMessage_result(this);
7690
    }
7691
 
3430 rajveer 7692
    @Override
7693
    public void clear() {
7694
      this.se = null;
352 ashish 7695
    }
7696
 
7697
    public HelperServiceException getSe() {
7698
      return this.se;
7699
    }
7700
 
3430 rajveer 7701
    public void setSe(HelperServiceException se) {
352 ashish 7702
      this.se = se;
7703
    }
7704
 
7705
    public void unsetSe() {
7706
      this.se = null;
7707
    }
7708
 
3430 rajveer 7709
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7710
    public boolean isSetSe() {
7711
      return this.se != null;
7712
    }
7713
 
7714
    public void setSeIsSet(boolean value) {
7715
      if (!value) {
7716
        this.se = null;
7717
      }
7718
    }
7719
 
7720
    public void setFieldValue(_Fields field, Object value) {
7721
      switch (field) {
7722
      case SE:
7723
        if (value == null) {
7724
          unsetSe();
7725
        } else {
7726
          setSe((HelperServiceException)value);
7727
        }
7728
        break;
7729
 
7730
      }
7731
    }
7732
 
7733
    public Object getFieldValue(_Fields field) {
7734
      switch (field) {
7735
      case SE:
7736
        return getSe();
7737
 
7738
      }
7739
      throw new IllegalStateException();
7740
    }
7741
 
3430 rajveer 7742
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7743
    public boolean isSet(_Fields field) {
7744
      if (field == null) {
7745
        throw new IllegalArgumentException();
7746
      }
352 ashish 7747
 
7748
      switch (field) {
7749
      case SE:
7750
        return isSetSe();
7751
      }
7752
      throw new IllegalStateException();
7753
    }
7754
 
7755
    @Override
7756
    public boolean equals(Object that) {
7757
      if (that == null)
7758
        return false;
7759
      if (that instanceof updateMessage_result)
7760
        return this.equals((updateMessage_result)that);
7761
      return false;
7762
    }
7763
 
7764
    public boolean equals(updateMessage_result that) {
7765
      if (that == null)
7766
        return false;
7767
 
7768
      boolean this_present_se = true && this.isSetSe();
7769
      boolean that_present_se = true && that.isSetSe();
7770
      if (this_present_se || that_present_se) {
7771
        if (!(this_present_se && that_present_se))
7772
          return false;
7773
        if (!this.se.equals(that.se))
7774
          return false;
7775
      }
7776
 
7777
      return true;
7778
    }
7779
 
7780
    @Override
7781
    public int hashCode() {
7782
      return 0;
7783
    }
7784
 
7785
    public int compareTo(updateMessage_result other) {
7786
      if (!getClass().equals(other.getClass())) {
7787
        return getClass().getName().compareTo(other.getClass().getName());
7788
      }
7789
 
7790
      int lastComparison = 0;
7791
      updateMessage_result typedOther = (updateMessage_result)other;
7792
 
3430 rajveer 7793
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7794
      if (lastComparison != 0) {
7795
        return lastComparison;
7796
      }
3430 rajveer 7797
      if (isSetSe()) {
7798
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7799
        if (lastComparison != 0) {
7800
          return lastComparison;
7801
        }
352 ashish 7802
      }
7803
      return 0;
7804
    }
7805
 
3430 rajveer 7806
    public _Fields fieldForId(int fieldId) {
7807
      return _Fields.findByThriftId(fieldId);
7808
    }
7809
 
7810
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7811
      org.apache.thrift.protocol.TField field;
352 ashish 7812
      iprot.readStructBegin();
7813
      while (true)
7814
      {
7815
        field = iprot.readFieldBegin();
3430 rajveer 7816
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7817
          break;
7818
        }
3430 rajveer 7819
        switch (field.id) {
7820
          case 1: // SE
7821
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7822
              this.se = new HelperServiceException();
7823
              this.se.read(iprot);
7824
            } else { 
7825
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7826
            }
7827
            break;
7828
          default:
7829
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7830
        }
3430 rajveer 7831
        iprot.readFieldEnd();
352 ashish 7832
      }
7833
      iprot.readStructEnd();
7834
      validate();
7835
    }
7836
 
3430 rajveer 7837
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7838
      oprot.writeStructBegin(STRUCT_DESC);
7839
 
7840
      if (this.isSetSe()) {
7841
        oprot.writeFieldBegin(SE_FIELD_DESC);
7842
        this.se.write(oprot);
7843
        oprot.writeFieldEnd();
7844
      }
7845
      oprot.writeFieldStop();
7846
      oprot.writeStructEnd();
7847
    }
7848
 
7849
    @Override
7850
    public String toString() {
7851
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7852
      boolean first = true;
7853
 
7854
      sb.append("se:");
7855
      if (this.se == null) {
7856
        sb.append("null");
7857
      } else {
7858
        sb.append(this.se);
7859
      }
7860
      first = false;
7861
      sb.append(")");
7862
      return sb.toString();
7863
    }
7864
 
3430 rajveer 7865
    public void validate() throws org.apache.thrift.TException {
352 ashish 7866
      // check for required fields
7867
    }
7868
 
3430 rajveer 7869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7870
      try {
7871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7872
      } catch (org.apache.thrift.TException te) {
7873
        throw new java.io.IOException(te);
7874
      }
7875
    }
7876
 
7877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7878
      try {
7879
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7880
      } catch (org.apache.thrift.TException te) {
7881
        throw new java.io.IOException(te);
7882
      }
7883
    }
7884
 
352 ashish 7885
  }
7886
 
3430 rajveer 7887
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7888
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7889
 
3430 rajveer 7890
    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 7891
 
3430 rajveer 7892
    private long id; // required
352 ashish 7893
 
7894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7896
      ID((short)1, "id");
7897
 
7898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7899
 
7900
      static {
7901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7902
          byName.put(field.getFieldName(), field);
7903
        }
7904
      }
7905
 
7906
      /**
7907
       * Find the _Fields constant that matches fieldId, or null if its not found.
7908
       */
7909
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7910
        switch(fieldId) {
7911
          case 1: // ID
7912
            return ID;
7913
          default:
7914
            return null;
7915
        }
352 ashish 7916
      }
7917
 
7918
      /**
7919
       * Find the _Fields constant that matches fieldId, throwing an exception
7920
       * if it is not found.
7921
       */
7922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7923
        _Fields fields = findByThriftId(fieldId);
7924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7925
        return fields;
7926
      }
7927
 
7928
      /**
7929
       * Find the _Fields constant that matches name, or null if its not found.
7930
       */
7931
      public static _Fields findByName(String name) {
7932
        return byName.get(name);
7933
      }
7934
 
7935
      private final short _thriftId;
7936
      private final String _fieldName;
7937
 
7938
      _Fields(short thriftId, String fieldName) {
7939
        _thriftId = thriftId;
7940
        _fieldName = fieldName;
7941
      }
7942
 
7943
      public short getThriftFieldId() {
7944
        return _thriftId;
7945
      }
7946
 
7947
      public String getFieldName() {
7948
        return _fieldName;
7949
      }
7950
    }
7951
 
7952
    // isset id assignments
7953
    private static final int __ID_ISSET_ID = 0;
7954
    private BitSet __isset_bit_vector = new BitSet(1);
7955
 
3430 rajveer 7956
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7957
    static {
3430 rajveer 7958
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7959
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7960
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7963
    }
7964
 
7965
    public getMessage_args() {
7966
    }
7967
 
7968
    public getMessage_args(
7969
      long id)
7970
    {
7971
      this();
7972
      this.id = id;
7973
      setIdIsSet(true);
7974
    }
7975
 
7976
    /**
7977
     * Performs a deep copy on <i>other</i>.
7978
     */
7979
    public getMessage_args(getMessage_args other) {
7980
      __isset_bit_vector.clear();
7981
      __isset_bit_vector.or(other.__isset_bit_vector);
7982
      this.id = other.id;
7983
    }
7984
 
7985
    public getMessage_args deepCopy() {
7986
      return new getMessage_args(this);
7987
    }
7988
 
3430 rajveer 7989
    @Override
7990
    public void clear() {
7991
      setIdIsSet(false);
7992
      this.id = 0;
352 ashish 7993
    }
7994
 
7995
    public long getId() {
7996
      return this.id;
7997
    }
7998
 
3430 rajveer 7999
    public void setId(long id) {
352 ashish 8000
      this.id = id;
8001
      setIdIsSet(true);
8002
    }
8003
 
8004
    public void unsetId() {
8005
      __isset_bit_vector.clear(__ID_ISSET_ID);
8006
    }
8007
 
3430 rajveer 8008
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8009
    public boolean isSetId() {
8010
      return __isset_bit_vector.get(__ID_ISSET_ID);
8011
    }
8012
 
8013
    public void setIdIsSet(boolean value) {
8014
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8015
    }
8016
 
8017
    public void setFieldValue(_Fields field, Object value) {
8018
      switch (field) {
8019
      case ID:
8020
        if (value == null) {
8021
          unsetId();
8022
        } else {
8023
          setId((Long)value);
8024
        }
8025
        break;
8026
 
8027
      }
8028
    }
8029
 
8030
    public Object getFieldValue(_Fields field) {
8031
      switch (field) {
8032
      case ID:
3430 rajveer 8033
        return Long.valueOf(getId());
352 ashish 8034
 
8035
      }
8036
      throw new IllegalStateException();
8037
    }
8038
 
3430 rajveer 8039
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8040
    public boolean isSet(_Fields field) {
8041
      if (field == null) {
8042
        throw new IllegalArgumentException();
8043
      }
352 ashish 8044
 
8045
      switch (field) {
8046
      case ID:
8047
        return isSetId();
8048
      }
8049
      throw new IllegalStateException();
8050
    }
8051
 
8052
    @Override
8053
    public boolean equals(Object that) {
8054
      if (that == null)
8055
        return false;
8056
      if (that instanceof getMessage_args)
8057
        return this.equals((getMessage_args)that);
8058
      return false;
8059
    }
8060
 
8061
    public boolean equals(getMessage_args that) {
8062
      if (that == null)
8063
        return false;
8064
 
8065
      boolean this_present_id = true;
8066
      boolean that_present_id = true;
8067
      if (this_present_id || that_present_id) {
8068
        if (!(this_present_id && that_present_id))
8069
          return false;
8070
        if (this.id != that.id)
8071
          return false;
8072
      }
8073
 
8074
      return true;
8075
    }
8076
 
8077
    @Override
8078
    public int hashCode() {
8079
      return 0;
8080
    }
8081
 
8082
    public int compareTo(getMessage_args other) {
8083
      if (!getClass().equals(other.getClass())) {
8084
        return getClass().getName().compareTo(other.getClass().getName());
8085
      }
8086
 
8087
      int lastComparison = 0;
8088
      getMessage_args typedOther = (getMessage_args)other;
8089
 
3430 rajveer 8090
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8091
      if (lastComparison != 0) {
8092
        return lastComparison;
8093
      }
3430 rajveer 8094
      if (isSetId()) {
8095
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8096
        if (lastComparison != 0) {
8097
          return lastComparison;
8098
        }
352 ashish 8099
      }
8100
      return 0;
8101
    }
8102
 
3430 rajveer 8103
    public _Fields fieldForId(int fieldId) {
8104
      return _Fields.findByThriftId(fieldId);
8105
    }
8106
 
8107
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8108
      org.apache.thrift.protocol.TField field;
352 ashish 8109
      iprot.readStructBegin();
8110
      while (true)
8111
      {
8112
        field = iprot.readFieldBegin();
3430 rajveer 8113
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8114
          break;
8115
        }
3430 rajveer 8116
        switch (field.id) {
8117
          case 1: // ID
8118
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8119
              this.id = iprot.readI64();
8120
              setIdIsSet(true);
8121
            } else { 
8122
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8123
            }
8124
            break;
8125
          default:
8126
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8127
        }
3430 rajveer 8128
        iprot.readFieldEnd();
352 ashish 8129
      }
8130
      iprot.readStructEnd();
8131
      validate();
8132
    }
8133
 
3430 rajveer 8134
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8135
      validate();
8136
 
8137
      oprot.writeStructBegin(STRUCT_DESC);
8138
      oprot.writeFieldBegin(ID_FIELD_DESC);
8139
      oprot.writeI64(this.id);
8140
      oprot.writeFieldEnd();
8141
      oprot.writeFieldStop();
8142
      oprot.writeStructEnd();
8143
    }
8144
 
8145
    @Override
8146
    public String toString() {
8147
      StringBuilder sb = new StringBuilder("getMessage_args(");
8148
      boolean first = true;
8149
 
8150
      sb.append("id:");
8151
      sb.append(this.id);
8152
      first = false;
8153
      sb.append(")");
8154
      return sb.toString();
8155
    }
8156
 
3430 rajveer 8157
    public void validate() throws org.apache.thrift.TException {
352 ashish 8158
      // check for required fields
8159
    }
8160
 
3430 rajveer 8161
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8162
      try {
8163
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8164
      } catch (org.apache.thrift.TException te) {
8165
        throw new java.io.IOException(te);
8166
      }
8167
    }
8168
 
8169
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8170
      try {
8171
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8172
        __isset_bit_vector = new BitSet(1);
8173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8174
      } catch (org.apache.thrift.TException te) {
8175
        throw new java.io.IOException(te);
8176
      }
8177
    }
8178
 
352 ashish 8179
  }
8180
 
3430 rajveer 8181
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
8182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 8183
 
3430 rajveer 8184
    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);
8185
    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 8186
 
3430 rajveer 8187
    private Message success; // required
8188
    private HelperServiceException se; // required
352 ashish 8189
 
8190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8192
      SUCCESS((short)0, "success"),
8193
      SE((short)1, "se");
8194
 
8195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8196
 
8197
      static {
8198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8199
          byName.put(field.getFieldName(), field);
8200
        }
8201
      }
8202
 
8203
      /**
8204
       * Find the _Fields constant that matches fieldId, or null if its not found.
8205
       */
8206
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8207
        switch(fieldId) {
8208
          case 0: // SUCCESS
8209
            return SUCCESS;
8210
          case 1: // SE
8211
            return SE;
8212
          default:
8213
            return null;
8214
        }
352 ashish 8215
      }
8216
 
8217
      /**
8218
       * Find the _Fields constant that matches fieldId, throwing an exception
8219
       * if it is not found.
8220
       */
8221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8222
        _Fields fields = findByThriftId(fieldId);
8223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8224
        return fields;
8225
      }
8226
 
8227
      /**
8228
       * Find the _Fields constant that matches name, or null if its not found.
8229
       */
8230
      public static _Fields findByName(String name) {
8231
        return byName.get(name);
8232
      }
8233
 
8234
      private final short _thriftId;
8235
      private final String _fieldName;
8236
 
8237
      _Fields(short thriftId, String fieldName) {
8238
        _thriftId = thriftId;
8239
        _fieldName = fieldName;
8240
      }
8241
 
8242
      public short getThriftFieldId() {
8243
        return _thriftId;
8244
      }
8245
 
8246
      public String getFieldName() {
8247
        return _fieldName;
8248
      }
8249
    }
8250
 
8251
    // isset id assignments
8252
 
3430 rajveer 8253
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8254
    static {
3430 rajveer 8255
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8256
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8257
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8258
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8262
    }
8263
 
8264
    public getMessage_result() {
8265
    }
8266
 
8267
    public getMessage_result(
8268
      Message success,
8269
      HelperServiceException se)
8270
    {
8271
      this();
8272
      this.success = success;
8273
      this.se = se;
8274
    }
8275
 
8276
    /**
8277
     * Performs a deep copy on <i>other</i>.
8278
     */
8279
    public getMessage_result(getMessage_result other) {
8280
      if (other.isSetSuccess()) {
8281
        this.success = new Message(other.success);
8282
      }
8283
      if (other.isSetSe()) {
8284
        this.se = new HelperServiceException(other.se);
8285
      }
8286
    }
8287
 
8288
    public getMessage_result deepCopy() {
8289
      return new getMessage_result(this);
8290
    }
8291
 
3430 rajveer 8292
    @Override
8293
    public void clear() {
8294
      this.success = null;
8295
      this.se = null;
352 ashish 8296
    }
8297
 
8298
    public Message getSuccess() {
8299
      return this.success;
8300
    }
8301
 
3430 rajveer 8302
    public void setSuccess(Message success) {
352 ashish 8303
      this.success = success;
8304
    }
8305
 
8306
    public void unsetSuccess() {
8307
      this.success = null;
8308
    }
8309
 
3430 rajveer 8310
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8311
    public boolean isSetSuccess() {
8312
      return this.success != null;
8313
    }
8314
 
8315
    public void setSuccessIsSet(boolean value) {
8316
      if (!value) {
8317
        this.success = null;
8318
      }
8319
    }
8320
 
8321
    public HelperServiceException getSe() {
8322
      return this.se;
8323
    }
8324
 
3430 rajveer 8325
    public void setSe(HelperServiceException se) {
352 ashish 8326
      this.se = se;
8327
    }
8328
 
8329
    public void unsetSe() {
8330
      this.se = null;
8331
    }
8332
 
3430 rajveer 8333
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8334
    public boolean isSetSe() {
8335
      return this.se != null;
8336
    }
8337
 
8338
    public void setSeIsSet(boolean value) {
8339
      if (!value) {
8340
        this.se = null;
8341
      }
8342
    }
8343
 
8344
    public void setFieldValue(_Fields field, Object value) {
8345
      switch (field) {
8346
      case SUCCESS:
8347
        if (value == null) {
8348
          unsetSuccess();
8349
        } else {
8350
          setSuccess((Message)value);
8351
        }
8352
        break;
8353
 
8354
      case SE:
8355
        if (value == null) {
8356
          unsetSe();
8357
        } else {
8358
          setSe((HelperServiceException)value);
8359
        }
8360
        break;
8361
 
8362
      }
8363
    }
8364
 
8365
    public Object getFieldValue(_Fields field) {
8366
      switch (field) {
8367
      case SUCCESS:
8368
        return getSuccess();
8369
 
8370
      case SE:
8371
        return getSe();
8372
 
8373
      }
8374
      throw new IllegalStateException();
8375
    }
8376
 
3430 rajveer 8377
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8378
    public boolean isSet(_Fields field) {
8379
      if (field == null) {
8380
        throw new IllegalArgumentException();
8381
      }
352 ashish 8382
 
8383
      switch (field) {
8384
      case SUCCESS:
8385
        return isSetSuccess();
8386
      case SE:
8387
        return isSetSe();
8388
      }
8389
      throw new IllegalStateException();
8390
    }
8391
 
8392
    @Override
8393
    public boolean equals(Object that) {
8394
      if (that == null)
8395
        return false;
8396
      if (that instanceof getMessage_result)
8397
        return this.equals((getMessage_result)that);
8398
      return false;
8399
    }
8400
 
8401
    public boolean equals(getMessage_result that) {
8402
      if (that == null)
8403
        return false;
8404
 
8405
      boolean this_present_success = true && this.isSetSuccess();
8406
      boolean that_present_success = true && that.isSetSuccess();
8407
      if (this_present_success || that_present_success) {
8408
        if (!(this_present_success && that_present_success))
8409
          return false;
8410
        if (!this.success.equals(that.success))
8411
          return false;
8412
      }
8413
 
8414
      boolean this_present_se = true && this.isSetSe();
8415
      boolean that_present_se = true && that.isSetSe();
8416
      if (this_present_se || that_present_se) {
8417
        if (!(this_present_se && that_present_se))
8418
          return false;
8419
        if (!this.se.equals(that.se))
8420
          return false;
8421
      }
8422
 
8423
      return true;
8424
    }
8425
 
8426
    @Override
8427
    public int hashCode() {
8428
      return 0;
8429
    }
8430
 
8431
    public int compareTo(getMessage_result other) {
8432
      if (!getClass().equals(other.getClass())) {
8433
        return getClass().getName().compareTo(other.getClass().getName());
8434
      }
8435
 
8436
      int lastComparison = 0;
8437
      getMessage_result typedOther = (getMessage_result)other;
8438
 
3430 rajveer 8439
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8440
      if (lastComparison != 0) {
8441
        return lastComparison;
8442
      }
3430 rajveer 8443
      if (isSetSuccess()) {
8444
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8445
        if (lastComparison != 0) {
8446
          return lastComparison;
8447
        }
352 ashish 8448
      }
3430 rajveer 8449
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8450
      if (lastComparison != 0) {
8451
        return lastComparison;
8452
      }
3430 rajveer 8453
      if (isSetSe()) {
8454
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8455
        if (lastComparison != 0) {
8456
          return lastComparison;
8457
        }
352 ashish 8458
      }
8459
      return 0;
8460
    }
8461
 
3430 rajveer 8462
    public _Fields fieldForId(int fieldId) {
8463
      return _Fields.findByThriftId(fieldId);
8464
    }
8465
 
8466
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8467
      org.apache.thrift.protocol.TField field;
352 ashish 8468
      iprot.readStructBegin();
8469
      while (true)
8470
      {
8471
        field = iprot.readFieldBegin();
3430 rajveer 8472
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8473
          break;
8474
        }
3430 rajveer 8475
        switch (field.id) {
8476
          case 0: // SUCCESS
8477
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8478
              this.success = new Message();
8479
              this.success.read(iprot);
8480
            } else { 
8481
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8482
            }
8483
            break;
8484
          case 1: // SE
8485
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8486
              this.se = new HelperServiceException();
8487
              this.se.read(iprot);
8488
            } else { 
8489
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8490
            }
8491
            break;
8492
          default:
8493
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8494
        }
3430 rajveer 8495
        iprot.readFieldEnd();
352 ashish 8496
      }
8497
      iprot.readStructEnd();
8498
      validate();
8499
    }
8500
 
3430 rajveer 8501
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8502
      oprot.writeStructBegin(STRUCT_DESC);
8503
 
8504
      if (this.isSetSuccess()) {
8505
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8506
        this.success.write(oprot);
8507
        oprot.writeFieldEnd();
8508
      } else if (this.isSetSe()) {
8509
        oprot.writeFieldBegin(SE_FIELD_DESC);
8510
        this.se.write(oprot);
8511
        oprot.writeFieldEnd();
8512
      }
8513
      oprot.writeFieldStop();
8514
      oprot.writeStructEnd();
8515
    }
8516
 
8517
    @Override
8518
    public String toString() {
8519
      StringBuilder sb = new StringBuilder("getMessage_result(");
8520
      boolean first = true;
8521
 
8522
      sb.append("success:");
8523
      if (this.success == null) {
8524
        sb.append("null");
8525
      } else {
8526
        sb.append(this.success);
8527
      }
8528
      first = false;
8529
      if (!first) sb.append(", ");
8530
      sb.append("se:");
8531
      if (this.se == null) {
8532
        sb.append("null");
8533
      } else {
8534
        sb.append(this.se);
8535
      }
8536
      first = false;
8537
      sb.append(")");
8538
      return sb.toString();
8539
    }
8540
 
3430 rajveer 8541
    public void validate() throws org.apache.thrift.TException {
352 ashish 8542
      // check for required fields
8543
    }
8544
 
3430 rajveer 8545
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8546
      try {
8547
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8548
      } catch (org.apache.thrift.TException te) {
8549
        throw new java.io.IOException(te);
8550
      }
8551
    }
8552
 
8553
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8554
      try {
8555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8556
      } catch (org.apache.thrift.TException te) {
8557
        throw new java.io.IOException(te);
8558
      }
8559
    }
8560
 
352 ashish 8561
  }
8562
 
3430 rajveer 8563
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8565
 
3430 rajveer 8566
    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);
8567
    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 8568
 
3430 rajveer 8569
    private long id; // required
8570
    private Map<String,String> params; // required
352 ashish 8571
 
8572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8574
      ID((short)1, "id"),
8575
      PARAMS((short)2, "params");
8576
 
8577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8578
 
8579
      static {
8580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8581
          byName.put(field.getFieldName(), field);
8582
        }
8583
      }
8584
 
8585
      /**
8586
       * Find the _Fields constant that matches fieldId, or null if its not found.
8587
       */
8588
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8589
        switch(fieldId) {
8590
          case 1: // ID
8591
            return ID;
8592
          case 2: // PARAMS
8593
            return PARAMS;
8594
          default:
8595
            return null;
8596
        }
352 ashish 8597
      }
8598
 
8599
      /**
8600
       * Find the _Fields constant that matches fieldId, throwing an exception
8601
       * if it is not found.
8602
       */
8603
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8604
        _Fields fields = findByThriftId(fieldId);
8605
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8606
        return fields;
8607
      }
8608
 
8609
      /**
8610
       * Find the _Fields constant that matches name, or null if its not found.
8611
       */
8612
      public static _Fields findByName(String name) {
8613
        return byName.get(name);
8614
      }
8615
 
8616
      private final short _thriftId;
8617
      private final String _fieldName;
8618
 
8619
      _Fields(short thriftId, String fieldName) {
8620
        _thriftId = thriftId;
8621
        _fieldName = fieldName;
8622
      }
8623
 
8624
      public short getThriftFieldId() {
8625
        return _thriftId;
8626
      }
8627
 
8628
      public String getFieldName() {
8629
        return _fieldName;
8630
      }
8631
    }
8632
 
8633
    // isset id assignments
8634
    private static final int __ID_ISSET_ID = 0;
8635
    private BitSet __isset_bit_vector = new BitSet(1);
8636
 
3430 rajveer 8637
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8638
    static {
3430 rajveer 8639
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8640
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8642
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8643
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8644
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8645
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8646
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8647
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8648
    }
8649
 
8650
    public getSubstitutedMessage_args() {
8651
    }
8652
 
8653
    public getSubstitutedMessage_args(
8654
      long id,
8655
      Map<String,String> params)
8656
    {
8657
      this();
8658
      this.id = id;
8659
      setIdIsSet(true);
8660
      this.params = params;
8661
    }
8662
 
8663
    /**
8664
     * Performs a deep copy on <i>other</i>.
8665
     */
8666
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8667
      __isset_bit_vector.clear();
8668
      __isset_bit_vector.or(other.__isset_bit_vector);
8669
      this.id = other.id;
8670
      if (other.isSetParams()) {
8671
        Map<String,String> __this__params = new HashMap<String,String>();
8672
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8673
 
8674
          String other_element_key = other_element.getKey();
8675
          String other_element_value = other_element.getValue();
8676
 
8677
          String __this__params_copy_key = other_element_key;
8678
 
8679
          String __this__params_copy_value = other_element_value;
8680
 
8681
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8682
        }
8683
        this.params = __this__params;
8684
      }
8685
    }
8686
 
8687
    public getSubstitutedMessage_args deepCopy() {
8688
      return new getSubstitutedMessage_args(this);
8689
    }
8690
 
3430 rajveer 8691
    @Override
8692
    public void clear() {
8693
      setIdIsSet(false);
8694
      this.id = 0;
8695
      this.params = null;
352 ashish 8696
    }
8697
 
8698
    public long getId() {
8699
      return this.id;
8700
    }
8701
 
3430 rajveer 8702
    public void setId(long id) {
352 ashish 8703
      this.id = id;
8704
      setIdIsSet(true);
8705
    }
8706
 
8707
    public void unsetId() {
8708
      __isset_bit_vector.clear(__ID_ISSET_ID);
8709
    }
8710
 
3430 rajveer 8711
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8712
    public boolean isSetId() {
8713
      return __isset_bit_vector.get(__ID_ISSET_ID);
8714
    }
8715
 
8716
    public void setIdIsSet(boolean value) {
8717
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8718
    }
8719
 
8720
    public int getParamsSize() {
8721
      return (this.params == null) ? 0 : this.params.size();
8722
    }
8723
 
8724
    public void putToParams(String key, String val) {
8725
      if (this.params == null) {
8726
        this.params = new HashMap<String,String>();
8727
      }
8728
      this.params.put(key, val);
8729
    }
8730
 
8731
    public Map<String,String> getParams() {
8732
      return this.params;
8733
    }
8734
 
3430 rajveer 8735
    public void setParams(Map<String,String> params) {
352 ashish 8736
      this.params = params;
8737
    }
8738
 
8739
    public void unsetParams() {
8740
      this.params = null;
8741
    }
8742
 
3430 rajveer 8743
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8744
    public boolean isSetParams() {
8745
      return this.params != null;
8746
    }
8747
 
8748
    public void setParamsIsSet(boolean value) {
8749
      if (!value) {
8750
        this.params = null;
8751
      }
8752
    }
8753
 
8754
    public void setFieldValue(_Fields field, Object value) {
8755
      switch (field) {
8756
      case ID:
8757
        if (value == null) {
8758
          unsetId();
8759
        } else {
8760
          setId((Long)value);
8761
        }
8762
        break;
8763
 
8764
      case PARAMS:
8765
        if (value == null) {
8766
          unsetParams();
8767
        } else {
8768
          setParams((Map<String,String>)value);
8769
        }
8770
        break;
8771
 
8772
      }
8773
    }
8774
 
8775
    public Object getFieldValue(_Fields field) {
8776
      switch (field) {
8777
      case ID:
3430 rajveer 8778
        return Long.valueOf(getId());
352 ashish 8779
 
8780
      case PARAMS:
8781
        return getParams();
8782
 
8783
      }
8784
      throw new IllegalStateException();
8785
    }
8786
 
3430 rajveer 8787
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8788
    public boolean isSet(_Fields field) {
8789
      if (field == null) {
8790
        throw new IllegalArgumentException();
8791
      }
352 ashish 8792
 
8793
      switch (field) {
8794
      case ID:
8795
        return isSetId();
8796
      case PARAMS:
8797
        return isSetParams();
8798
      }
8799
      throw new IllegalStateException();
8800
    }
8801
 
8802
    @Override
8803
    public boolean equals(Object that) {
8804
      if (that == null)
8805
        return false;
8806
      if (that instanceof getSubstitutedMessage_args)
8807
        return this.equals((getSubstitutedMessage_args)that);
8808
      return false;
8809
    }
8810
 
8811
    public boolean equals(getSubstitutedMessage_args that) {
8812
      if (that == null)
8813
        return false;
8814
 
8815
      boolean this_present_id = true;
8816
      boolean that_present_id = true;
8817
      if (this_present_id || that_present_id) {
8818
        if (!(this_present_id && that_present_id))
8819
          return false;
8820
        if (this.id != that.id)
8821
          return false;
8822
      }
8823
 
8824
      boolean this_present_params = true && this.isSetParams();
8825
      boolean that_present_params = true && that.isSetParams();
8826
      if (this_present_params || that_present_params) {
8827
        if (!(this_present_params && that_present_params))
8828
          return false;
8829
        if (!this.params.equals(that.params))
8830
          return false;
8831
      }
8832
 
8833
      return true;
8834
    }
8835
 
8836
    @Override
8837
    public int hashCode() {
8838
      return 0;
8839
    }
8840
 
3430 rajveer 8841
    public int compareTo(getSubstitutedMessage_args other) {
8842
      if (!getClass().equals(other.getClass())) {
8843
        return getClass().getName().compareTo(other.getClass().getName());
8844
      }
8845
 
8846
      int lastComparison = 0;
8847
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8848
 
8849
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8850
      if (lastComparison != 0) {
8851
        return lastComparison;
8852
      }
8853
      if (isSetId()) {
8854
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8855
        if (lastComparison != 0) {
8856
          return lastComparison;
8857
        }
8858
      }
8859
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8860
      if (lastComparison != 0) {
8861
        return lastComparison;
8862
      }
8863
      if (isSetParams()) {
8864
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8865
        if (lastComparison != 0) {
8866
          return lastComparison;
8867
        }
8868
      }
8869
      return 0;
8870
    }
8871
 
8872
    public _Fields fieldForId(int fieldId) {
8873
      return _Fields.findByThriftId(fieldId);
8874
    }
8875
 
8876
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8877
      org.apache.thrift.protocol.TField field;
352 ashish 8878
      iprot.readStructBegin();
8879
      while (true)
8880
      {
8881
        field = iprot.readFieldBegin();
3430 rajveer 8882
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8883
          break;
8884
        }
3430 rajveer 8885
        switch (field.id) {
8886
          case 1: // ID
8887
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8888
              this.id = iprot.readI64();
8889
              setIdIsSet(true);
8890
            } else { 
8891
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8892
            }
8893
            break;
8894
          case 2: // PARAMS
8895
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8896
              {
5864 rajveer 8897
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8898
                this.params = new HashMap<String,String>(2*_map36.size);
8899
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8900
                {
5864 rajveer 8901
                  String _key38; // required
8902
                  String _val39; // required
8903
                  _key38 = iprot.readString();
8904
                  _val39 = iprot.readString();
8905
                  this.params.put(_key38, _val39);
352 ashish 8906
                }
3430 rajveer 8907
                iprot.readMapEnd();
352 ashish 8908
              }
3430 rajveer 8909
            } else { 
8910
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8911
            }
8912
            break;
8913
          default:
8914
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8915
        }
3430 rajveer 8916
        iprot.readFieldEnd();
352 ashish 8917
      }
8918
      iprot.readStructEnd();
8919
      validate();
8920
    }
8921
 
3430 rajveer 8922
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8923
      validate();
8924
 
8925
      oprot.writeStructBegin(STRUCT_DESC);
8926
      oprot.writeFieldBegin(ID_FIELD_DESC);
8927
      oprot.writeI64(this.id);
8928
      oprot.writeFieldEnd();
8929
      if (this.params != null) {
8930
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8931
        {
3430 rajveer 8932
          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 8933
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8934
          {
5864 rajveer 8935
            oprot.writeString(_iter40.getKey());
8936
            oprot.writeString(_iter40.getValue());
352 ashish 8937
          }
8938
          oprot.writeMapEnd();
8939
        }
8940
        oprot.writeFieldEnd();
8941
      }
8942
      oprot.writeFieldStop();
8943
      oprot.writeStructEnd();
8944
    }
8945
 
8946
    @Override
8947
    public String toString() {
8948
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8949
      boolean first = true;
8950
 
8951
      sb.append("id:");
8952
      sb.append(this.id);
8953
      first = false;
8954
      if (!first) sb.append(", ");
8955
      sb.append("params:");
8956
      if (this.params == null) {
8957
        sb.append("null");
8958
      } else {
8959
        sb.append(this.params);
8960
      }
8961
      first = false;
8962
      sb.append(")");
8963
      return sb.toString();
8964
    }
8965
 
3430 rajveer 8966
    public void validate() throws org.apache.thrift.TException {
352 ashish 8967
      // check for required fields
8968
    }
8969
 
3430 rajveer 8970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8971
      try {
8972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8973
      } catch (org.apache.thrift.TException te) {
8974
        throw new java.io.IOException(te);
8975
      }
8976
    }
8977
 
8978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8979
      try {
8980
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8981
        __isset_bit_vector = new BitSet(1);
8982
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8983
      } catch (org.apache.thrift.TException te) {
8984
        throw new java.io.IOException(te);
8985
      }
8986
    }
8987
 
352 ashish 8988
  }
8989
 
3430 rajveer 8990
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8991
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8992
 
3430 rajveer 8993
    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);
8994
    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 8995
 
3430 rajveer 8996
    private Message success; // required
8997
    private HelperServiceException se; // required
352 ashish 8998
 
8999
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9000
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9001
      SUCCESS((short)0, "success"),
9002
      SE((short)1, "se");
9003
 
9004
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9005
 
9006
      static {
9007
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9008
          byName.put(field.getFieldName(), field);
9009
        }
9010
      }
9011
 
9012
      /**
9013
       * Find the _Fields constant that matches fieldId, or null if its not found.
9014
       */
9015
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9016
        switch(fieldId) {
9017
          case 0: // SUCCESS
9018
            return SUCCESS;
9019
          case 1: // SE
9020
            return SE;
9021
          default:
9022
            return null;
9023
        }
352 ashish 9024
      }
9025
 
9026
      /**
9027
       * Find the _Fields constant that matches fieldId, throwing an exception
9028
       * if it is not found.
9029
       */
9030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9031
        _Fields fields = findByThriftId(fieldId);
9032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9033
        return fields;
9034
      }
9035
 
9036
      /**
9037
       * Find the _Fields constant that matches name, or null if its not found.
9038
       */
9039
      public static _Fields findByName(String name) {
9040
        return byName.get(name);
9041
      }
9042
 
9043
      private final short _thriftId;
9044
      private final String _fieldName;
9045
 
9046
      _Fields(short thriftId, String fieldName) {
9047
        _thriftId = thriftId;
9048
        _fieldName = fieldName;
9049
      }
9050
 
9051
      public short getThriftFieldId() {
9052
        return _thriftId;
9053
      }
9054
 
9055
      public String getFieldName() {
9056
        return _fieldName;
9057
      }
9058
    }
9059
 
9060
    // isset id assignments
9061
 
3430 rajveer 9062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9063
    static {
3430 rajveer 9064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9065
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9066
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9067
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9068
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9069
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9070
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 9071
    }
9072
 
9073
    public getSubstitutedMessage_result() {
9074
    }
9075
 
9076
    public getSubstitutedMessage_result(
9077
      Message success,
9078
      HelperServiceException se)
9079
    {
9080
      this();
9081
      this.success = success;
9082
      this.se = se;
9083
    }
9084
 
9085
    /**
9086
     * Performs a deep copy on <i>other</i>.
9087
     */
9088
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
9089
      if (other.isSetSuccess()) {
9090
        this.success = new Message(other.success);
9091
      }
9092
      if (other.isSetSe()) {
9093
        this.se = new HelperServiceException(other.se);
9094
      }
9095
    }
9096
 
9097
    public getSubstitutedMessage_result deepCopy() {
9098
      return new getSubstitutedMessage_result(this);
9099
    }
9100
 
3430 rajveer 9101
    @Override
9102
    public void clear() {
9103
      this.success = null;
9104
      this.se = null;
352 ashish 9105
    }
9106
 
9107
    public Message getSuccess() {
9108
      return this.success;
9109
    }
9110
 
3430 rajveer 9111
    public void setSuccess(Message success) {
352 ashish 9112
      this.success = success;
9113
    }
9114
 
9115
    public void unsetSuccess() {
9116
      this.success = null;
9117
    }
9118
 
3430 rajveer 9119
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9120
    public boolean isSetSuccess() {
9121
      return this.success != null;
9122
    }
9123
 
9124
    public void setSuccessIsSet(boolean value) {
9125
      if (!value) {
9126
        this.success = null;
9127
      }
9128
    }
9129
 
9130
    public HelperServiceException getSe() {
9131
      return this.se;
9132
    }
9133
 
3430 rajveer 9134
    public void setSe(HelperServiceException se) {
352 ashish 9135
      this.se = se;
9136
    }
9137
 
9138
    public void unsetSe() {
9139
      this.se = null;
9140
    }
9141
 
3430 rajveer 9142
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9143
    public boolean isSetSe() {
9144
      return this.se != null;
9145
    }
9146
 
9147
    public void setSeIsSet(boolean value) {
9148
      if (!value) {
9149
        this.se = null;
9150
      }
9151
    }
9152
 
9153
    public void setFieldValue(_Fields field, Object value) {
9154
      switch (field) {
9155
      case SUCCESS:
9156
        if (value == null) {
9157
          unsetSuccess();
9158
        } else {
9159
          setSuccess((Message)value);
9160
        }
9161
        break;
9162
 
9163
      case SE:
9164
        if (value == null) {
9165
          unsetSe();
9166
        } else {
9167
          setSe((HelperServiceException)value);
9168
        }
9169
        break;
9170
 
9171
      }
9172
    }
9173
 
9174
    public Object getFieldValue(_Fields field) {
9175
      switch (field) {
9176
      case SUCCESS:
9177
        return getSuccess();
9178
 
9179
      case SE:
9180
        return getSe();
9181
 
9182
      }
9183
      throw new IllegalStateException();
9184
    }
9185
 
3430 rajveer 9186
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9187
    public boolean isSet(_Fields field) {
9188
      if (field == null) {
9189
        throw new IllegalArgumentException();
9190
      }
352 ashish 9191
 
9192
      switch (field) {
9193
      case SUCCESS:
9194
        return isSetSuccess();
9195
      case SE:
9196
        return isSetSe();
9197
      }
9198
      throw new IllegalStateException();
9199
    }
9200
 
9201
    @Override
9202
    public boolean equals(Object that) {
9203
      if (that == null)
9204
        return false;
9205
      if (that instanceof getSubstitutedMessage_result)
9206
        return this.equals((getSubstitutedMessage_result)that);
9207
      return false;
9208
    }
9209
 
9210
    public boolean equals(getSubstitutedMessage_result that) {
9211
      if (that == null)
9212
        return false;
9213
 
9214
      boolean this_present_success = true && this.isSetSuccess();
9215
      boolean that_present_success = true && that.isSetSuccess();
9216
      if (this_present_success || that_present_success) {
9217
        if (!(this_present_success && that_present_success))
9218
          return false;
9219
        if (!this.success.equals(that.success))
9220
          return false;
9221
      }
9222
 
9223
      boolean this_present_se = true && this.isSetSe();
9224
      boolean that_present_se = true && that.isSetSe();
9225
      if (this_present_se || that_present_se) {
9226
        if (!(this_present_se && that_present_se))
9227
          return false;
9228
        if (!this.se.equals(that.se))
9229
          return false;
9230
      }
9231
 
9232
      return true;
9233
    }
9234
 
9235
    @Override
9236
    public int hashCode() {
9237
      return 0;
9238
    }
9239
 
9240
    public int compareTo(getSubstitutedMessage_result other) {
9241
      if (!getClass().equals(other.getClass())) {
9242
        return getClass().getName().compareTo(other.getClass().getName());
9243
      }
9244
 
9245
      int lastComparison = 0;
9246
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9247
 
3430 rajveer 9248
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9249
      if (lastComparison != 0) {
9250
        return lastComparison;
9251
      }
3430 rajveer 9252
      if (isSetSuccess()) {
9253
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9254
        if (lastComparison != 0) {
9255
          return lastComparison;
9256
        }
352 ashish 9257
      }
3430 rajveer 9258
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9259
      if (lastComparison != 0) {
9260
        return lastComparison;
9261
      }
3430 rajveer 9262
      if (isSetSe()) {
9263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9264
        if (lastComparison != 0) {
9265
          return lastComparison;
9266
        }
352 ashish 9267
      }
9268
      return 0;
9269
    }
9270
 
3430 rajveer 9271
    public _Fields fieldForId(int fieldId) {
9272
      return _Fields.findByThriftId(fieldId);
9273
    }
9274
 
9275
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9276
      org.apache.thrift.protocol.TField field;
352 ashish 9277
      iprot.readStructBegin();
9278
      while (true)
9279
      {
9280
        field = iprot.readFieldBegin();
3430 rajveer 9281
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9282
          break;
9283
        }
3430 rajveer 9284
        switch (field.id) {
9285
          case 0: // SUCCESS
9286
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9287
              this.success = new Message();
9288
              this.success.read(iprot);
9289
            } else { 
9290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9291
            }
9292
            break;
9293
          case 1: // SE
9294
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9295
              this.se = new HelperServiceException();
9296
              this.se.read(iprot);
9297
            } else { 
9298
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9299
            }
9300
            break;
9301
          default:
9302
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9303
        }
3430 rajveer 9304
        iprot.readFieldEnd();
352 ashish 9305
      }
9306
      iprot.readStructEnd();
9307
      validate();
9308
    }
9309
 
3430 rajveer 9310
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9311
      oprot.writeStructBegin(STRUCT_DESC);
9312
 
9313
      if (this.isSetSuccess()) {
9314
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9315
        this.success.write(oprot);
9316
        oprot.writeFieldEnd();
9317
      } else if (this.isSetSe()) {
9318
        oprot.writeFieldBegin(SE_FIELD_DESC);
9319
        this.se.write(oprot);
9320
        oprot.writeFieldEnd();
9321
      }
9322
      oprot.writeFieldStop();
9323
      oprot.writeStructEnd();
9324
    }
9325
 
9326
    @Override
9327
    public String toString() {
9328
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9329
      boolean first = true;
9330
 
9331
      sb.append("success:");
9332
      if (this.success == null) {
9333
        sb.append("null");
9334
      } else {
9335
        sb.append(this.success);
9336
      }
9337
      first = false;
9338
      if (!first) sb.append(", ");
9339
      sb.append("se:");
9340
      if (this.se == null) {
9341
        sb.append("null");
9342
      } else {
9343
        sb.append(this.se);
9344
      }
9345
      first = false;
9346
      sb.append(")");
9347
      return sb.toString();
9348
    }
9349
 
3430 rajveer 9350
    public void validate() throws org.apache.thrift.TException {
352 ashish 9351
      // check for required fields
9352
    }
9353
 
3430 rajveer 9354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9355
      try {
9356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9357
      } catch (org.apache.thrift.TException te) {
9358
        throw new java.io.IOException(te);
9359
      }
9360
    }
9361
 
9362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9363
      try {
9364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9365
      } catch (org.apache.thrift.TException te) {
9366
        throw new java.io.IOException(te);
9367
      }
9368
    }
9369
 
352 ashish 9370
  }
9371
 
3430 rajveer 9372
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9374
 
3430 rajveer 9375
    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);
9376
    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);
9377
    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 9378
 
3430 rajveer 9379
    private String username; // required
9380
    private String password; // required
9381
    private long warehouseId; // required
495 rajveer 9382
 
9383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9385
      USERNAME((short)1, "username"),
9386
      PASSWORD((short)2, "password"),
9387
      WAREHOUSE_ID((short)3, "warehouseId");
9388
 
9389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9390
 
9391
      static {
9392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9393
          byName.put(field.getFieldName(), field);
9394
        }
9395
      }
9396
 
9397
      /**
9398
       * Find the _Fields constant that matches fieldId, or null if its not found.
9399
       */
9400
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9401
        switch(fieldId) {
9402
          case 1: // USERNAME
9403
            return USERNAME;
9404
          case 2: // PASSWORD
9405
            return PASSWORD;
9406
          case 3: // WAREHOUSE_ID
9407
            return WAREHOUSE_ID;
9408
          default:
9409
            return null;
9410
        }
495 rajveer 9411
      }
9412
 
9413
      /**
9414
       * Find the _Fields constant that matches fieldId, throwing an exception
9415
       * if it is not found.
9416
       */
9417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9418
        _Fields fields = findByThriftId(fieldId);
9419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9420
        return fields;
9421
      }
9422
 
9423
      /**
9424
       * Find the _Fields constant that matches name, or null if its not found.
9425
       */
9426
      public static _Fields findByName(String name) {
9427
        return byName.get(name);
9428
      }
9429
 
9430
      private final short _thriftId;
9431
      private final String _fieldName;
9432
 
9433
      _Fields(short thriftId, String fieldName) {
9434
        _thriftId = thriftId;
9435
        _fieldName = fieldName;
9436
      }
9437
 
9438
      public short getThriftFieldId() {
9439
        return _thriftId;
9440
      }
9441
 
9442
      public String getFieldName() {
9443
        return _fieldName;
9444
      }
9445
    }
9446
 
9447
    // isset id assignments
9448
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9449
    private BitSet __isset_bit_vector = new BitSet(1);
9450
 
3430 rajveer 9451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9452
    static {
3430 rajveer 9453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9454
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9456
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9457
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9458
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9459
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9460
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9461
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9462
    }
9463
 
9464
    public addUser_args() {
9465
    }
9466
 
9467
    public addUser_args(
9468
      String username,
9469
      String password,
9470
      long warehouseId)
9471
    {
9472
      this();
9473
      this.username = username;
9474
      this.password = password;
9475
      this.warehouseId = warehouseId;
9476
      setWarehouseIdIsSet(true);
9477
    }
9478
 
9479
    /**
9480
     * Performs a deep copy on <i>other</i>.
9481
     */
9482
    public addUser_args(addUser_args other) {
9483
      __isset_bit_vector.clear();
9484
      __isset_bit_vector.or(other.__isset_bit_vector);
9485
      if (other.isSetUsername()) {
9486
        this.username = other.username;
9487
      }
9488
      if (other.isSetPassword()) {
9489
        this.password = other.password;
9490
      }
9491
      this.warehouseId = other.warehouseId;
9492
    }
9493
 
9494
    public addUser_args deepCopy() {
9495
      return new addUser_args(this);
9496
    }
9497
 
3430 rajveer 9498
    @Override
9499
    public void clear() {
9500
      this.username = null;
9501
      this.password = null;
9502
      setWarehouseIdIsSet(false);
9503
      this.warehouseId = 0;
495 rajveer 9504
    }
9505
 
9506
    public String getUsername() {
9507
      return this.username;
9508
    }
9509
 
3430 rajveer 9510
    public void setUsername(String username) {
495 rajveer 9511
      this.username = username;
9512
    }
9513
 
9514
    public void unsetUsername() {
9515
      this.username = null;
9516
    }
9517
 
3430 rajveer 9518
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9519
    public boolean isSetUsername() {
9520
      return this.username != null;
9521
    }
9522
 
9523
    public void setUsernameIsSet(boolean value) {
9524
      if (!value) {
9525
        this.username = null;
9526
      }
9527
    }
9528
 
9529
    public String getPassword() {
9530
      return this.password;
9531
    }
9532
 
3430 rajveer 9533
    public void setPassword(String password) {
495 rajveer 9534
      this.password = password;
9535
    }
9536
 
9537
    public void unsetPassword() {
9538
      this.password = null;
9539
    }
9540
 
3430 rajveer 9541
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9542
    public boolean isSetPassword() {
9543
      return this.password != null;
9544
    }
9545
 
9546
    public void setPasswordIsSet(boolean value) {
9547
      if (!value) {
9548
        this.password = null;
9549
      }
9550
    }
9551
 
9552
    public long getWarehouseId() {
9553
      return this.warehouseId;
9554
    }
9555
 
3430 rajveer 9556
    public void setWarehouseId(long warehouseId) {
495 rajveer 9557
      this.warehouseId = warehouseId;
9558
      setWarehouseIdIsSet(true);
9559
    }
9560
 
9561
    public void unsetWarehouseId() {
9562
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9563
    }
9564
 
3430 rajveer 9565
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9566
    public boolean isSetWarehouseId() {
9567
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9568
    }
9569
 
9570
    public void setWarehouseIdIsSet(boolean value) {
9571
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9572
    }
9573
 
9574
    public void setFieldValue(_Fields field, Object value) {
9575
      switch (field) {
9576
      case USERNAME:
9577
        if (value == null) {
9578
          unsetUsername();
9579
        } else {
9580
          setUsername((String)value);
9581
        }
9582
        break;
9583
 
9584
      case PASSWORD:
9585
        if (value == null) {
9586
          unsetPassword();
9587
        } else {
9588
          setPassword((String)value);
9589
        }
9590
        break;
9591
 
9592
      case WAREHOUSE_ID:
9593
        if (value == null) {
9594
          unsetWarehouseId();
9595
        } else {
9596
          setWarehouseId((Long)value);
9597
        }
9598
        break;
9599
 
9600
      }
9601
    }
9602
 
9603
    public Object getFieldValue(_Fields field) {
9604
      switch (field) {
9605
      case USERNAME:
9606
        return getUsername();
9607
 
9608
      case PASSWORD:
9609
        return getPassword();
9610
 
9611
      case WAREHOUSE_ID:
3430 rajveer 9612
        return Long.valueOf(getWarehouseId());
495 rajveer 9613
 
9614
      }
9615
      throw new IllegalStateException();
9616
    }
9617
 
3430 rajveer 9618
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9619
    public boolean isSet(_Fields field) {
9620
      if (field == null) {
9621
        throw new IllegalArgumentException();
9622
      }
495 rajveer 9623
 
9624
      switch (field) {
9625
      case USERNAME:
9626
        return isSetUsername();
9627
      case PASSWORD:
9628
        return isSetPassword();
9629
      case WAREHOUSE_ID:
9630
        return isSetWarehouseId();
9631
      }
9632
      throw new IllegalStateException();
9633
    }
9634
 
9635
    @Override
9636
    public boolean equals(Object that) {
9637
      if (that == null)
9638
        return false;
9639
      if (that instanceof addUser_args)
9640
        return this.equals((addUser_args)that);
9641
      return false;
9642
    }
9643
 
9644
    public boolean equals(addUser_args that) {
9645
      if (that == null)
9646
        return false;
9647
 
9648
      boolean this_present_username = true && this.isSetUsername();
9649
      boolean that_present_username = true && that.isSetUsername();
9650
      if (this_present_username || that_present_username) {
9651
        if (!(this_present_username && that_present_username))
9652
          return false;
9653
        if (!this.username.equals(that.username))
9654
          return false;
9655
      }
9656
 
9657
      boolean this_present_password = true && this.isSetPassword();
9658
      boolean that_present_password = true && that.isSetPassword();
9659
      if (this_present_password || that_present_password) {
9660
        if (!(this_present_password && that_present_password))
9661
          return false;
9662
        if (!this.password.equals(that.password))
9663
          return false;
9664
      }
9665
 
9666
      boolean this_present_warehouseId = true;
9667
      boolean that_present_warehouseId = true;
9668
      if (this_present_warehouseId || that_present_warehouseId) {
9669
        if (!(this_present_warehouseId && that_present_warehouseId))
9670
          return false;
9671
        if (this.warehouseId != that.warehouseId)
9672
          return false;
9673
      }
9674
 
9675
      return true;
9676
    }
9677
 
9678
    @Override
9679
    public int hashCode() {
9680
      return 0;
9681
    }
9682
 
9683
    public int compareTo(addUser_args other) {
9684
      if (!getClass().equals(other.getClass())) {
9685
        return getClass().getName().compareTo(other.getClass().getName());
9686
      }
9687
 
9688
      int lastComparison = 0;
9689
      addUser_args typedOther = (addUser_args)other;
9690
 
3430 rajveer 9691
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9692
      if (lastComparison != 0) {
9693
        return lastComparison;
9694
      }
3430 rajveer 9695
      if (isSetUsername()) {
9696
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9697
        if (lastComparison != 0) {
9698
          return lastComparison;
9699
        }
495 rajveer 9700
      }
3430 rajveer 9701
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9702
      if (lastComparison != 0) {
9703
        return lastComparison;
9704
      }
3430 rajveer 9705
      if (isSetPassword()) {
9706
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9707
        if (lastComparison != 0) {
9708
          return lastComparison;
9709
        }
495 rajveer 9710
      }
3430 rajveer 9711
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9712
      if (lastComparison != 0) {
9713
        return lastComparison;
9714
      }
3430 rajveer 9715
      if (isSetWarehouseId()) {
9716
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9717
        if (lastComparison != 0) {
9718
          return lastComparison;
9719
        }
495 rajveer 9720
      }
9721
      return 0;
9722
    }
9723
 
3430 rajveer 9724
    public _Fields fieldForId(int fieldId) {
9725
      return _Fields.findByThriftId(fieldId);
9726
    }
9727
 
9728
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9729
      org.apache.thrift.protocol.TField field;
495 rajveer 9730
      iprot.readStructBegin();
9731
      while (true)
9732
      {
9733
        field = iprot.readFieldBegin();
3430 rajveer 9734
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9735
          break;
9736
        }
3430 rajveer 9737
        switch (field.id) {
9738
          case 1: // USERNAME
9739
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9740
              this.username = iprot.readString();
9741
            } else { 
9742
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9743
            }
9744
            break;
9745
          case 2: // PASSWORD
9746
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9747
              this.password = iprot.readString();
9748
            } else { 
9749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9750
            }
9751
            break;
9752
          case 3: // WAREHOUSE_ID
9753
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9754
              this.warehouseId = iprot.readI64();
9755
              setWarehouseIdIsSet(true);
9756
            } else { 
9757
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9758
            }
9759
            break;
9760
          default:
9761
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9762
        }
3430 rajveer 9763
        iprot.readFieldEnd();
495 rajveer 9764
      }
9765
      iprot.readStructEnd();
9766
      validate();
9767
    }
9768
 
3430 rajveer 9769
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9770
      validate();
9771
 
9772
      oprot.writeStructBegin(STRUCT_DESC);
9773
      if (this.username != null) {
9774
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9775
        oprot.writeString(this.username);
9776
        oprot.writeFieldEnd();
9777
      }
9778
      if (this.password != null) {
9779
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9780
        oprot.writeString(this.password);
9781
        oprot.writeFieldEnd();
9782
      }
9783
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9784
      oprot.writeI64(this.warehouseId);
9785
      oprot.writeFieldEnd();
9786
      oprot.writeFieldStop();
9787
      oprot.writeStructEnd();
9788
    }
9789
 
9790
    @Override
9791
    public String toString() {
9792
      StringBuilder sb = new StringBuilder("addUser_args(");
9793
      boolean first = true;
9794
 
9795
      sb.append("username:");
9796
      if (this.username == null) {
9797
        sb.append("null");
9798
      } else {
9799
        sb.append(this.username);
9800
      }
9801
      first = false;
9802
      if (!first) sb.append(", ");
9803
      sb.append("password:");
9804
      if (this.password == null) {
9805
        sb.append("null");
9806
      } else {
9807
        sb.append(this.password);
9808
      }
9809
      first = false;
9810
      if (!first) sb.append(", ");
9811
      sb.append("warehouseId:");
9812
      sb.append(this.warehouseId);
9813
      first = false;
9814
      sb.append(")");
9815
      return sb.toString();
9816
    }
9817
 
3430 rajveer 9818
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9819
      // check for required fields
9820
    }
9821
 
3430 rajveer 9822
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9823
      try {
9824
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9825
      } catch (org.apache.thrift.TException te) {
9826
        throw new java.io.IOException(te);
9827
      }
9828
    }
9829
 
9830
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9831
      try {
9832
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9833
        __isset_bit_vector = new BitSet(1);
9834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9835
      } catch (org.apache.thrift.TException te) {
9836
        throw new java.io.IOException(te);
9837
      }
9838
    }
9839
 
495 rajveer 9840
  }
9841
 
3430 rajveer 9842
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9844
 
3430 rajveer 9845
    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);
9846
    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 9847
 
3430 rajveer 9848
    private boolean success; // required
9849
    private HelperServiceException se; // required
495 rajveer 9850
 
9851
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9852
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9853
      SUCCESS((short)0, "success"),
9854
      SE((short)1, "se");
9855
 
9856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9857
 
9858
      static {
9859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9860
          byName.put(field.getFieldName(), field);
9861
        }
9862
      }
9863
 
9864
      /**
9865
       * Find the _Fields constant that matches fieldId, or null if its not found.
9866
       */
9867
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9868
        switch(fieldId) {
9869
          case 0: // SUCCESS
9870
            return SUCCESS;
9871
          case 1: // SE
9872
            return SE;
9873
          default:
9874
            return null;
9875
        }
495 rajveer 9876
      }
9877
 
9878
      /**
9879
       * Find the _Fields constant that matches fieldId, throwing an exception
9880
       * if it is not found.
9881
       */
9882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9883
        _Fields fields = findByThriftId(fieldId);
9884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9885
        return fields;
9886
      }
9887
 
9888
      /**
9889
       * Find the _Fields constant that matches name, or null if its not found.
9890
       */
9891
      public static _Fields findByName(String name) {
9892
        return byName.get(name);
9893
      }
9894
 
9895
      private final short _thriftId;
9896
      private final String _fieldName;
9897
 
9898
      _Fields(short thriftId, String fieldName) {
9899
        _thriftId = thriftId;
9900
        _fieldName = fieldName;
9901
      }
9902
 
9903
      public short getThriftFieldId() {
9904
        return _thriftId;
9905
      }
9906
 
9907
      public String getFieldName() {
9908
        return _fieldName;
9909
      }
9910
    }
9911
 
9912
    // isset id assignments
9913
    private static final int __SUCCESS_ISSET_ID = 0;
9914
    private BitSet __isset_bit_vector = new BitSet(1);
9915
 
3430 rajveer 9916
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9917
    static {
3430 rajveer 9918
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9919
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9920
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9921
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9922
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9923
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9924
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9925
    }
9926
 
9927
    public addUser_result() {
9928
    }
9929
 
9930
    public addUser_result(
9931
      boolean success,
9932
      HelperServiceException se)
9933
    {
9934
      this();
9935
      this.success = success;
9936
      setSuccessIsSet(true);
9937
      this.se = se;
9938
    }
9939
 
9940
    /**
9941
     * Performs a deep copy on <i>other</i>.
9942
     */
9943
    public addUser_result(addUser_result other) {
9944
      __isset_bit_vector.clear();
9945
      __isset_bit_vector.or(other.__isset_bit_vector);
9946
      this.success = other.success;
9947
      if (other.isSetSe()) {
9948
        this.se = new HelperServiceException(other.se);
9949
      }
9950
    }
9951
 
9952
    public addUser_result deepCopy() {
9953
      return new addUser_result(this);
9954
    }
9955
 
3430 rajveer 9956
    @Override
9957
    public void clear() {
9958
      setSuccessIsSet(false);
9959
      this.success = false;
9960
      this.se = null;
495 rajveer 9961
    }
9962
 
9963
    public boolean isSuccess() {
9964
      return this.success;
9965
    }
9966
 
3430 rajveer 9967
    public void setSuccess(boolean success) {
495 rajveer 9968
      this.success = success;
9969
      setSuccessIsSet(true);
9970
    }
9971
 
9972
    public void unsetSuccess() {
9973
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9974
    }
9975
 
3430 rajveer 9976
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9977
    public boolean isSetSuccess() {
9978
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9979
    }
9980
 
9981
    public void setSuccessIsSet(boolean value) {
9982
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9983
    }
9984
 
9985
    public HelperServiceException getSe() {
9986
      return this.se;
9987
    }
9988
 
3430 rajveer 9989
    public void setSe(HelperServiceException se) {
495 rajveer 9990
      this.se = se;
9991
    }
9992
 
9993
    public void unsetSe() {
9994
      this.se = null;
9995
    }
9996
 
3430 rajveer 9997
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9998
    public boolean isSetSe() {
9999
      return this.se != null;
10000
    }
10001
 
10002
    public void setSeIsSet(boolean value) {
10003
      if (!value) {
10004
        this.se = null;
10005
      }
10006
    }
10007
 
10008
    public void setFieldValue(_Fields field, Object value) {
10009
      switch (field) {
10010
      case SUCCESS:
10011
        if (value == null) {
10012
          unsetSuccess();
10013
        } else {
10014
          setSuccess((Boolean)value);
10015
        }
10016
        break;
10017
 
10018
      case SE:
10019
        if (value == null) {
10020
          unsetSe();
10021
        } else {
10022
          setSe((HelperServiceException)value);
10023
        }
10024
        break;
10025
 
10026
      }
10027
    }
10028
 
10029
    public Object getFieldValue(_Fields field) {
10030
      switch (field) {
10031
      case SUCCESS:
3430 rajveer 10032
        return Boolean.valueOf(isSuccess());
495 rajveer 10033
 
10034
      case SE:
10035
        return getSe();
10036
 
10037
      }
10038
      throw new IllegalStateException();
10039
    }
10040
 
3430 rajveer 10041
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10042
    public boolean isSet(_Fields field) {
10043
      if (field == null) {
10044
        throw new IllegalArgumentException();
10045
      }
495 rajveer 10046
 
10047
      switch (field) {
10048
      case SUCCESS:
10049
        return isSetSuccess();
10050
      case SE:
10051
        return isSetSe();
10052
      }
10053
      throw new IllegalStateException();
10054
    }
10055
 
10056
    @Override
10057
    public boolean equals(Object that) {
10058
      if (that == null)
10059
        return false;
10060
      if (that instanceof addUser_result)
10061
        return this.equals((addUser_result)that);
10062
      return false;
10063
    }
10064
 
10065
    public boolean equals(addUser_result that) {
10066
      if (that == null)
10067
        return false;
10068
 
10069
      boolean this_present_success = true;
10070
      boolean that_present_success = true;
10071
      if (this_present_success || that_present_success) {
10072
        if (!(this_present_success && that_present_success))
10073
          return false;
10074
        if (this.success != that.success)
10075
          return false;
10076
      }
10077
 
10078
      boolean this_present_se = true && this.isSetSe();
10079
      boolean that_present_se = true && that.isSetSe();
10080
      if (this_present_se || that_present_se) {
10081
        if (!(this_present_se && that_present_se))
10082
          return false;
10083
        if (!this.se.equals(that.se))
10084
          return false;
10085
      }
10086
 
10087
      return true;
10088
    }
10089
 
10090
    @Override
10091
    public int hashCode() {
10092
      return 0;
10093
    }
10094
 
10095
    public int compareTo(addUser_result other) {
10096
      if (!getClass().equals(other.getClass())) {
10097
        return getClass().getName().compareTo(other.getClass().getName());
10098
      }
10099
 
10100
      int lastComparison = 0;
10101
      addUser_result typedOther = (addUser_result)other;
10102
 
3430 rajveer 10103
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10104
      if (lastComparison != 0) {
10105
        return lastComparison;
10106
      }
3430 rajveer 10107
      if (isSetSuccess()) {
10108
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10109
        if (lastComparison != 0) {
10110
          return lastComparison;
10111
        }
495 rajveer 10112
      }
3430 rajveer 10113
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10114
      if (lastComparison != 0) {
10115
        return lastComparison;
10116
      }
3430 rajveer 10117
      if (isSetSe()) {
10118
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10119
        if (lastComparison != 0) {
10120
          return lastComparison;
10121
        }
495 rajveer 10122
      }
10123
      return 0;
10124
    }
10125
 
3430 rajveer 10126
    public _Fields fieldForId(int fieldId) {
10127
      return _Fields.findByThriftId(fieldId);
10128
    }
10129
 
10130
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10131
      org.apache.thrift.protocol.TField field;
495 rajveer 10132
      iprot.readStructBegin();
10133
      while (true)
10134
      {
10135
        field = iprot.readFieldBegin();
3430 rajveer 10136
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10137
          break;
10138
        }
3430 rajveer 10139
        switch (field.id) {
10140
          case 0: // SUCCESS
10141
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10142
              this.success = iprot.readBool();
10143
              setSuccessIsSet(true);
10144
            } else { 
10145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10146
            }
10147
            break;
10148
          case 1: // SE
10149
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10150
              this.se = new HelperServiceException();
10151
              this.se.read(iprot);
10152
            } else { 
10153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10154
            }
10155
            break;
10156
          default:
10157
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10158
        }
3430 rajveer 10159
        iprot.readFieldEnd();
495 rajveer 10160
      }
10161
      iprot.readStructEnd();
10162
      validate();
10163
    }
10164
 
3430 rajveer 10165
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10166
      oprot.writeStructBegin(STRUCT_DESC);
10167
 
10168
      if (this.isSetSuccess()) {
10169
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10170
        oprot.writeBool(this.success);
10171
        oprot.writeFieldEnd();
10172
      } else if (this.isSetSe()) {
10173
        oprot.writeFieldBegin(SE_FIELD_DESC);
10174
        this.se.write(oprot);
10175
        oprot.writeFieldEnd();
10176
      }
10177
      oprot.writeFieldStop();
10178
      oprot.writeStructEnd();
10179
    }
10180
 
10181
    @Override
10182
    public String toString() {
10183
      StringBuilder sb = new StringBuilder("addUser_result(");
10184
      boolean first = true;
10185
 
10186
      sb.append("success:");
10187
      sb.append(this.success);
10188
      first = false;
10189
      if (!first) sb.append(", ");
10190
      sb.append("se:");
10191
      if (this.se == null) {
10192
        sb.append("null");
10193
      } else {
10194
        sb.append(this.se);
10195
      }
10196
      first = false;
10197
      sb.append(")");
10198
      return sb.toString();
10199
    }
10200
 
3430 rajveer 10201
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10202
      // check for required fields
10203
    }
10204
 
3430 rajveer 10205
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10206
      try {
10207
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10208
      } catch (org.apache.thrift.TException te) {
10209
        throw new java.io.IOException(te);
10210
      }
10211
    }
10212
 
10213
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10214
      try {
10215
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10216
      } catch (org.apache.thrift.TException te) {
10217
        throw new java.io.IOException(te);
10218
      }
10219
    }
10220
 
495 rajveer 10221
  }
10222
 
3430 rajveer 10223
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10224
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 10225
 
3430 rajveer 10226
    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 10227
 
3430 rajveer 10228
    private String username; // required
495 rajveer 10229
 
10230
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10231
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10232
      USERNAME((short)1, "username");
10233
 
10234
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10235
 
10236
      static {
10237
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10238
          byName.put(field.getFieldName(), field);
10239
        }
10240
      }
10241
 
10242
      /**
10243
       * Find the _Fields constant that matches fieldId, or null if its not found.
10244
       */
10245
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10246
        switch(fieldId) {
10247
          case 1: // USERNAME
10248
            return USERNAME;
10249
          default:
10250
            return null;
10251
        }
495 rajveer 10252
      }
10253
 
10254
      /**
10255
       * Find the _Fields constant that matches fieldId, throwing an exception
10256
       * if it is not found.
10257
       */
10258
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10259
        _Fields fields = findByThriftId(fieldId);
10260
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10261
        return fields;
10262
      }
10263
 
10264
      /**
10265
       * Find the _Fields constant that matches name, or null if its not found.
10266
       */
10267
      public static _Fields findByName(String name) {
10268
        return byName.get(name);
10269
      }
10270
 
10271
      private final short _thriftId;
10272
      private final String _fieldName;
10273
 
10274
      _Fields(short thriftId, String fieldName) {
10275
        _thriftId = thriftId;
10276
        _fieldName = fieldName;
10277
      }
10278
 
10279
      public short getThriftFieldId() {
10280
        return _thriftId;
10281
      }
10282
 
10283
      public String getFieldName() {
10284
        return _fieldName;
10285
      }
10286
    }
10287
 
10288
    // isset id assignments
10289
 
3430 rajveer 10290
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10291
    static {
3430 rajveer 10292
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10293
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10295
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10296
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10297
    }
10298
 
10299
    public deleteUser_args() {
10300
    }
10301
 
10302
    public deleteUser_args(
10303
      String username)
10304
    {
10305
      this();
10306
      this.username = username;
10307
    }
10308
 
10309
    /**
10310
     * Performs a deep copy on <i>other</i>.
10311
     */
10312
    public deleteUser_args(deleteUser_args other) {
10313
      if (other.isSetUsername()) {
10314
        this.username = other.username;
10315
      }
10316
    }
10317
 
10318
    public deleteUser_args deepCopy() {
10319
      return new deleteUser_args(this);
10320
    }
10321
 
3430 rajveer 10322
    @Override
10323
    public void clear() {
10324
      this.username = null;
495 rajveer 10325
    }
10326
 
10327
    public String getUsername() {
10328
      return this.username;
10329
    }
10330
 
3430 rajveer 10331
    public void setUsername(String username) {
495 rajveer 10332
      this.username = username;
10333
    }
10334
 
10335
    public void unsetUsername() {
10336
      this.username = null;
10337
    }
10338
 
3430 rajveer 10339
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10340
    public boolean isSetUsername() {
10341
      return this.username != null;
10342
    }
10343
 
10344
    public void setUsernameIsSet(boolean value) {
10345
      if (!value) {
10346
        this.username = null;
10347
      }
10348
    }
10349
 
10350
    public void setFieldValue(_Fields field, Object value) {
10351
      switch (field) {
10352
      case USERNAME:
10353
        if (value == null) {
10354
          unsetUsername();
10355
        } else {
10356
          setUsername((String)value);
10357
        }
10358
        break;
10359
 
10360
      }
10361
    }
10362
 
10363
    public Object getFieldValue(_Fields field) {
10364
      switch (field) {
10365
      case USERNAME:
10366
        return getUsername();
10367
 
10368
      }
10369
      throw new IllegalStateException();
10370
    }
10371
 
3430 rajveer 10372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10373
    public boolean isSet(_Fields field) {
10374
      if (field == null) {
10375
        throw new IllegalArgumentException();
10376
      }
495 rajveer 10377
 
10378
      switch (field) {
10379
      case USERNAME:
10380
        return isSetUsername();
10381
      }
10382
      throw new IllegalStateException();
10383
    }
10384
 
10385
    @Override
10386
    public boolean equals(Object that) {
10387
      if (that == null)
10388
        return false;
10389
      if (that instanceof deleteUser_args)
10390
        return this.equals((deleteUser_args)that);
10391
      return false;
10392
    }
10393
 
10394
    public boolean equals(deleteUser_args that) {
10395
      if (that == null)
10396
        return false;
10397
 
10398
      boolean this_present_username = true && this.isSetUsername();
10399
      boolean that_present_username = true && that.isSetUsername();
10400
      if (this_present_username || that_present_username) {
10401
        if (!(this_present_username && that_present_username))
10402
          return false;
10403
        if (!this.username.equals(that.username))
10404
          return false;
10405
      }
10406
 
10407
      return true;
10408
    }
10409
 
10410
    @Override
10411
    public int hashCode() {
10412
      return 0;
10413
    }
10414
 
10415
    public int compareTo(deleteUser_args other) {
10416
      if (!getClass().equals(other.getClass())) {
10417
        return getClass().getName().compareTo(other.getClass().getName());
10418
      }
10419
 
10420
      int lastComparison = 0;
10421
      deleteUser_args typedOther = (deleteUser_args)other;
10422
 
3430 rajveer 10423
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10424
      if (lastComparison != 0) {
10425
        return lastComparison;
10426
      }
3430 rajveer 10427
      if (isSetUsername()) {
10428
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10429
        if (lastComparison != 0) {
10430
          return lastComparison;
10431
        }
495 rajveer 10432
      }
10433
      return 0;
10434
    }
10435
 
3430 rajveer 10436
    public _Fields fieldForId(int fieldId) {
10437
      return _Fields.findByThriftId(fieldId);
10438
    }
10439
 
10440
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10441
      org.apache.thrift.protocol.TField field;
495 rajveer 10442
      iprot.readStructBegin();
10443
      while (true)
10444
      {
10445
        field = iprot.readFieldBegin();
3430 rajveer 10446
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10447
          break;
10448
        }
3430 rajveer 10449
        switch (field.id) {
10450
          case 1: // USERNAME
10451
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10452
              this.username = iprot.readString();
10453
            } else { 
10454
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10455
            }
10456
            break;
10457
          default:
10458
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10459
        }
3430 rajveer 10460
        iprot.readFieldEnd();
495 rajveer 10461
      }
10462
      iprot.readStructEnd();
10463
      validate();
10464
    }
10465
 
3430 rajveer 10466
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10467
      validate();
10468
 
10469
      oprot.writeStructBegin(STRUCT_DESC);
10470
      if (this.username != null) {
10471
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10472
        oprot.writeString(this.username);
10473
        oprot.writeFieldEnd();
10474
      }
10475
      oprot.writeFieldStop();
10476
      oprot.writeStructEnd();
10477
    }
10478
 
10479
    @Override
10480
    public String toString() {
10481
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10482
      boolean first = true;
10483
 
10484
      sb.append("username:");
10485
      if (this.username == null) {
10486
        sb.append("null");
10487
      } else {
10488
        sb.append(this.username);
10489
      }
10490
      first = false;
10491
      sb.append(")");
10492
      return sb.toString();
10493
    }
10494
 
3430 rajveer 10495
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10496
      // check for required fields
10497
    }
10498
 
3430 rajveer 10499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10500
      try {
10501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10502
      } catch (org.apache.thrift.TException te) {
10503
        throw new java.io.IOException(te);
10504
      }
10505
    }
10506
 
10507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10508
      try {
10509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10510
      } catch (org.apache.thrift.TException te) {
10511
        throw new java.io.IOException(te);
10512
      }
10513
    }
10514
 
495 rajveer 10515
  }
10516
 
3430 rajveer 10517
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10519
 
3430 rajveer 10520
    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);
10521
    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 10522
 
3430 rajveer 10523
    private boolean success; // required
10524
    private HelperServiceException se; // required
495 rajveer 10525
 
10526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10528
      SUCCESS((short)0, "success"),
10529
      SE((short)1, "se");
10530
 
10531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10532
 
10533
      static {
10534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10535
          byName.put(field.getFieldName(), field);
10536
        }
10537
      }
10538
 
10539
      /**
10540
       * Find the _Fields constant that matches fieldId, or null if its not found.
10541
       */
10542
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10543
        switch(fieldId) {
10544
          case 0: // SUCCESS
10545
            return SUCCESS;
10546
          case 1: // SE
10547
            return SE;
10548
          default:
10549
            return null;
10550
        }
495 rajveer 10551
      }
10552
 
10553
      /**
10554
       * Find the _Fields constant that matches fieldId, throwing an exception
10555
       * if it is not found.
10556
       */
10557
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10558
        _Fields fields = findByThriftId(fieldId);
10559
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10560
        return fields;
10561
      }
10562
 
10563
      /**
10564
       * Find the _Fields constant that matches name, or null if its not found.
10565
       */
10566
      public static _Fields findByName(String name) {
10567
        return byName.get(name);
10568
      }
10569
 
10570
      private final short _thriftId;
10571
      private final String _fieldName;
10572
 
10573
      _Fields(short thriftId, String fieldName) {
10574
        _thriftId = thriftId;
10575
        _fieldName = fieldName;
10576
      }
10577
 
10578
      public short getThriftFieldId() {
10579
        return _thriftId;
10580
      }
10581
 
10582
      public String getFieldName() {
10583
        return _fieldName;
10584
      }
10585
    }
10586
 
10587
    // isset id assignments
10588
    private static final int __SUCCESS_ISSET_ID = 0;
10589
    private BitSet __isset_bit_vector = new BitSet(1);
10590
 
3430 rajveer 10591
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10592
    static {
3430 rajveer 10593
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10594
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10595
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10596
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10597
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10598
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10599
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10600
    }
10601
 
10602
    public deleteUser_result() {
10603
    }
10604
 
10605
    public deleteUser_result(
10606
      boolean success,
10607
      HelperServiceException se)
10608
    {
10609
      this();
10610
      this.success = success;
10611
      setSuccessIsSet(true);
10612
      this.se = se;
10613
    }
10614
 
10615
    /**
10616
     * Performs a deep copy on <i>other</i>.
10617
     */
10618
    public deleteUser_result(deleteUser_result other) {
10619
      __isset_bit_vector.clear();
10620
      __isset_bit_vector.or(other.__isset_bit_vector);
10621
      this.success = other.success;
10622
      if (other.isSetSe()) {
10623
        this.se = new HelperServiceException(other.se);
10624
      }
10625
    }
10626
 
10627
    public deleteUser_result deepCopy() {
10628
      return new deleteUser_result(this);
10629
    }
10630
 
3430 rajveer 10631
    @Override
10632
    public void clear() {
10633
      setSuccessIsSet(false);
10634
      this.success = false;
10635
      this.se = null;
495 rajveer 10636
    }
10637
 
10638
    public boolean isSuccess() {
10639
      return this.success;
10640
    }
10641
 
3430 rajveer 10642
    public void setSuccess(boolean success) {
495 rajveer 10643
      this.success = success;
10644
      setSuccessIsSet(true);
10645
    }
10646
 
10647
    public void unsetSuccess() {
10648
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10649
    }
10650
 
3430 rajveer 10651
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10652
    public boolean isSetSuccess() {
10653
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10654
    }
10655
 
10656
    public void setSuccessIsSet(boolean value) {
10657
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10658
    }
10659
 
10660
    public HelperServiceException getSe() {
10661
      return this.se;
10662
    }
10663
 
3430 rajveer 10664
    public void setSe(HelperServiceException se) {
495 rajveer 10665
      this.se = se;
10666
    }
10667
 
10668
    public void unsetSe() {
10669
      this.se = null;
10670
    }
10671
 
3430 rajveer 10672
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10673
    public boolean isSetSe() {
10674
      return this.se != null;
10675
    }
10676
 
10677
    public void setSeIsSet(boolean value) {
10678
      if (!value) {
10679
        this.se = null;
10680
      }
10681
    }
10682
 
10683
    public void setFieldValue(_Fields field, Object value) {
10684
      switch (field) {
10685
      case SUCCESS:
10686
        if (value == null) {
10687
          unsetSuccess();
10688
        } else {
10689
          setSuccess((Boolean)value);
10690
        }
10691
        break;
10692
 
10693
      case SE:
10694
        if (value == null) {
10695
          unsetSe();
10696
        } else {
10697
          setSe((HelperServiceException)value);
10698
        }
10699
        break;
10700
 
10701
      }
10702
    }
10703
 
10704
    public Object getFieldValue(_Fields field) {
10705
      switch (field) {
10706
      case SUCCESS:
3430 rajveer 10707
        return Boolean.valueOf(isSuccess());
495 rajveer 10708
 
10709
      case SE:
10710
        return getSe();
10711
 
10712
      }
10713
      throw new IllegalStateException();
10714
    }
10715
 
3430 rajveer 10716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10717
    public boolean isSet(_Fields field) {
10718
      if (field == null) {
10719
        throw new IllegalArgumentException();
10720
      }
495 rajveer 10721
 
10722
      switch (field) {
10723
      case SUCCESS:
10724
        return isSetSuccess();
10725
      case SE:
10726
        return isSetSe();
10727
      }
10728
      throw new IllegalStateException();
10729
    }
10730
 
10731
    @Override
10732
    public boolean equals(Object that) {
10733
      if (that == null)
10734
        return false;
10735
      if (that instanceof deleteUser_result)
10736
        return this.equals((deleteUser_result)that);
10737
      return false;
10738
    }
10739
 
10740
    public boolean equals(deleteUser_result that) {
10741
      if (that == null)
10742
        return false;
10743
 
10744
      boolean this_present_success = true;
10745
      boolean that_present_success = true;
10746
      if (this_present_success || that_present_success) {
10747
        if (!(this_present_success && that_present_success))
10748
          return false;
10749
        if (this.success != that.success)
10750
          return false;
10751
      }
10752
 
10753
      boolean this_present_se = true && this.isSetSe();
10754
      boolean that_present_se = true && that.isSetSe();
10755
      if (this_present_se || that_present_se) {
10756
        if (!(this_present_se && that_present_se))
10757
          return false;
10758
        if (!this.se.equals(that.se))
10759
          return false;
10760
      }
10761
 
10762
      return true;
10763
    }
10764
 
10765
    @Override
10766
    public int hashCode() {
10767
      return 0;
10768
    }
10769
 
10770
    public int compareTo(deleteUser_result other) {
10771
      if (!getClass().equals(other.getClass())) {
10772
        return getClass().getName().compareTo(other.getClass().getName());
10773
      }
10774
 
10775
      int lastComparison = 0;
10776
      deleteUser_result typedOther = (deleteUser_result)other;
10777
 
3430 rajveer 10778
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10779
      if (lastComparison != 0) {
10780
        return lastComparison;
10781
      }
3430 rajveer 10782
      if (isSetSuccess()) {
10783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10784
        if (lastComparison != 0) {
10785
          return lastComparison;
10786
        }
495 rajveer 10787
      }
3430 rajveer 10788
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10789
      if (lastComparison != 0) {
10790
        return lastComparison;
10791
      }
3430 rajveer 10792
      if (isSetSe()) {
10793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10794
        if (lastComparison != 0) {
10795
          return lastComparison;
10796
        }
495 rajveer 10797
      }
10798
      return 0;
10799
    }
10800
 
3430 rajveer 10801
    public _Fields fieldForId(int fieldId) {
10802
      return _Fields.findByThriftId(fieldId);
10803
    }
10804
 
10805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10806
      org.apache.thrift.protocol.TField field;
495 rajveer 10807
      iprot.readStructBegin();
10808
      while (true)
10809
      {
10810
        field = iprot.readFieldBegin();
3430 rajveer 10811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10812
          break;
10813
        }
3430 rajveer 10814
        switch (field.id) {
10815
          case 0: // SUCCESS
10816
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10817
              this.success = iprot.readBool();
10818
              setSuccessIsSet(true);
10819
            } else { 
10820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10821
            }
10822
            break;
10823
          case 1: // SE
10824
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10825
              this.se = new HelperServiceException();
10826
              this.se.read(iprot);
10827
            } else { 
10828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10829
            }
10830
            break;
10831
          default:
10832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10833
        }
3430 rajveer 10834
        iprot.readFieldEnd();
495 rajveer 10835
      }
10836
      iprot.readStructEnd();
10837
      validate();
10838
    }
10839
 
3430 rajveer 10840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10841
      oprot.writeStructBegin(STRUCT_DESC);
10842
 
10843
      if (this.isSetSuccess()) {
10844
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10845
        oprot.writeBool(this.success);
10846
        oprot.writeFieldEnd();
10847
      } else if (this.isSetSe()) {
10848
        oprot.writeFieldBegin(SE_FIELD_DESC);
10849
        this.se.write(oprot);
10850
        oprot.writeFieldEnd();
10851
      }
10852
      oprot.writeFieldStop();
10853
      oprot.writeStructEnd();
10854
    }
10855
 
10856
    @Override
10857
    public String toString() {
10858
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10859
      boolean first = true;
10860
 
10861
      sb.append("success:");
10862
      sb.append(this.success);
10863
      first = false;
10864
      if (!first) sb.append(", ");
10865
      sb.append("se:");
10866
      if (this.se == null) {
10867
        sb.append("null");
10868
      } else {
10869
        sb.append(this.se);
10870
      }
10871
      first = false;
10872
      sb.append(")");
10873
      return sb.toString();
10874
    }
10875
 
3430 rajveer 10876
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10877
      // check for required fields
10878
    }
10879
 
3430 rajveer 10880
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10881
      try {
10882
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10883
      } catch (org.apache.thrift.TException te) {
10884
        throw new java.io.IOException(te);
10885
      }
10886
    }
10887
 
10888
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10889
      try {
10890
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10891
      } catch (org.apache.thrift.TException te) {
10892
        throw new java.io.IOException(te);
10893
      }
10894
    }
10895
 
495 rajveer 10896
  }
10897
 
3430 rajveer 10898
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10899
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10900
 
3430 rajveer 10901
    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);
10902
    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 10903
 
3430 rajveer 10904
    private String username; // required
10905
    private String password; // required
495 rajveer 10906
 
10907
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10908
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10909
      USERNAME((short)1, "username"),
10910
      PASSWORD((short)2, "password");
10911
 
10912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10913
 
10914
      static {
10915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10916
          byName.put(field.getFieldName(), field);
10917
        }
10918
      }
10919
 
10920
      /**
10921
       * Find the _Fields constant that matches fieldId, or null if its not found.
10922
       */
10923
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10924
        switch(fieldId) {
10925
          case 1: // USERNAME
10926
            return USERNAME;
10927
          case 2: // PASSWORD
10928
            return PASSWORD;
10929
          default:
10930
            return null;
10931
        }
495 rajveer 10932
      }
10933
 
10934
      /**
10935
       * Find the _Fields constant that matches fieldId, throwing an exception
10936
       * if it is not found.
10937
       */
10938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10939
        _Fields fields = findByThriftId(fieldId);
10940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10941
        return fields;
10942
      }
10943
 
10944
      /**
10945
       * Find the _Fields constant that matches name, or null if its not found.
10946
       */
10947
      public static _Fields findByName(String name) {
10948
        return byName.get(name);
10949
      }
10950
 
10951
      private final short _thriftId;
10952
      private final String _fieldName;
10953
 
10954
      _Fields(short thriftId, String fieldName) {
10955
        _thriftId = thriftId;
10956
        _fieldName = fieldName;
10957
      }
10958
 
10959
      public short getThriftFieldId() {
10960
        return _thriftId;
10961
      }
10962
 
10963
      public String getFieldName() {
10964
        return _fieldName;
10965
      }
10966
    }
10967
 
10968
    // isset id assignments
10969
 
3430 rajveer 10970
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10971
    static {
3430 rajveer 10972
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10973
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10974
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10975
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10977
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10978
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10979
    }
10980
 
2443 chandransh 10981
    public authenticateDashboardUser_args() {
495 rajveer 10982
    }
10983
 
2443 chandransh 10984
    public authenticateDashboardUser_args(
495 rajveer 10985
      String username,
10986
      String password)
10987
    {
10988
      this();
10989
      this.username = username;
10990
      this.password = password;
10991
    }
10992
 
10993
    /**
10994
     * Performs a deep copy on <i>other</i>.
10995
     */
2443 chandransh 10996
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10997
      if (other.isSetUsername()) {
10998
        this.username = other.username;
10999
      }
11000
      if (other.isSetPassword()) {
11001
        this.password = other.password;
11002
      }
11003
    }
11004
 
2443 chandransh 11005
    public authenticateDashboardUser_args deepCopy() {
11006
      return new authenticateDashboardUser_args(this);
495 rajveer 11007
    }
11008
 
3430 rajveer 11009
    @Override
11010
    public void clear() {
11011
      this.username = null;
11012
      this.password = null;
495 rajveer 11013
    }
11014
 
11015
    public String getUsername() {
11016
      return this.username;
11017
    }
11018
 
3430 rajveer 11019
    public void setUsername(String username) {
495 rajveer 11020
      this.username = username;
11021
    }
11022
 
11023
    public void unsetUsername() {
11024
      this.username = null;
11025
    }
11026
 
3430 rajveer 11027
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11028
    public boolean isSetUsername() {
11029
      return this.username != null;
11030
    }
11031
 
11032
    public void setUsernameIsSet(boolean value) {
11033
      if (!value) {
11034
        this.username = null;
11035
      }
11036
    }
11037
 
11038
    public String getPassword() {
11039
      return this.password;
11040
    }
11041
 
3430 rajveer 11042
    public void setPassword(String password) {
495 rajveer 11043
      this.password = password;
11044
    }
11045
 
11046
    public void unsetPassword() {
11047
      this.password = null;
11048
    }
11049
 
3430 rajveer 11050
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 11051
    public boolean isSetPassword() {
11052
      return this.password != null;
11053
    }
11054
 
11055
    public void setPasswordIsSet(boolean value) {
11056
      if (!value) {
11057
        this.password = null;
11058
      }
11059
    }
11060
 
11061
    public void setFieldValue(_Fields field, Object value) {
11062
      switch (field) {
11063
      case USERNAME:
11064
        if (value == null) {
11065
          unsetUsername();
11066
        } else {
11067
          setUsername((String)value);
11068
        }
11069
        break;
11070
 
11071
      case PASSWORD:
11072
        if (value == null) {
11073
          unsetPassword();
11074
        } else {
11075
          setPassword((String)value);
11076
        }
11077
        break;
11078
 
11079
      }
11080
    }
11081
 
11082
    public Object getFieldValue(_Fields field) {
11083
      switch (field) {
11084
      case USERNAME:
11085
        return getUsername();
11086
 
11087
      case PASSWORD:
11088
        return getPassword();
11089
 
11090
      }
11091
      throw new IllegalStateException();
11092
    }
11093
 
3430 rajveer 11094
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11095
    public boolean isSet(_Fields field) {
11096
      if (field == null) {
11097
        throw new IllegalArgumentException();
11098
      }
495 rajveer 11099
 
11100
      switch (field) {
11101
      case USERNAME:
11102
        return isSetUsername();
11103
      case PASSWORD:
11104
        return isSetPassword();
11105
      }
11106
      throw new IllegalStateException();
11107
    }
11108
 
11109
    @Override
11110
    public boolean equals(Object that) {
11111
      if (that == null)
11112
        return false;
2443 chandransh 11113
      if (that instanceof authenticateDashboardUser_args)
11114
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 11115
      return false;
11116
    }
11117
 
2443 chandransh 11118
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 11119
      if (that == null)
11120
        return false;
11121
 
11122
      boolean this_present_username = true && this.isSetUsername();
11123
      boolean that_present_username = true && that.isSetUsername();
11124
      if (this_present_username || that_present_username) {
11125
        if (!(this_present_username && that_present_username))
11126
          return false;
11127
        if (!this.username.equals(that.username))
11128
          return false;
11129
      }
11130
 
11131
      boolean this_present_password = true && this.isSetPassword();
11132
      boolean that_present_password = true && that.isSetPassword();
11133
      if (this_present_password || that_present_password) {
11134
        if (!(this_present_password && that_present_password))
11135
          return false;
11136
        if (!this.password.equals(that.password))
11137
          return false;
11138
      }
11139
 
11140
      return true;
11141
    }
11142
 
11143
    @Override
11144
    public int hashCode() {
11145
      return 0;
11146
    }
11147
 
2443 chandransh 11148
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 11149
      if (!getClass().equals(other.getClass())) {
11150
        return getClass().getName().compareTo(other.getClass().getName());
11151
      }
11152
 
11153
      int lastComparison = 0;
2443 chandransh 11154
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 11155
 
3430 rajveer 11156
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11157
      if (lastComparison != 0) {
11158
        return lastComparison;
11159
      }
3430 rajveer 11160
      if (isSetUsername()) {
11161
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11162
        if (lastComparison != 0) {
11163
          return lastComparison;
11164
        }
495 rajveer 11165
      }
3430 rajveer 11166
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 11167
      if (lastComparison != 0) {
11168
        return lastComparison;
11169
      }
3430 rajveer 11170
      if (isSetPassword()) {
11171
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11172
        if (lastComparison != 0) {
11173
          return lastComparison;
11174
        }
495 rajveer 11175
      }
11176
      return 0;
11177
    }
11178
 
3430 rajveer 11179
    public _Fields fieldForId(int fieldId) {
11180
      return _Fields.findByThriftId(fieldId);
11181
    }
11182
 
11183
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11184
      org.apache.thrift.protocol.TField field;
495 rajveer 11185
      iprot.readStructBegin();
11186
      while (true)
11187
      {
11188
        field = iprot.readFieldBegin();
3430 rajveer 11189
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11190
          break;
11191
        }
3430 rajveer 11192
        switch (field.id) {
11193
          case 1: // USERNAME
11194
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11195
              this.username = iprot.readString();
11196
            } else { 
11197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11198
            }
11199
            break;
11200
          case 2: // PASSWORD
11201
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11202
              this.password = iprot.readString();
11203
            } else { 
11204
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11205
            }
11206
            break;
11207
          default:
11208
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11209
        }
3430 rajveer 11210
        iprot.readFieldEnd();
495 rajveer 11211
      }
11212
      iprot.readStructEnd();
11213
      validate();
11214
    }
11215
 
3430 rajveer 11216
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11217
      validate();
11218
 
11219
      oprot.writeStructBegin(STRUCT_DESC);
11220
      if (this.username != null) {
11221
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11222
        oprot.writeString(this.username);
11223
        oprot.writeFieldEnd();
11224
      }
11225
      if (this.password != null) {
11226
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11227
        oprot.writeString(this.password);
11228
        oprot.writeFieldEnd();
11229
      }
11230
      oprot.writeFieldStop();
11231
      oprot.writeStructEnd();
11232
    }
11233
 
11234
    @Override
11235
    public String toString() {
2443 chandransh 11236
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 11237
      boolean first = true;
11238
 
11239
      sb.append("username:");
11240
      if (this.username == null) {
11241
        sb.append("null");
11242
      } else {
11243
        sb.append(this.username);
11244
      }
11245
      first = false;
11246
      if (!first) sb.append(", ");
11247
      sb.append("password:");
11248
      if (this.password == null) {
11249
        sb.append("null");
11250
      } else {
11251
        sb.append(this.password);
11252
      }
11253
      first = false;
11254
      sb.append(")");
11255
      return sb.toString();
11256
    }
11257
 
3430 rajveer 11258
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11259
      // check for required fields
11260
    }
11261
 
3430 rajveer 11262
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11263
      try {
11264
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11265
      } catch (org.apache.thrift.TException te) {
11266
        throw new java.io.IOException(te);
11267
      }
11268
    }
11269
 
11270
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11271
      try {
11272
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11273
      } catch (org.apache.thrift.TException te) {
11274
        throw new java.io.IOException(te);
11275
      }
11276
    }
11277
 
495 rajveer 11278
  }
11279
 
3430 rajveer 11280
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11281
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11282
 
3430 rajveer 11283
    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);
11284
    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 11285
 
3430 rajveer 11286
    private DashboardUser success; // required
11287
    private HelperServiceException se; // required
495 rajveer 11288
 
11289
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11290
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11291
      SUCCESS((short)0, "success"),
11292
      SE((short)1, "se");
11293
 
11294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11295
 
11296
      static {
11297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11298
          byName.put(field.getFieldName(), field);
11299
        }
11300
      }
11301
 
11302
      /**
11303
       * Find the _Fields constant that matches fieldId, or null if its not found.
11304
       */
11305
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11306
        switch(fieldId) {
11307
          case 0: // SUCCESS
11308
            return SUCCESS;
11309
          case 1: // SE
11310
            return SE;
11311
          default:
11312
            return null;
11313
        }
495 rajveer 11314
      }
11315
 
11316
      /**
11317
       * Find the _Fields constant that matches fieldId, throwing an exception
11318
       * if it is not found.
11319
       */
11320
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11321
        _Fields fields = findByThriftId(fieldId);
11322
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11323
        return fields;
11324
      }
11325
 
11326
      /**
11327
       * Find the _Fields constant that matches name, or null if its not found.
11328
       */
11329
      public static _Fields findByName(String name) {
11330
        return byName.get(name);
11331
      }
11332
 
11333
      private final short _thriftId;
11334
      private final String _fieldName;
11335
 
11336
      _Fields(short thriftId, String fieldName) {
11337
        _thriftId = thriftId;
11338
        _fieldName = fieldName;
11339
      }
11340
 
11341
      public short getThriftFieldId() {
11342
        return _thriftId;
11343
      }
11344
 
11345
      public String getFieldName() {
11346
        return _fieldName;
11347
      }
11348
    }
11349
 
11350
    // isset id assignments
11351
 
3430 rajveer 11352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11353
    static {
3430 rajveer 11354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11355
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11356
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11357
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11361
    }
11362
 
2443 chandransh 11363
    public authenticateDashboardUser_result() {
495 rajveer 11364
    }
11365
 
2443 chandransh 11366
    public authenticateDashboardUser_result(
11367
      DashboardUser success,
495 rajveer 11368
      HelperServiceException se)
11369
    {
11370
      this();
11371
      this.success = success;
11372
      this.se = se;
11373
    }
11374
 
11375
    /**
11376
     * Performs a deep copy on <i>other</i>.
11377
     */
2443 chandransh 11378
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11379
      if (other.isSetSuccess()) {
11380
        this.success = new DashboardUser(other.success);
11381
      }
495 rajveer 11382
      if (other.isSetSe()) {
11383
        this.se = new HelperServiceException(other.se);
11384
      }
11385
    }
11386
 
2443 chandransh 11387
    public authenticateDashboardUser_result deepCopy() {
11388
      return new authenticateDashboardUser_result(this);
495 rajveer 11389
    }
11390
 
3430 rajveer 11391
    @Override
11392
    public void clear() {
11393
      this.success = null;
11394
      this.se = null;
495 rajveer 11395
    }
11396
 
2443 chandransh 11397
    public DashboardUser getSuccess() {
495 rajveer 11398
      return this.success;
11399
    }
11400
 
3430 rajveer 11401
    public void setSuccess(DashboardUser success) {
495 rajveer 11402
      this.success = success;
11403
    }
11404
 
11405
    public void unsetSuccess() {
2443 chandransh 11406
      this.success = null;
495 rajveer 11407
    }
11408
 
3430 rajveer 11409
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11410
    public boolean isSetSuccess() {
2443 chandransh 11411
      return this.success != null;
495 rajveer 11412
    }
11413
 
11414
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11415
      if (!value) {
11416
        this.success = null;
11417
      }
495 rajveer 11418
    }
11419
 
11420
    public HelperServiceException getSe() {
11421
      return this.se;
11422
    }
11423
 
3430 rajveer 11424
    public void setSe(HelperServiceException se) {
495 rajveer 11425
      this.se = se;
11426
    }
11427
 
11428
    public void unsetSe() {
11429
      this.se = null;
11430
    }
11431
 
3430 rajveer 11432
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11433
    public boolean isSetSe() {
11434
      return this.se != null;
11435
    }
11436
 
11437
    public void setSeIsSet(boolean value) {
11438
      if (!value) {
11439
        this.se = null;
11440
      }
11441
    }
11442
 
11443
    public void setFieldValue(_Fields field, Object value) {
11444
      switch (field) {
11445
      case SUCCESS:
11446
        if (value == null) {
11447
          unsetSuccess();
11448
        } else {
2443 chandransh 11449
          setSuccess((DashboardUser)value);
495 rajveer 11450
        }
11451
        break;
11452
 
11453
      case SE:
11454
        if (value == null) {
11455
          unsetSe();
11456
        } else {
11457
          setSe((HelperServiceException)value);
11458
        }
11459
        break;
11460
 
11461
      }
11462
    }
11463
 
11464
    public Object getFieldValue(_Fields field) {
11465
      switch (field) {
11466
      case SUCCESS:
2443 chandransh 11467
        return getSuccess();
495 rajveer 11468
 
11469
      case SE:
11470
        return getSe();
11471
 
11472
      }
11473
      throw new IllegalStateException();
11474
    }
11475
 
3430 rajveer 11476
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11477
    public boolean isSet(_Fields field) {
11478
      if (field == null) {
11479
        throw new IllegalArgumentException();
11480
      }
495 rajveer 11481
 
11482
      switch (field) {
11483
      case SUCCESS:
11484
        return isSetSuccess();
11485
      case SE:
11486
        return isSetSe();
11487
      }
11488
      throw new IllegalStateException();
11489
    }
11490
 
11491
    @Override
11492
    public boolean equals(Object that) {
11493
      if (that == null)
11494
        return false;
2443 chandransh 11495
      if (that instanceof authenticateDashboardUser_result)
11496
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11497
      return false;
11498
    }
11499
 
2443 chandransh 11500
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11501
      if (that == null)
11502
        return false;
11503
 
2443 chandransh 11504
      boolean this_present_success = true && this.isSetSuccess();
11505
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11506
      if (this_present_success || that_present_success) {
11507
        if (!(this_present_success && that_present_success))
11508
          return false;
2443 chandransh 11509
        if (!this.success.equals(that.success))
495 rajveer 11510
          return false;
11511
      }
11512
 
11513
      boolean this_present_se = true && this.isSetSe();
11514
      boolean that_present_se = true && that.isSetSe();
11515
      if (this_present_se || that_present_se) {
11516
        if (!(this_present_se && that_present_se))
11517
          return false;
11518
        if (!this.se.equals(that.se))
11519
          return false;
11520
      }
11521
 
11522
      return true;
11523
    }
11524
 
11525
    @Override
11526
    public int hashCode() {
11527
      return 0;
11528
    }
11529
 
2443 chandransh 11530
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11531
      if (!getClass().equals(other.getClass())) {
11532
        return getClass().getName().compareTo(other.getClass().getName());
11533
      }
11534
 
11535
      int lastComparison = 0;
2443 chandransh 11536
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11537
 
3430 rajveer 11538
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11539
      if (lastComparison != 0) {
11540
        return lastComparison;
11541
      }
3430 rajveer 11542
      if (isSetSuccess()) {
11543
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11544
        if (lastComparison != 0) {
11545
          return lastComparison;
11546
        }
495 rajveer 11547
      }
3430 rajveer 11548
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11549
      if (lastComparison != 0) {
11550
        return lastComparison;
11551
      }
3430 rajveer 11552
      if (isSetSe()) {
11553
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11554
        if (lastComparison != 0) {
11555
          return lastComparison;
11556
        }
495 rajveer 11557
      }
11558
      return 0;
11559
    }
11560
 
3430 rajveer 11561
    public _Fields fieldForId(int fieldId) {
11562
      return _Fields.findByThriftId(fieldId);
11563
    }
11564
 
11565
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11566
      org.apache.thrift.protocol.TField field;
495 rajveer 11567
      iprot.readStructBegin();
11568
      while (true)
11569
      {
11570
        field = iprot.readFieldBegin();
3430 rajveer 11571
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11572
          break;
11573
        }
3430 rajveer 11574
        switch (field.id) {
11575
          case 0: // SUCCESS
11576
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11577
              this.success = new DashboardUser();
11578
              this.success.read(iprot);
11579
            } else { 
11580
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11581
            }
11582
            break;
11583
          case 1: // SE
11584
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11585
              this.se = new HelperServiceException();
11586
              this.se.read(iprot);
11587
            } else { 
11588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11589
            }
11590
            break;
11591
          default:
11592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11593
        }
3430 rajveer 11594
        iprot.readFieldEnd();
495 rajveer 11595
      }
11596
      iprot.readStructEnd();
11597
      validate();
11598
    }
11599
 
3430 rajveer 11600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11601
      oprot.writeStructBegin(STRUCT_DESC);
11602
 
11603
      if (this.isSetSuccess()) {
11604
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11605
        this.success.write(oprot);
495 rajveer 11606
        oprot.writeFieldEnd();
11607
      } else if (this.isSetSe()) {
11608
        oprot.writeFieldBegin(SE_FIELD_DESC);
11609
        this.se.write(oprot);
11610
        oprot.writeFieldEnd();
11611
      }
11612
      oprot.writeFieldStop();
11613
      oprot.writeStructEnd();
11614
    }
11615
 
11616
    @Override
11617
    public String toString() {
2443 chandransh 11618
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11619
      boolean first = true;
11620
 
11621
      sb.append("success:");
2443 chandransh 11622
      if (this.success == null) {
11623
        sb.append("null");
11624
      } else {
11625
        sb.append(this.success);
11626
      }
495 rajveer 11627
      first = false;
11628
      if (!first) sb.append(", ");
11629
      sb.append("se:");
11630
      if (this.se == null) {
11631
        sb.append("null");
11632
      } else {
11633
        sb.append(this.se);
11634
      }
11635
      first = false;
11636
      sb.append(")");
11637
      return sb.toString();
11638
    }
11639
 
3430 rajveer 11640
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11641
      // check for required fields
11642
    }
11643
 
3430 rajveer 11644
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11645
      try {
11646
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11647
      } catch (org.apache.thrift.TException te) {
11648
        throw new java.io.IOException(te);
11649
      }
11650
    }
11651
 
11652
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11653
      try {
11654
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11655
      } catch (org.apache.thrift.TException te) {
11656
        throw new java.io.IOException(te);
11657
      }
11658
    }
11659
 
495 rajveer 11660
  }
11661
 
3430 rajveer 11662
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11663
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11664
 
3430 rajveer 11665
    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);
11666
    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);
11667
    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 11668
 
3430 rajveer 11669
    private String username; // required
11670
    private String oldPassword; // required
11671
    private String newPassword; // required
495 rajveer 11672
 
11673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11675
      USERNAME((short)1, "username"),
11676
      OLD_PASSWORD((short)2, "oldPassword"),
11677
      NEW_PASSWORD((short)3, "newPassword");
11678
 
11679
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11680
 
11681
      static {
11682
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11683
          byName.put(field.getFieldName(), field);
11684
        }
11685
      }
11686
 
11687
      /**
11688
       * Find the _Fields constant that matches fieldId, or null if its not found.
11689
       */
11690
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11691
        switch(fieldId) {
11692
          case 1: // USERNAME
11693
            return USERNAME;
11694
          case 2: // OLD_PASSWORD
11695
            return OLD_PASSWORD;
11696
          case 3: // NEW_PASSWORD
11697
            return NEW_PASSWORD;
11698
          default:
11699
            return null;
11700
        }
495 rajveer 11701
      }
11702
 
11703
      /**
11704
       * Find the _Fields constant that matches fieldId, throwing an exception
11705
       * if it is not found.
11706
       */
11707
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11708
        _Fields fields = findByThriftId(fieldId);
11709
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11710
        return fields;
11711
      }
11712
 
11713
      /**
11714
       * Find the _Fields constant that matches name, or null if its not found.
11715
       */
11716
      public static _Fields findByName(String name) {
11717
        return byName.get(name);
11718
      }
11719
 
11720
      private final short _thriftId;
11721
      private final String _fieldName;
11722
 
11723
      _Fields(short thriftId, String fieldName) {
11724
        _thriftId = thriftId;
11725
        _fieldName = fieldName;
11726
      }
11727
 
11728
      public short getThriftFieldId() {
11729
        return _thriftId;
11730
      }
11731
 
11732
      public String getFieldName() {
11733
        return _fieldName;
11734
      }
11735
    }
11736
 
11737
    // isset id assignments
11738
 
3430 rajveer 11739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11740
    static {
3430 rajveer 11741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11742
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11743
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11744
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11745
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11746
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11747
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11748
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11749
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11750
    }
11751
 
11752
    public updatePassword_args() {
11753
    }
11754
 
11755
    public updatePassword_args(
11756
      String username,
11757
      String oldPassword,
11758
      String newPassword)
11759
    {
11760
      this();
11761
      this.username = username;
11762
      this.oldPassword = oldPassword;
11763
      this.newPassword = newPassword;
11764
    }
11765
 
11766
    /**
11767
     * Performs a deep copy on <i>other</i>.
11768
     */
11769
    public updatePassword_args(updatePassword_args other) {
11770
      if (other.isSetUsername()) {
11771
        this.username = other.username;
11772
      }
11773
      if (other.isSetOldPassword()) {
11774
        this.oldPassword = other.oldPassword;
11775
      }
11776
      if (other.isSetNewPassword()) {
11777
        this.newPassword = other.newPassword;
11778
      }
11779
    }
11780
 
11781
    public updatePassword_args deepCopy() {
11782
      return new updatePassword_args(this);
11783
    }
11784
 
3430 rajveer 11785
    @Override
11786
    public void clear() {
11787
      this.username = null;
11788
      this.oldPassword = null;
11789
      this.newPassword = null;
495 rajveer 11790
    }
11791
 
11792
    public String getUsername() {
11793
      return this.username;
11794
    }
11795
 
3430 rajveer 11796
    public void setUsername(String username) {
495 rajveer 11797
      this.username = username;
11798
    }
11799
 
11800
    public void unsetUsername() {
11801
      this.username = null;
11802
    }
11803
 
3430 rajveer 11804
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11805
    public boolean isSetUsername() {
11806
      return this.username != null;
11807
    }
11808
 
11809
    public void setUsernameIsSet(boolean value) {
11810
      if (!value) {
11811
        this.username = null;
11812
      }
11813
    }
11814
 
11815
    public String getOldPassword() {
11816
      return this.oldPassword;
11817
    }
11818
 
3430 rajveer 11819
    public void setOldPassword(String oldPassword) {
495 rajveer 11820
      this.oldPassword = oldPassword;
11821
    }
11822
 
11823
    public void unsetOldPassword() {
11824
      this.oldPassword = null;
11825
    }
11826
 
3430 rajveer 11827
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11828
    public boolean isSetOldPassword() {
11829
      return this.oldPassword != null;
11830
    }
11831
 
11832
    public void setOldPasswordIsSet(boolean value) {
11833
      if (!value) {
11834
        this.oldPassword = null;
11835
      }
11836
    }
11837
 
11838
    public String getNewPassword() {
11839
      return this.newPassword;
11840
    }
11841
 
3430 rajveer 11842
    public void setNewPassword(String newPassword) {
495 rajveer 11843
      this.newPassword = newPassword;
11844
    }
11845
 
11846
    public void unsetNewPassword() {
11847
      this.newPassword = null;
11848
    }
11849
 
3430 rajveer 11850
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11851
    public boolean isSetNewPassword() {
11852
      return this.newPassword != null;
11853
    }
11854
 
11855
    public void setNewPasswordIsSet(boolean value) {
11856
      if (!value) {
11857
        this.newPassword = null;
11858
      }
11859
    }
11860
 
11861
    public void setFieldValue(_Fields field, Object value) {
11862
      switch (field) {
11863
      case USERNAME:
11864
        if (value == null) {
11865
          unsetUsername();
11866
        } else {
11867
          setUsername((String)value);
11868
        }
11869
        break;
11870
 
11871
      case OLD_PASSWORD:
11872
        if (value == null) {
11873
          unsetOldPassword();
11874
        } else {
11875
          setOldPassword((String)value);
11876
        }
11877
        break;
11878
 
11879
      case NEW_PASSWORD:
11880
        if (value == null) {
11881
          unsetNewPassword();
11882
        } else {
11883
          setNewPassword((String)value);
11884
        }
11885
        break;
11886
 
11887
      }
11888
    }
11889
 
11890
    public Object getFieldValue(_Fields field) {
11891
      switch (field) {
11892
      case USERNAME:
11893
        return getUsername();
11894
 
11895
      case OLD_PASSWORD:
11896
        return getOldPassword();
11897
 
11898
      case NEW_PASSWORD:
11899
        return getNewPassword();
11900
 
11901
      }
11902
      throw new IllegalStateException();
11903
    }
11904
 
3430 rajveer 11905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11906
    public boolean isSet(_Fields field) {
11907
      if (field == null) {
11908
        throw new IllegalArgumentException();
11909
      }
495 rajveer 11910
 
11911
      switch (field) {
11912
      case USERNAME:
11913
        return isSetUsername();
11914
      case OLD_PASSWORD:
11915
        return isSetOldPassword();
11916
      case NEW_PASSWORD:
11917
        return isSetNewPassword();
11918
      }
11919
      throw new IllegalStateException();
11920
    }
11921
 
11922
    @Override
11923
    public boolean equals(Object that) {
11924
      if (that == null)
11925
        return false;
11926
      if (that instanceof updatePassword_args)
11927
        return this.equals((updatePassword_args)that);
11928
      return false;
11929
    }
11930
 
11931
    public boolean equals(updatePassword_args that) {
11932
      if (that == null)
11933
        return false;
11934
 
11935
      boolean this_present_username = true && this.isSetUsername();
11936
      boolean that_present_username = true && that.isSetUsername();
11937
      if (this_present_username || that_present_username) {
11938
        if (!(this_present_username && that_present_username))
11939
          return false;
11940
        if (!this.username.equals(that.username))
11941
          return false;
11942
      }
11943
 
11944
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11945
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11946
      if (this_present_oldPassword || that_present_oldPassword) {
11947
        if (!(this_present_oldPassword && that_present_oldPassword))
11948
          return false;
11949
        if (!this.oldPassword.equals(that.oldPassword))
11950
          return false;
11951
      }
11952
 
11953
      boolean this_present_newPassword = true && this.isSetNewPassword();
11954
      boolean that_present_newPassword = true && that.isSetNewPassword();
11955
      if (this_present_newPassword || that_present_newPassword) {
11956
        if (!(this_present_newPassword && that_present_newPassword))
11957
          return false;
11958
        if (!this.newPassword.equals(that.newPassword))
11959
          return false;
11960
      }
11961
 
11962
      return true;
11963
    }
11964
 
11965
    @Override
11966
    public int hashCode() {
11967
      return 0;
11968
    }
11969
 
11970
    public int compareTo(updatePassword_args other) {
11971
      if (!getClass().equals(other.getClass())) {
11972
        return getClass().getName().compareTo(other.getClass().getName());
11973
      }
11974
 
11975
      int lastComparison = 0;
11976
      updatePassword_args typedOther = (updatePassword_args)other;
11977
 
3430 rajveer 11978
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11979
      if (lastComparison != 0) {
11980
        return lastComparison;
11981
      }
3430 rajveer 11982
      if (isSetUsername()) {
11983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11984
        if (lastComparison != 0) {
11985
          return lastComparison;
11986
        }
495 rajveer 11987
      }
3430 rajveer 11988
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11989
      if (lastComparison != 0) {
11990
        return lastComparison;
11991
      }
3430 rajveer 11992
      if (isSetOldPassword()) {
11993
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11994
        if (lastComparison != 0) {
11995
          return lastComparison;
11996
        }
495 rajveer 11997
      }
3430 rajveer 11998
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11999
      if (lastComparison != 0) {
12000
        return lastComparison;
12001
      }
3430 rajveer 12002
      if (isSetNewPassword()) {
12003
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
12004
        if (lastComparison != 0) {
12005
          return lastComparison;
12006
        }
495 rajveer 12007
      }
12008
      return 0;
12009
    }
12010
 
3430 rajveer 12011
    public _Fields fieldForId(int fieldId) {
12012
      return _Fields.findByThriftId(fieldId);
12013
    }
12014
 
12015
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12016
      org.apache.thrift.protocol.TField field;
495 rajveer 12017
      iprot.readStructBegin();
12018
      while (true)
12019
      {
12020
        field = iprot.readFieldBegin();
3430 rajveer 12021
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12022
          break;
12023
        }
3430 rajveer 12024
        switch (field.id) {
12025
          case 1: // USERNAME
12026
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12027
              this.username = iprot.readString();
12028
            } else { 
12029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12030
            }
12031
            break;
12032
          case 2: // OLD_PASSWORD
12033
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12034
              this.oldPassword = iprot.readString();
12035
            } else { 
12036
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12037
            }
12038
            break;
12039
          case 3: // NEW_PASSWORD
12040
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12041
              this.newPassword = iprot.readString();
12042
            } else { 
12043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12044
            }
12045
            break;
12046
          default:
12047
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12048
        }
3430 rajveer 12049
        iprot.readFieldEnd();
495 rajveer 12050
      }
12051
      iprot.readStructEnd();
12052
      validate();
12053
    }
12054
 
3430 rajveer 12055
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12056
      validate();
12057
 
12058
      oprot.writeStructBegin(STRUCT_DESC);
12059
      if (this.username != null) {
12060
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12061
        oprot.writeString(this.username);
12062
        oprot.writeFieldEnd();
12063
      }
12064
      if (this.oldPassword != null) {
12065
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
12066
        oprot.writeString(this.oldPassword);
12067
        oprot.writeFieldEnd();
12068
      }
12069
      if (this.newPassword != null) {
12070
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
12071
        oprot.writeString(this.newPassword);
12072
        oprot.writeFieldEnd();
12073
      }
12074
      oprot.writeFieldStop();
12075
      oprot.writeStructEnd();
12076
    }
12077
 
12078
    @Override
12079
    public String toString() {
12080
      StringBuilder sb = new StringBuilder("updatePassword_args(");
12081
      boolean first = true;
12082
 
12083
      sb.append("username:");
12084
      if (this.username == null) {
12085
        sb.append("null");
12086
      } else {
12087
        sb.append(this.username);
12088
      }
12089
      first = false;
12090
      if (!first) sb.append(", ");
12091
      sb.append("oldPassword:");
12092
      if (this.oldPassword == null) {
12093
        sb.append("null");
12094
      } else {
12095
        sb.append(this.oldPassword);
12096
      }
12097
      first = false;
12098
      if (!first) sb.append(", ");
12099
      sb.append("newPassword:");
12100
      if (this.newPassword == null) {
12101
        sb.append("null");
12102
      } else {
12103
        sb.append(this.newPassword);
12104
      }
12105
      first = false;
12106
      sb.append(")");
12107
      return sb.toString();
12108
    }
12109
 
3430 rajveer 12110
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12111
      // check for required fields
12112
    }
12113
 
3430 rajveer 12114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12115
      try {
12116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12117
      } catch (org.apache.thrift.TException te) {
12118
        throw new java.io.IOException(te);
12119
      }
12120
    }
12121
 
12122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12123
      try {
12124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12125
      } catch (org.apache.thrift.TException te) {
12126
        throw new java.io.IOException(te);
12127
      }
12128
    }
12129
 
495 rajveer 12130
  }
12131
 
3430 rajveer 12132
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
12133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 12134
 
3430 rajveer 12135
    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);
12136
    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 12137
 
3430 rajveer 12138
    private boolean success; // required
12139
    private HelperServiceException se; // required
495 rajveer 12140
 
12141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12143
      SUCCESS((short)0, "success"),
12144
      SE((short)1, "se");
12145
 
12146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12147
 
12148
      static {
12149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12150
          byName.put(field.getFieldName(), field);
12151
        }
12152
      }
12153
 
12154
      /**
12155
       * Find the _Fields constant that matches fieldId, or null if its not found.
12156
       */
12157
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12158
        switch(fieldId) {
12159
          case 0: // SUCCESS
12160
            return SUCCESS;
12161
          case 1: // SE
12162
            return SE;
12163
          default:
12164
            return null;
12165
        }
495 rajveer 12166
      }
12167
 
12168
      /**
12169
       * Find the _Fields constant that matches fieldId, throwing an exception
12170
       * if it is not found.
12171
       */
12172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12173
        _Fields fields = findByThriftId(fieldId);
12174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12175
        return fields;
12176
      }
12177
 
12178
      /**
12179
       * Find the _Fields constant that matches name, or null if its not found.
12180
       */
12181
      public static _Fields findByName(String name) {
12182
        return byName.get(name);
12183
      }
12184
 
12185
      private final short _thriftId;
12186
      private final String _fieldName;
12187
 
12188
      _Fields(short thriftId, String fieldName) {
12189
        _thriftId = thriftId;
12190
        _fieldName = fieldName;
12191
      }
12192
 
12193
      public short getThriftFieldId() {
12194
        return _thriftId;
12195
      }
12196
 
12197
      public String getFieldName() {
12198
        return _fieldName;
12199
      }
12200
    }
12201
 
12202
    // isset id assignments
12203
    private static final int __SUCCESS_ISSET_ID = 0;
12204
    private BitSet __isset_bit_vector = new BitSet(1);
12205
 
3430 rajveer 12206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12207
    static {
3430 rajveer 12208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12209
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12211
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 12215
    }
12216
 
12217
    public updatePassword_result() {
12218
    }
12219
 
12220
    public updatePassword_result(
12221
      boolean success,
12222
      HelperServiceException se)
12223
    {
12224
      this();
12225
      this.success = success;
12226
      setSuccessIsSet(true);
12227
      this.se = se;
12228
    }
12229
 
12230
    /**
12231
     * Performs a deep copy on <i>other</i>.
12232
     */
12233
    public updatePassword_result(updatePassword_result other) {
12234
      __isset_bit_vector.clear();
12235
      __isset_bit_vector.or(other.__isset_bit_vector);
12236
      this.success = other.success;
12237
      if (other.isSetSe()) {
12238
        this.se = new HelperServiceException(other.se);
12239
      }
12240
    }
12241
 
12242
    public updatePassword_result deepCopy() {
12243
      return new updatePassword_result(this);
12244
    }
12245
 
3430 rajveer 12246
    @Override
12247
    public void clear() {
12248
      setSuccessIsSet(false);
12249
      this.success = false;
12250
      this.se = null;
495 rajveer 12251
    }
12252
 
12253
    public boolean isSuccess() {
12254
      return this.success;
12255
    }
12256
 
3430 rajveer 12257
    public void setSuccess(boolean success) {
495 rajveer 12258
      this.success = success;
12259
      setSuccessIsSet(true);
12260
    }
12261
 
12262
    public void unsetSuccess() {
12263
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12264
    }
12265
 
3430 rajveer 12266
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12267
    public boolean isSetSuccess() {
12268
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12269
    }
12270
 
12271
    public void setSuccessIsSet(boolean value) {
12272
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12273
    }
12274
 
12275
    public HelperServiceException getSe() {
12276
      return this.se;
12277
    }
12278
 
3430 rajveer 12279
    public void setSe(HelperServiceException se) {
495 rajveer 12280
      this.se = se;
12281
    }
12282
 
12283
    public void unsetSe() {
12284
      this.se = null;
12285
    }
12286
 
3430 rajveer 12287
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12288
    public boolean isSetSe() {
12289
      return this.se != null;
12290
    }
12291
 
12292
    public void setSeIsSet(boolean value) {
12293
      if (!value) {
12294
        this.se = null;
12295
      }
12296
    }
12297
 
12298
    public void setFieldValue(_Fields field, Object value) {
12299
      switch (field) {
12300
      case SUCCESS:
12301
        if (value == null) {
12302
          unsetSuccess();
12303
        } else {
12304
          setSuccess((Boolean)value);
12305
        }
12306
        break;
12307
 
12308
      case SE:
12309
        if (value == null) {
12310
          unsetSe();
12311
        } else {
12312
          setSe((HelperServiceException)value);
12313
        }
12314
        break;
12315
 
12316
      }
12317
    }
12318
 
12319
    public Object getFieldValue(_Fields field) {
12320
      switch (field) {
12321
      case SUCCESS:
3430 rajveer 12322
        return Boolean.valueOf(isSuccess());
495 rajveer 12323
 
12324
      case SE:
12325
        return getSe();
12326
 
12327
      }
12328
      throw new IllegalStateException();
12329
    }
12330
 
3430 rajveer 12331
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12332
    public boolean isSet(_Fields field) {
12333
      if (field == null) {
12334
        throw new IllegalArgumentException();
12335
      }
495 rajveer 12336
 
12337
      switch (field) {
12338
      case SUCCESS:
12339
        return isSetSuccess();
12340
      case SE:
12341
        return isSetSe();
12342
      }
12343
      throw new IllegalStateException();
12344
    }
12345
 
12346
    @Override
12347
    public boolean equals(Object that) {
12348
      if (that == null)
12349
        return false;
12350
      if (that instanceof updatePassword_result)
12351
        return this.equals((updatePassword_result)that);
12352
      return false;
12353
    }
12354
 
12355
    public boolean equals(updatePassword_result that) {
12356
      if (that == null)
12357
        return false;
12358
 
12359
      boolean this_present_success = true;
12360
      boolean that_present_success = true;
12361
      if (this_present_success || that_present_success) {
12362
        if (!(this_present_success && that_present_success))
12363
          return false;
12364
        if (this.success != that.success)
12365
          return false;
12366
      }
12367
 
12368
      boolean this_present_se = true && this.isSetSe();
12369
      boolean that_present_se = true && that.isSetSe();
12370
      if (this_present_se || that_present_se) {
12371
        if (!(this_present_se && that_present_se))
12372
          return false;
12373
        if (!this.se.equals(that.se))
12374
          return false;
12375
      }
12376
 
12377
      return true;
12378
    }
12379
 
12380
    @Override
12381
    public int hashCode() {
12382
      return 0;
12383
    }
12384
 
12385
    public int compareTo(updatePassword_result other) {
12386
      if (!getClass().equals(other.getClass())) {
12387
        return getClass().getName().compareTo(other.getClass().getName());
12388
      }
12389
 
12390
      int lastComparison = 0;
12391
      updatePassword_result typedOther = (updatePassword_result)other;
12392
 
3430 rajveer 12393
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12394
      if (lastComparison != 0) {
12395
        return lastComparison;
12396
      }
3430 rajveer 12397
      if (isSetSuccess()) {
12398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12399
        if (lastComparison != 0) {
12400
          return lastComparison;
12401
        }
495 rajveer 12402
      }
3430 rajveer 12403
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12404
      if (lastComparison != 0) {
12405
        return lastComparison;
12406
      }
3430 rajveer 12407
      if (isSetSe()) {
12408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12409
        if (lastComparison != 0) {
12410
          return lastComparison;
12411
        }
495 rajveer 12412
      }
12413
      return 0;
12414
    }
12415
 
3430 rajveer 12416
    public _Fields fieldForId(int fieldId) {
12417
      return _Fields.findByThriftId(fieldId);
12418
    }
12419
 
12420
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12421
      org.apache.thrift.protocol.TField field;
495 rajveer 12422
      iprot.readStructBegin();
12423
      while (true)
12424
      {
12425
        field = iprot.readFieldBegin();
3430 rajveer 12426
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12427
          break;
12428
        }
3430 rajveer 12429
        switch (field.id) {
12430
          case 0: // SUCCESS
12431
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12432
              this.success = iprot.readBool();
12433
              setSuccessIsSet(true);
12434
            } else { 
12435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12436
            }
12437
            break;
12438
          case 1: // SE
12439
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12440
              this.se = new HelperServiceException();
12441
              this.se.read(iprot);
12442
            } else { 
12443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12444
            }
12445
            break;
12446
          default:
12447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12448
        }
3430 rajveer 12449
        iprot.readFieldEnd();
495 rajveer 12450
      }
12451
      iprot.readStructEnd();
12452
      validate();
12453
    }
12454
 
3430 rajveer 12455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12456
      oprot.writeStructBegin(STRUCT_DESC);
12457
 
12458
      if (this.isSetSuccess()) {
12459
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12460
        oprot.writeBool(this.success);
12461
        oprot.writeFieldEnd();
12462
      } else if (this.isSetSe()) {
12463
        oprot.writeFieldBegin(SE_FIELD_DESC);
12464
        this.se.write(oprot);
12465
        oprot.writeFieldEnd();
12466
      }
12467
      oprot.writeFieldStop();
12468
      oprot.writeStructEnd();
12469
    }
12470
 
12471
    @Override
12472
    public String toString() {
12473
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12474
      boolean first = true;
12475
 
12476
      sb.append("success:");
12477
      sb.append(this.success);
12478
      first = false;
12479
      if (!first) sb.append(", ");
12480
      sb.append("se:");
12481
      if (this.se == null) {
12482
        sb.append("null");
12483
      } else {
12484
        sb.append(this.se);
12485
      }
12486
      first = false;
12487
      sb.append(")");
12488
      return sb.toString();
12489
    }
12490
 
3430 rajveer 12491
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12492
      // check for required fields
12493
    }
12494
 
3430 rajveer 12495
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12496
      try {
12497
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12498
      } catch (org.apache.thrift.TException te) {
12499
        throw new java.io.IOException(te);
12500
      }
12501
    }
12502
 
12503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12504
      try {
12505
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12506
      } catch (org.apache.thrift.TException te) {
12507
        throw new java.io.IOException(te);
12508
      }
12509
    }
12510
 
495 rajveer 12511
  }
12512
 
3430 rajveer 12513
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12514
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12515
 
3430 rajveer 12516
    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);
12517
    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 12518
 
3430 rajveer 12519
    private String username; // required
12520
    private String password; // required
750 chandransh 12521
 
12522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12524
      USERNAME((short)1, "username"),
12525
      PASSWORD((short)2, "password");
12526
 
12527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12528
 
12529
      static {
12530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12531
          byName.put(field.getFieldName(), field);
12532
        }
12533
      }
12534
 
12535
      /**
12536
       * Find the _Fields constant that matches fieldId, or null if its not found.
12537
       */
12538
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12539
        switch(fieldId) {
12540
          case 1: // USERNAME
12541
            return USERNAME;
12542
          case 2: // PASSWORD
12543
            return PASSWORD;
12544
          default:
12545
            return null;
12546
        }
750 chandransh 12547
      }
12548
 
12549
      /**
12550
       * Find the _Fields constant that matches fieldId, throwing an exception
12551
       * if it is not found.
12552
       */
12553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12554
        _Fields fields = findByThriftId(fieldId);
12555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12556
        return fields;
12557
      }
12558
 
12559
      /**
12560
       * Find the _Fields constant that matches name, or null if its not found.
12561
       */
12562
      public static _Fields findByName(String name) {
12563
        return byName.get(name);
12564
      }
12565
 
12566
      private final short _thriftId;
12567
      private final String _fieldName;
12568
 
12569
      _Fields(short thriftId, String fieldName) {
12570
        _thriftId = thriftId;
12571
        _fieldName = fieldName;
12572
      }
12573
 
12574
      public short getThriftFieldId() {
12575
        return _thriftId;
12576
      }
12577
 
12578
      public String getFieldName() {
12579
        return _fieldName;
12580
      }
12581
    }
12582
 
12583
    // isset id assignments
12584
 
3430 rajveer 12585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12586
    static {
3430 rajveer 12587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12588
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12590
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12592
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12593
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12594
    }
12595
 
12596
    public authenticateLogisticsUser_args() {
12597
    }
12598
 
12599
    public authenticateLogisticsUser_args(
12600
      String username,
12601
      String password)
12602
    {
12603
      this();
12604
      this.username = username;
12605
      this.password = password;
12606
    }
12607
 
12608
    /**
12609
     * Performs a deep copy on <i>other</i>.
12610
     */
12611
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12612
      if (other.isSetUsername()) {
12613
        this.username = other.username;
12614
      }
12615
      if (other.isSetPassword()) {
12616
        this.password = other.password;
12617
      }
12618
    }
12619
 
12620
    public authenticateLogisticsUser_args deepCopy() {
12621
      return new authenticateLogisticsUser_args(this);
12622
    }
12623
 
3430 rajveer 12624
    @Override
12625
    public void clear() {
12626
      this.username = null;
12627
      this.password = null;
750 chandransh 12628
    }
12629
 
12630
    public String getUsername() {
12631
      return this.username;
12632
    }
12633
 
3430 rajveer 12634
    public void setUsername(String username) {
750 chandransh 12635
      this.username = username;
12636
    }
12637
 
12638
    public void unsetUsername() {
12639
      this.username = null;
12640
    }
12641
 
3430 rajveer 12642
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12643
    public boolean isSetUsername() {
12644
      return this.username != null;
12645
    }
12646
 
12647
    public void setUsernameIsSet(boolean value) {
12648
      if (!value) {
12649
        this.username = null;
12650
      }
12651
    }
12652
 
12653
    public String getPassword() {
12654
      return this.password;
12655
    }
12656
 
3430 rajveer 12657
    public void setPassword(String password) {
750 chandransh 12658
      this.password = password;
12659
    }
12660
 
12661
    public void unsetPassword() {
12662
      this.password = null;
12663
    }
12664
 
3430 rajveer 12665
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12666
    public boolean isSetPassword() {
12667
      return this.password != null;
12668
    }
12669
 
12670
    public void setPasswordIsSet(boolean value) {
12671
      if (!value) {
12672
        this.password = null;
12673
      }
12674
    }
12675
 
12676
    public void setFieldValue(_Fields field, Object value) {
12677
      switch (field) {
12678
      case USERNAME:
12679
        if (value == null) {
12680
          unsetUsername();
12681
        } else {
12682
          setUsername((String)value);
12683
        }
12684
        break;
12685
 
12686
      case PASSWORD:
12687
        if (value == null) {
12688
          unsetPassword();
12689
        } else {
12690
          setPassword((String)value);
12691
        }
12692
        break;
12693
 
12694
      }
12695
    }
12696
 
12697
    public Object getFieldValue(_Fields field) {
12698
      switch (field) {
12699
      case USERNAME:
12700
        return getUsername();
12701
 
12702
      case PASSWORD:
12703
        return getPassword();
12704
 
12705
      }
12706
      throw new IllegalStateException();
12707
    }
12708
 
3430 rajveer 12709
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12710
    public boolean isSet(_Fields field) {
12711
      if (field == null) {
12712
        throw new IllegalArgumentException();
12713
      }
750 chandransh 12714
 
12715
      switch (field) {
12716
      case USERNAME:
12717
        return isSetUsername();
12718
      case PASSWORD:
12719
        return isSetPassword();
12720
      }
12721
      throw new IllegalStateException();
12722
    }
12723
 
12724
    @Override
12725
    public boolean equals(Object that) {
12726
      if (that == null)
12727
        return false;
12728
      if (that instanceof authenticateLogisticsUser_args)
12729
        return this.equals((authenticateLogisticsUser_args)that);
12730
      return false;
12731
    }
12732
 
12733
    public boolean equals(authenticateLogisticsUser_args that) {
12734
      if (that == null)
12735
        return false;
12736
 
12737
      boolean this_present_username = true && this.isSetUsername();
12738
      boolean that_present_username = true && that.isSetUsername();
12739
      if (this_present_username || that_present_username) {
12740
        if (!(this_present_username && that_present_username))
12741
          return false;
12742
        if (!this.username.equals(that.username))
12743
          return false;
12744
      }
12745
 
12746
      boolean this_present_password = true && this.isSetPassword();
12747
      boolean that_present_password = true && that.isSetPassword();
12748
      if (this_present_password || that_present_password) {
12749
        if (!(this_present_password && that_present_password))
12750
          return false;
12751
        if (!this.password.equals(that.password))
12752
          return false;
12753
      }
12754
 
12755
      return true;
12756
    }
12757
 
12758
    @Override
12759
    public int hashCode() {
12760
      return 0;
12761
    }
12762
 
12763
    public int compareTo(authenticateLogisticsUser_args other) {
12764
      if (!getClass().equals(other.getClass())) {
12765
        return getClass().getName().compareTo(other.getClass().getName());
12766
      }
12767
 
12768
      int lastComparison = 0;
12769
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12770
 
3430 rajveer 12771
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12772
      if (lastComparison != 0) {
12773
        return lastComparison;
12774
      }
3430 rajveer 12775
      if (isSetUsername()) {
12776
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12777
        if (lastComparison != 0) {
12778
          return lastComparison;
12779
        }
750 chandransh 12780
      }
3430 rajveer 12781
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12782
      if (lastComparison != 0) {
12783
        return lastComparison;
12784
      }
3430 rajveer 12785
      if (isSetPassword()) {
12786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12787
        if (lastComparison != 0) {
12788
          return lastComparison;
12789
        }
750 chandransh 12790
      }
12791
      return 0;
12792
    }
12793
 
3430 rajveer 12794
    public _Fields fieldForId(int fieldId) {
12795
      return _Fields.findByThriftId(fieldId);
12796
    }
12797
 
12798
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12799
      org.apache.thrift.protocol.TField field;
750 chandransh 12800
      iprot.readStructBegin();
12801
      while (true)
12802
      {
12803
        field = iprot.readFieldBegin();
3430 rajveer 12804
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12805
          break;
12806
        }
3430 rajveer 12807
        switch (field.id) {
12808
          case 1: // USERNAME
12809
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12810
              this.username = iprot.readString();
12811
            } else { 
12812
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12813
            }
12814
            break;
12815
          case 2: // PASSWORD
12816
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12817
              this.password = iprot.readString();
12818
            } else { 
12819
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12820
            }
12821
            break;
12822
          default:
12823
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12824
        }
3430 rajveer 12825
        iprot.readFieldEnd();
750 chandransh 12826
      }
12827
      iprot.readStructEnd();
12828
      validate();
12829
    }
12830
 
3430 rajveer 12831
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12832
      validate();
12833
 
12834
      oprot.writeStructBegin(STRUCT_DESC);
12835
      if (this.username != null) {
12836
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12837
        oprot.writeString(this.username);
12838
        oprot.writeFieldEnd();
12839
      }
12840
      if (this.password != null) {
12841
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12842
        oprot.writeString(this.password);
12843
        oprot.writeFieldEnd();
12844
      }
12845
      oprot.writeFieldStop();
12846
      oprot.writeStructEnd();
12847
    }
12848
 
12849
    @Override
12850
    public String toString() {
12851
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12852
      boolean first = true;
12853
 
12854
      sb.append("username:");
12855
      if (this.username == null) {
12856
        sb.append("null");
12857
      } else {
12858
        sb.append(this.username);
12859
      }
12860
      first = false;
12861
      if (!first) sb.append(", ");
12862
      sb.append("password:");
12863
      if (this.password == null) {
12864
        sb.append("null");
12865
      } else {
12866
        sb.append(this.password);
12867
      }
12868
      first = false;
12869
      sb.append(")");
12870
      return sb.toString();
12871
    }
12872
 
3430 rajveer 12873
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12874
      // check for required fields
12875
    }
12876
 
3430 rajveer 12877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12878
      try {
12879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12880
      } catch (org.apache.thrift.TException te) {
12881
        throw new java.io.IOException(te);
12882
      }
12883
    }
12884
 
12885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12886
      try {
12887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12888
      } catch (org.apache.thrift.TException te) {
12889
        throw new java.io.IOException(te);
12890
      }
12891
    }
12892
 
750 chandransh 12893
  }
12894
 
3430 rajveer 12895
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12897
 
3430 rajveer 12898
    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);
12899
    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 12900
 
3430 rajveer 12901
    private LogisticsUser success; // required
12902
    private HelperServiceException hse; // required
750 chandransh 12903
 
12904
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12905
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12906
      SUCCESS((short)0, "success"),
12907
      HSE((short)1, "hse");
12908
 
12909
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12910
 
12911
      static {
12912
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12913
          byName.put(field.getFieldName(), field);
12914
        }
12915
      }
12916
 
12917
      /**
12918
       * Find the _Fields constant that matches fieldId, or null if its not found.
12919
       */
12920
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12921
        switch(fieldId) {
12922
          case 0: // SUCCESS
12923
            return SUCCESS;
12924
          case 1: // HSE
12925
            return HSE;
12926
          default:
12927
            return null;
12928
        }
750 chandransh 12929
      }
12930
 
12931
      /**
12932
       * Find the _Fields constant that matches fieldId, throwing an exception
12933
       * if it is not found.
12934
       */
12935
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12936
        _Fields fields = findByThriftId(fieldId);
12937
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12938
        return fields;
12939
      }
12940
 
12941
      /**
12942
       * Find the _Fields constant that matches name, or null if its not found.
12943
       */
12944
      public static _Fields findByName(String name) {
12945
        return byName.get(name);
12946
      }
12947
 
12948
      private final short _thriftId;
12949
      private final String _fieldName;
12950
 
12951
      _Fields(short thriftId, String fieldName) {
12952
        _thriftId = thriftId;
12953
        _fieldName = fieldName;
12954
      }
12955
 
12956
      public short getThriftFieldId() {
12957
        return _thriftId;
12958
      }
12959
 
12960
      public String getFieldName() {
12961
        return _fieldName;
12962
      }
12963
    }
12964
 
12965
    // isset id assignments
12966
 
3430 rajveer 12967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12968
    static {
3430 rajveer 12969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12970
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12971
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12972
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12973
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12974
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12975
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12976
    }
12977
 
12978
    public authenticateLogisticsUser_result() {
12979
    }
12980
 
12981
    public authenticateLogisticsUser_result(
12982
      LogisticsUser success,
12983
      HelperServiceException hse)
12984
    {
12985
      this();
12986
      this.success = success;
12987
      this.hse = hse;
12988
    }
12989
 
12990
    /**
12991
     * Performs a deep copy on <i>other</i>.
12992
     */
12993
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12994
      if (other.isSetSuccess()) {
12995
        this.success = new LogisticsUser(other.success);
12996
      }
12997
      if (other.isSetHse()) {
12998
        this.hse = new HelperServiceException(other.hse);
12999
      }
13000
    }
13001
 
13002
    public authenticateLogisticsUser_result deepCopy() {
13003
      return new authenticateLogisticsUser_result(this);
13004
    }
13005
 
3430 rajveer 13006
    @Override
13007
    public void clear() {
13008
      this.success = null;
13009
      this.hse = null;
750 chandransh 13010
    }
13011
 
13012
    public LogisticsUser getSuccess() {
13013
      return this.success;
13014
    }
13015
 
3430 rajveer 13016
    public void setSuccess(LogisticsUser success) {
750 chandransh 13017
      this.success = success;
13018
    }
13019
 
13020
    public void unsetSuccess() {
13021
      this.success = null;
13022
    }
13023
 
3430 rajveer 13024
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 13025
    public boolean isSetSuccess() {
13026
      return this.success != null;
13027
    }
13028
 
13029
    public void setSuccessIsSet(boolean value) {
13030
      if (!value) {
13031
        this.success = null;
13032
      }
13033
    }
13034
 
13035
    public HelperServiceException getHse() {
13036
      return this.hse;
13037
    }
13038
 
3430 rajveer 13039
    public void setHse(HelperServiceException hse) {
750 chandransh 13040
      this.hse = hse;
13041
    }
13042
 
13043
    public void unsetHse() {
13044
      this.hse = null;
13045
    }
13046
 
3430 rajveer 13047
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 13048
    public boolean isSetHse() {
13049
      return this.hse != null;
13050
    }
13051
 
13052
    public void setHseIsSet(boolean value) {
13053
      if (!value) {
13054
        this.hse = null;
13055
      }
13056
    }
13057
 
13058
    public void setFieldValue(_Fields field, Object value) {
13059
      switch (field) {
13060
      case SUCCESS:
13061
        if (value == null) {
13062
          unsetSuccess();
13063
        } else {
13064
          setSuccess((LogisticsUser)value);
13065
        }
13066
        break;
13067
 
13068
      case HSE:
13069
        if (value == null) {
13070
          unsetHse();
13071
        } else {
13072
          setHse((HelperServiceException)value);
13073
        }
13074
        break;
13075
 
13076
      }
13077
    }
13078
 
13079
    public Object getFieldValue(_Fields field) {
13080
      switch (field) {
13081
      case SUCCESS:
13082
        return getSuccess();
13083
 
13084
      case HSE:
13085
        return getHse();
13086
 
13087
      }
13088
      throw new IllegalStateException();
13089
    }
13090
 
3430 rajveer 13091
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13092
    public boolean isSet(_Fields field) {
13093
      if (field == null) {
13094
        throw new IllegalArgumentException();
13095
      }
750 chandransh 13096
 
13097
      switch (field) {
13098
      case SUCCESS:
13099
        return isSetSuccess();
13100
      case HSE:
13101
        return isSetHse();
13102
      }
13103
      throw new IllegalStateException();
13104
    }
13105
 
13106
    @Override
13107
    public boolean equals(Object that) {
13108
      if (that == null)
13109
        return false;
13110
      if (that instanceof authenticateLogisticsUser_result)
13111
        return this.equals((authenticateLogisticsUser_result)that);
13112
      return false;
13113
    }
13114
 
13115
    public boolean equals(authenticateLogisticsUser_result that) {
13116
      if (that == null)
13117
        return false;
13118
 
13119
      boolean this_present_success = true && this.isSetSuccess();
13120
      boolean that_present_success = true && that.isSetSuccess();
13121
      if (this_present_success || that_present_success) {
13122
        if (!(this_present_success && that_present_success))
13123
          return false;
13124
        if (!this.success.equals(that.success))
13125
          return false;
13126
      }
13127
 
13128
      boolean this_present_hse = true && this.isSetHse();
13129
      boolean that_present_hse = true && that.isSetHse();
13130
      if (this_present_hse || that_present_hse) {
13131
        if (!(this_present_hse && that_present_hse))
13132
          return false;
13133
        if (!this.hse.equals(that.hse))
13134
          return false;
13135
      }
13136
 
13137
      return true;
13138
    }
13139
 
13140
    @Override
13141
    public int hashCode() {
13142
      return 0;
13143
    }
13144
 
13145
    public int compareTo(authenticateLogisticsUser_result other) {
13146
      if (!getClass().equals(other.getClass())) {
13147
        return getClass().getName().compareTo(other.getClass().getName());
13148
      }
13149
 
13150
      int lastComparison = 0;
13151
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
13152
 
3430 rajveer 13153
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 13154
      if (lastComparison != 0) {
13155
        return lastComparison;
13156
      }
3430 rajveer 13157
      if (isSetSuccess()) {
13158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13159
        if (lastComparison != 0) {
13160
          return lastComparison;
13161
        }
750 chandransh 13162
      }
3430 rajveer 13163
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 13164
      if (lastComparison != 0) {
13165
        return lastComparison;
13166
      }
3430 rajveer 13167
      if (isSetHse()) {
13168
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13169
        if (lastComparison != 0) {
13170
          return lastComparison;
13171
        }
750 chandransh 13172
      }
13173
      return 0;
13174
    }
13175
 
3430 rajveer 13176
    public _Fields fieldForId(int fieldId) {
13177
      return _Fields.findByThriftId(fieldId);
13178
    }
13179
 
13180
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13181
      org.apache.thrift.protocol.TField field;
750 chandransh 13182
      iprot.readStructBegin();
13183
      while (true)
13184
      {
13185
        field = iprot.readFieldBegin();
3430 rajveer 13186
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13187
          break;
13188
        }
3430 rajveer 13189
        switch (field.id) {
13190
          case 0: // SUCCESS
13191
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13192
              this.success = new LogisticsUser();
13193
              this.success.read(iprot);
13194
            } else { 
13195
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13196
            }
13197
            break;
13198
          case 1: // HSE
13199
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13200
              this.hse = new HelperServiceException();
13201
              this.hse.read(iprot);
13202
            } else { 
13203
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13204
            }
13205
            break;
13206
          default:
13207
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13208
        }
3430 rajveer 13209
        iprot.readFieldEnd();
750 chandransh 13210
      }
13211
      iprot.readStructEnd();
13212
      validate();
13213
    }
13214
 
3430 rajveer 13215
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13216
      oprot.writeStructBegin(STRUCT_DESC);
13217
 
13218
      if (this.isSetSuccess()) {
13219
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13220
        this.success.write(oprot);
13221
        oprot.writeFieldEnd();
13222
      } else if (this.isSetHse()) {
13223
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13224
        this.hse.write(oprot);
13225
        oprot.writeFieldEnd();
13226
      }
13227
      oprot.writeFieldStop();
13228
      oprot.writeStructEnd();
13229
    }
13230
 
13231
    @Override
13232
    public String toString() {
13233
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
13234
      boolean first = true;
13235
 
13236
      sb.append("success:");
13237
      if (this.success == null) {
13238
        sb.append("null");
13239
      } else {
13240
        sb.append(this.success);
13241
      }
13242
      first = false;
13243
      if (!first) sb.append(", ");
13244
      sb.append("hse:");
13245
      if (this.hse == null) {
13246
        sb.append("null");
13247
      } else {
13248
        sb.append(this.hse);
13249
      }
13250
      first = false;
13251
      sb.append(")");
13252
      return sb.toString();
13253
    }
13254
 
3430 rajveer 13255
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13256
      // check for required fields
13257
    }
13258
 
3430 rajveer 13259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13260
      try {
13261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13262
      } catch (org.apache.thrift.TException te) {
13263
        throw new java.io.IOException(te);
13264
      }
13265
    }
13266
 
13267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13268
      try {
13269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13270
      } catch (org.apache.thrift.TException te) {
13271
        throw new java.io.IOException(te);
13272
      }
13273
    }
13274
 
750 chandransh 13275
  }
13276
 
3430 rajveer 13277
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13279
 
3430 rajveer 13280
    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);
13281
    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 13282
 
3430 rajveer 13283
    private String username; // required
13284
    private String password; // required
1611 ankur.sing 13285
 
13286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13288
      USERNAME((short)1, "username"),
13289
      PASSWORD((short)2, "password");
13290
 
13291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13292
 
13293
      static {
13294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13295
          byName.put(field.getFieldName(), field);
13296
        }
13297
      }
13298
 
13299
      /**
13300
       * Find the _Fields constant that matches fieldId, or null if its not found.
13301
       */
13302
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13303
        switch(fieldId) {
13304
          case 1: // USERNAME
13305
            return USERNAME;
13306
          case 2: // PASSWORD
13307
            return PASSWORD;
13308
          default:
13309
            return null;
13310
        }
1611 ankur.sing 13311
      }
13312
 
13313
      /**
13314
       * Find the _Fields constant that matches fieldId, throwing an exception
13315
       * if it is not found.
13316
       */
13317
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13318
        _Fields fields = findByThriftId(fieldId);
13319
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13320
        return fields;
13321
      }
13322
 
13323
      /**
13324
       * Find the _Fields constant that matches name, or null if its not found.
13325
       */
13326
      public static _Fields findByName(String name) {
13327
        return byName.get(name);
13328
      }
13329
 
13330
      private final short _thriftId;
13331
      private final String _fieldName;
13332
 
13333
      _Fields(short thriftId, String fieldName) {
13334
        _thriftId = thriftId;
13335
        _fieldName = fieldName;
13336
      }
13337
 
13338
      public short getThriftFieldId() {
13339
        return _thriftId;
13340
      }
13341
 
13342
      public String getFieldName() {
13343
        return _fieldName;
13344
      }
13345
    }
13346
 
13347
    // isset id assignments
13348
 
3430 rajveer 13349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13350
    static {
3430 rajveer 13351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13352
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13354
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13358
    }
13359
 
13360
    public authenticateStatisticsUser_args() {
13361
    }
13362
 
13363
    public authenticateStatisticsUser_args(
13364
      String username,
13365
      String password)
13366
    {
13367
      this();
13368
      this.username = username;
13369
      this.password = password;
13370
    }
13371
 
13372
    /**
13373
     * Performs a deep copy on <i>other</i>.
13374
     */
13375
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13376
      if (other.isSetUsername()) {
13377
        this.username = other.username;
13378
      }
13379
      if (other.isSetPassword()) {
13380
        this.password = other.password;
13381
      }
13382
    }
13383
 
13384
    public authenticateStatisticsUser_args deepCopy() {
13385
      return new authenticateStatisticsUser_args(this);
13386
    }
13387
 
3430 rajveer 13388
    @Override
13389
    public void clear() {
13390
      this.username = null;
13391
      this.password = null;
1611 ankur.sing 13392
    }
13393
 
13394
    public String getUsername() {
13395
      return this.username;
13396
    }
13397
 
3430 rajveer 13398
    public void setUsername(String username) {
1611 ankur.sing 13399
      this.username = username;
13400
    }
13401
 
13402
    public void unsetUsername() {
13403
      this.username = null;
13404
    }
13405
 
3430 rajveer 13406
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13407
    public boolean isSetUsername() {
13408
      return this.username != null;
13409
    }
13410
 
13411
    public void setUsernameIsSet(boolean value) {
13412
      if (!value) {
13413
        this.username = null;
13414
      }
13415
    }
13416
 
13417
    public String getPassword() {
13418
      return this.password;
13419
    }
13420
 
3430 rajveer 13421
    public void setPassword(String password) {
1611 ankur.sing 13422
      this.password = password;
13423
    }
13424
 
13425
    public void unsetPassword() {
13426
      this.password = null;
13427
    }
13428
 
3430 rajveer 13429
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13430
    public boolean isSetPassword() {
13431
      return this.password != null;
13432
    }
13433
 
13434
    public void setPasswordIsSet(boolean value) {
13435
      if (!value) {
13436
        this.password = null;
13437
      }
13438
    }
13439
 
13440
    public void setFieldValue(_Fields field, Object value) {
13441
      switch (field) {
13442
      case USERNAME:
13443
        if (value == null) {
13444
          unsetUsername();
13445
        } else {
13446
          setUsername((String)value);
13447
        }
13448
        break;
13449
 
13450
      case PASSWORD:
13451
        if (value == null) {
13452
          unsetPassword();
13453
        } else {
13454
          setPassword((String)value);
13455
        }
13456
        break;
13457
 
13458
      }
13459
    }
13460
 
13461
    public Object getFieldValue(_Fields field) {
13462
      switch (field) {
13463
      case USERNAME:
13464
        return getUsername();
13465
 
13466
      case PASSWORD:
13467
        return getPassword();
13468
 
13469
      }
13470
      throw new IllegalStateException();
13471
    }
13472
 
3430 rajveer 13473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13474
    public boolean isSet(_Fields field) {
13475
      if (field == null) {
13476
        throw new IllegalArgumentException();
13477
      }
1611 ankur.sing 13478
 
13479
      switch (field) {
13480
      case USERNAME:
13481
        return isSetUsername();
13482
      case PASSWORD:
13483
        return isSetPassword();
13484
      }
13485
      throw new IllegalStateException();
13486
    }
13487
 
13488
    @Override
13489
    public boolean equals(Object that) {
13490
      if (that == null)
13491
        return false;
13492
      if (that instanceof authenticateStatisticsUser_args)
13493
        return this.equals((authenticateStatisticsUser_args)that);
13494
      return false;
13495
    }
13496
 
13497
    public boolean equals(authenticateStatisticsUser_args that) {
13498
      if (that == null)
13499
        return false;
13500
 
13501
      boolean this_present_username = true && this.isSetUsername();
13502
      boolean that_present_username = true && that.isSetUsername();
13503
      if (this_present_username || that_present_username) {
13504
        if (!(this_present_username && that_present_username))
13505
          return false;
13506
        if (!this.username.equals(that.username))
13507
          return false;
13508
      }
13509
 
13510
      boolean this_present_password = true && this.isSetPassword();
13511
      boolean that_present_password = true && that.isSetPassword();
13512
      if (this_present_password || that_present_password) {
13513
        if (!(this_present_password && that_present_password))
13514
          return false;
13515
        if (!this.password.equals(that.password))
13516
          return false;
13517
      }
13518
 
13519
      return true;
13520
    }
13521
 
13522
    @Override
13523
    public int hashCode() {
13524
      return 0;
13525
    }
13526
 
13527
    public int compareTo(authenticateStatisticsUser_args other) {
13528
      if (!getClass().equals(other.getClass())) {
13529
        return getClass().getName().compareTo(other.getClass().getName());
13530
      }
13531
 
13532
      int lastComparison = 0;
13533
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13534
 
3430 rajveer 13535
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13536
      if (lastComparison != 0) {
13537
        return lastComparison;
13538
      }
3430 rajveer 13539
      if (isSetUsername()) {
13540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13541
        if (lastComparison != 0) {
13542
          return lastComparison;
13543
        }
1611 ankur.sing 13544
      }
3430 rajveer 13545
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13546
      if (lastComparison != 0) {
13547
        return lastComparison;
13548
      }
3430 rajveer 13549
      if (isSetPassword()) {
13550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13551
        if (lastComparison != 0) {
13552
          return lastComparison;
13553
        }
1611 ankur.sing 13554
      }
13555
      return 0;
13556
    }
13557
 
3430 rajveer 13558
    public _Fields fieldForId(int fieldId) {
13559
      return _Fields.findByThriftId(fieldId);
13560
    }
13561
 
13562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13563
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13564
      iprot.readStructBegin();
13565
      while (true)
13566
      {
13567
        field = iprot.readFieldBegin();
3430 rajveer 13568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13569
          break;
13570
        }
3430 rajveer 13571
        switch (field.id) {
13572
          case 1: // USERNAME
13573
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13574
              this.username = iprot.readString();
13575
            } else { 
13576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13577
            }
13578
            break;
13579
          case 2: // PASSWORD
13580
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13581
              this.password = iprot.readString();
13582
            } else { 
13583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13584
            }
13585
            break;
13586
          default:
13587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13588
        }
3430 rajveer 13589
        iprot.readFieldEnd();
1611 ankur.sing 13590
      }
13591
      iprot.readStructEnd();
13592
      validate();
13593
    }
13594
 
3430 rajveer 13595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13596
      validate();
13597
 
13598
      oprot.writeStructBegin(STRUCT_DESC);
13599
      if (this.username != null) {
13600
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13601
        oprot.writeString(this.username);
13602
        oprot.writeFieldEnd();
13603
      }
13604
      if (this.password != null) {
13605
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13606
        oprot.writeString(this.password);
13607
        oprot.writeFieldEnd();
13608
      }
13609
      oprot.writeFieldStop();
13610
      oprot.writeStructEnd();
13611
    }
13612
 
13613
    @Override
13614
    public String toString() {
13615
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13616
      boolean first = true;
13617
 
13618
      sb.append("username:");
13619
      if (this.username == null) {
13620
        sb.append("null");
13621
      } else {
13622
        sb.append(this.username);
13623
      }
13624
      first = false;
13625
      if (!first) sb.append(", ");
13626
      sb.append("password:");
13627
      if (this.password == null) {
13628
        sb.append("null");
13629
      } else {
13630
        sb.append(this.password);
13631
      }
13632
      first = false;
13633
      sb.append(")");
13634
      return sb.toString();
13635
    }
13636
 
3430 rajveer 13637
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13638
      // check for required fields
13639
    }
13640
 
3430 rajveer 13641
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13642
      try {
13643
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13644
      } catch (org.apache.thrift.TException te) {
13645
        throw new java.io.IOException(te);
13646
      }
13647
    }
13648
 
13649
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13650
      try {
13651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13652
      } catch (org.apache.thrift.TException te) {
13653
        throw new java.io.IOException(te);
13654
      }
13655
    }
13656
 
1611 ankur.sing 13657
  }
13658
 
3430 rajveer 13659
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13661
 
3430 rajveer 13662
    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);
13663
    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 13664
 
3430 rajveer 13665
    private StatisticsUser success; // required
13666
    private HelperServiceException hse; // required
1611 ankur.sing 13667
 
13668
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13669
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13670
      SUCCESS((short)0, "success"),
13671
      HSE((short)1, "hse");
13672
 
13673
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13674
 
13675
      static {
13676
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13677
          byName.put(field.getFieldName(), field);
13678
        }
13679
      }
13680
 
13681
      /**
13682
       * Find the _Fields constant that matches fieldId, or null if its not found.
13683
       */
13684
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13685
        switch(fieldId) {
13686
          case 0: // SUCCESS
13687
            return SUCCESS;
13688
          case 1: // HSE
13689
            return HSE;
13690
          default:
13691
            return null;
13692
        }
1611 ankur.sing 13693
      }
13694
 
13695
      /**
13696
       * Find the _Fields constant that matches fieldId, throwing an exception
13697
       * if it is not found.
13698
       */
13699
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13700
        _Fields fields = findByThriftId(fieldId);
13701
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13702
        return fields;
13703
      }
13704
 
13705
      /**
13706
       * Find the _Fields constant that matches name, or null if its not found.
13707
       */
13708
      public static _Fields findByName(String name) {
13709
        return byName.get(name);
13710
      }
13711
 
13712
      private final short _thriftId;
13713
      private final String _fieldName;
13714
 
13715
      _Fields(short thriftId, String fieldName) {
13716
        _thriftId = thriftId;
13717
        _fieldName = fieldName;
13718
      }
13719
 
13720
      public short getThriftFieldId() {
13721
        return _thriftId;
13722
      }
13723
 
13724
      public String getFieldName() {
13725
        return _fieldName;
13726
      }
13727
    }
13728
 
13729
    // isset id assignments
13730
 
3430 rajveer 13731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13732
    static {
3430 rajveer 13733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13734
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13735
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13736
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13737
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13738
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13739
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13740
    }
13741
 
13742
    public authenticateStatisticsUser_result() {
13743
    }
13744
 
13745
    public authenticateStatisticsUser_result(
13746
      StatisticsUser success,
13747
      HelperServiceException hse)
13748
    {
13749
      this();
13750
      this.success = success;
13751
      this.hse = hse;
13752
    }
13753
 
13754
    /**
13755
     * Performs a deep copy on <i>other</i>.
13756
     */
13757
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13758
      if (other.isSetSuccess()) {
13759
        this.success = new StatisticsUser(other.success);
13760
      }
13761
      if (other.isSetHse()) {
13762
        this.hse = new HelperServiceException(other.hse);
13763
      }
13764
    }
13765
 
13766
    public authenticateStatisticsUser_result deepCopy() {
13767
      return new authenticateStatisticsUser_result(this);
13768
    }
13769
 
3430 rajveer 13770
    @Override
13771
    public void clear() {
13772
      this.success = null;
13773
      this.hse = null;
1611 ankur.sing 13774
    }
13775
 
13776
    public StatisticsUser getSuccess() {
13777
      return this.success;
13778
    }
13779
 
3430 rajveer 13780
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13781
      this.success = success;
13782
    }
13783
 
13784
    public void unsetSuccess() {
13785
      this.success = null;
13786
    }
13787
 
3430 rajveer 13788
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13789
    public boolean isSetSuccess() {
13790
      return this.success != null;
13791
    }
13792
 
13793
    public void setSuccessIsSet(boolean value) {
13794
      if (!value) {
13795
        this.success = null;
13796
      }
13797
    }
13798
 
13799
    public HelperServiceException getHse() {
13800
      return this.hse;
13801
    }
13802
 
3430 rajveer 13803
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13804
      this.hse = hse;
13805
    }
13806
 
13807
    public void unsetHse() {
13808
      this.hse = null;
13809
    }
13810
 
3430 rajveer 13811
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13812
    public boolean isSetHse() {
13813
      return this.hse != null;
13814
    }
13815
 
13816
    public void setHseIsSet(boolean value) {
13817
      if (!value) {
13818
        this.hse = null;
13819
      }
13820
    }
13821
 
13822
    public void setFieldValue(_Fields field, Object value) {
13823
      switch (field) {
13824
      case SUCCESS:
13825
        if (value == null) {
13826
          unsetSuccess();
13827
        } else {
13828
          setSuccess((StatisticsUser)value);
13829
        }
13830
        break;
13831
 
13832
      case HSE:
13833
        if (value == null) {
13834
          unsetHse();
13835
        } else {
13836
          setHse((HelperServiceException)value);
13837
        }
13838
        break;
13839
 
13840
      }
13841
    }
13842
 
13843
    public Object getFieldValue(_Fields field) {
13844
      switch (field) {
13845
      case SUCCESS:
13846
        return getSuccess();
13847
 
13848
      case HSE:
13849
        return getHse();
13850
 
13851
      }
13852
      throw new IllegalStateException();
13853
    }
13854
 
3430 rajveer 13855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13856
    public boolean isSet(_Fields field) {
13857
      if (field == null) {
13858
        throw new IllegalArgumentException();
13859
      }
1611 ankur.sing 13860
 
13861
      switch (field) {
13862
      case SUCCESS:
13863
        return isSetSuccess();
13864
      case HSE:
13865
        return isSetHse();
13866
      }
13867
      throw new IllegalStateException();
13868
    }
13869
 
13870
    @Override
13871
    public boolean equals(Object that) {
13872
      if (that == null)
13873
        return false;
13874
      if (that instanceof authenticateStatisticsUser_result)
13875
        return this.equals((authenticateStatisticsUser_result)that);
13876
      return false;
13877
    }
13878
 
13879
    public boolean equals(authenticateStatisticsUser_result that) {
13880
      if (that == null)
13881
        return false;
13882
 
13883
      boolean this_present_success = true && this.isSetSuccess();
13884
      boolean that_present_success = true && that.isSetSuccess();
13885
      if (this_present_success || that_present_success) {
13886
        if (!(this_present_success && that_present_success))
13887
          return false;
13888
        if (!this.success.equals(that.success))
13889
          return false;
13890
      }
13891
 
13892
      boolean this_present_hse = true && this.isSetHse();
13893
      boolean that_present_hse = true && that.isSetHse();
13894
      if (this_present_hse || that_present_hse) {
13895
        if (!(this_present_hse && that_present_hse))
13896
          return false;
13897
        if (!this.hse.equals(that.hse))
13898
          return false;
13899
      }
13900
 
13901
      return true;
13902
    }
13903
 
13904
    @Override
13905
    public int hashCode() {
13906
      return 0;
13907
    }
13908
 
13909
    public int compareTo(authenticateStatisticsUser_result other) {
13910
      if (!getClass().equals(other.getClass())) {
13911
        return getClass().getName().compareTo(other.getClass().getName());
13912
      }
13913
 
13914
      int lastComparison = 0;
13915
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13916
 
3430 rajveer 13917
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13918
      if (lastComparison != 0) {
13919
        return lastComparison;
13920
      }
3430 rajveer 13921
      if (isSetSuccess()) {
13922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13923
        if (lastComparison != 0) {
13924
          return lastComparison;
13925
        }
1611 ankur.sing 13926
      }
3430 rajveer 13927
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13928
      if (lastComparison != 0) {
13929
        return lastComparison;
13930
      }
3430 rajveer 13931
      if (isSetHse()) {
13932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13933
        if (lastComparison != 0) {
13934
          return lastComparison;
13935
        }
1611 ankur.sing 13936
      }
13937
      return 0;
13938
    }
13939
 
3430 rajveer 13940
    public _Fields fieldForId(int fieldId) {
13941
      return _Fields.findByThriftId(fieldId);
13942
    }
13943
 
13944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13945
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13946
      iprot.readStructBegin();
13947
      while (true)
13948
      {
13949
        field = iprot.readFieldBegin();
3430 rajveer 13950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13951
          break;
13952
        }
3430 rajveer 13953
        switch (field.id) {
13954
          case 0: // SUCCESS
13955
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13956
              this.success = new StatisticsUser();
13957
              this.success.read(iprot);
13958
            } else { 
13959
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13960
            }
13961
            break;
13962
          case 1: // HSE
13963
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13964
              this.hse = new HelperServiceException();
13965
              this.hse.read(iprot);
13966
            } else { 
13967
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13968
            }
13969
            break;
13970
          default:
13971
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13972
        }
3430 rajveer 13973
        iprot.readFieldEnd();
1611 ankur.sing 13974
      }
13975
      iprot.readStructEnd();
13976
      validate();
13977
    }
13978
 
3430 rajveer 13979
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13980
      oprot.writeStructBegin(STRUCT_DESC);
13981
 
13982
      if (this.isSetSuccess()) {
13983
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13984
        this.success.write(oprot);
13985
        oprot.writeFieldEnd();
13986
      } else if (this.isSetHse()) {
13987
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13988
        this.hse.write(oprot);
13989
        oprot.writeFieldEnd();
13990
      }
13991
      oprot.writeFieldStop();
13992
      oprot.writeStructEnd();
13993
    }
13994
 
13995
    @Override
13996
    public String toString() {
13997
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13998
      boolean first = true;
13999
 
14000
      sb.append("success:");
14001
      if (this.success == null) {
14002
        sb.append("null");
14003
      } else {
14004
        sb.append(this.success);
14005
      }
14006
      first = false;
14007
      if (!first) sb.append(", ");
14008
      sb.append("hse:");
14009
      if (this.hse == null) {
14010
        sb.append("null");
14011
      } else {
14012
        sb.append(this.hse);
14013
      }
14014
      first = false;
14015
      sb.append(")");
14016
      return sb.toString();
14017
    }
14018
 
3430 rajveer 14019
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14020
      // check for required fields
14021
    }
14022
 
3430 rajveer 14023
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14024
      try {
14025
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14026
      } catch (org.apache.thrift.TException te) {
14027
        throw new java.io.IOException(te);
14028
      }
14029
    }
14030
 
14031
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14032
      try {
14033
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14034
      } catch (org.apache.thrift.TException te) {
14035
        throw new java.io.IOException(te);
14036
      }
14037
    }
14038
 
1611 ankur.sing 14039
  }
14040
 
3430 rajveer 14041
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
14042
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 14043
 
3430 rajveer 14044
    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);
14045
    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 14046
 
3430 rajveer 14047
    private String username; // required
14048
    private String password; // required
1891 ankur.sing 14049
 
14050
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14051
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14052
      USERNAME((short)1, "username"),
14053
      PASSWORD((short)2, "password");
14054
 
14055
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14056
 
14057
      static {
14058
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14059
          byName.put(field.getFieldName(), field);
14060
        }
14061
      }
14062
 
14063
      /**
14064
       * Find the _Fields constant that matches fieldId, or null if its not found.
14065
       */
14066
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14067
        switch(fieldId) {
14068
          case 1: // USERNAME
14069
            return USERNAME;
14070
          case 2: // PASSWORD
14071
            return PASSWORD;
14072
          default:
14073
            return null;
14074
        }
1891 ankur.sing 14075
      }
14076
 
14077
      /**
14078
       * Find the _Fields constant that matches fieldId, throwing an exception
14079
       * if it is not found.
14080
       */
14081
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14082
        _Fields fields = findByThriftId(fieldId);
14083
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14084
        return fields;
14085
      }
14086
 
14087
      /**
14088
       * Find the _Fields constant that matches name, or null if its not found.
14089
       */
14090
      public static _Fields findByName(String name) {
14091
        return byName.get(name);
14092
      }
14093
 
14094
      private final short _thriftId;
14095
      private final String _fieldName;
14096
 
14097
      _Fields(short thriftId, String fieldName) {
14098
        _thriftId = thriftId;
14099
        _fieldName = fieldName;
14100
      }
14101
 
14102
      public short getThriftFieldId() {
14103
        return _thriftId;
14104
      }
14105
 
14106
      public String getFieldName() {
14107
        return _fieldName;
14108
      }
14109
    }
14110
 
14111
    // isset id assignments
14112
 
3430 rajveer 14113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14114
    static {
3430 rajveer 14115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14116
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14118
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 14122
    }
14123
 
14124
    public authenticateReportUser_args() {
14125
    }
14126
 
14127
    public authenticateReportUser_args(
14128
      String username,
14129
      String password)
14130
    {
14131
      this();
14132
      this.username = username;
14133
      this.password = password;
14134
    }
14135
 
14136
    /**
14137
     * Performs a deep copy on <i>other</i>.
14138
     */
14139
    public authenticateReportUser_args(authenticateReportUser_args other) {
14140
      if (other.isSetUsername()) {
14141
        this.username = other.username;
14142
      }
14143
      if (other.isSetPassword()) {
14144
        this.password = other.password;
14145
      }
14146
    }
14147
 
14148
    public authenticateReportUser_args deepCopy() {
14149
      return new authenticateReportUser_args(this);
14150
    }
14151
 
3430 rajveer 14152
    @Override
14153
    public void clear() {
14154
      this.username = null;
14155
      this.password = null;
1891 ankur.sing 14156
    }
14157
 
14158
    public String getUsername() {
14159
      return this.username;
14160
    }
14161
 
3430 rajveer 14162
    public void setUsername(String username) {
1891 ankur.sing 14163
      this.username = username;
14164
    }
14165
 
14166
    public void unsetUsername() {
14167
      this.username = null;
14168
    }
14169
 
3430 rajveer 14170
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14171
    public boolean isSetUsername() {
14172
      return this.username != null;
14173
    }
14174
 
14175
    public void setUsernameIsSet(boolean value) {
14176
      if (!value) {
14177
        this.username = null;
14178
      }
14179
    }
14180
 
14181
    public String getPassword() {
14182
      return this.password;
14183
    }
14184
 
3430 rajveer 14185
    public void setPassword(String password) {
1891 ankur.sing 14186
      this.password = password;
14187
    }
14188
 
14189
    public void unsetPassword() {
14190
      this.password = null;
14191
    }
14192
 
3430 rajveer 14193
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14194
    public boolean isSetPassword() {
14195
      return this.password != null;
14196
    }
14197
 
14198
    public void setPasswordIsSet(boolean value) {
14199
      if (!value) {
14200
        this.password = null;
14201
      }
14202
    }
14203
 
14204
    public void setFieldValue(_Fields field, Object value) {
14205
      switch (field) {
14206
      case USERNAME:
14207
        if (value == null) {
14208
          unsetUsername();
14209
        } else {
14210
          setUsername((String)value);
14211
        }
14212
        break;
14213
 
14214
      case PASSWORD:
14215
        if (value == null) {
14216
          unsetPassword();
14217
        } else {
14218
          setPassword((String)value);
14219
        }
14220
        break;
14221
 
14222
      }
14223
    }
14224
 
14225
    public Object getFieldValue(_Fields field) {
14226
      switch (field) {
14227
      case USERNAME:
14228
        return getUsername();
14229
 
14230
      case PASSWORD:
14231
        return getPassword();
14232
 
14233
      }
14234
      throw new IllegalStateException();
14235
    }
14236
 
3430 rajveer 14237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14238
    public boolean isSet(_Fields field) {
14239
      if (field == null) {
14240
        throw new IllegalArgumentException();
14241
      }
1891 ankur.sing 14242
 
14243
      switch (field) {
14244
      case USERNAME:
14245
        return isSetUsername();
14246
      case PASSWORD:
14247
        return isSetPassword();
14248
      }
14249
      throw new IllegalStateException();
14250
    }
14251
 
14252
    @Override
14253
    public boolean equals(Object that) {
14254
      if (that == null)
14255
        return false;
14256
      if (that instanceof authenticateReportUser_args)
14257
        return this.equals((authenticateReportUser_args)that);
14258
      return false;
14259
    }
14260
 
14261
    public boolean equals(authenticateReportUser_args that) {
14262
      if (that == null)
14263
        return false;
14264
 
14265
      boolean this_present_username = true && this.isSetUsername();
14266
      boolean that_present_username = true && that.isSetUsername();
14267
      if (this_present_username || that_present_username) {
14268
        if (!(this_present_username && that_present_username))
14269
          return false;
14270
        if (!this.username.equals(that.username))
14271
          return false;
14272
      }
14273
 
14274
      boolean this_present_password = true && this.isSetPassword();
14275
      boolean that_present_password = true && that.isSetPassword();
14276
      if (this_present_password || that_present_password) {
14277
        if (!(this_present_password && that_present_password))
14278
          return false;
14279
        if (!this.password.equals(that.password))
14280
          return false;
14281
      }
14282
 
14283
      return true;
14284
    }
14285
 
14286
    @Override
14287
    public int hashCode() {
14288
      return 0;
14289
    }
14290
 
14291
    public int compareTo(authenticateReportUser_args other) {
14292
      if (!getClass().equals(other.getClass())) {
14293
        return getClass().getName().compareTo(other.getClass().getName());
14294
      }
14295
 
14296
      int lastComparison = 0;
14297
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14298
 
3430 rajveer 14299
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14300
      if (lastComparison != 0) {
14301
        return lastComparison;
14302
      }
3430 rajveer 14303
      if (isSetUsername()) {
14304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14305
        if (lastComparison != 0) {
14306
          return lastComparison;
14307
        }
1891 ankur.sing 14308
      }
3430 rajveer 14309
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14310
      if (lastComparison != 0) {
14311
        return lastComparison;
14312
      }
3430 rajveer 14313
      if (isSetPassword()) {
14314
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14315
        if (lastComparison != 0) {
14316
          return lastComparison;
14317
        }
1891 ankur.sing 14318
      }
14319
      return 0;
14320
    }
14321
 
3430 rajveer 14322
    public _Fields fieldForId(int fieldId) {
14323
      return _Fields.findByThriftId(fieldId);
14324
    }
14325
 
14326
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14327
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14328
      iprot.readStructBegin();
14329
      while (true)
14330
      {
14331
        field = iprot.readFieldBegin();
3430 rajveer 14332
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14333
          break;
14334
        }
3430 rajveer 14335
        switch (field.id) {
14336
          case 1: // USERNAME
14337
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14338
              this.username = iprot.readString();
14339
            } else { 
14340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14341
            }
14342
            break;
14343
          case 2: // PASSWORD
14344
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14345
              this.password = iprot.readString();
14346
            } else { 
14347
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14348
            }
14349
            break;
14350
          default:
14351
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14352
        }
3430 rajveer 14353
        iprot.readFieldEnd();
1891 ankur.sing 14354
      }
14355
      iprot.readStructEnd();
14356
      validate();
14357
    }
14358
 
3430 rajveer 14359
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14360
      validate();
14361
 
14362
      oprot.writeStructBegin(STRUCT_DESC);
14363
      if (this.username != null) {
14364
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14365
        oprot.writeString(this.username);
14366
        oprot.writeFieldEnd();
14367
      }
14368
      if (this.password != null) {
14369
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14370
        oprot.writeString(this.password);
14371
        oprot.writeFieldEnd();
14372
      }
14373
      oprot.writeFieldStop();
14374
      oprot.writeStructEnd();
14375
    }
14376
 
14377
    @Override
14378
    public String toString() {
14379
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14380
      boolean first = true;
14381
 
14382
      sb.append("username:");
14383
      if (this.username == null) {
14384
        sb.append("null");
14385
      } else {
14386
        sb.append(this.username);
14387
      }
14388
      first = false;
14389
      if (!first) sb.append(", ");
14390
      sb.append("password:");
14391
      if (this.password == null) {
14392
        sb.append("null");
14393
      } else {
14394
        sb.append(this.password);
14395
      }
14396
      first = false;
14397
      sb.append(")");
14398
      return sb.toString();
14399
    }
14400
 
3430 rajveer 14401
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14402
      // check for required fields
14403
    }
14404
 
3430 rajveer 14405
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14406
      try {
14407
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14408
      } catch (org.apache.thrift.TException te) {
14409
        throw new java.io.IOException(te);
14410
      }
14411
    }
14412
 
14413
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14414
      try {
14415
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14416
      } catch (org.apache.thrift.TException te) {
14417
        throw new java.io.IOException(te);
14418
      }
14419
    }
14420
 
1891 ankur.sing 14421
  }
14422
 
3430 rajveer 14423
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14424
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14425
 
3430 rajveer 14426
    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);
14427
    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 14428
 
3430 rajveer 14429
    private ReportUser success; // required
14430
    private HelperServiceException hse; // required
1891 ankur.sing 14431
 
14432
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14433
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14434
      SUCCESS((short)0, "success"),
14435
      HSE((short)1, "hse");
14436
 
14437
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14438
 
14439
      static {
14440
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14441
          byName.put(field.getFieldName(), field);
14442
        }
14443
      }
14444
 
14445
      /**
14446
       * Find the _Fields constant that matches fieldId, or null if its not found.
14447
       */
14448
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14449
        switch(fieldId) {
14450
          case 0: // SUCCESS
14451
            return SUCCESS;
14452
          case 1: // HSE
14453
            return HSE;
14454
          default:
14455
            return null;
14456
        }
1891 ankur.sing 14457
      }
14458
 
14459
      /**
14460
       * Find the _Fields constant that matches fieldId, throwing an exception
14461
       * if it is not found.
14462
       */
14463
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14464
        _Fields fields = findByThriftId(fieldId);
14465
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14466
        return fields;
14467
      }
14468
 
14469
      /**
14470
       * Find the _Fields constant that matches name, or null if its not found.
14471
       */
14472
      public static _Fields findByName(String name) {
14473
        return byName.get(name);
14474
      }
14475
 
14476
      private final short _thriftId;
14477
      private final String _fieldName;
14478
 
14479
      _Fields(short thriftId, String fieldName) {
14480
        _thriftId = thriftId;
14481
        _fieldName = fieldName;
14482
      }
14483
 
14484
      public short getThriftFieldId() {
14485
        return _thriftId;
14486
      }
14487
 
14488
      public String getFieldName() {
14489
        return _fieldName;
14490
      }
14491
    }
14492
 
14493
    // isset id assignments
14494
 
3430 rajveer 14495
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14496
    static {
3430 rajveer 14497
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14498
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14499
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14500
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14501
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14502
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14503
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14504
    }
14505
 
14506
    public authenticateReportUser_result() {
14507
    }
14508
 
14509
    public authenticateReportUser_result(
14510
      ReportUser success,
14511
      HelperServiceException hse)
14512
    {
14513
      this();
14514
      this.success = success;
14515
      this.hse = hse;
14516
    }
14517
 
14518
    /**
14519
     * Performs a deep copy on <i>other</i>.
14520
     */
14521
    public authenticateReportUser_result(authenticateReportUser_result other) {
14522
      if (other.isSetSuccess()) {
14523
        this.success = new ReportUser(other.success);
14524
      }
14525
      if (other.isSetHse()) {
14526
        this.hse = new HelperServiceException(other.hse);
14527
      }
14528
    }
14529
 
14530
    public authenticateReportUser_result deepCopy() {
14531
      return new authenticateReportUser_result(this);
14532
    }
14533
 
3430 rajveer 14534
    @Override
14535
    public void clear() {
14536
      this.success = null;
14537
      this.hse = null;
1891 ankur.sing 14538
    }
14539
 
14540
    public ReportUser getSuccess() {
14541
      return this.success;
14542
    }
14543
 
3430 rajveer 14544
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14545
      this.success = success;
14546
    }
14547
 
14548
    public void unsetSuccess() {
14549
      this.success = null;
14550
    }
14551
 
3430 rajveer 14552
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14553
    public boolean isSetSuccess() {
14554
      return this.success != null;
14555
    }
14556
 
14557
    public void setSuccessIsSet(boolean value) {
14558
      if (!value) {
14559
        this.success = null;
14560
      }
14561
    }
14562
 
14563
    public HelperServiceException getHse() {
14564
      return this.hse;
14565
    }
14566
 
3430 rajveer 14567
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14568
      this.hse = hse;
14569
    }
14570
 
14571
    public void unsetHse() {
14572
      this.hse = null;
14573
    }
14574
 
3430 rajveer 14575
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14576
    public boolean isSetHse() {
14577
      return this.hse != null;
14578
    }
14579
 
14580
    public void setHseIsSet(boolean value) {
14581
      if (!value) {
14582
        this.hse = null;
14583
      }
14584
    }
14585
 
14586
    public void setFieldValue(_Fields field, Object value) {
14587
      switch (field) {
14588
      case SUCCESS:
14589
        if (value == null) {
14590
          unsetSuccess();
14591
        } else {
14592
          setSuccess((ReportUser)value);
14593
        }
14594
        break;
14595
 
14596
      case HSE:
14597
        if (value == null) {
14598
          unsetHse();
14599
        } else {
14600
          setHse((HelperServiceException)value);
14601
        }
14602
        break;
14603
 
14604
      }
14605
    }
14606
 
14607
    public Object getFieldValue(_Fields field) {
14608
      switch (field) {
14609
      case SUCCESS:
14610
        return getSuccess();
14611
 
14612
      case HSE:
14613
        return getHse();
14614
 
14615
      }
14616
      throw new IllegalStateException();
14617
    }
14618
 
3430 rajveer 14619
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14620
    public boolean isSet(_Fields field) {
14621
      if (field == null) {
14622
        throw new IllegalArgumentException();
14623
      }
1891 ankur.sing 14624
 
14625
      switch (field) {
14626
      case SUCCESS:
14627
        return isSetSuccess();
14628
      case HSE:
14629
        return isSetHse();
14630
      }
14631
      throw new IllegalStateException();
14632
    }
14633
 
14634
    @Override
14635
    public boolean equals(Object that) {
14636
      if (that == null)
14637
        return false;
14638
      if (that instanceof authenticateReportUser_result)
14639
        return this.equals((authenticateReportUser_result)that);
14640
      return false;
14641
    }
14642
 
14643
    public boolean equals(authenticateReportUser_result that) {
14644
      if (that == null)
14645
        return false;
14646
 
14647
      boolean this_present_success = true && this.isSetSuccess();
14648
      boolean that_present_success = true && that.isSetSuccess();
14649
      if (this_present_success || that_present_success) {
14650
        if (!(this_present_success && that_present_success))
14651
          return false;
14652
        if (!this.success.equals(that.success))
14653
          return false;
14654
      }
14655
 
14656
      boolean this_present_hse = true && this.isSetHse();
14657
      boolean that_present_hse = true && that.isSetHse();
14658
      if (this_present_hse || that_present_hse) {
14659
        if (!(this_present_hse && that_present_hse))
14660
          return false;
14661
        if (!this.hse.equals(that.hse))
14662
          return false;
14663
      }
14664
 
14665
      return true;
14666
    }
14667
 
14668
    @Override
14669
    public int hashCode() {
14670
      return 0;
14671
    }
14672
 
14673
    public int compareTo(authenticateReportUser_result other) {
14674
      if (!getClass().equals(other.getClass())) {
14675
        return getClass().getName().compareTo(other.getClass().getName());
14676
      }
14677
 
14678
      int lastComparison = 0;
14679
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14680
 
3430 rajveer 14681
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14682
      if (lastComparison != 0) {
14683
        return lastComparison;
14684
      }
3430 rajveer 14685
      if (isSetSuccess()) {
14686
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14687
        if (lastComparison != 0) {
14688
          return lastComparison;
14689
        }
1891 ankur.sing 14690
      }
3430 rajveer 14691
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14692
      if (lastComparison != 0) {
14693
        return lastComparison;
14694
      }
3430 rajveer 14695
      if (isSetHse()) {
14696
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14697
        if (lastComparison != 0) {
14698
          return lastComparison;
14699
        }
1891 ankur.sing 14700
      }
14701
      return 0;
14702
    }
14703
 
3430 rajveer 14704
    public _Fields fieldForId(int fieldId) {
14705
      return _Fields.findByThriftId(fieldId);
14706
    }
14707
 
14708
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14709
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14710
      iprot.readStructBegin();
14711
      while (true)
14712
      {
14713
        field = iprot.readFieldBegin();
3430 rajveer 14714
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14715
          break;
14716
        }
3430 rajveer 14717
        switch (field.id) {
14718
          case 0: // SUCCESS
14719
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14720
              this.success = new ReportUser();
14721
              this.success.read(iprot);
14722
            } else { 
14723
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14724
            }
14725
            break;
14726
          case 1: // HSE
14727
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14728
              this.hse = new HelperServiceException();
14729
              this.hse.read(iprot);
14730
            } else { 
14731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14732
            }
14733
            break;
14734
          default:
14735
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14736
        }
3430 rajveer 14737
        iprot.readFieldEnd();
1891 ankur.sing 14738
      }
14739
      iprot.readStructEnd();
14740
      validate();
14741
    }
14742
 
3430 rajveer 14743
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14744
      oprot.writeStructBegin(STRUCT_DESC);
14745
 
14746
      if (this.isSetSuccess()) {
14747
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14748
        this.success.write(oprot);
14749
        oprot.writeFieldEnd();
14750
      } else if (this.isSetHse()) {
14751
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14752
        this.hse.write(oprot);
14753
        oprot.writeFieldEnd();
14754
      }
14755
      oprot.writeFieldStop();
14756
      oprot.writeStructEnd();
14757
    }
14758
 
14759
    @Override
14760
    public String toString() {
14761
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14762
      boolean first = true;
14763
 
14764
      sb.append("success:");
14765
      if (this.success == null) {
14766
        sb.append("null");
14767
      } else {
14768
        sb.append(this.success);
14769
      }
14770
      first = false;
14771
      if (!first) sb.append(", ");
14772
      sb.append("hse:");
14773
      if (this.hse == null) {
14774
        sb.append("null");
14775
      } else {
14776
        sb.append(this.hse);
14777
      }
14778
      first = false;
14779
      sb.append(")");
14780
      return sb.toString();
14781
    }
14782
 
3430 rajveer 14783
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14784
      // check for required fields
14785
    }
14786
 
3430 rajveer 14787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14788
      try {
14789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14790
      } catch (org.apache.thrift.TException te) {
14791
        throw new java.io.IOException(te);
14792
      }
14793
    }
14794
 
14795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14796
      try {
14797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14798
      } catch (org.apache.thrift.TException te) {
14799
        throw new java.io.IOException(te);
14800
      }
14801
    }
14802
 
1891 ankur.sing 14803
  }
14804
 
3430 rajveer 14805
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14807
 
3430 rajveer 14808
    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 14809
 
3430 rajveer 14810
    private long role; // required
1891 ankur.sing 14811
 
14812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14814
      ROLE((short)1, "role");
14815
 
14816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14817
 
14818
      static {
14819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14820
          byName.put(field.getFieldName(), field);
14821
        }
14822
      }
14823
 
14824
      /**
14825
       * Find the _Fields constant that matches fieldId, or null if its not found.
14826
       */
14827
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14828
        switch(fieldId) {
14829
          case 1: // ROLE
14830
            return ROLE;
14831
          default:
14832
            return null;
14833
        }
1891 ankur.sing 14834
      }
14835
 
14836
      /**
14837
       * Find the _Fields constant that matches fieldId, throwing an exception
14838
       * if it is not found.
14839
       */
14840
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14841
        _Fields fields = findByThriftId(fieldId);
14842
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14843
        return fields;
14844
      }
14845
 
14846
      /**
14847
       * Find the _Fields constant that matches name, or null if its not found.
14848
       */
14849
      public static _Fields findByName(String name) {
14850
        return byName.get(name);
14851
      }
14852
 
14853
      private final short _thriftId;
14854
      private final String _fieldName;
14855
 
14856
      _Fields(short thriftId, String fieldName) {
14857
        _thriftId = thriftId;
14858
        _fieldName = fieldName;
14859
      }
14860
 
14861
      public short getThriftFieldId() {
14862
        return _thriftId;
14863
      }
14864
 
14865
      public String getFieldName() {
14866
        return _fieldName;
14867
      }
14868
    }
14869
 
14870
    // isset id assignments
14871
    private static final int __ROLE_ISSET_ID = 0;
14872
    private BitSet __isset_bit_vector = new BitSet(1);
14873
 
3430 rajveer 14874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14875
    static {
3430 rajveer 14876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14877
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14878
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14881
    }
14882
 
14883
    public getReports_args() {
14884
    }
14885
 
14886
    public getReports_args(
14887
      long role)
14888
    {
14889
      this();
14890
      this.role = role;
14891
      setRoleIsSet(true);
14892
    }
14893
 
14894
    /**
14895
     * Performs a deep copy on <i>other</i>.
14896
     */
14897
    public getReports_args(getReports_args other) {
14898
      __isset_bit_vector.clear();
14899
      __isset_bit_vector.or(other.__isset_bit_vector);
14900
      this.role = other.role;
14901
    }
14902
 
14903
    public getReports_args deepCopy() {
14904
      return new getReports_args(this);
14905
    }
14906
 
3430 rajveer 14907
    @Override
14908
    public void clear() {
14909
      setRoleIsSet(false);
14910
      this.role = 0;
1891 ankur.sing 14911
    }
14912
 
14913
    public long getRole() {
14914
      return this.role;
14915
    }
14916
 
3430 rajveer 14917
    public void setRole(long role) {
1891 ankur.sing 14918
      this.role = role;
14919
      setRoleIsSet(true);
14920
    }
14921
 
14922
    public void unsetRole() {
14923
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14924
    }
14925
 
3430 rajveer 14926
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14927
    public boolean isSetRole() {
14928
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14929
    }
14930
 
14931
    public void setRoleIsSet(boolean value) {
14932
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14933
    }
14934
 
14935
    public void setFieldValue(_Fields field, Object value) {
14936
      switch (field) {
14937
      case ROLE:
14938
        if (value == null) {
14939
          unsetRole();
14940
        } else {
14941
          setRole((Long)value);
14942
        }
14943
        break;
14944
 
14945
      }
14946
    }
14947
 
14948
    public Object getFieldValue(_Fields field) {
14949
      switch (field) {
14950
      case ROLE:
3430 rajveer 14951
        return Long.valueOf(getRole());
1891 ankur.sing 14952
 
14953
      }
14954
      throw new IllegalStateException();
14955
    }
14956
 
3430 rajveer 14957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14958
    public boolean isSet(_Fields field) {
14959
      if (field == null) {
14960
        throw new IllegalArgumentException();
14961
      }
1891 ankur.sing 14962
 
14963
      switch (field) {
14964
      case ROLE:
14965
        return isSetRole();
14966
      }
14967
      throw new IllegalStateException();
14968
    }
14969
 
14970
    @Override
14971
    public boolean equals(Object that) {
14972
      if (that == null)
14973
        return false;
14974
      if (that instanceof getReports_args)
14975
        return this.equals((getReports_args)that);
14976
      return false;
14977
    }
14978
 
14979
    public boolean equals(getReports_args that) {
14980
      if (that == null)
14981
        return false;
14982
 
14983
      boolean this_present_role = true;
14984
      boolean that_present_role = true;
14985
      if (this_present_role || that_present_role) {
14986
        if (!(this_present_role && that_present_role))
14987
          return false;
14988
        if (this.role != that.role)
14989
          return false;
14990
      }
14991
 
14992
      return true;
14993
    }
14994
 
14995
    @Override
14996
    public int hashCode() {
14997
      return 0;
14998
    }
14999
 
15000
    public int compareTo(getReports_args other) {
15001
      if (!getClass().equals(other.getClass())) {
15002
        return getClass().getName().compareTo(other.getClass().getName());
15003
      }
15004
 
15005
      int lastComparison = 0;
15006
      getReports_args typedOther = (getReports_args)other;
15007
 
3430 rajveer 15008
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 15009
      if (lastComparison != 0) {
15010
        return lastComparison;
15011
      }
3430 rajveer 15012
      if (isSetRole()) {
15013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15014
        if (lastComparison != 0) {
15015
          return lastComparison;
15016
        }
1891 ankur.sing 15017
      }
15018
      return 0;
15019
    }
15020
 
3430 rajveer 15021
    public _Fields fieldForId(int fieldId) {
15022
      return _Fields.findByThriftId(fieldId);
15023
    }
15024
 
15025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15026
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15027
      iprot.readStructBegin();
15028
      while (true)
15029
      {
15030
        field = iprot.readFieldBegin();
3430 rajveer 15031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15032
          break;
15033
        }
3430 rajveer 15034
        switch (field.id) {
15035
          case 1: // ROLE
15036
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15037
              this.role = iprot.readI64();
15038
              setRoleIsSet(true);
15039
            } else { 
15040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15041
            }
15042
            break;
15043
          default:
15044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15045
        }
3430 rajveer 15046
        iprot.readFieldEnd();
1891 ankur.sing 15047
      }
15048
      iprot.readStructEnd();
15049
      validate();
15050
    }
15051
 
3430 rajveer 15052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15053
      validate();
15054
 
15055
      oprot.writeStructBegin(STRUCT_DESC);
15056
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15057
      oprot.writeI64(this.role);
15058
      oprot.writeFieldEnd();
15059
      oprot.writeFieldStop();
15060
      oprot.writeStructEnd();
15061
    }
15062
 
15063
    @Override
15064
    public String toString() {
15065
      StringBuilder sb = new StringBuilder("getReports_args(");
15066
      boolean first = true;
15067
 
15068
      sb.append("role:");
15069
      sb.append(this.role);
15070
      first = false;
15071
      sb.append(")");
15072
      return sb.toString();
15073
    }
15074
 
3430 rajveer 15075
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15076
      // check for required fields
15077
    }
15078
 
3430 rajveer 15079
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15080
      try {
15081
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15082
      } catch (org.apache.thrift.TException te) {
15083
        throw new java.io.IOException(te);
15084
      }
15085
    }
15086
 
15087
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15088
      try {
15089
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15090
        __isset_bit_vector = new BitSet(1);
15091
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15092
      } catch (org.apache.thrift.TException te) {
15093
        throw new java.io.IOException(te);
15094
      }
15095
    }
15096
 
1891 ankur.sing 15097
  }
15098
 
3430 rajveer 15099
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
15100
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 15101
 
3430 rajveer 15102
    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 15103
 
3430 rajveer 15104
    private List<Report> success; // required
1891 ankur.sing 15105
 
15106
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15107
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15108
      SUCCESS((short)0, "success");
15109
 
15110
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15111
 
15112
      static {
15113
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15114
          byName.put(field.getFieldName(), field);
15115
        }
15116
      }
15117
 
15118
      /**
15119
       * Find the _Fields constant that matches fieldId, or null if its not found.
15120
       */
15121
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15122
        switch(fieldId) {
15123
          case 0: // SUCCESS
15124
            return SUCCESS;
15125
          default:
15126
            return null;
15127
        }
1891 ankur.sing 15128
      }
15129
 
15130
      /**
15131
       * Find the _Fields constant that matches fieldId, throwing an exception
15132
       * if it is not found.
15133
       */
15134
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15135
        _Fields fields = findByThriftId(fieldId);
15136
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15137
        return fields;
15138
      }
15139
 
15140
      /**
15141
       * Find the _Fields constant that matches name, or null if its not found.
15142
       */
15143
      public static _Fields findByName(String name) {
15144
        return byName.get(name);
15145
      }
15146
 
15147
      private final short _thriftId;
15148
      private final String _fieldName;
15149
 
15150
      _Fields(short thriftId, String fieldName) {
15151
        _thriftId = thriftId;
15152
        _fieldName = fieldName;
15153
      }
15154
 
15155
      public short getThriftFieldId() {
15156
        return _thriftId;
15157
      }
15158
 
15159
      public String getFieldName() {
15160
        return _fieldName;
15161
      }
15162
    }
15163
 
15164
    // isset id assignments
15165
 
3430 rajveer 15166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15167
    static {
3430 rajveer 15168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15169
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15170
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15171
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
15172
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15173
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 15174
    }
15175
 
15176
    public getReports_result() {
15177
    }
15178
 
15179
    public getReports_result(
15180
      List<Report> success)
15181
    {
15182
      this();
15183
      this.success = success;
15184
    }
15185
 
15186
    /**
15187
     * Performs a deep copy on <i>other</i>.
15188
     */
15189
    public getReports_result(getReports_result other) {
15190
      if (other.isSetSuccess()) {
15191
        List<Report> __this__success = new ArrayList<Report>();
15192
        for (Report other_element : other.success) {
15193
          __this__success.add(new Report(other_element));
15194
        }
15195
        this.success = __this__success;
15196
      }
15197
    }
15198
 
15199
    public getReports_result deepCopy() {
15200
      return new getReports_result(this);
15201
    }
15202
 
3430 rajveer 15203
    @Override
15204
    public void clear() {
15205
      this.success = null;
1891 ankur.sing 15206
    }
15207
 
15208
    public int getSuccessSize() {
15209
      return (this.success == null) ? 0 : this.success.size();
15210
    }
15211
 
15212
    public java.util.Iterator<Report> getSuccessIterator() {
15213
      return (this.success == null) ? null : this.success.iterator();
15214
    }
15215
 
15216
    public void addToSuccess(Report elem) {
15217
      if (this.success == null) {
15218
        this.success = new ArrayList<Report>();
15219
      }
15220
      this.success.add(elem);
15221
    }
15222
 
15223
    public List<Report> getSuccess() {
15224
      return this.success;
15225
    }
15226
 
3430 rajveer 15227
    public void setSuccess(List<Report> success) {
1891 ankur.sing 15228
      this.success = success;
15229
    }
15230
 
15231
    public void unsetSuccess() {
15232
      this.success = null;
15233
    }
15234
 
3430 rajveer 15235
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15236
    public boolean isSetSuccess() {
15237
      return this.success != null;
15238
    }
15239
 
15240
    public void setSuccessIsSet(boolean value) {
15241
      if (!value) {
15242
        this.success = null;
15243
      }
15244
    }
15245
 
15246
    public void setFieldValue(_Fields field, Object value) {
15247
      switch (field) {
15248
      case SUCCESS:
15249
        if (value == null) {
15250
          unsetSuccess();
15251
        } else {
15252
          setSuccess((List<Report>)value);
15253
        }
15254
        break;
15255
 
15256
      }
15257
    }
15258
 
15259
    public Object getFieldValue(_Fields field) {
15260
      switch (field) {
15261
      case SUCCESS:
15262
        return getSuccess();
15263
 
15264
      }
15265
      throw new IllegalStateException();
15266
    }
15267
 
3430 rajveer 15268
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15269
    public boolean isSet(_Fields field) {
15270
      if (field == null) {
15271
        throw new IllegalArgumentException();
15272
      }
1891 ankur.sing 15273
 
15274
      switch (field) {
15275
      case SUCCESS:
15276
        return isSetSuccess();
15277
      }
15278
      throw new IllegalStateException();
15279
    }
15280
 
15281
    @Override
15282
    public boolean equals(Object that) {
15283
      if (that == null)
15284
        return false;
15285
      if (that instanceof getReports_result)
15286
        return this.equals((getReports_result)that);
15287
      return false;
15288
    }
15289
 
15290
    public boolean equals(getReports_result that) {
15291
      if (that == null)
15292
        return false;
15293
 
15294
      boolean this_present_success = true && this.isSetSuccess();
15295
      boolean that_present_success = true && that.isSetSuccess();
15296
      if (this_present_success || that_present_success) {
15297
        if (!(this_present_success && that_present_success))
15298
          return false;
15299
        if (!this.success.equals(that.success))
15300
          return false;
15301
      }
15302
 
15303
      return true;
15304
    }
15305
 
15306
    @Override
15307
    public int hashCode() {
15308
      return 0;
15309
    }
15310
 
15311
    public int compareTo(getReports_result other) {
15312
      if (!getClass().equals(other.getClass())) {
15313
        return getClass().getName().compareTo(other.getClass().getName());
15314
      }
15315
 
15316
      int lastComparison = 0;
15317
      getReports_result typedOther = (getReports_result)other;
15318
 
3430 rajveer 15319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15320
      if (lastComparison != 0) {
15321
        return lastComparison;
15322
      }
3430 rajveer 15323
      if (isSetSuccess()) {
15324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15325
        if (lastComparison != 0) {
15326
          return lastComparison;
15327
        }
1891 ankur.sing 15328
      }
15329
      return 0;
15330
    }
15331
 
3430 rajveer 15332
    public _Fields fieldForId(int fieldId) {
15333
      return _Fields.findByThriftId(fieldId);
15334
    }
15335
 
15336
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15337
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15338
      iprot.readStructBegin();
15339
      while (true)
15340
      {
15341
        field = iprot.readFieldBegin();
3430 rajveer 15342
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15343
          break;
15344
        }
3430 rajveer 15345
        switch (field.id) {
15346
          case 0: // SUCCESS
15347
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15348
              {
5864 rajveer 15349
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15350
                this.success = new ArrayList<Report>(_list41.size);
15351
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15352
                {
5864 rajveer 15353
                  Report _elem43; // required
15354
                  _elem43 = new Report();
15355
                  _elem43.read(iprot);
15356
                  this.success.add(_elem43);
1891 ankur.sing 15357
                }
3430 rajveer 15358
                iprot.readListEnd();
1891 ankur.sing 15359
              }
3430 rajveer 15360
            } else { 
15361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15362
            }
15363
            break;
15364
          default:
15365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15366
        }
3430 rajveer 15367
        iprot.readFieldEnd();
1891 ankur.sing 15368
      }
15369
      iprot.readStructEnd();
15370
      validate();
15371
    }
15372
 
3430 rajveer 15373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15374
      oprot.writeStructBegin(STRUCT_DESC);
15375
 
15376
      if (this.isSetSuccess()) {
15377
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15378
        {
3430 rajveer 15379
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15380
          for (Report _iter44 : this.success)
1891 ankur.sing 15381
          {
5864 rajveer 15382
            _iter44.write(oprot);
1891 ankur.sing 15383
          }
15384
          oprot.writeListEnd();
15385
        }
15386
        oprot.writeFieldEnd();
15387
      }
15388
      oprot.writeFieldStop();
15389
      oprot.writeStructEnd();
15390
    }
15391
 
15392
    @Override
15393
    public String toString() {
15394
      StringBuilder sb = new StringBuilder("getReports_result(");
15395
      boolean first = true;
15396
 
15397
      sb.append("success:");
15398
      if (this.success == null) {
15399
        sb.append("null");
15400
      } else {
15401
        sb.append(this.success);
15402
      }
15403
      first = false;
15404
      sb.append(")");
15405
      return sb.toString();
15406
    }
15407
 
3430 rajveer 15408
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15409
      // check for required fields
15410
    }
15411
 
3430 rajveer 15412
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15413
      try {
15414
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15415
      } catch (org.apache.thrift.TException te) {
15416
        throw new java.io.IOException(te);
15417
      }
15418
    }
15419
 
15420
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15421
      try {
15422
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15423
      } catch (org.apache.thrift.TException te) {
15424
        throw new java.io.IOException(te);
15425
      }
15426
    }
15427
 
1891 ankur.sing 15428
  }
15429
 
3430 rajveer 15430
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15431
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15432
 
3430 rajveer 15433
    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);
15434
    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 15435
 
3430 rajveer 15436
    private String username; // required
15437
    private String password; // required
2024 ankur.sing 15438
 
15439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15440
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15441
      USERNAME((short)1, "username"),
6788 rajveer 15442
      PASSWORD((short)2, "password");
2024 ankur.sing 15443
 
15444
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15445
 
15446
      static {
15447
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15448
          byName.put(field.getFieldName(), field);
15449
        }
15450
      }
15451
 
15452
      /**
15453
       * Find the _Fields constant that matches fieldId, or null if its not found.
15454
       */
15455
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15456
        switch(fieldId) {
15457
          case 1: // USERNAME
15458
            return USERNAME;
15459
          case 2: // PASSWORD
15460
            return PASSWORD;
15461
          default:
15462
            return null;
15463
        }
2024 ankur.sing 15464
      }
15465
 
15466
      /**
15467
       * Find the _Fields constant that matches fieldId, throwing an exception
15468
       * if it is not found.
15469
       */
15470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15471
        _Fields fields = findByThriftId(fieldId);
15472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15473
        return fields;
15474
      }
15475
 
15476
      /**
15477
       * Find the _Fields constant that matches name, or null if its not found.
15478
       */
15479
      public static _Fields findByName(String name) {
15480
        return byName.get(name);
15481
      }
15482
 
15483
      private final short _thriftId;
15484
      private final String _fieldName;
15485
 
15486
      _Fields(short thriftId, String fieldName) {
15487
        _thriftId = thriftId;
15488
        _fieldName = fieldName;
15489
      }
15490
 
15491
      public short getThriftFieldId() {
15492
        return _thriftId;
15493
      }
15494
 
15495
      public String getFieldName() {
15496
        return _fieldName;
15497
      }
15498
    }
15499
 
15500
    // isset id assignments
15501
 
3430 rajveer 15502
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15503
    static {
3430 rajveer 15504
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15505
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15506
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15507
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15508
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15509
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15510
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15511
    }
15512
 
15513
    public authenticateCatalogUser_args() {
15514
    }
15515
 
15516
    public authenticateCatalogUser_args(
15517
      String username,
6788 rajveer 15518
      String password)
2024 ankur.sing 15519
    {
15520
      this();
15521
      this.username = username;
15522
      this.password = password;
15523
    }
15524
 
15525
    /**
15526
     * Performs a deep copy on <i>other</i>.
15527
     */
15528
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
15529
      if (other.isSetUsername()) {
15530
        this.username = other.username;
15531
      }
15532
      if (other.isSetPassword()) {
15533
        this.password = other.password;
15534
      }
15535
    }
15536
 
15537
    public authenticateCatalogUser_args deepCopy() {
15538
      return new authenticateCatalogUser_args(this);
15539
    }
15540
 
3430 rajveer 15541
    @Override
15542
    public void clear() {
15543
      this.username = null;
15544
      this.password = null;
2024 ankur.sing 15545
    }
15546
 
15547
    public String getUsername() {
15548
      return this.username;
15549
    }
15550
 
3430 rajveer 15551
    public void setUsername(String username) {
2024 ankur.sing 15552
      this.username = username;
15553
    }
15554
 
15555
    public void unsetUsername() {
15556
      this.username = null;
15557
    }
15558
 
3430 rajveer 15559
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15560
    public boolean isSetUsername() {
15561
      return this.username != null;
15562
    }
15563
 
15564
    public void setUsernameIsSet(boolean value) {
15565
      if (!value) {
15566
        this.username = null;
15567
      }
15568
    }
15569
 
15570
    public String getPassword() {
15571
      return this.password;
15572
    }
15573
 
3430 rajveer 15574
    public void setPassword(String password) {
2024 ankur.sing 15575
      this.password = password;
15576
    }
15577
 
15578
    public void unsetPassword() {
15579
      this.password = null;
15580
    }
15581
 
3430 rajveer 15582
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15583
    public boolean isSetPassword() {
15584
      return this.password != null;
15585
    }
15586
 
15587
    public void setPasswordIsSet(boolean value) {
15588
      if (!value) {
15589
        this.password = null;
15590
      }
15591
    }
15592
 
15593
    public void setFieldValue(_Fields field, Object value) {
15594
      switch (field) {
15595
      case USERNAME:
15596
        if (value == null) {
15597
          unsetUsername();
15598
        } else {
15599
          setUsername((String)value);
15600
        }
15601
        break;
15602
 
15603
      case PASSWORD:
15604
        if (value == null) {
15605
          unsetPassword();
15606
        } else {
15607
          setPassword((String)value);
15608
        }
15609
        break;
15610
 
15611
      }
15612
    }
15613
 
15614
    public Object getFieldValue(_Fields field) {
15615
      switch (field) {
15616
      case USERNAME:
15617
        return getUsername();
15618
 
15619
      case PASSWORD:
15620
        return getPassword();
15621
 
15622
      }
15623
      throw new IllegalStateException();
15624
    }
15625
 
3430 rajveer 15626
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15627
    public boolean isSet(_Fields field) {
15628
      if (field == null) {
15629
        throw new IllegalArgumentException();
15630
      }
2024 ankur.sing 15631
 
15632
      switch (field) {
15633
      case USERNAME:
15634
        return isSetUsername();
15635
      case PASSWORD:
15636
        return isSetPassword();
15637
      }
15638
      throw new IllegalStateException();
15639
    }
15640
 
15641
    @Override
15642
    public boolean equals(Object that) {
15643
      if (that == null)
15644
        return false;
15645
      if (that instanceof authenticateCatalogUser_args)
15646
        return this.equals((authenticateCatalogUser_args)that);
15647
      return false;
15648
    }
15649
 
15650
    public boolean equals(authenticateCatalogUser_args that) {
15651
      if (that == null)
15652
        return false;
15653
 
15654
      boolean this_present_username = true && this.isSetUsername();
15655
      boolean that_present_username = true && that.isSetUsername();
15656
      if (this_present_username || that_present_username) {
15657
        if (!(this_present_username && that_present_username))
15658
          return false;
15659
        if (!this.username.equals(that.username))
15660
          return false;
15661
      }
15662
 
15663
      boolean this_present_password = true && this.isSetPassword();
15664
      boolean that_present_password = true && that.isSetPassword();
15665
      if (this_present_password || that_present_password) {
15666
        if (!(this_present_password && that_present_password))
15667
          return false;
15668
        if (!this.password.equals(that.password))
15669
          return false;
15670
      }
15671
 
15672
      return true;
15673
    }
15674
 
15675
    @Override
15676
    public int hashCode() {
15677
      return 0;
15678
    }
15679
 
15680
    public int compareTo(authenticateCatalogUser_args other) {
15681
      if (!getClass().equals(other.getClass())) {
15682
        return getClass().getName().compareTo(other.getClass().getName());
15683
      }
15684
 
15685
      int lastComparison = 0;
15686
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15687
 
3430 rajveer 15688
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15689
      if (lastComparison != 0) {
15690
        return lastComparison;
15691
      }
3430 rajveer 15692
      if (isSetUsername()) {
15693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15694
        if (lastComparison != 0) {
15695
          return lastComparison;
15696
        }
2024 ankur.sing 15697
      }
3430 rajveer 15698
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15699
      if (lastComparison != 0) {
15700
        return lastComparison;
15701
      }
3430 rajveer 15702
      if (isSetPassword()) {
15703
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15704
        if (lastComparison != 0) {
15705
          return lastComparison;
15706
        }
2024 ankur.sing 15707
      }
15708
      return 0;
15709
    }
15710
 
3430 rajveer 15711
    public _Fields fieldForId(int fieldId) {
15712
      return _Fields.findByThriftId(fieldId);
15713
    }
15714
 
15715
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15716
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15717
      iprot.readStructBegin();
15718
      while (true)
15719
      {
15720
        field = iprot.readFieldBegin();
3430 rajveer 15721
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15722
          break;
15723
        }
3430 rajveer 15724
        switch (field.id) {
15725
          case 1: // USERNAME
15726
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15727
              this.username = iprot.readString();
15728
            } else { 
15729
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15730
            }
15731
            break;
15732
          case 2: // PASSWORD
15733
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15734
              this.password = iprot.readString();
15735
            } else { 
15736
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15737
            }
15738
            break;
15739
          default:
15740
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15741
        }
3430 rajveer 15742
        iprot.readFieldEnd();
2024 ankur.sing 15743
      }
15744
      iprot.readStructEnd();
15745
      validate();
15746
    }
15747
 
3430 rajveer 15748
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15749
      validate();
15750
 
15751
      oprot.writeStructBegin(STRUCT_DESC);
15752
      if (this.username != null) {
15753
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15754
        oprot.writeString(this.username);
15755
        oprot.writeFieldEnd();
15756
      }
15757
      if (this.password != null) {
15758
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15759
        oprot.writeString(this.password);
15760
        oprot.writeFieldEnd();
15761
      }
15762
      oprot.writeFieldStop();
15763
      oprot.writeStructEnd();
15764
    }
15765
 
15766
    @Override
15767
    public String toString() {
15768
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15769
      boolean first = true;
15770
 
15771
      sb.append("username:");
15772
      if (this.username == null) {
15773
        sb.append("null");
15774
      } else {
15775
        sb.append(this.username);
15776
      }
15777
      first = false;
15778
      if (!first) sb.append(", ");
15779
      sb.append("password:");
15780
      if (this.password == null) {
15781
        sb.append("null");
15782
      } else {
15783
        sb.append(this.password);
15784
      }
15785
      first = false;
15786
      sb.append(")");
15787
      return sb.toString();
15788
    }
15789
 
3430 rajveer 15790
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15791
      // check for required fields
15792
    }
15793
 
3430 rajveer 15794
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15795
      try {
15796
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15797
      } catch (org.apache.thrift.TException te) {
15798
        throw new java.io.IOException(te);
15799
      }
15800
    }
15801
 
15802
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15803
      try {
15804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15805
      } catch (org.apache.thrift.TException te) {
15806
        throw new java.io.IOException(te);
15807
      }
15808
    }
15809
 
2024 ankur.sing 15810
  }
15811
 
3430 rajveer 15812
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15814
 
3430 rajveer 15815
    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);
15816
    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 15817
 
3430 rajveer 15818
    private CatalogDashboardUser success; // required
15819
    private HelperServiceException hse; // required
2024 ankur.sing 15820
 
15821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15823
      SUCCESS((short)0, "success"),
15824
      HSE((short)1, "hse");
15825
 
15826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15827
 
15828
      static {
15829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15830
          byName.put(field.getFieldName(), field);
15831
        }
15832
      }
15833
 
15834
      /**
15835
       * Find the _Fields constant that matches fieldId, or null if its not found.
15836
       */
15837
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15838
        switch(fieldId) {
15839
          case 0: // SUCCESS
15840
            return SUCCESS;
15841
          case 1: // HSE
15842
            return HSE;
15843
          default:
15844
            return null;
15845
        }
2024 ankur.sing 15846
      }
15847
 
15848
      /**
15849
       * Find the _Fields constant that matches fieldId, throwing an exception
15850
       * if it is not found.
15851
       */
15852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15853
        _Fields fields = findByThriftId(fieldId);
15854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15855
        return fields;
15856
      }
15857
 
15858
      /**
15859
       * Find the _Fields constant that matches name, or null if its not found.
15860
       */
15861
      public static _Fields findByName(String name) {
15862
        return byName.get(name);
15863
      }
15864
 
15865
      private final short _thriftId;
15866
      private final String _fieldName;
15867
 
15868
      _Fields(short thriftId, String fieldName) {
15869
        _thriftId = thriftId;
15870
        _fieldName = fieldName;
15871
      }
15872
 
15873
      public short getThriftFieldId() {
15874
        return _thriftId;
15875
      }
15876
 
15877
      public String getFieldName() {
15878
        return _fieldName;
15879
      }
15880
    }
15881
 
15882
    // isset id assignments
15883
 
3430 rajveer 15884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15885
    static {
3430 rajveer 15886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15887
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15888
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15889
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15891
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15892
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15893
    }
15894
 
15895
    public authenticateCatalogUser_result() {
15896
    }
15897
 
15898
    public authenticateCatalogUser_result(
15899
      CatalogDashboardUser success,
15900
      HelperServiceException hse)
15901
    {
15902
      this();
15903
      this.success = success;
15904
      this.hse = hse;
15905
    }
15906
 
15907
    /**
15908
     * Performs a deep copy on <i>other</i>.
15909
     */
15910
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15911
      if (other.isSetSuccess()) {
15912
        this.success = new CatalogDashboardUser(other.success);
15913
      }
15914
      if (other.isSetHse()) {
15915
        this.hse = new HelperServiceException(other.hse);
15916
      }
15917
    }
15918
 
15919
    public authenticateCatalogUser_result deepCopy() {
15920
      return new authenticateCatalogUser_result(this);
15921
    }
15922
 
3430 rajveer 15923
    @Override
15924
    public void clear() {
15925
      this.success = null;
15926
      this.hse = null;
2024 ankur.sing 15927
    }
15928
 
15929
    public CatalogDashboardUser getSuccess() {
15930
      return this.success;
15931
    }
15932
 
3430 rajveer 15933
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15934
      this.success = success;
15935
    }
15936
 
15937
    public void unsetSuccess() {
15938
      this.success = null;
15939
    }
15940
 
3430 rajveer 15941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15942
    public boolean isSetSuccess() {
15943
      return this.success != null;
15944
    }
15945
 
15946
    public void setSuccessIsSet(boolean value) {
15947
      if (!value) {
15948
        this.success = null;
15949
      }
15950
    }
15951
 
15952
    public HelperServiceException getHse() {
15953
      return this.hse;
15954
    }
15955
 
3430 rajveer 15956
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15957
      this.hse = hse;
15958
    }
15959
 
15960
    public void unsetHse() {
15961
      this.hse = null;
15962
    }
15963
 
3430 rajveer 15964
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15965
    public boolean isSetHse() {
15966
      return this.hse != null;
15967
    }
15968
 
15969
    public void setHseIsSet(boolean value) {
15970
      if (!value) {
15971
        this.hse = null;
15972
      }
15973
    }
15974
 
15975
    public void setFieldValue(_Fields field, Object value) {
15976
      switch (field) {
15977
      case SUCCESS:
15978
        if (value == null) {
15979
          unsetSuccess();
15980
        } else {
15981
          setSuccess((CatalogDashboardUser)value);
15982
        }
15983
        break;
15984
 
15985
      case HSE:
15986
        if (value == null) {
15987
          unsetHse();
15988
        } else {
15989
          setHse((HelperServiceException)value);
15990
        }
15991
        break;
15992
 
15993
      }
15994
    }
15995
 
15996
    public Object getFieldValue(_Fields field) {
15997
      switch (field) {
15998
      case SUCCESS:
15999
        return getSuccess();
16000
 
16001
      case HSE:
16002
        return getHse();
16003
 
16004
      }
16005
      throw new IllegalStateException();
16006
    }
16007
 
3430 rajveer 16008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16009
    public boolean isSet(_Fields field) {
16010
      if (field == null) {
16011
        throw new IllegalArgumentException();
16012
      }
2024 ankur.sing 16013
 
16014
      switch (field) {
16015
      case SUCCESS:
16016
        return isSetSuccess();
16017
      case HSE:
16018
        return isSetHse();
16019
      }
16020
      throw new IllegalStateException();
16021
    }
16022
 
16023
    @Override
16024
    public boolean equals(Object that) {
16025
      if (that == null)
16026
        return false;
16027
      if (that instanceof authenticateCatalogUser_result)
16028
        return this.equals((authenticateCatalogUser_result)that);
16029
      return false;
16030
    }
16031
 
16032
    public boolean equals(authenticateCatalogUser_result that) {
16033
      if (that == null)
16034
        return false;
16035
 
16036
      boolean this_present_success = true && this.isSetSuccess();
16037
      boolean that_present_success = true && that.isSetSuccess();
16038
      if (this_present_success || that_present_success) {
16039
        if (!(this_present_success && that_present_success))
16040
          return false;
16041
        if (!this.success.equals(that.success))
16042
          return false;
16043
      }
16044
 
16045
      boolean this_present_hse = true && this.isSetHse();
16046
      boolean that_present_hse = true && that.isSetHse();
16047
      if (this_present_hse || that_present_hse) {
16048
        if (!(this_present_hse && that_present_hse))
16049
          return false;
16050
        if (!this.hse.equals(that.hse))
16051
          return false;
16052
      }
16053
 
16054
      return true;
16055
    }
16056
 
16057
    @Override
16058
    public int hashCode() {
16059
      return 0;
16060
    }
16061
 
16062
    public int compareTo(authenticateCatalogUser_result other) {
16063
      if (!getClass().equals(other.getClass())) {
16064
        return getClass().getName().compareTo(other.getClass().getName());
16065
      }
16066
 
16067
      int lastComparison = 0;
16068
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
16069
 
3430 rajveer 16070
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 16071
      if (lastComparison != 0) {
16072
        return lastComparison;
16073
      }
3430 rajveer 16074
      if (isSetSuccess()) {
16075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16076
        if (lastComparison != 0) {
16077
          return lastComparison;
16078
        }
2024 ankur.sing 16079
      }
3430 rajveer 16080
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 16081
      if (lastComparison != 0) {
16082
        return lastComparison;
16083
      }
3430 rajveer 16084
      if (isSetHse()) {
16085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16086
        if (lastComparison != 0) {
16087
          return lastComparison;
16088
        }
2024 ankur.sing 16089
      }
16090
      return 0;
16091
    }
16092
 
3430 rajveer 16093
    public _Fields fieldForId(int fieldId) {
16094
      return _Fields.findByThriftId(fieldId);
16095
    }
16096
 
16097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16098
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16099
      iprot.readStructBegin();
16100
      while (true)
16101
      {
16102
        field = iprot.readFieldBegin();
3430 rajveer 16103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16104
          break;
16105
        }
3430 rajveer 16106
        switch (field.id) {
16107
          case 0: // SUCCESS
16108
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16109
              this.success = new CatalogDashboardUser();
16110
              this.success.read(iprot);
16111
            } else { 
16112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16113
            }
16114
            break;
16115
          case 1: // HSE
16116
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16117
              this.hse = new HelperServiceException();
16118
              this.hse.read(iprot);
16119
            } else { 
16120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16121
            }
16122
            break;
16123
          default:
16124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16125
        }
3430 rajveer 16126
        iprot.readFieldEnd();
2024 ankur.sing 16127
      }
16128
      iprot.readStructEnd();
16129
      validate();
16130
    }
16131
 
3430 rajveer 16132
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16133
      oprot.writeStructBegin(STRUCT_DESC);
16134
 
16135
      if (this.isSetSuccess()) {
16136
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16137
        this.success.write(oprot);
16138
        oprot.writeFieldEnd();
16139
      } else if (this.isSetHse()) {
16140
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16141
        this.hse.write(oprot);
16142
        oprot.writeFieldEnd();
16143
      }
16144
      oprot.writeFieldStop();
16145
      oprot.writeStructEnd();
16146
    }
16147
 
16148
    @Override
16149
    public String toString() {
16150
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
16151
      boolean first = true;
16152
 
16153
      sb.append("success:");
16154
      if (this.success == null) {
16155
        sb.append("null");
16156
      } else {
16157
        sb.append(this.success);
16158
      }
16159
      first = false;
16160
      if (!first) sb.append(", ");
16161
      sb.append("hse:");
16162
      if (this.hse == null) {
16163
        sb.append("null");
16164
      } else {
16165
        sb.append(this.hse);
16166
      }
16167
      first = false;
16168
      sb.append(")");
16169
      return sb.toString();
16170
    }
16171
 
3430 rajveer 16172
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16173
      // check for required fields
16174
    }
16175
 
3430 rajveer 16176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16177
      try {
16178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16179
      } catch (org.apache.thrift.TException te) {
16180
        throw new java.io.IOException(te);
16181
      }
16182
    }
16183
 
16184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16185
      try {
16186
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16187
      } catch (org.apache.thrift.TException te) {
16188
        throw new java.io.IOException(te);
16189
      }
16190
    }
16191
 
2024 ankur.sing 16192
  }
16193
 
4544 varun.gupt 16194
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
16195
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
16196
 
16197
    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);
16198
    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);
16199
 
16200
    private List<Long> entityIds; // required
16201
    private String email; // required
16202
 
16203
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16204
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16205
      ENTITY_IDS((short)1, "entityIds"),
16206
      EMAIL((short)2, "email");
16207
 
16208
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16209
 
16210
      static {
16211
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16212
          byName.put(field.getFieldName(), field);
16213
        }
16214
      }
16215
 
16216
      /**
16217
       * Find the _Fields constant that matches fieldId, or null if its not found.
16218
       */
16219
      public static _Fields findByThriftId(int fieldId) {
16220
        switch(fieldId) {
16221
          case 1: // ENTITY_IDS
16222
            return ENTITY_IDS;
16223
          case 2: // EMAIL
16224
            return EMAIL;
16225
          default:
16226
            return null;
16227
        }
16228
      }
16229
 
16230
      /**
16231
       * Find the _Fields constant that matches fieldId, throwing an exception
16232
       * if it is not found.
16233
       */
16234
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16235
        _Fields fields = findByThriftId(fieldId);
16236
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16237
        return fields;
16238
      }
16239
 
16240
      /**
16241
       * Find the _Fields constant that matches name, or null if its not found.
16242
       */
16243
      public static _Fields findByName(String name) {
16244
        return byName.get(name);
16245
      }
16246
 
16247
      private final short _thriftId;
16248
      private final String _fieldName;
16249
 
16250
      _Fields(short thriftId, String fieldName) {
16251
        _thriftId = thriftId;
16252
        _fieldName = fieldName;
16253
      }
16254
 
16255
      public short getThriftFieldId() {
16256
        return _thriftId;
16257
      }
16258
 
16259
      public String getFieldName() {
16260
        return _fieldName;
16261
      }
16262
    }
16263
 
16264
    // isset id assignments
16265
 
16266
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16267
    static {
16268
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16269
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16270
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16271
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16272
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16276
    }
16277
 
16278
    public shareEntities_args() {
16279
    }
16280
 
16281
    public shareEntities_args(
16282
      List<Long> entityIds,
16283
      String email)
16284
    {
16285
      this();
16286
      this.entityIds = entityIds;
16287
      this.email = email;
16288
    }
16289
 
16290
    /**
16291
     * Performs a deep copy on <i>other</i>.
16292
     */
16293
    public shareEntities_args(shareEntities_args other) {
16294
      if (other.isSetEntityIds()) {
16295
        List<Long> __this__entityIds = new ArrayList<Long>();
16296
        for (Long other_element : other.entityIds) {
16297
          __this__entityIds.add(other_element);
16298
        }
16299
        this.entityIds = __this__entityIds;
16300
      }
16301
      if (other.isSetEmail()) {
16302
        this.email = other.email;
16303
      }
16304
    }
16305
 
16306
    public shareEntities_args deepCopy() {
16307
      return new shareEntities_args(this);
16308
    }
16309
 
16310
    @Override
16311
    public void clear() {
16312
      this.entityIds = null;
16313
      this.email = null;
16314
    }
16315
 
16316
    public int getEntityIdsSize() {
16317
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16318
    }
16319
 
16320
    public java.util.Iterator<Long> getEntityIdsIterator() {
16321
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16322
    }
16323
 
16324
    public void addToEntityIds(long elem) {
16325
      if (this.entityIds == null) {
16326
        this.entityIds = new ArrayList<Long>();
16327
      }
16328
      this.entityIds.add(elem);
16329
    }
16330
 
16331
    public List<Long> getEntityIds() {
16332
      return this.entityIds;
16333
    }
16334
 
16335
    public void setEntityIds(List<Long> entityIds) {
16336
      this.entityIds = entityIds;
16337
    }
16338
 
16339
    public void unsetEntityIds() {
16340
      this.entityIds = null;
16341
    }
16342
 
16343
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16344
    public boolean isSetEntityIds() {
16345
      return this.entityIds != null;
16346
    }
16347
 
16348
    public void setEntityIdsIsSet(boolean value) {
16349
      if (!value) {
16350
        this.entityIds = null;
16351
      }
16352
    }
16353
 
16354
    public String getEmail() {
16355
      return this.email;
16356
    }
16357
 
16358
    public void setEmail(String email) {
16359
      this.email = email;
16360
    }
16361
 
16362
    public void unsetEmail() {
16363
      this.email = null;
16364
    }
16365
 
16366
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16367
    public boolean isSetEmail() {
16368
      return this.email != null;
16369
    }
16370
 
16371
    public void setEmailIsSet(boolean value) {
16372
      if (!value) {
16373
        this.email = null;
16374
      }
16375
    }
16376
 
16377
    public void setFieldValue(_Fields field, Object value) {
16378
      switch (field) {
16379
      case ENTITY_IDS:
16380
        if (value == null) {
16381
          unsetEntityIds();
16382
        } else {
16383
          setEntityIds((List<Long>)value);
16384
        }
16385
        break;
16386
 
16387
      case EMAIL:
16388
        if (value == null) {
16389
          unsetEmail();
16390
        } else {
16391
          setEmail((String)value);
16392
        }
16393
        break;
16394
 
16395
      }
16396
    }
16397
 
16398
    public Object getFieldValue(_Fields field) {
16399
      switch (field) {
16400
      case ENTITY_IDS:
16401
        return getEntityIds();
16402
 
16403
      case EMAIL:
16404
        return getEmail();
16405
 
16406
      }
16407
      throw new IllegalStateException();
16408
    }
16409
 
16410
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16411
    public boolean isSet(_Fields field) {
16412
      if (field == null) {
16413
        throw new IllegalArgumentException();
16414
      }
16415
 
16416
      switch (field) {
16417
      case ENTITY_IDS:
16418
        return isSetEntityIds();
16419
      case EMAIL:
16420
        return isSetEmail();
16421
      }
16422
      throw new IllegalStateException();
16423
    }
16424
 
16425
    @Override
16426
    public boolean equals(Object that) {
16427
      if (that == null)
16428
        return false;
16429
      if (that instanceof shareEntities_args)
16430
        return this.equals((shareEntities_args)that);
16431
      return false;
16432
    }
16433
 
16434
    public boolean equals(shareEntities_args that) {
16435
      if (that == null)
16436
        return false;
16437
 
16438
      boolean this_present_entityIds = true && this.isSetEntityIds();
16439
      boolean that_present_entityIds = true && that.isSetEntityIds();
16440
      if (this_present_entityIds || that_present_entityIds) {
16441
        if (!(this_present_entityIds && that_present_entityIds))
16442
          return false;
16443
        if (!this.entityIds.equals(that.entityIds))
16444
          return false;
16445
      }
16446
 
16447
      boolean this_present_email = true && this.isSetEmail();
16448
      boolean that_present_email = true && that.isSetEmail();
16449
      if (this_present_email || that_present_email) {
16450
        if (!(this_present_email && that_present_email))
16451
          return false;
16452
        if (!this.email.equals(that.email))
16453
          return false;
16454
      }
16455
 
16456
      return true;
16457
    }
16458
 
16459
    @Override
16460
    public int hashCode() {
16461
      return 0;
16462
    }
16463
 
16464
    public int compareTo(shareEntities_args other) {
16465
      if (!getClass().equals(other.getClass())) {
16466
        return getClass().getName().compareTo(other.getClass().getName());
16467
      }
16468
 
16469
      int lastComparison = 0;
16470
      shareEntities_args typedOther = (shareEntities_args)other;
16471
 
16472
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16473
      if (lastComparison != 0) {
16474
        return lastComparison;
16475
      }
16476
      if (isSetEntityIds()) {
16477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16478
        if (lastComparison != 0) {
16479
          return lastComparison;
16480
        }
16481
      }
16482
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16483
      if (lastComparison != 0) {
16484
        return lastComparison;
16485
      }
16486
      if (isSetEmail()) {
16487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16488
        if (lastComparison != 0) {
16489
          return lastComparison;
16490
        }
16491
      }
16492
      return 0;
16493
    }
16494
 
16495
    public _Fields fieldForId(int fieldId) {
16496
      return _Fields.findByThriftId(fieldId);
16497
    }
16498
 
16499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16500
      org.apache.thrift.protocol.TField field;
16501
      iprot.readStructBegin();
16502
      while (true)
16503
      {
16504
        field = iprot.readFieldBegin();
16505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16506
          break;
16507
        }
16508
        switch (field.id) {
16509
          case 1: // ENTITY_IDS
16510
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16511
              {
5864 rajveer 16512
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16513
                this.entityIds = new ArrayList<Long>(_list45.size);
16514
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16515
                {
5864 rajveer 16516
                  long _elem47; // required
16517
                  _elem47 = iprot.readI64();
16518
                  this.entityIds.add(_elem47);
4544 varun.gupt 16519
                }
16520
                iprot.readListEnd();
16521
              }
16522
            } else { 
16523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16524
            }
16525
            break;
16526
          case 2: // EMAIL
16527
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16528
              this.email = iprot.readString();
16529
            } else { 
16530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16531
            }
16532
            break;
16533
          default:
16534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16535
        }
16536
        iprot.readFieldEnd();
16537
      }
16538
      iprot.readStructEnd();
16539
      validate();
16540
    }
16541
 
16542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16543
      validate();
16544
 
16545
      oprot.writeStructBegin(STRUCT_DESC);
16546
      if (this.entityIds != null) {
16547
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16548
        {
16549
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16550
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16551
          {
5864 rajveer 16552
            oprot.writeI64(_iter48);
4544 varun.gupt 16553
          }
16554
          oprot.writeListEnd();
16555
        }
16556
        oprot.writeFieldEnd();
16557
      }
16558
      if (this.email != null) {
16559
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16560
        oprot.writeString(this.email);
16561
        oprot.writeFieldEnd();
16562
      }
16563
      oprot.writeFieldStop();
16564
      oprot.writeStructEnd();
16565
    }
16566
 
16567
    @Override
16568
    public String toString() {
16569
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16570
      boolean first = true;
16571
 
16572
      sb.append("entityIds:");
16573
      if (this.entityIds == null) {
16574
        sb.append("null");
16575
      } else {
16576
        sb.append(this.entityIds);
16577
      }
16578
      first = false;
16579
      if (!first) sb.append(", ");
16580
      sb.append("email:");
16581
      if (this.email == null) {
16582
        sb.append("null");
16583
      } else {
16584
        sb.append(this.email);
16585
      }
16586
      first = false;
16587
      sb.append(")");
16588
      return sb.toString();
16589
    }
16590
 
16591
    public void validate() throws org.apache.thrift.TException {
16592
      // check for required fields
16593
    }
16594
 
16595
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16596
      try {
16597
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16598
      } catch (org.apache.thrift.TException te) {
16599
        throw new java.io.IOException(te);
16600
      }
16601
    }
16602
 
16603
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16604
      try {
16605
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16606
      } catch (org.apache.thrift.TException te) {
16607
        throw new java.io.IOException(te);
16608
      }
16609
    }
16610
 
16611
  }
16612
 
16613
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16614
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16615
 
16616
    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);
16617
 
16618
    private HelperServiceException hse; // required
16619
 
16620
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16621
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16622
      HSE((short)1, "hse");
16623
 
16624
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16625
 
16626
      static {
16627
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16628
          byName.put(field.getFieldName(), field);
16629
        }
16630
      }
16631
 
16632
      /**
16633
       * Find the _Fields constant that matches fieldId, or null if its not found.
16634
       */
16635
      public static _Fields findByThriftId(int fieldId) {
16636
        switch(fieldId) {
16637
          case 1: // HSE
16638
            return HSE;
16639
          default:
16640
            return null;
16641
        }
16642
      }
16643
 
16644
      /**
16645
       * Find the _Fields constant that matches fieldId, throwing an exception
16646
       * if it is not found.
16647
       */
16648
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16649
        _Fields fields = findByThriftId(fieldId);
16650
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16651
        return fields;
16652
      }
16653
 
16654
      /**
16655
       * Find the _Fields constant that matches name, or null if its not found.
16656
       */
16657
      public static _Fields findByName(String name) {
16658
        return byName.get(name);
16659
      }
16660
 
16661
      private final short _thriftId;
16662
      private final String _fieldName;
16663
 
16664
      _Fields(short thriftId, String fieldName) {
16665
        _thriftId = thriftId;
16666
        _fieldName = fieldName;
16667
      }
16668
 
16669
      public short getThriftFieldId() {
16670
        return _thriftId;
16671
      }
16672
 
16673
      public String getFieldName() {
16674
        return _fieldName;
16675
      }
16676
    }
16677
 
16678
    // isset id assignments
16679
 
16680
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16681
    static {
16682
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16683
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16684
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16687
    }
16688
 
16689
    public shareEntities_result() {
16690
    }
16691
 
16692
    public shareEntities_result(
16693
      HelperServiceException hse)
16694
    {
16695
      this();
16696
      this.hse = hse;
16697
    }
16698
 
16699
    /**
16700
     * Performs a deep copy on <i>other</i>.
16701
     */
16702
    public shareEntities_result(shareEntities_result other) {
16703
      if (other.isSetHse()) {
16704
        this.hse = new HelperServiceException(other.hse);
16705
      }
16706
    }
16707
 
16708
    public shareEntities_result deepCopy() {
16709
      return new shareEntities_result(this);
16710
    }
16711
 
16712
    @Override
16713
    public void clear() {
16714
      this.hse = null;
16715
    }
16716
 
16717
    public HelperServiceException getHse() {
16718
      return this.hse;
16719
    }
16720
 
16721
    public void setHse(HelperServiceException hse) {
16722
      this.hse = hse;
16723
    }
16724
 
16725
    public void unsetHse() {
16726
      this.hse = null;
16727
    }
16728
 
16729
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16730
    public boolean isSetHse() {
16731
      return this.hse != null;
16732
    }
16733
 
16734
    public void setHseIsSet(boolean value) {
16735
      if (!value) {
16736
        this.hse = null;
16737
      }
16738
    }
16739
 
16740
    public void setFieldValue(_Fields field, Object value) {
16741
      switch (field) {
16742
      case HSE:
16743
        if (value == null) {
16744
          unsetHse();
16745
        } else {
16746
          setHse((HelperServiceException)value);
16747
        }
16748
        break;
16749
 
16750
      }
16751
    }
16752
 
16753
    public Object getFieldValue(_Fields field) {
16754
      switch (field) {
16755
      case HSE:
16756
        return getHse();
16757
 
16758
      }
16759
      throw new IllegalStateException();
16760
    }
16761
 
16762
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16763
    public boolean isSet(_Fields field) {
16764
      if (field == null) {
16765
        throw new IllegalArgumentException();
16766
      }
16767
 
16768
      switch (field) {
16769
      case HSE:
16770
        return isSetHse();
16771
      }
16772
      throw new IllegalStateException();
16773
    }
16774
 
16775
    @Override
16776
    public boolean equals(Object that) {
16777
      if (that == null)
16778
        return false;
16779
      if (that instanceof shareEntities_result)
16780
        return this.equals((shareEntities_result)that);
16781
      return false;
16782
    }
16783
 
16784
    public boolean equals(shareEntities_result that) {
16785
      if (that == null)
16786
        return false;
16787
 
16788
      boolean this_present_hse = true && this.isSetHse();
16789
      boolean that_present_hse = true && that.isSetHse();
16790
      if (this_present_hse || that_present_hse) {
16791
        if (!(this_present_hse && that_present_hse))
16792
          return false;
16793
        if (!this.hse.equals(that.hse))
16794
          return false;
16795
      }
16796
 
16797
      return true;
16798
    }
16799
 
16800
    @Override
16801
    public int hashCode() {
16802
      return 0;
16803
    }
16804
 
16805
    public int compareTo(shareEntities_result other) {
16806
      if (!getClass().equals(other.getClass())) {
16807
        return getClass().getName().compareTo(other.getClass().getName());
16808
      }
16809
 
16810
      int lastComparison = 0;
16811
      shareEntities_result typedOther = (shareEntities_result)other;
16812
 
16813
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16814
      if (lastComparison != 0) {
16815
        return lastComparison;
16816
      }
16817
      if (isSetHse()) {
16818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16819
        if (lastComparison != 0) {
16820
          return lastComparison;
16821
        }
16822
      }
16823
      return 0;
16824
    }
16825
 
16826
    public _Fields fieldForId(int fieldId) {
16827
      return _Fields.findByThriftId(fieldId);
16828
    }
16829
 
16830
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16831
      org.apache.thrift.protocol.TField field;
16832
      iprot.readStructBegin();
16833
      while (true)
16834
      {
16835
        field = iprot.readFieldBegin();
16836
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16837
          break;
16838
        }
16839
        switch (field.id) {
16840
          case 1: // HSE
16841
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16842
              this.hse = new HelperServiceException();
16843
              this.hse.read(iprot);
16844
            } else { 
16845
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16846
            }
16847
            break;
16848
          default:
16849
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16850
        }
16851
        iprot.readFieldEnd();
16852
      }
16853
      iprot.readStructEnd();
16854
      validate();
16855
    }
16856
 
16857
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16858
      oprot.writeStructBegin(STRUCT_DESC);
16859
 
16860
      if (this.isSetHse()) {
16861
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16862
        this.hse.write(oprot);
16863
        oprot.writeFieldEnd();
16864
      }
16865
      oprot.writeFieldStop();
16866
      oprot.writeStructEnd();
16867
    }
16868
 
16869
    @Override
16870
    public String toString() {
16871
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16872
      boolean first = true;
16873
 
16874
      sb.append("hse:");
16875
      if (this.hse == null) {
16876
        sb.append("null");
16877
      } else {
16878
        sb.append(this.hse);
16879
      }
16880
      first = false;
16881
      sb.append(")");
16882
      return sb.toString();
16883
    }
16884
 
16885
    public void validate() throws org.apache.thrift.TException {
16886
      // check for required fields
16887
    }
16888
 
16889
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16890
      try {
16891
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16892
      } catch (org.apache.thrift.TException te) {
16893
        throw new java.io.IOException(te);
16894
      }
16895
    }
16896
 
16897
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16898
      try {
16899
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16900
      } catch (org.apache.thrift.TException te) {
16901
        throw new java.io.IOException(te);
16902
      }
16903
    }
16904
 
16905
  }
16906
 
4693 mandeep.dh 16907
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16908
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16909
 
16910
 
16911
 
16912
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16913
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16914
;
16915
 
16916
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16917
 
16918
      static {
16919
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16920
          byName.put(field.getFieldName(), field);
16921
        }
16922
      }
16923
 
16924
      /**
16925
       * Find the _Fields constant that matches fieldId, or null if its not found.
16926
       */
16927
      public static _Fields findByThriftId(int fieldId) {
16928
        switch(fieldId) {
16929
          default:
16930
            return null;
16931
        }
16932
      }
16933
 
16934
      /**
16935
       * Find the _Fields constant that matches fieldId, throwing an exception
16936
       * if it is not found.
16937
       */
16938
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16939
        _Fields fields = findByThriftId(fieldId);
16940
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16941
        return fields;
16942
      }
16943
 
16944
      /**
16945
       * Find the _Fields constant that matches name, or null if its not found.
16946
       */
16947
      public static _Fields findByName(String name) {
16948
        return byName.get(name);
16949
      }
16950
 
16951
      private final short _thriftId;
16952
      private final String _fieldName;
16953
 
16954
      _Fields(short thriftId, String fieldName) {
16955
        _thriftId = thriftId;
16956
        _fieldName = fieldName;
16957
      }
16958
 
16959
      public short getThriftFieldId() {
16960
        return _thriftId;
16961
      }
16962
 
16963
      public String getFieldName() {
16964
        return _fieldName;
16965
      }
16966
    }
16967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16968
    static {
16969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16970
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16971
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16972
    }
16973
 
16974
    public getAgents_args() {
16975
    }
16976
 
16977
    /**
16978
     * Performs a deep copy on <i>other</i>.
16979
     */
16980
    public getAgents_args(getAgents_args other) {
16981
    }
16982
 
16983
    public getAgents_args deepCopy() {
16984
      return new getAgents_args(this);
16985
    }
16986
 
16987
    @Override
16988
    public void clear() {
16989
    }
16990
 
16991
    public void setFieldValue(_Fields field, Object value) {
16992
      switch (field) {
16993
      }
16994
    }
16995
 
16996
    public Object getFieldValue(_Fields field) {
16997
      switch (field) {
16998
      }
16999
      throw new IllegalStateException();
17000
    }
17001
 
17002
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17003
    public boolean isSet(_Fields field) {
17004
      if (field == null) {
17005
        throw new IllegalArgumentException();
17006
      }
17007
 
17008
      switch (field) {
17009
      }
17010
      throw new IllegalStateException();
17011
    }
17012
 
17013
    @Override
17014
    public boolean equals(Object that) {
17015
      if (that == null)
17016
        return false;
17017
      if (that instanceof getAgents_args)
17018
        return this.equals((getAgents_args)that);
17019
      return false;
17020
    }
17021
 
17022
    public boolean equals(getAgents_args that) {
17023
      if (that == null)
17024
        return false;
17025
 
17026
      return true;
17027
    }
17028
 
17029
    @Override
17030
    public int hashCode() {
17031
      return 0;
17032
    }
17033
 
17034
    public int compareTo(getAgents_args other) {
17035
      if (!getClass().equals(other.getClass())) {
17036
        return getClass().getName().compareTo(other.getClass().getName());
17037
      }
17038
 
17039
      int lastComparison = 0;
17040
      getAgents_args typedOther = (getAgents_args)other;
17041
 
17042
      return 0;
17043
    }
17044
 
17045
    public _Fields fieldForId(int fieldId) {
17046
      return _Fields.findByThriftId(fieldId);
17047
    }
17048
 
17049
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17050
      org.apache.thrift.protocol.TField field;
17051
      iprot.readStructBegin();
17052
      while (true)
17053
      {
17054
        field = iprot.readFieldBegin();
17055
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17056
          break;
17057
        }
17058
        switch (field.id) {
17059
          default:
17060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17061
        }
17062
        iprot.readFieldEnd();
17063
      }
17064
      iprot.readStructEnd();
17065
      validate();
17066
    }
17067
 
17068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17069
      validate();
17070
 
17071
      oprot.writeStructBegin(STRUCT_DESC);
17072
      oprot.writeFieldStop();
17073
      oprot.writeStructEnd();
17074
    }
17075
 
17076
    @Override
17077
    public String toString() {
17078
      StringBuilder sb = new StringBuilder("getAgents_args(");
17079
      boolean first = true;
17080
 
17081
      sb.append(")");
17082
      return sb.toString();
17083
    }
17084
 
17085
    public void validate() throws org.apache.thrift.TException {
17086
      // check for required fields
17087
    }
17088
 
17089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17090
      try {
17091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17092
      } catch (org.apache.thrift.TException te) {
17093
        throw new java.io.IOException(te);
17094
      }
17095
    }
17096
 
17097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17098
      try {
17099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17100
      } catch (org.apache.thrift.TException te) {
17101
        throw new java.io.IOException(te);
17102
      }
17103
    }
17104
 
17105
  }
17106
 
17107
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
17108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
17109
 
17110
    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);
17111
 
17112
    private List<Agent> success; // required
17113
 
17114
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17115
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17116
      SUCCESS((short)0, "success");
17117
 
17118
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17119
 
17120
      static {
17121
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17122
          byName.put(field.getFieldName(), field);
17123
        }
17124
      }
17125
 
17126
      /**
17127
       * Find the _Fields constant that matches fieldId, or null if its not found.
17128
       */
17129
      public static _Fields findByThriftId(int fieldId) {
17130
        switch(fieldId) {
17131
          case 0: // SUCCESS
17132
            return SUCCESS;
17133
          default:
17134
            return null;
17135
        }
17136
      }
17137
 
17138
      /**
17139
       * Find the _Fields constant that matches fieldId, throwing an exception
17140
       * if it is not found.
17141
       */
17142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17143
        _Fields fields = findByThriftId(fieldId);
17144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17145
        return fields;
17146
      }
17147
 
17148
      /**
17149
       * Find the _Fields constant that matches name, or null if its not found.
17150
       */
17151
      public static _Fields findByName(String name) {
17152
        return byName.get(name);
17153
      }
17154
 
17155
      private final short _thriftId;
17156
      private final String _fieldName;
17157
 
17158
      _Fields(short thriftId, String fieldName) {
17159
        _thriftId = thriftId;
17160
        _fieldName = fieldName;
17161
      }
17162
 
17163
      public short getThriftFieldId() {
17164
        return _thriftId;
17165
      }
17166
 
17167
      public String getFieldName() {
17168
        return _fieldName;
17169
      }
17170
    }
17171
 
17172
    // isset id assignments
17173
 
17174
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17175
    static {
17176
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17177
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17178
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17179
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
17180
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17181
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
17182
    }
17183
 
17184
    public getAgents_result() {
17185
    }
17186
 
17187
    public getAgents_result(
17188
      List<Agent> success)
17189
    {
17190
      this();
17191
      this.success = success;
17192
    }
17193
 
17194
    /**
17195
     * Performs a deep copy on <i>other</i>.
17196
     */
17197
    public getAgents_result(getAgents_result other) {
17198
      if (other.isSetSuccess()) {
17199
        List<Agent> __this__success = new ArrayList<Agent>();
17200
        for (Agent other_element : other.success) {
17201
          __this__success.add(new Agent(other_element));
17202
        }
17203
        this.success = __this__success;
17204
      }
17205
    }
17206
 
17207
    public getAgents_result deepCopy() {
17208
      return new getAgents_result(this);
17209
    }
17210
 
17211
    @Override
17212
    public void clear() {
17213
      this.success = null;
17214
    }
17215
 
17216
    public int getSuccessSize() {
17217
      return (this.success == null) ? 0 : this.success.size();
17218
    }
17219
 
17220
    public java.util.Iterator<Agent> getSuccessIterator() {
17221
      return (this.success == null) ? null : this.success.iterator();
17222
    }
17223
 
17224
    public void addToSuccess(Agent elem) {
17225
      if (this.success == null) {
17226
        this.success = new ArrayList<Agent>();
17227
      }
17228
      this.success.add(elem);
17229
    }
17230
 
17231
    public List<Agent> getSuccess() {
17232
      return this.success;
17233
    }
17234
 
17235
    public void setSuccess(List<Agent> success) {
17236
      this.success = success;
17237
    }
17238
 
17239
    public void unsetSuccess() {
17240
      this.success = null;
17241
    }
17242
 
17243
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17244
    public boolean isSetSuccess() {
17245
      return this.success != null;
17246
    }
17247
 
17248
    public void setSuccessIsSet(boolean value) {
17249
      if (!value) {
17250
        this.success = null;
17251
      }
17252
    }
17253
 
17254
    public void setFieldValue(_Fields field, Object value) {
17255
      switch (field) {
17256
      case SUCCESS:
17257
        if (value == null) {
17258
          unsetSuccess();
17259
        } else {
17260
          setSuccess((List<Agent>)value);
17261
        }
17262
        break;
17263
 
17264
      }
17265
    }
17266
 
17267
    public Object getFieldValue(_Fields field) {
17268
      switch (field) {
17269
      case SUCCESS:
17270
        return getSuccess();
17271
 
17272
      }
17273
      throw new IllegalStateException();
17274
    }
17275
 
17276
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17277
    public boolean isSet(_Fields field) {
17278
      if (field == null) {
17279
        throw new IllegalArgumentException();
17280
      }
17281
 
17282
      switch (field) {
17283
      case SUCCESS:
17284
        return isSetSuccess();
17285
      }
17286
      throw new IllegalStateException();
17287
    }
17288
 
17289
    @Override
17290
    public boolean equals(Object that) {
17291
      if (that == null)
17292
        return false;
17293
      if (that instanceof getAgents_result)
17294
        return this.equals((getAgents_result)that);
17295
      return false;
17296
    }
17297
 
17298
    public boolean equals(getAgents_result that) {
17299
      if (that == null)
17300
        return false;
17301
 
17302
      boolean this_present_success = true && this.isSetSuccess();
17303
      boolean that_present_success = true && that.isSetSuccess();
17304
      if (this_present_success || that_present_success) {
17305
        if (!(this_present_success && that_present_success))
17306
          return false;
17307
        if (!this.success.equals(that.success))
17308
          return false;
17309
      }
17310
 
17311
      return true;
17312
    }
17313
 
17314
    @Override
17315
    public int hashCode() {
17316
      return 0;
17317
    }
17318
 
17319
    public int compareTo(getAgents_result other) {
17320
      if (!getClass().equals(other.getClass())) {
17321
        return getClass().getName().compareTo(other.getClass().getName());
17322
      }
17323
 
17324
      int lastComparison = 0;
17325
      getAgents_result typedOther = (getAgents_result)other;
17326
 
17327
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17328
      if (lastComparison != 0) {
17329
        return lastComparison;
17330
      }
17331
      if (isSetSuccess()) {
17332
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17333
        if (lastComparison != 0) {
17334
          return lastComparison;
17335
        }
17336
      }
17337
      return 0;
17338
    }
17339
 
17340
    public _Fields fieldForId(int fieldId) {
17341
      return _Fields.findByThriftId(fieldId);
17342
    }
17343
 
17344
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17345
      org.apache.thrift.protocol.TField field;
17346
      iprot.readStructBegin();
17347
      while (true)
17348
      {
17349
        field = iprot.readFieldBegin();
17350
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17351
          break;
17352
        }
17353
        switch (field.id) {
17354
          case 0: // SUCCESS
17355
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17356
              {
5864 rajveer 17357
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17358
                this.success = new ArrayList<Agent>(_list49.size);
17359
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17360
                {
5864 rajveer 17361
                  Agent _elem51; // required
17362
                  _elem51 = new Agent();
17363
                  _elem51.read(iprot);
17364
                  this.success.add(_elem51);
4693 mandeep.dh 17365
                }
17366
                iprot.readListEnd();
17367
              }
17368
            } else { 
17369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17370
            }
17371
            break;
17372
          default:
17373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17374
        }
17375
        iprot.readFieldEnd();
17376
      }
17377
      iprot.readStructEnd();
17378
      validate();
17379
    }
17380
 
17381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17382
      oprot.writeStructBegin(STRUCT_DESC);
17383
 
17384
      if (this.isSetSuccess()) {
17385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17386
        {
17387
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17388
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17389
          {
5864 rajveer 17390
            _iter52.write(oprot);
4693 mandeep.dh 17391
          }
17392
          oprot.writeListEnd();
17393
        }
17394
        oprot.writeFieldEnd();
17395
      }
17396
      oprot.writeFieldStop();
17397
      oprot.writeStructEnd();
17398
    }
17399
 
17400
    @Override
17401
    public String toString() {
17402
      StringBuilder sb = new StringBuilder("getAgents_result(");
17403
      boolean first = true;
17404
 
17405
      sb.append("success:");
17406
      if (this.success == null) {
17407
        sb.append("null");
17408
      } else {
17409
        sb.append(this.success);
17410
      }
17411
      first = false;
17412
      sb.append(")");
17413
      return sb.toString();
17414
    }
17415
 
17416
    public void validate() throws org.apache.thrift.TException {
17417
      // check for required fields
17418
    }
17419
 
17420
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17421
      try {
17422
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17423
      } catch (org.apache.thrift.TException te) {
17424
        throw new java.io.IOException(te);
17425
      }
17426
    }
17427
 
17428
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17429
      try {
17430
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17431
      } catch (org.apache.thrift.TException te) {
17432
        throw new java.io.IOException(te);
17433
      }
17434
    }
17435
 
17436
  }
17437
 
17438
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17439
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17440
 
17441
    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);
17442
    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);
17443
 
17444
    private String emailId; // required
17445
    private String password; // required
17446
 
17447
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17448
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17449
      EMAIL_ID((short)1, "emailId"),
17450
      PASSWORD((short)2, "password");
17451
 
17452
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17453
 
17454
      static {
17455
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17456
          byName.put(field.getFieldName(), field);
17457
        }
17458
      }
17459
 
17460
      /**
17461
       * Find the _Fields constant that matches fieldId, or null if its not found.
17462
       */
17463
      public static _Fields findByThriftId(int fieldId) {
17464
        switch(fieldId) {
17465
          case 1: // EMAIL_ID
17466
            return EMAIL_ID;
17467
          case 2: // PASSWORD
17468
            return PASSWORD;
17469
          default:
17470
            return null;
17471
        }
17472
      }
17473
 
17474
      /**
17475
       * Find the _Fields constant that matches fieldId, throwing an exception
17476
       * if it is not found.
17477
       */
17478
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17479
        _Fields fields = findByThriftId(fieldId);
17480
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17481
        return fields;
17482
      }
17483
 
17484
      /**
17485
       * Find the _Fields constant that matches name, or null if its not found.
17486
       */
17487
      public static _Fields findByName(String name) {
17488
        return byName.get(name);
17489
      }
17490
 
17491
      private final short _thriftId;
17492
      private final String _fieldName;
17493
 
17494
      _Fields(short thriftId, String fieldName) {
17495
        _thriftId = thriftId;
17496
        _fieldName = fieldName;
17497
      }
17498
 
17499
      public short getThriftFieldId() {
17500
        return _thriftId;
17501
      }
17502
 
17503
      public String getFieldName() {
17504
        return _fieldName;
17505
      }
17506
    }
17507
 
17508
    // isset id assignments
17509
 
17510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17511
    static {
17512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17513
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17514
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17515
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17516
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17517
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17518
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17519
    }
17520
 
17521
    public validateLogIn_args() {
17522
    }
17523
 
17524
    public validateLogIn_args(
17525
      String emailId,
17526
      String password)
17527
    {
17528
      this();
17529
      this.emailId = emailId;
17530
      this.password = password;
17531
    }
17532
 
17533
    /**
17534
     * Performs a deep copy on <i>other</i>.
17535
     */
17536
    public validateLogIn_args(validateLogIn_args other) {
17537
      if (other.isSetEmailId()) {
17538
        this.emailId = other.emailId;
17539
      }
17540
      if (other.isSetPassword()) {
17541
        this.password = other.password;
17542
      }
17543
    }
17544
 
17545
    public validateLogIn_args deepCopy() {
17546
      return new validateLogIn_args(this);
17547
    }
17548
 
17549
    @Override
17550
    public void clear() {
17551
      this.emailId = null;
17552
      this.password = null;
17553
    }
17554
 
17555
    public String getEmailId() {
17556
      return this.emailId;
17557
    }
17558
 
17559
    public void setEmailId(String emailId) {
17560
      this.emailId = emailId;
17561
    }
17562
 
17563
    public void unsetEmailId() {
17564
      this.emailId = null;
17565
    }
17566
 
17567
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17568
    public boolean isSetEmailId() {
17569
      return this.emailId != null;
17570
    }
17571
 
17572
    public void setEmailIdIsSet(boolean value) {
17573
      if (!value) {
17574
        this.emailId = null;
17575
      }
17576
    }
17577
 
17578
    public String getPassword() {
17579
      return this.password;
17580
    }
17581
 
17582
    public void setPassword(String password) {
17583
      this.password = password;
17584
    }
17585
 
17586
    public void unsetPassword() {
17587
      this.password = null;
17588
    }
17589
 
17590
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17591
    public boolean isSetPassword() {
17592
      return this.password != null;
17593
    }
17594
 
17595
    public void setPasswordIsSet(boolean value) {
17596
      if (!value) {
17597
        this.password = null;
17598
      }
17599
    }
17600
 
17601
    public void setFieldValue(_Fields field, Object value) {
17602
      switch (field) {
17603
      case EMAIL_ID:
17604
        if (value == null) {
17605
          unsetEmailId();
17606
        } else {
17607
          setEmailId((String)value);
17608
        }
17609
        break;
17610
 
17611
      case PASSWORD:
17612
        if (value == null) {
17613
          unsetPassword();
17614
        } else {
17615
          setPassword((String)value);
17616
        }
17617
        break;
17618
 
17619
      }
17620
    }
17621
 
17622
    public Object getFieldValue(_Fields field) {
17623
      switch (field) {
17624
      case EMAIL_ID:
17625
        return getEmailId();
17626
 
17627
      case PASSWORD:
17628
        return getPassword();
17629
 
17630
      }
17631
      throw new IllegalStateException();
17632
    }
17633
 
17634
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17635
    public boolean isSet(_Fields field) {
17636
      if (field == null) {
17637
        throw new IllegalArgumentException();
17638
      }
17639
 
17640
      switch (field) {
17641
      case EMAIL_ID:
17642
        return isSetEmailId();
17643
      case PASSWORD:
17644
        return isSetPassword();
17645
      }
17646
      throw new IllegalStateException();
17647
    }
17648
 
17649
    @Override
17650
    public boolean equals(Object that) {
17651
      if (that == null)
17652
        return false;
17653
      if (that instanceof validateLogIn_args)
17654
        return this.equals((validateLogIn_args)that);
17655
      return false;
17656
    }
17657
 
17658
    public boolean equals(validateLogIn_args that) {
17659
      if (that == null)
17660
        return false;
17661
 
17662
      boolean this_present_emailId = true && this.isSetEmailId();
17663
      boolean that_present_emailId = true && that.isSetEmailId();
17664
      if (this_present_emailId || that_present_emailId) {
17665
        if (!(this_present_emailId && that_present_emailId))
17666
          return false;
17667
        if (!this.emailId.equals(that.emailId))
17668
          return false;
17669
      }
17670
 
17671
      boolean this_present_password = true && this.isSetPassword();
17672
      boolean that_present_password = true && that.isSetPassword();
17673
      if (this_present_password || that_present_password) {
17674
        if (!(this_present_password && that_present_password))
17675
          return false;
17676
        if (!this.password.equals(that.password))
17677
          return false;
17678
      }
17679
 
17680
      return true;
17681
    }
17682
 
17683
    @Override
17684
    public int hashCode() {
17685
      return 0;
17686
    }
17687
 
17688
    public int compareTo(validateLogIn_args other) {
17689
      if (!getClass().equals(other.getClass())) {
17690
        return getClass().getName().compareTo(other.getClass().getName());
17691
      }
17692
 
17693
      int lastComparison = 0;
17694
      validateLogIn_args typedOther = (validateLogIn_args)other;
17695
 
17696
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17697
      if (lastComparison != 0) {
17698
        return lastComparison;
17699
      }
17700
      if (isSetEmailId()) {
17701
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17702
        if (lastComparison != 0) {
17703
          return lastComparison;
17704
        }
17705
      }
17706
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17707
      if (lastComparison != 0) {
17708
        return lastComparison;
17709
      }
17710
      if (isSetPassword()) {
17711
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17712
        if (lastComparison != 0) {
17713
          return lastComparison;
17714
        }
17715
      }
17716
      return 0;
17717
    }
17718
 
17719
    public _Fields fieldForId(int fieldId) {
17720
      return _Fields.findByThriftId(fieldId);
17721
    }
17722
 
17723
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17724
      org.apache.thrift.protocol.TField field;
17725
      iprot.readStructBegin();
17726
      while (true)
17727
      {
17728
        field = iprot.readFieldBegin();
17729
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17730
          break;
17731
        }
17732
        switch (field.id) {
17733
          case 1: // EMAIL_ID
17734
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17735
              this.emailId = iprot.readString();
17736
            } else { 
17737
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17738
            }
17739
            break;
17740
          case 2: // PASSWORD
17741
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17742
              this.password = iprot.readString();
17743
            } else { 
17744
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17745
            }
17746
            break;
17747
          default:
17748
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17749
        }
17750
        iprot.readFieldEnd();
17751
      }
17752
      iprot.readStructEnd();
17753
      validate();
17754
    }
17755
 
17756
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17757
      validate();
17758
 
17759
      oprot.writeStructBegin(STRUCT_DESC);
17760
      if (this.emailId != null) {
17761
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17762
        oprot.writeString(this.emailId);
17763
        oprot.writeFieldEnd();
17764
      }
17765
      if (this.password != null) {
17766
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17767
        oprot.writeString(this.password);
17768
        oprot.writeFieldEnd();
17769
      }
17770
      oprot.writeFieldStop();
17771
      oprot.writeStructEnd();
17772
    }
17773
 
17774
    @Override
17775
    public String toString() {
17776
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17777
      boolean first = true;
17778
 
17779
      sb.append("emailId:");
17780
      if (this.emailId == null) {
17781
        sb.append("null");
17782
      } else {
17783
        sb.append(this.emailId);
17784
      }
17785
      first = false;
17786
      if (!first) sb.append(", ");
17787
      sb.append("password:");
17788
      if (this.password == null) {
17789
        sb.append("null");
17790
      } else {
17791
        sb.append(this.password);
17792
      }
17793
      first = false;
17794
      sb.append(")");
17795
      return sb.toString();
17796
    }
17797
 
17798
    public void validate() throws org.apache.thrift.TException {
17799
      // check for required fields
17800
    }
17801
 
17802
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17803
      try {
17804
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17805
      } catch (org.apache.thrift.TException te) {
17806
        throw new java.io.IOException(te);
17807
      }
17808
    }
17809
 
17810
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17811
      try {
17812
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17813
      } catch (org.apache.thrift.TException te) {
17814
        throw new java.io.IOException(te);
17815
      }
17816
    }
17817
 
17818
  }
17819
 
17820
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17822
 
17823
    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);
17824
 
17825
    private boolean success; // required
17826
 
17827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17829
      SUCCESS((short)0, "success");
17830
 
17831
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17832
 
17833
      static {
17834
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17835
          byName.put(field.getFieldName(), field);
17836
        }
17837
      }
17838
 
17839
      /**
17840
       * Find the _Fields constant that matches fieldId, or null if its not found.
17841
       */
17842
      public static _Fields findByThriftId(int fieldId) {
17843
        switch(fieldId) {
17844
          case 0: // SUCCESS
17845
            return SUCCESS;
17846
          default:
17847
            return null;
17848
        }
17849
      }
17850
 
17851
      /**
17852
       * Find the _Fields constant that matches fieldId, throwing an exception
17853
       * if it is not found.
17854
       */
17855
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17856
        _Fields fields = findByThriftId(fieldId);
17857
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17858
        return fields;
17859
      }
17860
 
17861
      /**
17862
       * Find the _Fields constant that matches name, or null if its not found.
17863
       */
17864
      public static _Fields findByName(String name) {
17865
        return byName.get(name);
17866
      }
17867
 
17868
      private final short _thriftId;
17869
      private final String _fieldName;
17870
 
17871
      _Fields(short thriftId, String fieldName) {
17872
        _thriftId = thriftId;
17873
        _fieldName = fieldName;
17874
      }
17875
 
17876
      public short getThriftFieldId() {
17877
        return _thriftId;
17878
      }
17879
 
17880
      public String getFieldName() {
17881
        return _fieldName;
17882
      }
17883
    }
17884
 
17885
    // isset id assignments
17886
    private static final int __SUCCESS_ISSET_ID = 0;
17887
    private BitSet __isset_bit_vector = new BitSet(1);
17888
 
17889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17890
    static {
17891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17892
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17896
    }
17897
 
17898
    public validateLogIn_result() {
17899
    }
17900
 
17901
    public validateLogIn_result(
17902
      boolean success)
17903
    {
17904
      this();
17905
      this.success = success;
17906
      setSuccessIsSet(true);
17907
    }
17908
 
17909
    /**
17910
     * Performs a deep copy on <i>other</i>.
17911
     */
17912
    public validateLogIn_result(validateLogIn_result other) {
17913
      __isset_bit_vector.clear();
17914
      __isset_bit_vector.or(other.__isset_bit_vector);
17915
      this.success = other.success;
17916
    }
17917
 
17918
    public validateLogIn_result deepCopy() {
17919
      return new validateLogIn_result(this);
17920
    }
17921
 
17922
    @Override
17923
    public void clear() {
17924
      setSuccessIsSet(false);
17925
      this.success = false;
17926
    }
17927
 
17928
    public boolean isSuccess() {
17929
      return this.success;
17930
    }
17931
 
17932
    public void setSuccess(boolean success) {
17933
      this.success = success;
17934
      setSuccessIsSet(true);
17935
    }
17936
 
17937
    public void unsetSuccess() {
17938
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17939
    }
17940
 
17941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17942
    public boolean isSetSuccess() {
17943
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17944
    }
17945
 
17946
    public void setSuccessIsSet(boolean value) {
17947
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17948
    }
17949
 
17950
    public void setFieldValue(_Fields field, Object value) {
17951
      switch (field) {
17952
      case SUCCESS:
17953
        if (value == null) {
17954
          unsetSuccess();
17955
        } else {
17956
          setSuccess((Boolean)value);
17957
        }
17958
        break;
17959
 
17960
      }
17961
    }
17962
 
17963
    public Object getFieldValue(_Fields field) {
17964
      switch (field) {
17965
      case SUCCESS:
17966
        return Boolean.valueOf(isSuccess());
17967
 
17968
      }
17969
      throw new IllegalStateException();
17970
    }
17971
 
17972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17973
    public boolean isSet(_Fields field) {
17974
      if (field == null) {
17975
        throw new IllegalArgumentException();
17976
      }
17977
 
17978
      switch (field) {
17979
      case SUCCESS:
17980
        return isSetSuccess();
17981
      }
17982
      throw new IllegalStateException();
17983
    }
17984
 
17985
    @Override
17986
    public boolean equals(Object that) {
17987
      if (that == null)
17988
        return false;
17989
      if (that instanceof validateLogIn_result)
17990
        return this.equals((validateLogIn_result)that);
17991
      return false;
17992
    }
17993
 
17994
    public boolean equals(validateLogIn_result that) {
17995
      if (that == null)
17996
        return false;
17997
 
17998
      boolean this_present_success = true;
17999
      boolean that_present_success = true;
18000
      if (this_present_success || that_present_success) {
18001
        if (!(this_present_success && that_present_success))
18002
          return false;
18003
        if (this.success != that.success)
18004
          return false;
18005
      }
18006
 
18007
      return true;
18008
    }
18009
 
18010
    @Override
18011
    public int hashCode() {
18012
      return 0;
18013
    }
18014
 
18015
    public int compareTo(validateLogIn_result other) {
18016
      if (!getClass().equals(other.getClass())) {
18017
        return getClass().getName().compareTo(other.getClass().getName());
18018
      }
18019
 
18020
      int lastComparison = 0;
18021
      validateLogIn_result typedOther = (validateLogIn_result)other;
18022
 
18023
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18024
      if (lastComparison != 0) {
18025
        return lastComparison;
18026
      }
18027
      if (isSetSuccess()) {
18028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18029
        if (lastComparison != 0) {
18030
          return lastComparison;
18031
        }
18032
      }
18033
      return 0;
18034
    }
18035
 
18036
    public _Fields fieldForId(int fieldId) {
18037
      return _Fields.findByThriftId(fieldId);
18038
    }
18039
 
18040
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18041
      org.apache.thrift.protocol.TField field;
18042
      iprot.readStructBegin();
18043
      while (true)
18044
      {
18045
        field = iprot.readFieldBegin();
18046
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18047
          break;
18048
        }
18049
        switch (field.id) {
18050
          case 0: // SUCCESS
18051
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18052
              this.success = iprot.readBool();
18053
              setSuccessIsSet(true);
18054
            } else { 
18055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18056
            }
18057
            break;
18058
          default:
18059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18060
        }
18061
        iprot.readFieldEnd();
18062
      }
18063
      iprot.readStructEnd();
18064
      validate();
18065
    }
18066
 
18067
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18068
      oprot.writeStructBegin(STRUCT_DESC);
18069
 
18070
      if (this.isSetSuccess()) {
18071
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18072
        oprot.writeBool(this.success);
18073
        oprot.writeFieldEnd();
18074
      }
18075
      oprot.writeFieldStop();
18076
      oprot.writeStructEnd();
18077
    }
18078
 
18079
    @Override
18080
    public String toString() {
18081
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
18082
      boolean first = true;
18083
 
18084
      sb.append("success:");
18085
      sb.append(this.success);
18086
      first = false;
18087
      sb.append(")");
18088
      return sb.toString();
18089
    }
18090
 
18091
    public void validate() throws org.apache.thrift.TException {
18092
      // check for required fields
18093
    }
18094
 
18095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18096
      try {
18097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18098
      } catch (org.apache.thrift.TException te) {
18099
        throw new java.io.IOException(te);
18100
      }
18101
    }
18102
 
18103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18104
      try {
18105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18106
      } catch (org.apache.thrift.TException te) {
18107
        throw new java.io.IOException(te);
18108
      }
18109
    }
18110
 
18111
  }
18112
 
18113
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
18115
 
18116
    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);
18117
    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);
18118
 
18119
    private String agentEmailId; // required
18120
    private String password; // required
18121
 
18122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18123
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18124
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
18125
      PASSWORD((short)2, "password");
18126
 
18127
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18128
 
18129
      static {
18130
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18131
          byName.put(field.getFieldName(), field);
18132
        }
18133
      }
18134
 
18135
      /**
18136
       * Find the _Fields constant that matches fieldId, or null if its not found.
18137
       */
18138
      public static _Fields findByThriftId(int fieldId) {
18139
        switch(fieldId) {
18140
          case 1: // AGENT_EMAIL_ID
18141
            return AGENT_EMAIL_ID;
18142
          case 2: // PASSWORD
18143
            return PASSWORD;
18144
          default:
18145
            return null;
18146
        }
18147
      }
18148
 
18149
      /**
18150
       * Find the _Fields constant that matches fieldId, throwing an exception
18151
       * if it is not found.
18152
       */
18153
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18154
        _Fields fields = findByThriftId(fieldId);
18155
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18156
        return fields;
18157
      }
18158
 
18159
      /**
18160
       * Find the _Fields constant that matches name, or null if its not found.
18161
       */
18162
      public static _Fields findByName(String name) {
18163
        return byName.get(name);
18164
      }
18165
 
18166
      private final short _thriftId;
18167
      private final String _fieldName;
18168
 
18169
      _Fields(short thriftId, String fieldName) {
18170
        _thriftId = thriftId;
18171
        _fieldName = fieldName;
18172
      }
18173
 
18174
      public short getThriftFieldId() {
18175
        return _thriftId;
18176
      }
18177
 
18178
      public String getFieldName() {
18179
        return _fieldName;
18180
      }
18181
    }
18182
 
18183
    // isset id assignments
18184
 
18185
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18186
    static {
18187
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18188
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18189
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18190
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
18194
    }
18195
 
18196
    public updatePasswordForAgent_args() {
18197
    }
18198
 
18199
    public updatePasswordForAgent_args(
18200
      String agentEmailId,
18201
      String password)
18202
    {
18203
      this();
18204
      this.agentEmailId = agentEmailId;
18205
      this.password = password;
18206
    }
18207
 
18208
    /**
18209
     * Performs a deep copy on <i>other</i>.
18210
     */
18211
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
18212
      if (other.isSetAgentEmailId()) {
18213
        this.agentEmailId = other.agentEmailId;
18214
      }
18215
      if (other.isSetPassword()) {
18216
        this.password = other.password;
18217
      }
18218
    }
18219
 
18220
    public updatePasswordForAgent_args deepCopy() {
18221
      return new updatePasswordForAgent_args(this);
18222
    }
18223
 
18224
    @Override
18225
    public void clear() {
18226
      this.agentEmailId = null;
18227
      this.password = null;
18228
    }
18229
 
18230
    public String getAgentEmailId() {
18231
      return this.agentEmailId;
18232
    }
18233
 
18234
    public void setAgentEmailId(String agentEmailId) {
18235
      this.agentEmailId = agentEmailId;
18236
    }
18237
 
18238
    public void unsetAgentEmailId() {
18239
      this.agentEmailId = null;
18240
    }
18241
 
18242
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18243
    public boolean isSetAgentEmailId() {
18244
      return this.agentEmailId != null;
18245
    }
18246
 
18247
    public void setAgentEmailIdIsSet(boolean value) {
18248
      if (!value) {
18249
        this.agentEmailId = null;
18250
      }
18251
    }
18252
 
18253
    public String getPassword() {
18254
      return this.password;
18255
    }
18256
 
18257
    public void setPassword(String password) {
18258
      this.password = password;
18259
    }
18260
 
18261
    public void unsetPassword() {
18262
      this.password = null;
18263
    }
18264
 
18265
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18266
    public boolean isSetPassword() {
18267
      return this.password != null;
18268
    }
18269
 
18270
    public void setPasswordIsSet(boolean value) {
18271
      if (!value) {
18272
        this.password = null;
18273
      }
18274
    }
18275
 
18276
    public void setFieldValue(_Fields field, Object value) {
18277
      switch (field) {
18278
      case AGENT_EMAIL_ID:
18279
        if (value == null) {
18280
          unsetAgentEmailId();
18281
        } else {
18282
          setAgentEmailId((String)value);
18283
        }
18284
        break;
18285
 
18286
      case PASSWORD:
18287
        if (value == null) {
18288
          unsetPassword();
18289
        } else {
18290
          setPassword((String)value);
18291
        }
18292
        break;
18293
 
18294
      }
18295
    }
18296
 
18297
    public Object getFieldValue(_Fields field) {
18298
      switch (field) {
18299
      case AGENT_EMAIL_ID:
18300
        return getAgentEmailId();
18301
 
18302
      case PASSWORD:
18303
        return getPassword();
18304
 
18305
      }
18306
      throw new IllegalStateException();
18307
    }
18308
 
18309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18310
    public boolean isSet(_Fields field) {
18311
      if (field == null) {
18312
        throw new IllegalArgumentException();
18313
      }
18314
 
18315
      switch (field) {
18316
      case AGENT_EMAIL_ID:
18317
        return isSetAgentEmailId();
18318
      case PASSWORD:
18319
        return isSetPassword();
18320
      }
18321
      throw new IllegalStateException();
18322
    }
18323
 
18324
    @Override
18325
    public boolean equals(Object that) {
18326
      if (that == null)
18327
        return false;
18328
      if (that instanceof updatePasswordForAgent_args)
18329
        return this.equals((updatePasswordForAgent_args)that);
18330
      return false;
18331
    }
18332
 
18333
    public boolean equals(updatePasswordForAgent_args that) {
18334
      if (that == null)
18335
        return false;
18336
 
18337
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18338
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18339
      if (this_present_agentEmailId || that_present_agentEmailId) {
18340
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18341
          return false;
18342
        if (!this.agentEmailId.equals(that.agentEmailId))
18343
          return false;
18344
      }
18345
 
18346
      boolean this_present_password = true && this.isSetPassword();
18347
      boolean that_present_password = true && that.isSetPassword();
18348
      if (this_present_password || that_present_password) {
18349
        if (!(this_present_password && that_present_password))
18350
          return false;
18351
        if (!this.password.equals(that.password))
18352
          return false;
18353
      }
18354
 
18355
      return true;
18356
    }
18357
 
18358
    @Override
18359
    public int hashCode() {
18360
      return 0;
18361
    }
18362
 
18363
    public int compareTo(updatePasswordForAgent_args other) {
18364
      if (!getClass().equals(other.getClass())) {
18365
        return getClass().getName().compareTo(other.getClass().getName());
18366
      }
18367
 
18368
      int lastComparison = 0;
18369
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18370
 
18371
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18372
      if (lastComparison != 0) {
18373
        return lastComparison;
18374
      }
18375
      if (isSetAgentEmailId()) {
18376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18377
        if (lastComparison != 0) {
18378
          return lastComparison;
18379
        }
18380
      }
18381
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18382
      if (lastComparison != 0) {
18383
        return lastComparison;
18384
      }
18385
      if (isSetPassword()) {
18386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18387
        if (lastComparison != 0) {
18388
          return lastComparison;
18389
        }
18390
      }
18391
      return 0;
18392
    }
18393
 
18394
    public _Fields fieldForId(int fieldId) {
18395
      return _Fields.findByThriftId(fieldId);
18396
    }
18397
 
18398
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18399
      org.apache.thrift.protocol.TField field;
18400
      iprot.readStructBegin();
18401
      while (true)
18402
      {
18403
        field = iprot.readFieldBegin();
18404
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18405
          break;
18406
        }
18407
        switch (field.id) {
18408
          case 1: // AGENT_EMAIL_ID
18409
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18410
              this.agentEmailId = iprot.readString();
18411
            } else { 
18412
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18413
            }
18414
            break;
18415
          case 2: // PASSWORD
18416
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18417
              this.password = iprot.readString();
18418
            } else { 
18419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18420
            }
18421
            break;
18422
          default:
18423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18424
        }
18425
        iprot.readFieldEnd();
18426
      }
18427
      iprot.readStructEnd();
18428
      validate();
18429
    }
18430
 
18431
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18432
      validate();
18433
 
18434
      oprot.writeStructBegin(STRUCT_DESC);
18435
      if (this.agentEmailId != null) {
18436
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18437
        oprot.writeString(this.agentEmailId);
18438
        oprot.writeFieldEnd();
18439
      }
18440
      if (this.password != null) {
18441
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18442
        oprot.writeString(this.password);
18443
        oprot.writeFieldEnd();
18444
      }
18445
      oprot.writeFieldStop();
18446
      oprot.writeStructEnd();
18447
    }
18448
 
18449
    @Override
18450
    public String toString() {
18451
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18452
      boolean first = true;
18453
 
18454
      sb.append("agentEmailId:");
18455
      if (this.agentEmailId == null) {
18456
        sb.append("null");
18457
      } else {
18458
        sb.append(this.agentEmailId);
18459
      }
18460
      first = false;
18461
      if (!first) sb.append(", ");
18462
      sb.append("password:");
18463
      if (this.password == null) {
18464
        sb.append("null");
18465
      } else {
18466
        sb.append(this.password);
18467
      }
18468
      first = false;
18469
      sb.append(")");
18470
      return sb.toString();
18471
    }
18472
 
18473
    public void validate() throws org.apache.thrift.TException {
18474
      // check for required fields
18475
    }
18476
 
18477
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18478
      try {
18479
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18480
      } catch (org.apache.thrift.TException te) {
18481
        throw new java.io.IOException(te);
18482
      }
18483
    }
18484
 
18485
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18486
      try {
18487
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18488
      } catch (org.apache.thrift.TException te) {
18489
        throw new java.io.IOException(te);
18490
      }
18491
    }
18492
 
18493
  }
18494
 
18495
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18496
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18497
 
18498
 
18499
 
18500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18502
;
18503
 
18504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18505
 
18506
      static {
18507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18508
          byName.put(field.getFieldName(), field);
18509
        }
18510
      }
18511
 
18512
      /**
18513
       * Find the _Fields constant that matches fieldId, or null if its not found.
18514
       */
18515
      public static _Fields findByThriftId(int fieldId) {
18516
        switch(fieldId) {
18517
          default:
18518
            return null;
18519
        }
18520
      }
18521
 
18522
      /**
18523
       * Find the _Fields constant that matches fieldId, throwing an exception
18524
       * if it is not found.
18525
       */
18526
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18527
        _Fields fields = findByThriftId(fieldId);
18528
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18529
        return fields;
18530
      }
18531
 
18532
      /**
18533
       * Find the _Fields constant that matches name, or null if its not found.
18534
       */
18535
      public static _Fields findByName(String name) {
18536
        return byName.get(name);
18537
      }
18538
 
18539
      private final short _thriftId;
18540
      private final String _fieldName;
18541
 
18542
      _Fields(short thriftId, String fieldName) {
18543
        _thriftId = thriftId;
18544
        _fieldName = fieldName;
18545
      }
18546
 
18547
      public short getThriftFieldId() {
18548
        return _thriftId;
18549
      }
18550
 
18551
      public String getFieldName() {
18552
        return _fieldName;
18553
      }
18554
    }
18555
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18556
    static {
18557
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18560
    }
18561
 
18562
    public updatePasswordForAgent_result() {
18563
    }
18564
 
18565
    /**
18566
     * Performs a deep copy on <i>other</i>.
18567
     */
18568
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18569
    }
18570
 
18571
    public updatePasswordForAgent_result deepCopy() {
18572
      return new updatePasswordForAgent_result(this);
18573
    }
18574
 
18575
    @Override
18576
    public void clear() {
18577
    }
18578
 
18579
    public void setFieldValue(_Fields field, Object value) {
18580
      switch (field) {
18581
      }
18582
    }
18583
 
18584
    public Object getFieldValue(_Fields field) {
18585
      switch (field) {
18586
      }
18587
      throw new IllegalStateException();
18588
    }
18589
 
18590
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18591
    public boolean isSet(_Fields field) {
18592
      if (field == null) {
18593
        throw new IllegalArgumentException();
18594
      }
18595
 
18596
      switch (field) {
18597
      }
18598
      throw new IllegalStateException();
18599
    }
18600
 
18601
    @Override
18602
    public boolean equals(Object that) {
18603
      if (that == null)
18604
        return false;
18605
      if (that instanceof updatePasswordForAgent_result)
18606
        return this.equals((updatePasswordForAgent_result)that);
18607
      return false;
18608
    }
18609
 
18610
    public boolean equals(updatePasswordForAgent_result that) {
18611
      if (that == null)
18612
        return false;
18613
 
18614
      return true;
18615
    }
18616
 
18617
    @Override
18618
    public int hashCode() {
18619
      return 0;
18620
    }
18621
 
18622
    public int compareTo(updatePasswordForAgent_result other) {
18623
      if (!getClass().equals(other.getClass())) {
18624
        return getClass().getName().compareTo(other.getClass().getName());
18625
      }
18626
 
18627
      int lastComparison = 0;
18628
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18629
 
18630
      return 0;
18631
    }
18632
 
18633
    public _Fields fieldForId(int fieldId) {
18634
      return _Fields.findByThriftId(fieldId);
18635
    }
18636
 
18637
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18638
      org.apache.thrift.protocol.TField field;
18639
      iprot.readStructBegin();
18640
      while (true)
18641
      {
18642
        field = iprot.readFieldBegin();
18643
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18644
          break;
18645
        }
18646
        switch (field.id) {
18647
          default:
18648
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18649
        }
18650
        iprot.readFieldEnd();
18651
      }
18652
      iprot.readStructEnd();
18653
      validate();
18654
    }
18655
 
18656
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18657
      oprot.writeStructBegin(STRUCT_DESC);
18658
 
18659
      oprot.writeFieldStop();
18660
      oprot.writeStructEnd();
18661
    }
18662
 
18663
    @Override
18664
    public String toString() {
18665
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18666
      boolean first = true;
18667
 
18668
      sb.append(")");
18669
      return sb.toString();
18670
    }
18671
 
18672
    public void validate() throws org.apache.thrift.TException {
18673
      // check for required fields
18674
    }
18675
 
18676
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18677
      try {
18678
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18679
      } catch (org.apache.thrift.TException te) {
18680
        throw new java.io.IOException(te);
18681
      }
18682
    }
18683
 
18684
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18685
      try {
18686
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18687
      } catch (org.apache.thrift.TException te) {
18688
        throw new java.io.IOException(te);
18689
      }
18690
    }
18691
 
18692
  }
18693
 
18694
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18695
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18696
 
18697
    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);
18698
 
18699
    private String agentEmailId; // required
18700
 
18701
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18702
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18703
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18704
 
18705
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18706
 
18707
      static {
18708
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18709
          byName.put(field.getFieldName(), field);
18710
        }
18711
      }
18712
 
18713
      /**
18714
       * Find the _Fields constant that matches fieldId, or null if its not found.
18715
       */
18716
      public static _Fields findByThriftId(int fieldId) {
18717
        switch(fieldId) {
18718
          case 1: // AGENT_EMAIL_ID
18719
            return AGENT_EMAIL_ID;
18720
          default:
18721
            return null;
18722
        }
18723
      }
18724
 
18725
      /**
18726
       * Find the _Fields constant that matches fieldId, throwing an exception
18727
       * if it is not found.
18728
       */
18729
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18730
        _Fields fields = findByThriftId(fieldId);
18731
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18732
        return fields;
18733
      }
18734
 
18735
      /**
18736
       * Find the _Fields constant that matches name, or null if its not found.
18737
       */
18738
      public static _Fields findByName(String name) {
18739
        return byName.get(name);
18740
      }
18741
 
18742
      private final short _thriftId;
18743
      private final String _fieldName;
18744
 
18745
      _Fields(short thriftId, String fieldName) {
18746
        _thriftId = thriftId;
18747
        _fieldName = fieldName;
18748
      }
18749
 
18750
      public short getThriftFieldId() {
18751
        return _thriftId;
18752
      }
18753
 
18754
      public String getFieldName() {
18755
        return _fieldName;
18756
      }
18757
    }
18758
 
18759
    // isset id assignments
18760
 
18761
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18762
    static {
18763
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18764
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18766
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18767
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18768
    }
18769
 
18770
    public getRoleNamesForAgent_args() {
18771
    }
18772
 
18773
    public getRoleNamesForAgent_args(
18774
      String agentEmailId)
18775
    {
18776
      this();
18777
      this.agentEmailId = agentEmailId;
18778
    }
18779
 
18780
    /**
18781
     * Performs a deep copy on <i>other</i>.
18782
     */
18783
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18784
      if (other.isSetAgentEmailId()) {
18785
        this.agentEmailId = other.agentEmailId;
18786
      }
18787
    }
18788
 
18789
    public getRoleNamesForAgent_args deepCopy() {
18790
      return new getRoleNamesForAgent_args(this);
18791
    }
18792
 
18793
    @Override
18794
    public void clear() {
18795
      this.agentEmailId = null;
18796
    }
18797
 
18798
    public String getAgentEmailId() {
18799
      return this.agentEmailId;
18800
    }
18801
 
18802
    public void setAgentEmailId(String agentEmailId) {
18803
      this.agentEmailId = agentEmailId;
18804
    }
18805
 
18806
    public void unsetAgentEmailId() {
18807
      this.agentEmailId = null;
18808
    }
18809
 
18810
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18811
    public boolean isSetAgentEmailId() {
18812
      return this.agentEmailId != null;
18813
    }
18814
 
18815
    public void setAgentEmailIdIsSet(boolean value) {
18816
      if (!value) {
18817
        this.agentEmailId = null;
18818
      }
18819
    }
18820
 
18821
    public void setFieldValue(_Fields field, Object value) {
18822
      switch (field) {
18823
      case AGENT_EMAIL_ID:
18824
        if (value == null) {
18825
          unsetAgentEmailId();
18826
        } else {
18827
          setAgentEmailId((String)value);
18828
        }
18829
        break;
18830
 
18831
      }
18832
    }
18833
 
18834
    public Object getFieldValue(_Fields field) {
18835
      switch (field) {
18836
      case AGENT_EMAIL_ID:
18837
        return getAgentEmailId();
18838
 
18839
      }
18840
      throw new IllegalStateException();
18841
    }
18842
 
18843
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18844
    public boolean isSet(_Fields field) {
18845
      if (field == null) {
18846
        throw new IllegalArgumentException();
18847
      }
18848
 
18849
      switch (field) {
18850
      case AGENT_EMAIL_ID:
18851
        return isSetAgentEmailId();
18852
      }
18853
      throw new IllegalStateException();
18854
    }
18855
 
18856
    @Override
18857
    public boolean equals(Object that) {
18858
      if (that == null)
18859
        return false;
18860
      if (that instanceof getRoleNamesForAgent_args)
18861
        return this.equals((getRoleNamesForAgent_args)that);
18862
      return false;
18863
    }
18864
 
18865
    public boolean equals(getRoleNamesForAgent_args that) {
18866
      if (that == null)
18867
        return false;
18868
 
18869
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18870
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18871
      if (this_present_agentEmailId || that_present_agentEmailId) {
18872
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18873
          return false;
18874
        if (!this.agentEmailId.equals(that.agentEmailId))
18875
          return false;
18876
      }
18877
 
18878
      return true;
18879
    }
18880
 
18881
    @Override
18882
    public int hashCode() {
18883
      return 0;
18884
    }
18885
 
18886
    public int compareTo(getRoleNamesForAgent_args other) {
18887
      if (!getClass().equals(other.getClass())) {
18888
        return getClass().getName().compareTo(other.getClass().getName());
18889
      }
18890
 
18891
      int lastComparison = 0;
18892
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18893
 
18894
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18895
      if (lastComparison != 0) {
18896
        return lastComparison;
18897
      }
18898
      if (isSetAgentEmailId()) {
18899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18900
        if (lastComparison != 0) {
18901
          return lastComparison;
18902
        }
18903
      }
18904
      return 0;
18905
    }
18906
 
18907
    public _Fields fieldForId(int fieldId) {
18908
      return _Fields.findByThriftId(fieldId);
18909
    }
18910
 
18911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18912
      org.apache.thrift.protocol.TField field;
18913
      iprot.readStructBegin();
18914
      while (true)
18915
      {
18916
        field = iprot.readFieldBegin();
18917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18918
          break;
18919
        }
18920
        switch (field.id) {
18921
          case 1: // AGENT_EMAIL_ID
18922
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18923
              this.agentEmailId = iprot.readString();
18924
            } else { 
18925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18926
            }
18927
            break;
18928
          default:
18929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18930
        }
18931
        iprot.readFieldEnd();
18932
      }
18933
      iprot.readStructEnd();
18934
      validate();
18935
    }
18936
 
18937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18938
      validate();
18939
 
18940
      oprot.writeStructBegin(STRUCT_DESC);
18941
      if (this.agentEmailId != null) {
18942
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18943
        oprot.writeString(this.agentEmailId);
18944
        oprot.writeFieldEnd();
18945
      }
18946
      oprot.writeFieldStop();
18947
      oprot.writeStructEnd();
18948
    }
18949
 
18950
    @Override
18951
    public String toString() {
18952
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18953
      boolean first = true;
18954
 
18955
      sb.append("agentEmailId:");
18956
      if (this.agentEmailId == null) {
18957
        sb.append("null");
18958
      } else {
18959
        sb.append(this.agentEmailId);
18960
      }
18961
      first = false;
18962
      sb.append(")");
18963
      return sb.toString();
18964
    }
18965
 
18966
    public void validate() throws org.apache.thrift.TException {
18967
      // check for required fields
18968
    }
18969
 
18970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18971
      try {
18972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18973
      } catch (org.apache.thrift.TException te) {
18974
        throw new java.io.IOException(te);
18975
      }
18976
    }
18977
 
18978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18979
      try {
18980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18981
      } catch (org.apache.thrift.TException te) {
18982
        throw new java.io.IOException(te);
18983
      }
18984
    }
18985
 
18986
  }
18987
 
18988
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18990
 
18991
    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);
18992
 
18993
    private List<String> success; // required
18994
 
18995
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18996
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18997
      SUCCESS((short)0, "success");
18998
 
18999
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19000
 
19001
      static {
19002
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19003
          byName.put(field.getFieldName(), field);
19004
        }
19005
      }
19006
 
19007
      /**
19008
       * Find the _Fields constant that matches fieldId, or null if its not found.
19009
       */
19010
      public static _Fields findByThriftId(int fieldId) {
19011
        switch(fieldId) {
19012
          case 0: // SUCCESS
19013
            return SUCCESS;
19014
          default:
19015
            return null;
19016
        }
19017
      }
19018
 
19019
      /**
19020
       * Find the _Fields constant that matches fieldId, throwing an exception
19021
       * if it is not found.
19022
       */
19023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19024
        _Fields fields = findByThriftId(fieldId);
19025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19026
        return fields;
19027
      }
19028
 
19029
      /**
19030
       * Find the _Fields constant that matches name, or null if its not found.
19031
       */
19032
      public static _Fields findByName(String name) {
19033
        return byName.get(name);
19034
      }
19035
 
19036
      private final short _thriftId;
19037
      private final String _fieldName;
19038
 
19039
      _Fields(short thriftId, String fieldName) {
19040
        _thriftId = thriftId;
19041
        _fieldName = fieldName;
19042
      }
19043
 
19044
      public short getThriftFieldId() {
19045
        return _thriftId;
19046
      }
19047
 
19048
      public String getFieldName() {
19049
        return _fieldName;
19050
      }
19051
    }
19052
 
19053
    // isset id assignments
19054
 
19055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19056
    static {
19057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19058
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19059
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19060
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19061
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19062
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
19063
    }
19064
 
19065
    public getRoleNamesForAgent_result() {
19066
    }
19067
 
19068
    public getRoleNamesForAgent_result(
19069
      List<String> success)
19070
    {
19071
      this();
19072
      this.success = success;
19073
    }
19074
 
19075
    /**
19076
     * Performs a deep copy on <i>other</i>.
19077
     */
19078
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
19079
      if (other.isSetSuccess()) {
19080
        List<String> __this__success = new ArrayList<String>();
19081
        for (String other_element : other.success) {
19082
          __this__success.add(other_element);
19083
        }
19084
        this.success = __this__success;
19085
      }
19086
    }
19087
 
19088
    public getRoleNamesForAgent_result deepCopy() {
19089
      return new getRoleNamesForAgent_result(this);
19090
    }
19091
 
19092
    @Override
19093
    public void clear() {
19094
      this.success = null;
19095
    }
19096
 
19097
    public int getSuccessSize() {
19098
      return (this.success == null) ? 0 : this.success.size();
19099
    }
19100
 
19101
    public java.util.Iterator<String> getSuccessIterator() {
19102
      return (this.success == null) ? null : this.success.iterator();
19103
    }
19104
 
19105
    public void addToSuccess(String elem) {
19106
      if (this.success == null) {
19107
        this.success = new ArrayList<String>();
19108
      }
19109
      this.success.add(elem);
19110
    }
19111
 
19112
    public List<String> getSuccess() {
19113
      return this.success;
19114
    }
19115
 
19116
    public void setSuccess(List<String> success) {
19117
      this.success = success;
19118
    }
19119
 
19120
    public void unsetSuccess() {
19121
      this.success = null;
19122
    }
19123
 
19124
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19125
    public boolean isSetSuccess() {
19126
      return this.success != null;
19127
    }
19128
 
19129
    public void setSuccessIsSet(boolean value) {
19130
      if (!value) {
19131
        this.success = null;
19132
      }
19133
    }
19134
 
19135
    public void setFieldValue(_Fields field, Object value) {
19136
      switch (field) {
19137
      case SUCCESS:
19138
        if (value == null) {
19139
          unsetSuccess();
19140
        } else {
19141
          setSuccess((List<String>)value);
19142
        }
19143
        break;
19144
 
19145
      }
19146
    }
19147
 
19148
    public Object getFieldValue(_Fields field) {
19149
      switch (field) {
19150
      case SUCCESS:
19151
        return getSuccess();
19152
 
19153
      }
19154
      throw new IllegalStateException();
19155
    }
19156
 
19157
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19158
    public boolean isSet(_Fields field) {
19159
      if (field == null) {
19160
        throw new IllegalArgumentException();
19161
      }
19162
 
19163
      switch (field) {
19164
      case SUCCESS:
19165
        return isSetSuccess();
19166
      }
19167
      throw new IllegalStateException();
19168
    }
19169
 
19170
    @Override
19171
    public boolean equals(Object that) {
19172
      if (that == null)
19173
        return false;
19174
      if (that instanceof getRoleNamesForAgent_result)
19175
        return this.equals((getRoleNamesForAgent_result)that);
19176
      return false;
19177
    }
19178
 
19179
    public boolean equals(getRoleNamesForAgent_result that) {
19180
      if (that == null)
19181
        return false;
19182
 
19183
      boolean this_present_success = true && this.isSetSuccess();
19184
      boolean that_present_success = true && that.isSetSuccess();
19185
      if (this_present_success || that_present_success) {
19186
        if (!(this_present_success && that_present_success))
19187
          return false;
19188
        if (!this.success.equals(that.success))
19189
          return false;
19190
      }
19191
 
19192
      return true;
19193
    }
19194
 
19195
    @Override
19196
    public int hashCode() {
19197
      return 0;
19198
    }
19199
 
19200
    public int compareTo(getRoleNamesForAgent_result other) {
19201
      if (!getClass().equals(other.getClass())) {
19202
        return getClass().getName().compareTo(other.getClass().getName());
19203
      }
19204
 
19205
      int lastComparison = 0;
19206
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
19207
 
19208
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19209
      if (lastComparison != 0) {
19210
        return lastComparison;
19211
      }
19212
      if (isSetSuccess()) {
19213
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19214
        if (lastComparison != 0) {
19215
          return lastComparison;
19216
        }
19217
      }
19218
      return 0;
19219
    }
19220
 
19221
    public _Fields fieldForId(int fieldId) {
19222
      return _Fields.findByThriftId(fieldId);
19223
    }
19224
 
19225
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19226
      org.apache.thrift.protocol.TField field;
19227
      iprot.readStructBegin();
19228
      while (true)
19229
      {
19230
        field = iprot.readFieldBegin();
19231
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19232
          break;
19233
        }
19234
        switch (field.id) {
19235
          case 0: // SUCCESS
19236
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19237
              {
5864 rajveer 19238
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19239
                this.success = new ArrayList<String>(_list53.size);
19240
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19241
                {
5864 rajveer 19242
                  String _elem55; // required
19243
                  _elem55 = iprot.readString();
19244
                  this.success.add(_elem55);
4693 mandeep.dh 19245
                }
19246
                iprot.readListEnd();
19247
              }
19248
            } else { 
19249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19250
            }
19251
            break;
19252
          default:
19253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19254
        }
19255
        iprot.readFieldEnd();
19256
      }
19257
      iprot.readStructEnd();
19258
      validate();
19259
    }
19260
 
19261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19262
      oprot.writeStructBegin(STRUCT_DESC);
19263
 
19264
      if (this.isSetSuccess()) {
19265
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19266
        {
19267
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19268
          for (String _iter56 : this.success)
4693 mandeep.dh 19269
          {
5864 rajveer 19270
            oprot.writeString(_iter56);
4693 mandeep.dh 19271
          }
19272
          oprot.writeListEnd();
19273
        }
19274
        oprot.writeFieldEnd();
19275
      }
19276
      oprot.writeFieldStop();
19277
      oprot.writeStructEnd();
19278
    }
19279
 
19280
    @Override
19281
    public String toString() {
19282
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19283
      boolean first = true;
19284
 
19285
      sb.append("success:");
19286
      if (this.success == null) {
19287
        sb.append("null");
19288
      } else {
19289
        sb.append(this.success);
19290
      }
19291
      first = false;
19292
      sb.append(")");
19293
      return sb.toString();
19294
    }
19295
 
19296
    public void validate() throws org.apache.thrift.TException {
19297
      // check for required fields
19298
    }
19299
 
19300
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19301
      try {
19302
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19303
      } catch (org.apache.thrift.TException te) {
19304
        throw new java.io.IOException(te);
19305
      }
19306
    }
19307
 
19308
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19309
      try {
19310
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19311
      } catch (org.apache.thrift.TException te) {
19312
        throw new java.io.IOException(te);
19313
      }
19314
    }
19315
 
19316
  }
19317
 
19318
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19320
 
19321
    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);
19322
 
19323
    private String roleName; // required
19324
 
19325
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19326
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19327
      ROLE_NAME((short)1, "roleName");
19328
 
19329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19330
 
19331
      static {
19332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19333
          byName.put(field.getFieldName(), field);
19334
        }
19335
      }
19336
 
19337
      /**
19338
       * Find the _Fields constant that matches fieldId, or null if its not found.
19339
       */
19340
      public static _Fields findByThriftId(int fieldId) {
19341
        switch(fieldId) {
19342
          case 1: // ROLE_NAME
19343
            return ROLE_NAME;
19344
          default:
19345
            return null;
19346
        }
19347
      }
19348
 
19349
      /**
19350
       * Find the _Fields constant that matches fieldId, throwing an exception
19351
       * if it is not found.
19352
       */
19353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19354
        _Fields fields = findByThriftId(fieldId);
19355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19356
        return fields;
19357
      }
19358
 
19359
      /**
19360
       * Find the _Fields constant that matches name, or null if its not found.
19361
       */
19362
      public static _Fields findByName(String name) {
19363
        return byName.get(name);
19364
      }
19365
 
19366
      private final short _thriftId;
19367
      private final String _fieldName;
19368
 
19369
      _Fields(short thriftId, String fieldName) {
19370
        _thriftId = thriftId;
19371
        _fieldName = fieldName;
19372
      }
19373
 
19374
      public short getThriftFieldId() {
19375
        return _thriftId;
19376
      }
19377
 
19378
      public String getFieldName() {
19379
        return _fieldName;
19380
      }
19381
    }
19382
 
19383
    // isset id assignments
19384
 
19385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19386
    static {
19387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19388
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19392
    }
19393
 
19394
    public getPermissionsForRoleName_args() {
19395
    }
19396
 
19397
    public getPermissionsForRoleName_args(
19398
      String roleName)
19399
    {
19400
      this();
19401
      this.roleName = roleName;
19402
    }
19403
 
19404
    /**
19405
     * Performs a deep copy on <i>other</i>.
19406
     */
19407
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19408
      if (other.isSetRoleName()) {
19409
        this.roleName = other.roleName;
19410
      }
19411
    }
19412
 
19413
    public getPermissionsForRoleName_args deepCopy() {
19414
      return new getPermissionsForRoleName_args(this);
19415
    }
19416
 
19417
    @Override
19418
    public void clear() {
19419
      this.roleName = null;
19420
    }
19421
 
19422
    public String getRoleName() {
19423
      return this.roleName;
19424
    }
19425
 
19426
    public void setRoleName(String roleName) {
19427
      this.roleName = roleName;
19428
    }
19429
 
19430
    public void unsetRoleName() {
19431
      this.roleName = null;
19432
    }
19433
 
19434
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19435
    public boolean isSetRoleName() {
19436
      return this.roleName != null;
19437
    }
19438
 
19439
    public void setRoleNameIsSet(boolean value) {
19440
      if (!value) {
19441
        this.roleName = null;
19442
      }
19443
    }
19444
 
19445
    public void setFieldValue(_Fields field, Object value) {
19446
      switch (field) {
19447
      case ROLE_NAME:
19448
        if (value == null) {
19449
          unsetRoleName();
19450
        } else {
19451
          setRoleName((String)value);
19452
        }
19453
        break;
19454
 
19455
      }
19456
    }
19457
 
19458
    public Object getFieldValue(_Fields field) {
19459
      switch (field) {
19460
      case ROLE_NAME:
19461
        return getRoleName();
19462
 
19463
      }
19464
      throw new IllegalStateException();
19465
    }
19466
 
19467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19468
    public boolean isSet(_Fields field) {
19469
      if (field == null) {
19470
        throw new IllegalArgumentException();
19471
      }
19472
 
19473
      switch (field) {
19474
      case ROLE_NAME:
19475
        return isSetRoleName();
19476
      }
19477
      throw new IllegalStateException();
19478
    }
19479
 
19480
    @Override
19481
    public boolean equals(Object that) {
19482
      if (that == null)
19483
        return false;
19484
      if (that instanceof getPermissionsForRoleName_args)
19485
        return this.equals((getPermissionsForRoleName_args)that);
19486
      return false;
19487
    }
19488
 
19489
    public boolean equals(getPermissionsForRoleName_args that) {
19490
      if (that == null)
19491
        return false;
19492
 
19493
      boolean this_present_roleName = true && this.isSetRoleName();
19494
      boolean that_present_roleName = true && that.isSetRoleName();
19495
      if (this_present_roleName || that_present_roleName) {
19496
        if (!(this_present_roleName && that_present_roleName))
19497
          return false;
19498
        if (!this.roleName.equals(that.roleName))
19499
          return false;
19500
      }
19501
 
19502
      return true;
19503
    }
19504
 
19505
    @Override
19506
    public int hashCode() {
19507
      return 0;
19508
    }
19509
 
19510
    public int compareTo(getPermissionsForRoleName_args other) {
19511
      if (!getClass().equals(other.getClass())) {
19512
        return getClass().getName().compareTo(other.getClass().getName());
19513
      }
19514
 
19515
      int lastComparison = 0;
19516
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19517
 
19518
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19519
      if (lastComparison != 0) {
19520
        return lastComparison;
19521
      }
19522
      if (isSetRoleName()) {
19523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19524
        if (lastComparison != 0) {
19525
          return lastComparison;
19526
        }
19527
      }
19528
      return 0;
19529
    }
19530
 
19531
    public _Fields fieldForId(int fieldId) {
19532
      return _Fields.findByThriftId(fieldId);
19533
    }
19534
 
19535
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19536
      org.apache.thrift.protocol.TField field;
19537
      iprot.readStructBegin();
19538
      while (true)
19539
      {
19540
        field = iprot.readFieldBegin();
19541
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19542
          break;
19543
        }
19544
        switch (field.id) {
19545
          case 1: // ROLE_NAME
19546
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19547
              this.roleName = iprot.readString();
19548
            } else { 
19549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19550
            }
19551
            break;
19552
          default:
19553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19554
        }
19555
        iprot.readFieldEnd();
19556
      }
19557
      iprot.readStructEnd();
19558
      validate();
19559
    }
19560
 
19561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19562
      validate();
19563
 
19564
      oprot.writeStructBegin(STRUCT_DESC);
19565
      if (this.roleName != null) {
19566
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19567
        oprot.writeString(this.roleName);
19568
        oprot.writeFieldEnd();
19569
      }
19570
      oprot.writeFieldStop();
19571
      oprot.writeStructEnd();
19572
    }
19573
 
19574
    @Override
19575
    public String toString() {
19576
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19577
      boolean first = true;
19578
 
19579
      sb.append("roleName:");
19580
      if (this.roleName == null) {
19581
        sb.append("null");
19582
      } else {
19583
        sb.append(this.roleName);
19584
      }
19585
      first = false;
19586
      sb.append(")");
19587
      return sb.toString();
19588
    }
19589
 
19590
    public void validate() throws org.apache.thrift.TException {
19591
      // check for required fields
19592
    }
19593
 
19594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19595
      try {
19596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19597
      } catch (org.apache.thrift.TException te) {
19598
        throw new java.io.IOException(te);
19599
      }
19600
    }
19601
 
19602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19603
      try {
19604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19605
      } catch (org.apache.thrift.TException te) {
19606
        throw new java.io.IOException(te);
19607
      }
19608
    }
19609
 
19610
  }
19611
 
19612
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19614
 
19615
    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);
19616
 
19617
    private List<String> success; // required
19618
 
19619
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19620
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19621
      SUCCESS((short)0, "success");
19622
 
19623
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19624
 
19625
      static {
19626
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19627
          byName.put(field.getFieldName(), field);
19628
        }
19629
      }
19630
 
19631
      /**
19632
       * Find the _Fields constant that matches fieldId, or null if its not found.
19633
       */
19634
      public static _Fields findByThriftId(int fieldId) {
19635
        switch(fieldId) {
19636
          case 0: // SUCCESS
19637
            return SUCCESS;
19638
          default:
19639
            return null;
19640
        }
19641
      }
19642
 
19643
      /**
19644
       * Find the _Fields constant that matches fieldId, throwing an exception
19645
       * if it is not found.
19646
       */
19647
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19648
        _Fields fields = findByThriftId(fieldId);
19649
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19650
        return fields;
19651
      }
19652
 
19653
      /**
19654
       * Find the _Fields constant that matches name, or null if its not found.
19655
       */
19656
      public static _Fields findByName(String name) {
19657
        return byName.get(name);
19658
      }
19659
 
19660
      private final short _thriftId;
19661
      private final String _fieldName;
19662
 
19663
      _Fields(short thriftId, String fieldName) {
19664
        _thriftId = thriftId;
19665
        _fieldName = fieldName;
19666
      }
19667
 
19668
      public short getThriftFieldId() {
19669
        return _thriftId;
19670
      }
19671
 
19672
      public String getFieldName() {
19673
        return _fieldName;
19674
      }
19675
    }
19676
 
19677
    // isset id assignments
19678
 
19679
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19680
    static {
19681
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19682
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19683
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19684
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19685
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19686
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19687
    }
19688
 
19689
    public getPermissionsForRoleName_result() {
19690
    }
19691
 
19692
    public getPermissionsForRoleName_result(
19693
      List<String> success)
19694
    {
19695
      this();
19696
      this.success = success;
19697
    }
19698
 
19699
    /**
19700
     * Performs a deep copy on <i>other</i>.
19701
     */
19702
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19703
      if (other.isSetSuccess()) {
19704
        List<String> __this__success = new ArrayList<String>();
19705
        for (String other_element : other.success) {
19706
          __this__success.add(other_element);
19707
        }
19708
        this.success = __this__success;
19709
      }
19710
    }
19711
 
19712
    public getPermissionsForRoleName_result deepCopy() {
19713
      return new getPermissionsForRoleName_result(this);
19714
    }
19715
 
19716
    @Override
19717
    public void clear() {
19718
      this.success = null;
19719
    }
19720
 
19721
    public int getSuccessSize() {
19722
      return (this.success == null) ? 0 : this.success.size();
19723
    }
19724
 
19725
    public java.util.Iterator<String> getSuccessIterator() {
19726
      return (this.success == null) ? null : this.success.iterator();
19727
    }
19728
 
19729
    public void addToSuccess(String elem) {
19730
      if (this.success == null) {
19731
        this.success = new ArrayList<String>();
19732
      }
19733
      this.success.add(elem);
19734
    }
19735
 
19736
    public List<String> getSuccess() {
19737
      return this.success;
19738
    }
19739
 
19740
    public void setSuccess(List<String> success) {
19741
      this.success = success;
19742
    }
19743
 
19744
    public void unsetSuccess() {
19745
      this.success = null;
19746
    }
19747
 
19748
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19749
    public boolean isSetSuccess() {
19750
      return this.success != null;
19751
    }
19752
 
19753
    public void setSuccessIsSet(boolean value) {
19754
      if (!value) {
19755
        this.success = null;
19756
      }
19757
    }
19758
 
19759
    public void setFieldValue(_Fields field, Object value) {
19760
      switch (field) {
19761
      case SUCCESS:
19762
        if (value == null) {
19763
          unsetSuccess();
19764
        } else {
19765
          setSuccess((List<String>)value);
19766
        }
19767
        break;
19768
 
19769
      }
19770
    }
19771
 
19772
    public Object getFieldValue(_Fields field) {
19773
      switch (field) {
19774
      case SUCCESS:
19775
        return getSuccess();
19776
 
19777
      }
19778
      throw new IllegalStateException();
19779
    }
19780
 
19781
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19782
    public boolean isSet(_Fields field) {
19783
      if (field == null) {
19784
        throw new IllegalArgumentException();
19785
      }
19786
 
19787
      switch (field) {
19788
      case SUCCESS:
19789
        return isSetSuccess();
19790
      }
19791
      throw new IllegalStateException();
19792
    }
19793
 
19794
    @Override
19795
    public boolean equals(Object that) {
19796
      if (that == null)
19797
        return false;
19798
      if (that instanceof getPermissionsForRoleName_result)
19799
        return this.equals((getPermissionsForRoleName_result)that);
19800
      return false;
19801
    }
19802
 
19803
    public boolean equals(getPermissionsForRoleName_result that) {
19804
      if (that == null)
19805
        return false;
19806
 
19807
      boolean this_present_success = true && this.isSetSuccess();
19808
      boolean that_present_success = true && that.isSetSuccess();
19809
      if (this_present_success || that_present_success) {
19810
        if (!(this_present_success && that_present_success))
19811
          return false;
19812
        if (!this.success.equals(that.success))
19813
          return false;
19814
      }
19815
 
19816
      return true;
19817
    }
19818
 
19819
    @Override
19820
    public int hashCode() {
19821
      return 0;
19822
    }
19823
 
19824
    public int compareTo(getPermissionsForRoleName_result other) {
19825
      if (!getClass().equals(other.getClass())) {
19826
        return getClass().getName().compareTo(other.getClass().getName());
19827
      }
19828
 
19829
      int lastComparison = 0;
19830
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19831
 
19832
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19833
      if (lastComparison != 0) {
19834
        return lastComparison;
19835
      }
19836
      if (isSetSuccess()) {
19837
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19838
        if (lastComparison != 0) {
19839
          return lastComparison;
19840
        }
19841
      }
19842
      return 0;
19843
    }
19844
 
19845
    public _Fields fieldForId(int fieldId) {
19846
      return _Fields.findByThriftId(fieldId);
19847
    }
19848
 
19849
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19850
      org.apache.thrift.protocol.TField field;
19851
      iprot.readStructBegin();
19852
      while (true)
19853
      {
19854
        field = iprot.readFieldBegin();
19855
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19856
          break;
19857
        }
19858
        switch (field.id) {
19859
          case 0: // SUCCESS
19860
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19861
              {
5864 rajveer 19862
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19863
                this.success = new ArrayList<String>(_list57.size);
19864
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19865
                {
5864 rajveer 19866
                  String _elem59; // required
19867
                  _elem59 = iprot.readString();
19868
                  this.success.add(_elem59);
4693 mandeep.dh 19869
                }
19870
                iprot.readListEnd();
19871
              }
19872
            } else { 
19873
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19874
            }
19875
            break;
19876
          default:
19877
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19878
        }
19879
        iprot.readFieldEnd();
19880
      }
19881
      iprot.readStructEnd();
19882
      validate();
19883
    }
19884
 
19885
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19886
      oprot.writeStructBegin(STRUCT_DESC);
19887
 
19888
      if (this.isSetSuccess()) {
19889
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19890
        {
19891
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19892
          for (String _iter60 : this.success)
4693 mandeep.dh 19893
          {
5864 rajveer 19894
            oprot.writeString(_iter60);
4693 mandeep.dh 19895
          }
19896
          oprot.writeListEnd();
19897
        }
19898
        oprot.writeFieldEnd();
19899
      }
19900
      oprot.writeFieldStop();
19901
      oprot.writeStructEnd();
19902
    }
19903
 
19904
    @Override
19905
    public String toString() {
19906
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19907
      boolean first = true;
19908
 
19909
      sb.append("success:");
19910
      if (this.success == null) {
19911
        sb.append("null");
19912
      } else {
19913
        sb.append(this.success);
19914
      }
19915
      first = false;
19916
      sb.append(")");
19917
      return sb.toString();
19918
    }
19919
 
19920
    public void validate() throws org.apache.thrift.TException {
19921
      // check for required fields
19922
    }
19923
 
19924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19925
      try {
19926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19927
      } catch (org.apache.thrift.TException te) {
19928
        throw new java.io.IOException(te);
19929
      }
19930
    }
19931
 
19932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19933
      try {
19934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19935
      } catch (org.apache.thrift.TException te) {
19936
        throw new java.io.IOException(te);
19937
      }
19938
    }
19939
 
19940
  }
19941
 
4806 varun.gupt 19942
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19944
 
19945
    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);
19946
    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);
19947
 
19948
    private String url; // required
19949
    private String text; // required
19950
 
19951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19953
      URL((short)1, "url"),
19954
      TEXT((short)2, "text");
19955
 
19956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19957
 
19958
      static {
19959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19960
          byName.put(field.getFieldName(), field);
19961
        }
19962
      }
19963
 
19964
      /**
19965
       * Find the _Fields constant that matches fieldId, or null if its not found.
19966
       */
19967
      public static _Fields findByThriftId(int fieldId) {
19968
        switch(fieldId) {
19969
          case 1: // URL
19970
            return URL;
19971
          case 2: // TEXT
19972
            return TEXT;
19973
          default:
19974
            return null;
19975
        }
19976
      }
19977
 
19978
      /**
19979
       * Find the _Fields constant that matches fieldId, throwing an exception
19980
       * if it is not found.
19981
       */
19982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19983
        _Fields fields = findByThriftId(fieldId);
19984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19985
        return fields;
19986
      }
19987
 
19988
      /**
19989
       * Find the _Fields constant that matches name, or null if its not found.
19990
       */
19991
      public static _Fields findByName(String name) {
19992
        return byName.get(name);
19993
      }
19994
 
19995
      private final short _thriftId;
19996
      private final String _fieldName;
19997
 
19998
      _Fields(short thriftId, String fieldName) {
19999
        _thriftId = thriftId;
20000
        _fieldName = fieldName;
20001
      }
20002
 
20003
      public short getThriftFieldId() {
20004
        return _thriftId;
20005
      }
20006
 
20007
      public String getFieldName() {
20008
        return _fieldName;
20009
      }
20010
    }
20011
 
20012
    // isset id assignments
20013
 
20014
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20015
    static {
20016
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20017
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20018
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20019
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20021
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20022
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
20023
    }
20024
 
20025
    public saveQuickLink_args() {
20026
    }
20027
 
20028
    public saveQuickLink_args(
20029
      String url,
20030
      String text)
20031
    {
20032
      this();
20033
      this.url = url;
20034
      this.text = text;
20035
    }
20036
 
20037
    /**
20038
     * Performs a deep copy on <i>other</i>.
20039
     */
20040
    public saveQuickLink_args(saveQuickLink_args other) {
20041
      if (other.isSetUrl()) {
20042
        this.url = other.url;
20043
      }
20044
      if (other.isSetText()) {
20045
        this.text = other.text;
20046
      }
20047
    }
20048
 
20049
    public saveQuickLink_args deepCopy() {
20050
      return new saveQuickLink_args(this);
20051
    }
20052
 
20053
    @Override
20054
    public void clear() {
20055
      this.url = null;
20056
      this.text = null;
20057
    }
20058
 
20059
    public String getUrl() {
20060
      return this.url;
20061
    }
20062
 
20063
    public void setUrl(String url) {
20064
      this.url = url;
20065
    }
20066
 
20067
    public void unsetUrl() {
20068
      this.url = null;
20069
    }
20070
 
20071
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
20072
    public boolean isSetUrl() {
20073
      return this.url != null;
20074
    }
20075
 
20076
    public void setUrlIsSet(boolean value) {
20077
      if (!value) {
20078
        this.url = null;
20079
      }
20080
    }
20081
 
20082
    public String getText() {
20083
      return this.text;
20084
    }
20085
 
20086
    public void setText(String text) {
20087
      this.text = text;
20088
    }
20089
 
20090
    public void unsetText() {
20091
      this.text = null;
20092
    }
20093
 
20094
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20095
    public boolean isSetText() {
20096
      return this.text != null;
20097
    }
20098
 
20099
    public void setTextIsSet(boolean value) {
20100
      if (!value) {
20101
        this.text = null;
20102
      }
20103
    }
20104
 
20105
    public void setFieldValue(_Fields field, Object value) {
20106
      switch (field) {
20107
      case URL:
20108
        if (value == null) {
20109
          unsetUrl();
20110
        } else {
20111
          setUrl((String)value);
20112
        }
20113
        break;
20114
 
20115
      case TEXT:
20116
        if (value == null) {
20117
          unsetText();
20118
        } else {
20119
          setText((String)value);
20120
        }
20121
        break;
20122
 
20123
      }
20124
    }
20125
 
20126
    public Object getFieldValue(_Fields field) {
20127
      switch (field) {
20128
      case URL:
20129
        return getUrl();
20130
 
20131
      case TEXT:
20132
        return getText();
20133
 
20134
      }
20135
      throw new IllegalStateException();
20136
    }
20137
 
20138
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20139
    public boolean isSet(_Fields field) {
20140
      if (field == null) {
20141
        throw new IllegalArgumentException();
20142
      }
20143
 
20144
      switch (field) {
20145
      case URL:
20146
        return isSetUrl();
20147
      case TEXT:
20148
        return isSetText();
20149
      }
20150
      throw new IllegalStateException();
20151
    }
20152
 
20153
    @Override
20154
    public boolean equals(Object that) {
20155
      if (that == null)
20156
        return false;
20157
      if (that instanceof saveQuickLink_args)
20158
        return this.equals((saveQuickLink_args)that);
20159
      return false;
20160
    }
20161
 
20162
    public boolean equals(saveQuickLink_args that) {
20163
      if (that == null)
20164
        return false;
20165
 
20166
      boolean this_present_url = true && this.isSetUrl();
20167
      boolean that_present_url = true && that.isSetUrl();
20168
      if (this_present_url || that_present_url) {
20169
        if (!(this_present_url && that_present_url))
20170
          return false;
20171
        if (!this.url.equals(that.url))
20172
          return false;
20173
      }
20174
 
20175
      boolean this_present_text = true && this.isSetText();
20176
      boolean that_present_text = true && that.isSetText();
20177
      if (this_present_text || that_present_text) {
20178
        if (!(this_present_text && that_present_text))
20179
          return false;
20180
        if (!this.text.equals(that.text))
20181
          return false;
20182
      }
20183
 
20184
      return true;
20185
    }
20186
 
20187
    @Override
20188
    public int hashCode() {
20189
      return 0;
20190
    }
20191
 
20192
    public int compareTo(saveQuickLink_args other) {
20193
      if (!getClass().equals(other.getClass())) {
20194
        return getClass().getName().compareTo(other.getClass().getName());
20195
      }
20196
 
20197
      int lastComparison = 0;
20198
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
20199
 
20200
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20201
      if (lastComparison != 0) {
20202
        return lastComparison;
20203
      }
20204
      if (isSetUrl()) {
20205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20206
        if (lastComparison != 0) {
20207
          return lastComparison;
20208
        }
20209
      }
20210
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20211
      if (lastComparison != 0) {
20212
        return lastComparison;
20213
      }
20214
      if (isSetText()) {
20215
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20216
        if (lastComparison != 0) {
20217
          return lastComparison;
20218
        }
20219
      }
20220
      return 0;
20221
    }
20222
 
20223
    public _Fields fieldForId(int fieldId) {
20224
      return _Fields.findByThriftId(fieldId);
20225
    }
20226
 
20227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20228
      org.apache.thrift.protocol.TField field;
20229
      iprot.readStructBegin();
20230
      while (true)
20231
      {
20232
        field = iprot.readFieldBegin();
20233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20234
          break;
20235
        }
20236
        switch (field.id) {
20237
          case 1: // URL
20238
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20239
              this.url = iprot.readString();
20240
            } else { 
20241
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20242
            }
20243
            break;
20244
          case 2: // TEXT
20245
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20246
              this.text = iprot.readString();
20247
            } else { 
20248
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20249
            }
20250
            break;
20251
          default:
20252
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20253
        }
20254
        iprot.readFieldEnd();
20255
      }
20256
      iprot.readStructEnd();
20257
      validate();
20258
    }
20259
 
20260
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20261
      validate();
20262
 
20263
      oprot.writeStructBegin(STRUCT_DESC);
20264
      if (this.url != null) {
20265
        oprot.writeFieldBegin(URL_FIELD_DESC);
20266
        oprot.writeString(this.url);
20267
        oprot.writeFieldEnd();
20268
      }
20269
      if (this.text != null) {
20270
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20271
        oprot.writeString(this.text);
20272
        oprot.writeFieldEnd();
20273
      }
20274
      oprot.writeFieldStop();
20275
      oprot.writeStructEnd();
20276
    }
20277
 
20278
    @Override
20279
    public String toString() {
20280
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20281
      boolean first = true;
20282
 
20283
      sb.append("url:");
20284
      if (this.url == null) {
20285
        sb.append("null");
20286
      } else {
20287
        sb.append(this.url);
20288
      }
20289
      first = false;
20290
      if (!first) sb.append(", ");
20291
      sb.append("text:");
20292
      if (this.text == null) {
20293
        sb.append("null");
20294
      } else {
20295
        sb.append(this.text);
20296
      }
20297
      first = false;
20298
      sb.append(")");
20299
      return sb.toString();
20300
    }
20301
 
20302
    public void validate() throws org.apache.thrift.TException {
20303
      // check for required fields
20304
    }
20305
 
20306
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20307
      try {
20308
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20309
      } catch (org.apache.thrift.TException te) {
20310
        throw new java.io.IOException(te);
20311
      }
20312
    }
20313
 
20314
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20315
      try {
20316
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20317
      } catch (org.apache.thrift.TException te) {
20318
        throw new java.io.IOException(te);
20319
      }
20320
    }
20321
 
20322
  }
20323
 
20324
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20325
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20326
 
20327
    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);
20328
 
20329
    private HelperServiceException hse; // required
20330
 
20331
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20332
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20333
      HSE((short)1, "hse");
20334
 
20335
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20336
 
20337
      static {
20338
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20339
          byName.put(field.getFieldName(), field);
20340
        }
20341
      }
20342
 
20343
      /**
20344
       * Find the _Fields constant that matches fieldId, or null if its not found.
20345
       */
20346
      public static _Fields findByThriftId(int fieldId) {
20347
        switch(fieldId) {
20348
          case 1: // HSE
20349
            return HSE;
20350
          default:
20351
            return null;
20352
        }
20353
      }
20354
 
20355
      /**
20356
       * Find the _Fields constant that matches fieldId, throwing an exception
20357
       * if it is not found.
20358
       */
20359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20360
        _Fields fields = findByThriftId(fieldId);
20361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20362
        return fields;
20363
      }
20364
 
20365
      /**
20366
       * Find the _Fields constant that matches name, or null if its not found.
20367
       */
20368
      public static _Fields findByName(String name) {
20369
        return byName.get(name);
20370
      }
20371
 
20372
      private final short _thriftId;
20373
      private final String _fieldName;
20374
 
20375
      _Fields(short thriftId, String fieldName) {
20376
        _thriftId = thriftId;
20377
        _fieldName = fieldName;
20378
      }
20379
 
20380
      public short getThriftFieldId() {
20381
        return _thriftId;
20382
      }
20383
 
20384
      public String getFieldName() {
20385
        return _fieldName;
20386
      }
20387
    }
20388
 
20389
    // isset id assignments
20390
 
20391
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20392
    static {
20393
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20394
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20395
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20396
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20397
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20398
    }
20399
 
20400
    public saveQuickLink_result() {
20401
    }
20402
 
20403
    public saveQuickLink_result(
20404
      HelperServiceException hse)
20405
    {
20406
      this();
20407
      this.hse = hse;
20408
    }
20409
 
20410
    /**
20411
     * Performs a deep copy on <i>other</i>.
20412
     */
20413
    public saveQuickLink_result(saveQuickLink_result other) {
20414
      if (other.isSetHse()) {
20415
        this.hse = new HelperServiceException(other.hse);
20416
      }
20417
    }
20418
 
20419
    public saveQuickLink_result deepCopy() {
20420
      return new saveQuickLink_result(this);
20421
    }
20422
 
20423
    @Override
20424
    public void clear() {
20425
      this.hse = null;
20426
    }
20427
 
20428
    public HelperServiceException getHse() {
20429
      return this.hse;
20430
    }
20431
 
20432
    public void setHse(HelperServiceException hse) {
20433
      this.hse = hse;
20434
    }
20435
 
20436
    public void unsetHse() {
20437
      this.hse = null;
20438
    }
20439
 
20440
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20441
    public boolean isSetHse() {
20442
      return this.hse != null;
20443
    }
20444
 
20445
    public void setHseIsSet(boolean value) {
20446
      if (!value) {
20447
        this.hse = null;
20448
      }
20449
    }
20450
 
20451
    public void setFieldValue(_Fields field, Object value) {
20452
      switch (field) {
20453
      case HSE:
20454
        if (value == null) {
20455
          unsetHse();
20456
        } else {
20457
          setHse((HelperServiceException)value);
20458
        }
20459
        break;
20460
 
20461
      }
20462
    }
20463
 
20464
    public Object getFieldValue(_Fields field) {
20465
      switch (field) {
20466
      case HSE:
20467
        return getHse();
20468
 
20469
      }
20470
      throw new IllegalStateException();
20471
    }
20472
 
20473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20474
    public boolean isSet(_Fields field) {
20475
      if (field == null) {
20476
        throw new IllegalArgumentException();
20477
      }
20478
 
20479
      switch (field) {
20480
      case HSE:
20481
        return isSetHse();
20482
      }
20483
      throw new IllegalStateException();
20484
    }
20485
 
20486
    @Override
20487
    public boolean equals(Object that) {
20488
      if (that == null)
20489
        return false;
20490
      if (that instanceof saveQuickLink_result)
20491
        return this.equals((saveQuickLink_result)that);
20492
      return false;
20493
    }
20494
 
20495
    public boolean equals(saveQuickLink_result that) {
20496
      if (that == null)
20497
        return false;
20498
 
20499
      boolean this_present_hse = true && this.isSetHse();
20500
      boolean that_present_hse = true && that.isSetHse();
20501
      if (this_present_hse || that_present_hse) {
20502
        if (!(this_present_hse && that_present_hse))
20503
          return false;
20504
        if (!this.hse.equals(that.hse))
20505
          return false;
20506
      }
20507
 
20508
      return true;
20509
    }
20510
 
20511
    @Override
20512
    public int hashCode() {
20513
      return 0;
20514
    }
20515
 
20516
    public int compareTo(saveQuickLink_result other) {
20517
      if (!getClass().equals(other.getClass())) {
20518
        return getClass().getName().compareTo(other.getClass().getName());
20519
      }
20520
 
20521
      int lastComparison = 0;
20522
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20523
 
20524
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20525
      if (lastComparison != 0) {
20526
        return lastComparison;
20527
      }
20528
      if (isSetHse()) {
20529
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20530
        if (lastComparison != 0) {
20531
          return lastComparison;
20532
        }
20533
      }
20534
      return 0;
20535
    }
20536
 
20537
    public _Fields fieldForId(int fieldId) {
20538
      return _Fields.findByThriftId(fieldId);
20539
    }
20540
 
20541
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20542
      org.apache.thrift.protocol.TField field;
20543
      iprot.readStructBegin();
20544
      while (true)
20545
      {
20546
        field = iprot.readFieldBegin();
20547
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20548
          break;
20549
        }
20550
        switch (field.id) {
20551
          case 1: // HSE
20552
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20553
              this.hse = new HelperServiceException();
20554
              this.hse.read(iprot);
20555
            } else { 
20556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20557
            }
20558
            break;
20559
          default:
20560
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20561
        }
20562
        iprot.readFieldEnd();
20563
      }
20564
      iprot.readStructEnd();
20565
      validate();
20566
    }
20567
 
20568
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20569
      oprot.writeStructBegin(STRUCT_DESC);
20570
 
20571
      if (this.isSetHse()) {
20572
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20573
        this.hse.write(oprot);
20574
        oprot.writeFieldEnd();
20575
      }
20576
      oprot.writeFieldStop();
20577
      oprot.writeStructEnd();
20578
    }
20579
 
20580
    @Override
20581
    public String toString() {
20582
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20583
      boolean first = true;
20584
 
20585
      sb.append("hse:");
20586
      if (this.hse == null) {
20587
        sb.append("null");
20588
      } else {
20589
        sb.append(this.hse);
20590
      }
20591
      first = false;
20592
      sb.append(")");
20593
      return sb.toString();
20594
    }
20595
 
20596
    public void validate() throws org.apache.thrift.TException {
20597
      // check for required fields
20598
    }
20599
 
20600
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20601
      try {
20602
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20603
      } catch (org.apache.thrift.TException te) {
20604
        throw new java.io.IOException(te);
20605
      }
20606
    }
20607
 
20608
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20609
      try {
20610
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20611
      } catch (org.apache.thrift.TException te) {
20612
        throw new java.io.IOException(te);
20613
      }
20614
    }
20615
 
20616
  }
20617
 
20618
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20619
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20620
 
20621
 
20622
 
20623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20625
;
20626
 
20627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20628
 
20629
      static {
20630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20631
          byName.put(field.getFieldName(), field);
20632
        }
20633
      }
20634
 
20635
      /**
20636
       * Find the _Fields constant that matches fieldId, or null if its not found.
20637
       */
20638
      public static _Fields findByThriftId(int fieldId) {
20639
        switch(fieldId) {
20640
          default:
20641
            return null;
20642
        }
20643
      }
20644
 
20645
      /**
20646
       * Find the _Fields constant that matches fieldId, throwing an exception
20647
       * if it is not found.
20648
       */
20649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20650
        _Fields fields = findByThriftId(fieldId);
20651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20652
        return fields;
20653
      }
20654
 
20655
      /**
20656
       * Find the _Fields constant that matches name, or null if its not found.
20657
       */
20658
      public static _Fields findByName(String name) {
20659
        return byName.get(name);
20660
      }
20661
 
20662
      private final short _thriftId;
20663
      private final String _fieldName;
20664
 
20665
      _Fields(short thriftId, String fieldName) {
20666
        _thriftId = thriftId;
20667
        _fieldName = fieldName;
20668
      }
20669
 
20670
      public short getThriftFieldId() {
20671
        return _thriftId;
20672
      }
20673
 
20674
      public String getFieldName() {
20675
        return _fieldName;
20676
      }
20677
    }
20678
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20679
    static {
20680
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20681
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20682
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20683
    }
20684
 
20685
    public getQuickLinks_args() {
20686
    }
20687
 
20688
    /**
20689
     * Performs a deep copy on <i>other</i>.
20690
     */
20691
    public getQuickLinks_args(getQuickLinks_args other) {
20692
    }
20693
 
20694
    public getQuickLinks_args deepCopy() {
20695
      return new getQuickLinks_args(this);
20696
    }
20697
 
20698
    @Override
20699
    public void clear() {
20700
    }
20701
 
20702
    public void setFieldValue(_Fields field, Object value) {
20703
      switch (field) {
20704
      }
20705
    }
20706
 
20707
    public Object getFieldValue(_Fields field) {
20708
      switch (field) {
20709
      }
20710
      throw new IllegalStateException();
20711
    }
20712
 
20713
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20714
    public boolean isSet(_Fields field) {
20715
      if (field == null) {
20716
        throw new IllegalArgumentException();
20717
      }
20718
 
20719
      switch (field) {
20720
      }
20721
      throw new IllegalStateException();
20722
    }
20723
 
20724
    @Override
20725
    public boolean equals(Object that) {
20726
      if (that == null)
20727
        return false;
20728
      if (that instanceof getQuickLinks_args)
20729
        return this.equals((getQuickLinks_args)that);
20730
      return false;
20731
    }
20732
 
20733
    public boolean equals(getQuickLinks_args that) {
20734
      if (that == null)
20735
        return false;
20736
 
20737
      return true;
20738
    }
20739
 
20740
    @Override
20741
    public int hashCode() {
20742
      return 0;
20743
    }
20744
 
20745
    public int compareTo(getQuickLinks_args other) {
20746
      if (!getClass().equals(other.getClass())) {
20747
        return getClass().getName().compareTo(other.getClass().getName());
20748
      }
20749
 
20750
      int lastComparison = 0;
20751
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20752
 
20753
      return 0;
20754
    }
20755
 
20756
    public _Fields fieldForId(int fieldId) {
20757
      return _Fields.findByThriftId(fieldId);
20758
    }
20759
 
20760
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20761
      org.apache.thrift.protocol.TField field;
20762
      iprot.readStructBegin();
20763
      while (true)
20764
      {
20765
        field = iprot.readFieldBegin();
20766
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20767
          break;
20768
        }
20769
        switch (field.id) {
20770
          default:
20771
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20772
        }
20773
        iprot.readFieldEnd();
20774
      }
20775
      iprot.readStructEnd();
20776
      validate();
20777
    }
20778
 
20779
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20780
      validate();
20781
 
20782
      oprot.writeStructBegin(STRUCT_DESC);
20783
      oprot.writeFieldStop();
20784
      oprot.writeStructEnd();
20785
    }
20786
 
20787
    @Override
20788
    public String toString() {
20789
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20790
      boolean first = true;
20791
 
20792
      sb.append(")");
20793
      return sb.toString();
20794
    }
20795
 
20796
    public void validate() throws org.apache.thrift.TException {
20797
      // check for required fields
20798
    }
20799
 
20800
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20801
      try {
20802
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20803
      } catch (org.apache.thrift.TException te) {
20804
        throw new java.io.IOException(te);
20805
      }
20806
    }
20807
 
20808
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20809
      try {
20810
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20811
      } catch (org.apache.thrift.TException te) {
20812
        throw new java.io.IOException(te);
20813
      }
20814
    }
20815
 
20816
  }
20817
 
20818
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20819
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20820
 
20821
    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);
20822
    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);
20823
 
20824
    private List<QuickLink> success; // required
20825
    private HelperServiceException hse; // required
20826
 
20827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20829
      SUCCESS((short)0, "success"),
20830
      HSE((short)1, "hse");
20831
 
20832
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20833
 
20834
      static {
20835
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20836
          byName.put(field.getFieldName(), field);
20837
        }
20838
      }
20839
 
20840
      /**
20841
       * Find the _Fields constant that matches fieldId, or null if its not found.
20842
       */
20843
      public static _Fields findByThriftId(int fieldId) {
20844
        switch(fieldId) {
20845
          case 0: // SUCCESS
20846
            return SUCCESS;
20847
          case 1: // HSE
20848
            return HSE;
20849
          default:
20850
            return null;
20851
        }
20852
      }
20853
 
20854
      /**
20855
       * Find the _Fields constant that matches fieldId, throwing an exception
20856
       * if it is not found.
20857
       */
20858
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20859
        _Fields fields = findByThriftId(fieldId);
20860
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20861
        return fields;
20862
      }
20863
 
20864
      /**
20865
       * Find the _Fields constant that matches name, or null if its not found.
20866
       */
20867
      public static _Fields findByName(String name) {
20868
        return byName.get(name);
20869
      }
20870
 
20871
      private final short _thriftId;
20872
      private final String _fieldName;
20873
 
20874
      _Fields(short thriftId, String fieldName) {
20875
        _thriftId = thriftId;
20876
        _fieldName = fieldName;
20877
      }
20878
 
20879
      public short getThriftFieldId() {
20880
        return _thriftId;
20881
      }
20882
 
20883
      public String getFieldName() {
20884
        return _fieldName;
20885
      }
20886
    }
20887
 
20888
    // isset id assignments
20889
 
20890
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20891
    static {
20892
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20893
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20894
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20895
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20896
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20897
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20898
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20899
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20900
    }
20901
 
20902
    public getQuickLinks_result() {
20903
    }
20904
 
20905
    public getQuickLinks_result(
20906
      List<QuickLink> success,
20907
      HelperServiceException hse)
20908
    {
20909
      this();
20910
      this.success = success;
20911
      this.hse = hse;
20912
    }
20913
 
20914
    /**
20915
     * Performs a deep copy on <i>other</i>.
20916
     */
20917
    public getQuickLinks_result(getQuickLinks_result other) {
20918
      if (other.isSetSuccess()) {
20919
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20920
        for (QuickLink other_element : other.success) {
20921
          __this__success.add(new QuickLink(other_element));
20922
        }
20923
        this.success = __this__success;
20924
      }
20925
      if (other.isSetHse()) {
20926
        this.hse = new HelperServiceException(other.hse);
20927
      }
20928
    }
20929
 
20930
    public getQuickLinks_result deepCopy() {
20931
      return new getQuickLinks_result(this);
20932
    }
20933
 
20934
    @Override
20935
    public void clear() {
20936
      this.success = null;
20937
      this.hse = null;
20938
    }
20939
 
20940
    public int getSuccessSize() {
20941
      return (this.success == null) ? 0 : this.success.size();
20942
    }
20943
 
20944
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20945
      return (this.success == null) ? null : this.success.iterator();
20946
    }
20947
 
20948
    public void addToSuccess(QuickLink elem) {
20949
      if (this.success == null) {
20950
        this.success = new ArrayList<QuickLink>();
20951
      }
20952
      this.success.add(elem);
20953
    }
20954
 
20955
    public List<QuickLink> getSuccess() {
20956
      return this.success;
20957
    }
20958
 
20959
    public void setSuccess(List<QuickLink> success) {
20960
      this.success = success;
20961
    }
20962
 
20963
    public void unsetSuccess() {
20964
      this.success = null;
20965
    }
20966
 
20967
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20968
    public boolean isSetSuccess() {
20969
      return this.success != null;
20970
    }
20971
 
20972
    public void setSuccessIsSet(boolean value) {
20973
      if (!value) {
20974
        this.success = null;
20975
      }
20976
    }
20977
 
20978
    public HelperServiceException getHse() {
20979
      return this.hse;
20980
    }
20981
 
20982
    public void setHse(HelperServiceException hse) {
20983
      this.hse = hse;
20984
    }
20985
 
20986
    public void unsetHse() {
20987
      this.hse = null;
20988
    }
20989
 
20990
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20991
    public boolean isSetHse() {
20992
      return this.hse != null;
20993
    }
20994
 
20995
    public void setHseIsSet(boolean value) {
20996
      if (!value) {
20997
        this.hse = null;
20998
      }
20999
    }
21000
 
21001
    public void setFieldValue(_Fields field, Object value) {
21002
      switch (field) {
21003
      case SUCCESS:
21004
        if (value == null) {
21005
          unsetSuccess();
21006
        } else {
21007
          setSuccess((List<QuickLink>)value);
21008
        }
21009
        break;
21010
 
21011
      case HSE:
21012
        if (value == null) {
21013
          unsetHse();
21014
        } else {
21015
          setHse((HelperServiceException)value);
21016
        }
21017
        break;
21018
 
21019
      }
21020
    }
21021
 
21022
    public Object getFieldValue(_Fields field) {
21023
      switch (field) {
21024
      case SUCCESS:
21025
        return getSuccess();
21026
 
21027
      case HSE:
21028
        return getHse();
21029
 
21030
      }
21031
      throw new IllegalStateException();
21032
    }
21033
 
21034
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21035
    public boolean isSet(_Fields field) {
21036
      if (field == null) {
21037
        throw new IllegalArgumentException();
21038
      }
21039
 
21040
      switch (field) {
21041
      case SUCCESS:
21042
        return isSetSuccess();
21043
      case HSE:
21044
        return isSetHse();
21045
      }
21046
      throw new IllegalStateException();
21047
    }
21048
 
21049
    @Override
21050
    public boolean equals(Object that) {
21051
      if (that == null)
21052
        return false;
21053
      if (that instanceof getQuickLinks_result)
21054
        return this.equals((getQuickLinks_result)that);
21055
      return false;
21056
    }
21057
 
21058
    public boolean equals(getQuickLinks_result that) {
21059
      if (that == null)
21060
        return false;
21061
 
21062
      boolean this_present_success = true && this.isSetSuccess();
21063
      boolean that_present_success = true && that.isSetSuccess();
21064
      if (this_present_success || that_present_success) {
21065
        if (!(this_present_success && that_present_success))
21066
          return false;
21067
        if (!this.success.equals(that.success))
21068
          return false;
21069
      }
21070
 
21071
      boolean this_present_hse = true && this.isSetHse();
21072
      boolean that_present_hse = true && that.isSetHse();
21073
      if (this_present_hse || that_present_hse) {
21074
        if (!(this_present_hse && that_present_hse))
21075
          return false;
21076
        if (!this.hse.equals(that.hse))
21077
          return false;
21078
      }
21079
 
21080
      return true;
21081
    }
21082
 
21083
    @Override
21084
    public int hashCode() {
21085
      return 0;
21086
    }
21087
 
21088
    public int compareTo(getQuickLinks_result other) {
21089
      if (!getClass().equals(other.getClass())) {
21090
        return getClass().getName().compareTo(other.getClass().getName());
21091
      }
21092
 
21093
      int lastComparison = 0;
21094
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
21095
 
21096
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21097
      if (lastComparison != 0) {
21098
        return lastComparison;
21099
      }
21100
      if (isSetSuccess()) {
21101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21102
        if (lastComparison != 0) {
21103
          return lastComparison;
21104
        }
21105
      }
21106
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21107
      if (lastComparison != 0) {
21108
        return lastComparison;
21109
      }
21110
      if (isSetHse()) {
21111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21112
        if (lastComparison != 0) {
21113
          return lastComparison;
21114
        }
21115
      }
21116
      return 0;
21117
    }
21118
 
21119
    public _Fields fieldForId(int fieldId) {
21120
      return _Fields.findByThriftId(fieldId);
21121
    }
21122
 
21123
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21124
      org.apache.thrift.protocol.TField field;
21125
      iprot.readStructBegin();
21126
      while (true)
21127
      {
21128
        field = iprot.readFieldBegin();
21129
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21130
          break;
21131
        }
21132
        switch (field.id) {
21133
          case 0: // SUCCESS
21134
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21135
              {
5864 rajveer 21136
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
21137
                this.success = new ArrayList<QuickLink>(_list61.size);
21138
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 21139
                {
5864 rajveer 21140
                  QuickLink _elem63; // required
21141
                  _elem63 = new QuickLink();
21142
                  _elem63.read(iprot);
21143
                  this.success.add(_elem63);
4806 varun.gupt 21144
                }
21145
                iprot.readListEnd();
21146
              }
21147
            } else { 
21148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21149
            }
21150
            break;
21151
          case 1: // HSE
21152
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21153
              this.hse = new HelperServiceException();
21154
              this.hse.read(iprot);
21155
            } else { 
21156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21157
            }
21158
            break;
21159
          default:
21160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21161
        }
21162
        iprot.readFieldEnd();
21163
      }
21164
      iprot.readStructEnd();
21165
      validate();
21166
    }
21167
 
21168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21169
      oprot.writeStructBegin(STRUCT_DESC);
21170
 
21171
      if (this.isSetSuccess()) {
21172
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21173
        {
21174
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 21175
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 21176
          {
5864 rajveer 21177
            _iter64.write(oprot);
4806 varun.gupt 21178
          }
21179
          oprot.writeListEnd();
21180
        }
21181
        oprot.writeFieldEnd();
21182
      } else if (this.isSetHse()) {
21183
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21184
        this.hse.write(oprot);
21185
        oprot.writeFieldEnd();
21186
      }
21187
      oprot.writeFieldStop();
21188
      oprot.writeStructEnd();
21189
    }
21190
 
21191
    @Override
21192
    public String toString() {
21193
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
21194
      boolean first = true;
21195
 
21196
      sb.append("success:");
21197
      if (this.success == null) {
21198
        sb.append("null");
21199
      } else {
21200
        sb.append(this.success);
21201
      }
21202
      first = false;
21203
      if (!first) sb.append(", ");
21204
      sb.append("hse:");
21205
      if (this.hse == null) {
21206
        sb.append("null");
21207
      } else {
21208
        sb.append(this.hse);
21209
      }
21210
      first = false;
21211
      sb.append(")");
21212
      return sb.toString();
21213
    }
21214
 
21215
    public void validate() throws org.apache.thrift.TException {
21216
      // check for required fields
21217
    }
21218
 
21219
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21220
      try {
21221
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21222
      } catch (org.apache.thrift.TException te) {
21223
        throw new java.io.IOException(te);
21224
      }
21225
    }
21226
 
21227
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21228
      try {
21229
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21230
      } catch (org.apache.thrift.TException te) {
21231
        throw new java.io.IOException(te);
21232
      }
21233
    }
21234
 
21235
  }
21236
 
4996 varun.gupt 21237
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21238
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21239
 
21240
    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);
21241
    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);
21242
    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);
21243
 
21244
    private long id; // required
21245
    private String url; // required
21246
    private String text; // required
21247
 
21248
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21249
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21250
      ID((short)1, "id"),
21251
      URL((short)2, "url"),
21252
      TEXT((short)3, "text");
21253
 
21254
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21255
 
21256
      static {
21257
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21258
          byName.put(field.getFieldName(), field);
21259
        }
21260
      }
21261
 
21262
      /**
21263
       * Find the _Fields constant that matches fieldId, or null if its not found.
21264
       */
21265
      public static _Fields findByThriftId(int fieldId) {
21266
        switch(fieldId) {
21267
          case 1: // ID
21268
            return ID;
21269
          case 2: // URL
21270
            return URL;
21271
          case 3: // TEXT
21272
            return TEXT;
21273
          default:
21274
            return null;
21275
        }
21276
      }
21277
 
21278
      /**
21279
       * Find the _Fields constant that matches fieldId, throwing an exception
21280
       * if it is not found.
21281
       */
21282
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21283
        _Fields fields = findByThriftId(fieldId);
21284
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21285
        return fields;
21286
      }
21287
 
21288
      /**
21289
       * Find the _Fields constant that matches name, or null if its not found.
21290
       */
21291
      public static _Fields findByName(String name) {
21292
        return byName.get(name);
21293
      }
21294
 
21295
      private final short _thriftId;
21296
      private final String _fieldName;
21297
 
21298
      _Fields(short thriftId, String fieldName) {
21299
        _thriftId = thriftId;
21300
        _fieldName = fieldName;
21301
      }
21302
 
21303
      public short getThriftFieldId() {
21304
        return _thriftId;
21305
      }
21306
 
21307
      public String getFieldName() {
21308
        return _fieldName;
21309
      }
21310
    }
21311
 
21312
    // isset id assignments
21313
    private static final int __ID_ISSET_ID = 0;
21314
    private BitSet __isset_bit_vector = new BitSet(1);
21315
 
21316
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21317
    static {
21318
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21319
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21321
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21322
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21323
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21324
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21325
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21326
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21327
    }
21328
 
21329
    public updateQuickLink_args() {
21330
    }
21331
 
21332
    public updateQuickLink_args(
21333
      long id,
21334
      String url,
21335
      String text)
21336
    {
21337
      this();
21338
      this.id = id;
21339
      setIdIsSet(true);
21340
      this.url = url;
21341
      this.text = text;
21342
    }
21343
 
21344
    /**
21345
     * Performs a deep copy on <i>other</i>.
21346
     */
21347
    public updateQuickLink_args(updateQuickLink_args other) {
21348
      __isset_bit_vector.clear();
21349
      __isset_bit_vector.or(other.__isset_bit_vector);
21350
      this.id = other.id;
21351
      if (other.isSetUrl()) {
21352
        this.url = other.url;
21353
      }
21354
      if (other.isSetText()) {
21355
        this.text = other.text;
21356
      }
21357
    }
21358
 
21359
    public updateQuickLink_args deepCopy() {
21360
      return new updateQuickLink_args(this);
21361
    }
21362
 
21363
    @Override
21364
    public void clear() {
21365
      setIdIsSet(false);
21366
      this.id = 0;
21367
      this.url = null;
21368
      this.text = null;
21369
    }
21370
 
21371
    public long getId() {
21372
      return this.id;
21373
    }
21374
 
21375
    public void setId(long id) {
21376
      this.id = id;
21377
      setIdIsSet(true);
21378
    }
21379
 
21380
    public void unsetId() {
21381
      __isset_bit_vector.clear(__ID_ISSET_ID);
21382
    }
21383
 
21384
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21385
    public boolean isSetId() {
21386
      return __isset_bit_vector.get(__ID_ISSET_ID);
21387
    }
21388
 
21389
    public void setIdIsSet(boolean value) {
21390
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21391
    }
21392
 
21393
    public String getUrl() {
21394
      return this.url;
21395
    }
21396
 
21397
    public void setUrl(String url) {
21398
      this.url = url;
21399
    }
21400
 
21401
    public void unsetUrl() {
21402
      this.url = null;
21403
    }
21404
 
21405
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21406
    public boolean isSetUrl() {
21407
      return this.url != null;
21408
    }
21409
 
21410
    public void setUrlIsSet(boolean value) {
21411
      if (!value) {
21412
        this.url = null;
21413
      }
21414
    }
21415
 
21416
    public String getText() {
21417
      return this.text;
21418
    }
21419
 
21420
    public void setText(String text) {
21421
      this.text = text;
21422
    }
21423
 
21424
    public void unsetText() {
21425
      this.text = null;
21426
    }
21427
 
21428
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21429
    public boolean isSetText() {
21430
      return this.text != null;
21431
    }
21432
 
21433
    public void setTextIsSet(boolean value) {
21434
      if (!value) {
21435
        this.text = null;
21436
      }
21437
    }
21438
 
21439
    public void setFieldValue(_Fields field, Object value) {
21440
      switch (field) {
21441
      case ID:
21442
        if (value == null) {
21443
          unsetId();
21444
        } else {
21445
          setId((Long)value);
21446
        }
21447
        break;
21448
 
21449
      case URL:
21450
        if (value == null) {
21451
          unsetUrl();
21452
        } else {
21453
          setUrl((String)value);
21454
        }
21455
        break;
21456
 
21457
      case TEXT:
21458
        if (value == null) {
21459
          unsetText();
21460
        } else {
21461
          setText((String)value);
21462
        }
21463
        break;
21464
 
21465
      }
21466
    }
21467
 
21468
    public Object getFieldValue(_Fields field) {
21469
      switch (field) {
21470
      case ID:
21471
        return Long.valueOf(getId());
21472
 
21473
      case URL:
21474
        return getUrl();
21475
 
21476
      case TEXT:
21477
        return getText();
21478
 
21479
      }
21480
      throw new IllegalStateException();
21481
    }
21482
 
21483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21484
    public boolean isSet(_Fields field) {
21485
      if (field == null) {
21486
        throw new IllegalArgumentException();
21487
      }
21488
 
21489
      switch (field) {
21490
      case ID:
21491
        return isSetId();
21492
      case URL:
21493
        return isSetUrl();
21494
      case TEXT:
21495
        return isSetText();
21496
      }
21497
      throw new IllegalStateException();
21498
    }
21499
 
21500
    @Override
21501
    public boolean equals(Object that) {
21502
      if (that == null)
21503
        return false;
21504
      if (that instanceof updateQuickLink_args)
21505
        return this.equals((updateQuickLink_args)that);
21506
      return false;
21507
    }
21508
 
21509
    public boolean equals(updateQuickLink_args that) {
21510
      if (that == null)
21511
        return false;
21512
 
21513
      boolean this_present_id = true;
21514
      boolean that_present_id = true;
21515
      if (this_present_id || that_present_id) {
21516
        if (!(this_present_id && that_present_id))
21517
          return false;
21518
        if (this.id != that.id)
21519
          return false;
21520
      }
21521
 
21522
      boolean this_present_url = true && this.isSetUrl();
21523
      boolean that_present_url = true && that.isSetUrl();
21524
      if (this_present_url || that_present_url) {
21525
        if (!(this_present_url && that_present_url))
21526
          return false;
21527
        if (!this.url.equals(that.url))
21528
          return false;
21529
      }
21530
 
21531
      boolean this_present_text = true && this.isSetText();
21532
      boolean that_present_text = true && that.isSetText();
21533
      if (this_present_text || that_present_text) {
21534
        if (!(this_present_text && that_present_text))
21535
          return false;
21536
        if (!this.text.equals(that.text))
21537
          return false;
21538
      }
21539
 
21540
      return true;
21541
    }
21542
 
21543
    @Override
21544
    public int hashCode() {
21545
      return 0;
21546
    }
21547
 
21548
    public int compareTo(updateQuickLink_args other) {
21549
      if (!getClass().equals(other.getClass())) {
21550
        return getClass().getName().compareTo(other.getClass().getName());
21551
      }
21552
 
21553
      int lastComparison = 0;
21554
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21555
 
21556
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21557
      if (lastComparison != 0) {
21558
        return lastComparison;
21559
      }
21560
      if (isSetId()) {
21561
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21562
        if (lastComparison != 0) {
21563
          return lastComparison;
21564
        }
21565
      }
21566
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21567
      if (lastComparison != 0) {
21568
        return lastComparison;
21569
      }
21570
      if (isSetUrl()) {
21571
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21572
        if (lastComparison != 0) {
21573
          return lastComparison;
21574
        }
21575
      }
21576
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21577
      if (lastComparison != 0) {
21578
        return lastComparison;
21579
      }
21580
      if (isSetText()) {
21581
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21582
        if (lastComparison != 0) {
21583
          return lastComparison;
21584
        }
21585
      }
21586
      return 0;
21587
    }
21588
 
21589
    public _Fields fieldForId(int fieldId) {
21590
      return _Fields.findByThriftId(fieldId);
21591
    }
21592
 
21593
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21594
      org.apache.thrift.protocol.TField field;
21595
      iprot.readStructBegin();
21596
      while (true)
21597
      {
21598
        field = iprot.readFieldBegin();
21599
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21600
          break;
21601
        }
21602
        switch (field.id) {
21603
          case 1: // ID
21604
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21605
              this.id = iprot.readI64();
21606
              setIdIsSet(true);
21607
            } else { 
21608
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21609
            }
21610
            break;
21611
          case 2: // URL
21612
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21613
              this.url = iprot.readString();
21614
            } else { 
21615
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21616
            }
21617
            break;
21618
          case 3: // TEXT
21619
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21620
              this.text = iprot.readString();
21621
            } else { 
21622
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21623
            }
21624
            break;
21625
          default:
21626
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21627
        }
21628
        iprot.readFieldEnd();
21629
      }
21630
      iprot.readStructEnd();
21631
      validate();
21632
    }
21633
 
21634
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21635
      validate();
21636
 
21637
      oprot.writeStructBegin(STRUCT_DESC);
21638
      oprot.writeFieldBegin(ID_FIELD_DESC);
21639
      oprot.writeI64(this.id);
21640
      oprot.writeFieldEnd();
21641
      if (this.url != null) {
21642
        oprot.writeFieldBegin(URL_FIELD_DESC);
21643
        oprot.writeString(this.url);
21644
        oprot.writeFieldEnd();
21645
      }
21646
      if (this.text != null) {
21647
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21648
        oprot.writeString(this.text);
21649
        oprot.writeFieldEnd();
21650
      }
21651
      oprot.writeFieldStop();
21652
      oprot.writeStructEnd();
21653
    }
21654
 
21655
    @Override
21656
    public String toString() {
21657
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21658
      boolean first = true;
21659
 
21660
      sb.append("id:");
21661
      sb.append(this.id);
21662
      first = false;
21663
      if (!first) sb.append(", ");
21664
      sb.append("url:");
21665
      if (this.url == null) {
21666
        sb.append("null");
21667
      } else {
21668
        sb.append(this.url);
21669
      }
21670
      first = false;
21671
      if (!first) sb.append(", ");
21672
      sb.append("text:");
21673
      if (this.text == null) {
21674
        sb.append("null");
21675
      } else {
21676
        sb.append(this.text);
21677
      }
21678
      first = false;
21679
      sb.append(")");
21680
      return sb.toString();
21681
    }
21682
 
21683
    public void validate() throws org.apache.thrift.TException {
21684
      // check for required fields
21685
    }
21686
 
21687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21688
      try {
21689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21690
      } catch (org.apache.thrift.TException te) {
21691
        throw new java.io.IOException(te);
21692
      }
21693
    }
21694
 
21695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21696
      try {
21697
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21698
        __isset_bit_vector = new BitSet(1);
21699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21700
      } catch (org.apache.thrift.TException te) {
21701
        throw new java.io.IOException(te);
21702
      }
21703
    }
21704
 
21705
  }
21706
 
21707
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21709
 
21710
    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);
21711
 
21712
    private HelperServiceException hse; // required
21713
 
21714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21716
      HSE((short)1, "hse");
21717
 
21718
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21719
 
21720
      static {
21721
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21722
          byName.put(field.getFieldName(), field);
21723
        }
21724
      }
21725
 
21726
      /**
21727
       * Find the _Fields constant that matches fieldId, or null if its not found.
21728
       */
21729
      public static _Fields findByThriftId(int fieldId) {
21730
        switch(fieldId) {
21731
          case 1: // HSE
21732
            return HSE;
21733
          default:
21734
            return null;
21735
        }
21736
      }
21737
 
21738
      /**
21739
       * Find the _Fields constant that matches fieldId, throwing an exception
21740
       * if it is not found.
21741
       */
21742
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21743
        _Fields fields = findByThriftId(fieldId);
21744
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21745
        return fields;
21746
      }
21747
 
21748
      /**
21749
       * Find the _Fields constant that matches name, or null if its not found.
21750
       */
21751
      public static _Fields findByName(String name) {
21752
        return byName.get(name);
21753
      }
21754
 
21755
      private final short _thriftId;
21756
      private final String _fieldName;
21757
 
21758
      _Fields(short thriftId, String fieldName) {
21759
        _thriftId = thriftId;
21760
        _fieldName = fieldName;
21761
      }
21762
 
21763
      public short getThriftFieldId() {
21764
        return _thriftId;
21765
      }
21766
 
21767
      public String getFieldName() {
21768
        return _fieldName;
21769
      }
21770
    }
21771
 
21772
    // isset id assignments
21773
 
21774
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21775
    static {
21776
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21777
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21778
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21779
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21780
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21781
    }
21782
 
21783
    public updateQuickLink_result() {
21784
    }
21785
 
21786
    public updateQuickLink_result(
21787
      HelperServiceException hse)
21788
    {
21789
      this();
21790
      this.hse = hse;
21791
    }
21792
 
21793
    /**
21794
     * Performs a deep copy on <i>other</i>.
21795
     */
21796
    public updateQuickLink_result(updateQuickLink_result other) {
21797
      if (other.isSetHse()) {
21798
        this.hse = new HelperServiceException(other.hse);
21799
      }
21800
    }
21801
 
21802
    public updateQuickLink_result deepCopy() {
21803
      return new updateQuickLink_result(this);
21804
    }
21805
 
21806
    @Override
21807
    public void clear() {
21808
      this.hse = null;
21809
    }
21810
 
21811
    public HelperServiceException getHse() {
21812
      return this.hse;
21813
    }
21814
 
21815
    public void setHse(HelperServiceException hse) {
21816
      this.hse = hse;
21817
    }
21818
 
21819
    public void unsetHse() {
21820
      this.hse = null;
21821
    }
21822
 
21823
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21824
    public boolean isSetHse() {
21825
      return this.hse != null;
21826
    }
21827
 
21828
    public void setHseIsSet(boolean value) {
21829
      if (!value) {
21830
        this.hse = null;
21831
      }
21832
    }
21833
 
21834
    public void setFieldValue(_Fields field, Object value) {
21835
      switch (field) {
21836
      case HSE:
21837
        if (value == null) {
21838
          unsetHse();
21839
        } else {
21840
          setHse((HelperServiceException)value);
21841
        }
21842
        break;
21843
 
21844
      }
21845
    }
21846
 
21847
    public Object getFieldValue(_Fields field) {
21848
      switch (field) {
21849
      case HSE:
21850
        return getHse();
21851
 
21852
      }
21853
      throw new IllegalStateException();
21854
    }
21855
 
21856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21857
    public boolean isSet(_Fields field) {
21858
      if (field == null) {
21859
        throw new IllegalArgumentException();
21860
      }
21861
 
21862
      switch (field) {
21863
      case HSE:
21864
        return isSetHse();
21865
      }
21866
      throw new IllegalStateException();
21867
    }
21868
 
21869
    @Override
21870
    public boolean equals(Object that) {
21871
      if (that == null)
21872
        return false;
21873
      if (that instanceof updateQuickLink_result)
21874
        return this.equals((updateQuickLink_result)that);
21875
      return false;
21876
    }
21877
 
21878
    public boolean equals(updateQuickLink_result that) {
21879
      if (that == null)
21880
        return false;
21881
 
21882
      boolean this_present_hse = true && this.isSetHse();
21883
      boolean that_present_hse = true && that.isSetHse();
21884
      if (this_present_hse || that_present_hse) {
21885
        if (!(this_present_hse && that_present_hse))
21886
          return false;
21887
        if (!this.hse.equals(that.hse))
21888
          return false;
21889
      }
21890
 
21891
      return true;
21892
    }
21893
 
21894
    @Override
21895
    public int hashCode() {
21896
      return 0;
21897
    }
21898
 
21899
    public int compareTo(updateQuickLink_result other) {
21900
      if (!getClass().equals(other.getClass())) {
21901
        return getClass().getName().compareTo(other.getClass().getName());
21902
      }
21903
 
21904
      int lastComparison = 0;
21905
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21906
 
21907
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21908
      if (lastComparison != 0) {
21909
        return lastComparison;
21910
      }
21911
      if (isSetHse()) {
21912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21913
        if (lastComparison != 0) {
21914
          return lastComparison;
21915
        }
21916
      }
21917
      return 0;
21918
    }
21919
 
21920
    public _Fields fieldForId(int fieldId) {
21921
      return _Fields.findByThriftId(fieldId);
21922
    }
21923
 
21924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21925
      org.apache.thrift.protocol.TField field;
21926
      iprot.readStructBegin();
21927
      while (true)
21928
      {
21929
        field = iprot.readFieldBegin();
21930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21931
          break;
21932
        }
21933
        switch (field.id) {
21934
          case 1: // HSE
21935
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21936
              this.hse = new HelperServiceException();
21937
              this.hse.read(iprot);
21938
            } else { 
21939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21940
            }
21941
            break;
21942
          default:
21943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21944
        }
21945
        iprot.readFieldEnd();
21946
      }
21947
      iprot.readStructEnd();
21948
      validate();
21949
    }
21950
 
21951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21952
      oprot.writeStructBegin(STRUCT_DESC);
21953
 
21954
      if (this.isSetHse()) {
21955
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21956
        this.hse.write(oprot);
21957
        oprot.writeFieldEnd();
21958
      }
21959
      oprot.writeFieldStop();
21960
      oprot.writeStructEnd();
21961
    }
21962
 
21963
    @Override
21964
    public String toString() {
21965
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21966
      boolean first = true;
21967
 
21968
      sb.append("hse:");
21969
      if (this.hse == null) {
21970
        sb.append("null");
21971
      } else {
21972
        sb.append(this.hse);
21973
      }
21974
      first = false;
21975
      sb.append(")");
21976
      return sb.toString();
21977
    }
21978
 
21979
    public void validate() throws org.apache.thrift.TException {
21980
      // check for required fields
21981
    }
21982
 
21983
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21984
      try {
21985
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21986
      } catch (org.apache.thrift.TException te) {
21987
        throw new java.io.IOException(te);
21988
      }
21989
    }
21990
 
21991
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21992
      try {
21993
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21994
      } catch (org.apache.thrift.TException te) {
21995
        throw new java.io.IOException(te);
21996
      }
21997
    }
21998
 
21999
  }
22000
 
5055 varun.gupt 22001
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
22002
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
22003
 
22004
    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);
22005
    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);
22006
 
22007
    private long startDatetime; // required
22008
    private long endDatetime; // required
22009
 
22010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22012
      START_DATETIME((short)1, "startDatetime"),
22013
      END_DATETIME((short)2, "endDatetime");
22014
 
22015
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22016
 
22017
      static {
22018
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22019
          byName.put(field.getFieldName(), field);
22020
        }
22021
      }
22022
 
22023
      /**
22024
       * Find the _Fields constant that matches fieldId, or null if its not found.
22025
       */
22026
      public static _Fields findByThriftId(int fieldId) {
22027
        switch(fieldId) {
22028
          case 1: // START_DATETIME
22029
            return START_DATETIME;
22030
          case 2: // END_DATETIME
22031
            return END_DATETIME;
22032
          default:
22033
            return null;
22034
        }
22035
      }
22036
 
22037
      /**
22038
       * Find the _Fields constant that matches fieldId, throwing an exception
22039
       * if it is not found.
22040
       */
22041
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22042
        _Fields fields = findByThriftId(fieldId);
22043
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22044
        return fields;
22045
      }
22046
 
22047
      /**
22048
       * Find the _Fields constant that matches name, or null if its not found.
22049
       */
22050
      public static _Fields findByName(String name) {
22051
        return byName.get(name);
22052
      }
22053
 
22054
      private final short _thriftId;
22055
      private final String _fieldName;
22056
 
22057
      _Fields(short thriftId, String fieldName) {
22058
        _thriftId = thriftId;
22059
        _fieldName = fieldName;
22060
      }
22061
 
22062
      public short getThriftFieldId() {
22063
        return _thriftId;
22064
      }
22065
 
22066
      public String getFieldName() {
22067
        return _fieldName;
22068
      }
22069
    }
22070
 
22071
    // isset id assignments
22072
    private static final int __STARTDATETIME_ISSET_ID = 0;
22073
    private static final int __ENDDATETIME_ISSET_ID = 1;
22074
    private BitSet __isset_bit_vector = new BitSet(2);
22075
 
22076
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22077
    static {
22078
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22079
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22081
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22082
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22083
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22084
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
22085
    }
22086
 
22087
    public getEmailsForNotificationsSent_args() {
22088
    }
22089
 
22090
    public getEmailsForNotificationsSent_args(
22091
      long startDatetime,
22092
      long endDatetime)
22093
    {
22094
      this();
22095
      this.startDatetime = startDatetime;
22096
      setStartDatetimeIsSet(true);
22097
      this.endDatetime = endDatetime;
22098
      setEndDatetimeIsSet(true);
22099
    }
22100
 
22101
    /**
22102
     * Performs a deep copy on <i>other</i>.
22103
     */
22104
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
22105
      __isset_bit_vector.clear();
22106
      __isset_bit_vector.or(other.__isset_bit_vector);
22107
      this.startDatetime = other.startDatetime;
22108
      this.endDatetime = other.endDatetime;
22109
    }
22110
 
22111
    public getEmailsForNotificationsSent_args deepCopy() {
22112
      return new getEmailsForNotificationsSent_args(this);
22113
    }
22114
 
22115
    @Override
22116
    public void clear() {
22117
      setStartDatetimeIsSet(false);
22118
      this.startDatetime = 0;
22119
      setEndDatetimeIsSet(false);
22120
      this.endDatetime = 0;
22121
    }
22122
 
22123
    public long getStartDatetime() {
22124
      return this.startDatetime;
22125
    }
22126
 
22127
    public void setStartDatetime(long startDatetime) {
22128
      this.startDatetime = startDatetime;
22129
      setStartDatetimeIsSet(true);
22130
    }
22131
 
22132
    public void unsetStartDatetime() {
22133
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
22134
    }
22135
 
22136
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
22137
    public boolean isSetStartDatetime() {
22138
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
22139
    }
22140
 
22141
    public void setStartDatetimeIsSet(boolean value) {
22142
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
22143
    }
22144
 
22145
    public long getEndDatetime() {
22146
      return this.endDatetime;
22147
    }
22148
 
22149
    public void setEndDatetime(long endDatetime) {
22150
      this.endDatetime = endDatetime;
22151
      setEndDatetimeIsSet(true);
22152
    }
22153
 
22154
    public void unsetEndDatetime() {
22155
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
22156
    }
22157
 
22158
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
22159
    public boolean isSetEndDatetime() {
22160
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
22161
    }
22162
 
22163
    public void setEndDatetimeIsSet(boolean value) {
22164
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
22165
    }
22166
 
22167
    public void setFieldValue(_Fields field, Object value) {
22168
      switch (field) {
22169
      case START_DATETIME:
22170
        if (value == null) {
22171
          unsetStartDatetime();
22172
        } else {
22173
          setStartDatetime((Long)value);
22174
        }
22175
        break;
22176
 
22177
      case END_DATETIME:
22178
        if (value == null) {
22179
          unsetEndDatetime();
22180
        } else {
22181
          setEndDatetime((Long)value);
22182
        }
22183
        break;
22184
 
22185
      }
22186
    }
22187
 
22188
    public Object getFieldValue(_Fields field) {
22189
      switch (field) {
22190
      case START_DATETIME:
22191
        return Long.valueOf(getStartDatetime());
22192
 
22193
      case END_DATETIME:
22194
        return Long.valueOf(getEndDatetime());
22195
 
22196
      }
22197
      throw new IllegalStateException();
22198
    }
22199
 
22200
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22201
    public boolean isSet(_Fields field) {
22202
      if (field == null) {
22203
        throw new IllegalArgumentException();
22204
      }
22205
 
22206
      switch (field) {
22207
      case START_DATETIME:
22208
        return isSetStartDatetime();
22209
      case END_DATETIME:
22210
        return isSetEndDatetime();
22211
      }
22212
      throw new IllegalStateException();
22213
    }
22214
 
22215
    @Override
22216
    public boolean equals(Object that) {
22217
      if (that == null)
22218
        return false;
22219
      if (that instanceof getEmailsForNotificationsSent_args)
22220
        return this.equals((getEmailsForNotificationsSent_args)that);
22221
      return false;
22222
    }
22223
 
22224
    public boolean equals(getEmailsForNotificationsSent_args that) {
22225
      if (that == null)
22226
        return false;
22227
 
22228
      boolean this_present_startDatetime = true;
22229
      boolean that_present_startDatetime = true;
22230
      if (this_present_startDatetime || that_present_startDatetime) {
22231
        if (!(this_present_startDatetime && that_present_startDatetime))
22232
          return false;
22233
        if (this.startDatetime != that.startDatetime)
22234
          return false;
22235
      }
22236
 
22237
      boolean this_present_endDatetime = true;
22238
      boolean that_present_endDatetime = true;
22239
      if (this_present_endDatetime || that_present_endDatetime) {
22240
        if (!(this_present_endDatetime && that_present_endDatetime))
22241
          return false;
22242
        if (this.endDatetime != that.endDatetime)
22243
          return false;
22244
      }
22245
 
22246
      return true;
22247
    }
22248
 
22249
    @Override
22250
    public int hashCode() {
22251
      return 0;
22252
    }
22253
 
22254
    public int compareTo(getEmailsForNotificationsSent_args other) {
22255
      if (!getClass().equals(other.getClass())) {
22256
        return getClass().getName().compareTo(other.getClass().getName());
22257
      }
22258
 
22259
      int lastComparison = 0;
22260
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22261
 
22262
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22263
      if (lastComparison != 0) {
22264
        return lastComparison;
22265
      }
22266
      if (isSetStartDatetime()) {
22267
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22268
        if (lastComparison != 0) {
22269
          return lastComparison;
22270
        }
22271
      }
22272
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22273
      if (lastComparison != 0) {
22274
        return lastComparison;
22275
      }
22276
      if (isSetEndDatetime()) {
22277
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22278
        if (lastComparison != 0) {
22279
          return lastComparison;
22280
        }
22281
      }
22282
      return 0;
22283
    }
22284
 
22285
    public _Fields fieldForId(int fieldId) {
22286
      return _Fields.findByThriftId(fieldId);
22287
    }
22288
 
22289
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22290
      org.apache.thrift.protocol.TField field;
22291
      iprot.readStructBegin();
22292
      while (true)
22293
      {
22294
        field = iprot.readFieldBegin();
22295
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22296
          break;
22297
        }
22298
        switch (field.id) {
22299
          case 1: // START_DATETIME
22300
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22301
              this.startDatetime = iprot.readI64();
22302
              setStartDatetimeIsSet(true);
22303
            } else { 
22304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22305
            }
22306
            break;
22307
          case 2: // END_DATETIME
22308
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22309
              this.endDatetime = iprot.readI64();
22310
              setEndDatetimeIsSet(true);
22311
            } else { 
22312
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22313
            }
22314
            break;
22315
          default:
22316
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22317
        }
22318
        iprot.readFieldEnd();
22319
      }
22320
      iprot.readStructEnd();
22321
      validate();
22322
    }
22323
 
22324
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22325
      validate();
22326
 
22327
      oprot.writeStructBegin(STRUCT_DESC);
22328
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22329
      oprot.writeI64(this.startDatetime);
22330
      oprot.writeFieldEnd();
22331
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22332
      oprot.writeI64(this.endDatetime);
22333
      oprot.writeFieldEnd();
22334
      oprot.writeFieldStop();
22335
      oprot.writeStructEnd();
22336
    }
22337
 
22338
    @Override
22339
    public String toString() {
22340
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22341
      boolean first = true;
22342
 
22343
      sb.append("startDatetime:");
22344
      sb.append(this.startDatetime);
22345
      first = false;
22346
      if (!first) sb.append(", ");
22347
      sb.append("endDatetime:");
22348
      sb.append(this.endDatetime);
22349
      first = false;
22350
      sb.append(")");
22351
      return sb.toString();
22352
    }
22353
 
22354
    public void validate() throws org.apache.thrift.TException {
22355
      // check for required fields
22356
    }
22357
 
22358
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22359
      try {
22360
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22361
      } catch (org.apache.thrift.TException te) {
22362
        throw new java.io.IOException(te);
22363
      }
22364
    }
22365
 
22366
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22367
      try {
22368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22369
      } catch (org.apache.thrift.TException te) {
22370
        throw new java.io.IOException(te);
22371
      }
22372
    }
22373
 
22374
  }
22375
 
22376
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22378
 
22379
    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);
22380
    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);
22381
 
22382
    private List<String> success; // required
22383
    private HelperServiceException hse; // required
22384
 
22385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22387
      SUCCESS((short)0, "success"),
22388
      HSE((short)1, "hse");
22389
 
22390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22391
 
22392
      static {
22393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22394
          byName.put(field.getFieldName(), field);
22395
        }
22396
      }
22397
 
22398
      /**
22399
       * Find the _Fields constant that matches fieldId, or null if its not found.
22400
       */
22401
      public static _Fields findByThriftId(int fieldId) {
22402
        switch(fieldId) {
22403
          case 0: // SUCCESS
22404
            return SUCCESS;
22405
          case 1: // HSE
22406
            return HSE;
22407
          default:
22408
            return null;
22409
        }
22410
      }
22411
 
22412
      /**
22413
       * Find the _Fields constant that matches fieldId, throwing an exception
22414
       * if it is not found.
22415
       */
22416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22417
        _Fields fields = findByThriftId(fieldId);
22418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22419
        return fields;
22420
      }
22421
 
22422
      /**
22423
       * Find the _Fields constant that matches name, or null if its not found.
22424
       */
22425
      public static _Fields findByName(String name) {
22426
        return byName.get(name);
22427
      }
22428
 
22429
      private final short _thriftId;
22430
      private final String _fieldName;
22431
 
22432
      _Fields(short thriftId, String fieldName) {
22433
        _thriftId = thriftId;
22434
        _fieldName = fieldName;
22435
      }
22436
 
22437
      public short getThriftFieldId() {
22438
        return _thriftId;
22439
      }
22440
 
22441
      public String getFieldName() {
22442
        return _fieldName;
22443
      }
22444
    }
22445
 
22446
    // isset id assignments
22447
 
22448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22449
    static {
22450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22451
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22452
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22453
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22454
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22458
    }
22459
 
22460
    public getEmailsForNotificationsSent_result() {
22461
    }
22462
 
22463
    public getEmailsForNotificationsSent_result(
22464
      List<String> success,
22465
      HelperServiceException hse)
22466
    {
22467
      this();
22468
      this.success = success;
22469
      this.hse = hse;
22470
    }
22471
 
22472
    /**
22473
     * Performs a deep copy on <i>other</i>.
22474
     */
22475
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22476
      if (other.isSetSuccess()) {
22477
        List<String> __this__success = new ArrayList<String>();
22478
        for (String other_element : other.success) {
22479
          __this__success.add(other_element);
22480
        }
22481
        this.success = __this__success;
22482
      }
22483
      if (other.isSetHse()) {
22484
        this.hse = new HelperServiceException(other.hse);
22485
      }
22486
    }
22487
 
22488
    public getEmailsForNotificationsSent_result deepCopy() {
22489
      return new getEmailsForNotificationsSent_result(this);
22490
    }
22491
 
22492
    @Override
22493
    public void clear() {
22494
      this.success = null;
22495
      this.hse = null;
22496
    }
22497
 
22498
    public int getSuccessSize() {
22499
      return (this.success == null) ? 0 : this.success.size();
22500
    }
22501
 
22502
    public java.util.Iterator<String> getSuccessIterator() {
22503
      return (this.success == null) ? null : this.success.iterator();
22504
    }
22505
 
22506
    public void addToSuccess(String elem) {
22507
      if (this.success == null) {
22508
        this.success = new ArrayList<String>();
22509
      }
22510
      this.success.add(elem);
22511
    }
22512
 
22513
    public List<String> getSuccess() {
22514
      return this.success;
22515
    }
22516
 
22517
    public void setSuccess(List<String> success) {
22518
      this.success = success;
22519
    }
22520
 
22521
    public void unsetSuccess() {
22522
      this.success = null;
22523
    }
22524
 
22525
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22526
    public boolean isSetSuccess() {
22527
      return this.success != null;
22528
    }
22529
 
22530
    public void setSuccessIsSet(boolean value) {
22531
      if (!value) {
22532
        this.success = null;
22533
      }
22534
    }
22535
 
22536
    public HelperServiceException getHse() {
22537
      return this.hse;
22538
    }
22539
 
22540
    public void setHse(HelperServiceException hse) {
22541
      this.hse = hse;
22542
    }
22543
 
22544
    public void unsetHse() {
22545
      this.hse = null;
22546
    }
22547
 
22548
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22549
    public boolean isSetHse() {
22550
      return this.hse != null;
22551
    }
22552
 
22553
    public void setHseIsSet(boolean value) {
22554
      if (!value) {
22555
        this.hse = null;
22556
      }
22557
    }
22558
 
22559
    public void setFieldValue(_Fields field, Object value) {
22560
      switch (field) {
22561
      case SUCCESS:
22562
        if (value == null) {
22563
          unsetSuccess();
22564
        } else {
22565
          setSuccess((List<String>)value);
22566
        }
22567
        break;
22568
 
22569
      case HSE:
22570
        if (value == null) {
22571
          unsetHse();
22572
        } else {
22573
          setHse((HelperServiceException)value);
22574
        }
22575
        break;
22576
 
22577
      }
22578
    }
22579
 
22580
    public Object getFieldValue(_Fields field) {
22581
      switch (field) {
22582
      case SUCCESS:
22583
        return getSuccess();
22584
 
22585
      case HSE:
22586
        return getHse();
22587
 
22588
      }
22589
      throw new IllegalStateException();
22590
    }
22591
 
22592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22593
    public boolean isSet(_Fields field) {
22594
      if (field == null) {
22595
        throw new IllegalArgumentException();
22596
      }
22597
 
22598
      switch (field) {
22599
      case SUCCESS:
22600
        return isSetSuccess();
22601
      case HSE:
22602
        return isSetHse();
22603
      }
22604
      throw new IllegalStateException();
22605
    }
22606
 
22607
    @Override
22608
    public boolean equals(Object that) {
22609
      if (that == null)
22610
        return false;
22611
      if (that instanceof getEmailsForNotificationsSent_result)
22612
        return this.equals((getEmailsForNotificationsSent_result)that);
22613
      return false;
22614
    }
22615
 
22616
    public boolean equals(getEmailsForNotificationsSent_result that) {
22617
      if (that == null)
22618
        return false;
22619
 
22620
      boolean this_present_success = true && this.isSetSuccess();
22621
      boolean that_present_success = true && that.isSetSuccess();
22622
      if (this_present_success || that_present_success) {
22623
        if (!(this_present_success && that_present_success))
22624
          return false;
22625
        if (!this.success.equals(that.success))
22626
          return false;
22627
      }
22628
 
22629
      boolean this_present_hse = true && this.isSetHse();
22630
      boolean that_present_hse = true && that.isSetHse();
22631
      if (this_present_hse || that_present_hse) {
22632
        if (!(this_present_hse && that_present_hse))
22633
          return false;
22634
        if (!this.hse.equals(that.hse))
22635
          return false;
22636
      }
22637
 
22638
      return true;
22639
    }
22640
 
22641
    @Override
22642
    public int hashCode() {
22643
      return 0;
22644
    }
22645
 
22646
    public int compareTo(getEmailsForNotificationsSent_result other) {
22647
      if (!getClass().equals(other.getClass())) {
22648
        return getClass().getName().compareTo(other.getClass().getName());
22649
      }
22650
 
22651
      int lastComparison = 0;
22652
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22653
 
22654
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22655
      if (lastComparison != 0) {
22656
        return lastComparison;
22657
      }
22658
      if (isSetSuccess()) {
22659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22660
        if (lastComparison != 0) {
22661
          return lastComparison;
22662
        }
22663
      }
22664
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22665
      if (lastComparison != 0) {
22666
        return lastComparison;
22667
      }
22668
      if (isSetHse()) {
22669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22670
        if (lastComparison != 0) {
22671
          return lastComparison;
22672
        }
22673
      }
22674
      return 0;
22675
    }
22676
 
22677
    public _Fields fieldForId(int fieldId) {
22678
      return _Fields.findByThriftId(fieldId);
22679
    }
22680
 
22681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22682
      org.apache.thrift.protocol.TField field;
22683
      iprot.readStructBegin();
22684
      while (true)
22685
      {
22686
        field = iprot.readFieldBegin();
22687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22688
          break;
22689
        }
22690
        switch (field.id) {
22691
          case 0: // SUCCESS
22692
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22693
              {
5864 rajveer 22694
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22695
                this.success = new ArrayList<String>(_list65.size);
22696
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22697
                {
5864 rajveer 22698
                  String _elem67; // required
22699
                  _elem67 = iprot.readString();
22700
                  this.success.add(_elem67);
5055 varun.gupt 22701
                }
22702
                iprot.readListEnd();
22703
              }
22704
            } else { 
22705
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22706
            }
22707
            break;
22708
          case 1: // HSE
22709
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22710
              this.hse = new HelperServiceException();
22711
              this.hse.read(iprot);
22712
            } else { 
22713
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22714
            }
22715
            break;
22716
          default:
22717
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22718
        }
22719
        iprot.readFieldEnd();
22720
      }
22721
      iprot.readStructEnd();
22722
      validate();
22723
    }
22724
 
22725
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22726
      oprot.writeStructBegin(STRUCT_DESC);
22727
 
22728
      if (this.isSetSuccess()) {
22729
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22730
        {
22731
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22732
          for (String _iter68 : this.success)
5055 varun.gupt 22733
          {
5864 rajveer 22734
            oprot.writeString(_iter68);
5055 varun.gupt 22735
          }
22736
          oprot.writeListEnd();
22737
        }
22738
        oprot.writeFieldEnd();
22739
      } else if (this.isSetHse()) {
22740
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22741
        this.hse.write(oprot);
22742
        oprot.writeFieldEnd();
22743
      }
22744
      oprot.writeFieldStop();
22745
      oprot.writeStructEnd();
22746
    }
22747
 
22748
    @Override
22749
    public String toString() {
22750
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22751
      boolean first = true;
22752
 
22753
      sb.append("success:");
22754
      if (this.success == null) {
22755
        sb.append("null");
22756
      } else {
22757
        sb.append(this.success);
22758
      }
22759
      first = false;
22760
      if (!first) sb.append(", ");
22761
      sb.append("hse:");
22762
      if (this.hse == null) {
22763
        sb.append("null");
22764
      } else {
22765
        sb.append(this.hse);
22766
      }
22767
      first = false;
22768
      sb.append(")");
22769
      return sb.toString();
22770
    }
22771
 
22772
    public void validate() throws org.apache.thrift.TException {
22773
      // check for required fields
22774
    }
22775
 
22776
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22777
      try {
22778
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22779
      } catch (org.apache.thrift.TException te) {
22780
        throw new java.io.IOException(te);
22781
      }
22782
    }
22783
 
22784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22785
      try {
22786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22787
      } catch (org.apache.thrift.TException te) {
22788
        throw new java.io.IOException(te);
22789
      }
22790
    }
22791
 
22792
  }
22793
 
6322 amar.kumar 22794
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22795
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22796
 
22797
    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);
22798
 
22799
    private long orderId; // required
22800
 
22801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22803
      ORDER_ID((short)1, "orderId");
22804
 
22805
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22806
 
22807
      static {
22808
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22809
          byName.put(field.getFieldName(), field);
22810
        }
22811
      }
22812
 
22813
      /**
22814
       * Find the _Fields constant that matches fieldId, or null if its not found.
22815
       */
22816
      public static _Fields findByThriftId(int fieldId) {
22817
        switch(fieldId) {
22818
          case 1: // ORDER_ID
22819
            return ORDER_ID;
22820
          default:
22821
            return null;
22822
        }
22823
      }
22824
 
22825
      /**
22826
       * Find the _Fields constant that matches fieldId, throwing an exception
22827
       * if it is not found.
22828
       */
22829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22830
        _Fields fields = findByThriftId(fieldId);
22831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22832
        return fields;
22833
      }
22834
 
22835
      /**
22836
       * Find the _Fields constant that matches name, or null if its not found.
22837
       */
22838
      public static _Fields findByName(String name) {
22839
        return byName.get(name);
22840
      }
22841
 
22842
      private final short _thriftId;
22843
      private final String _fieldName;
22844
 
22845
      _Fields(short thriftId, String fieldName) {
22846
        _thriftId = thriftId;
22847
        _fieldName = fieldName;
22848
      }
22849
 
22850
      public short getThriftFieldId() {
22851
        return _thriftId;
22852
      }
22853
 
22854
      public String getFieldName() {
22855
        return _fieldName;
22856
      }
22857
    }
22858
 
22859
    // isset id assignments
22860
    private static final int __ORDERID_ISSET_ID = 0;
22861
    private BitSet __isset_bit_vector = new BitSet(1);
22862
 
22863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22864
    static {
22865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22866
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22870
    }
22871
 
22872
    public getOrderConfirmationMail_args() {
22873
    }
22874
 
22875
    public getOrderConfirmationMail_args(
22876
      long orderId)
22877
    {
22878
      this();
22879
      this.orderId = orderId;
22880
      setOrderIdIsSet(true);
22881
    }
22882
 
22883
    /**
22884
     * Performs a deep copy on <i>other</i>.
22885
     */
22886
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22887
      __isset_bit_vector.clear();
22888
      __isset_bit_vector.or(other.__isset_bit_vector);
22889
      this.orderId = other.orderId;
22890
    }
22891
 
22892
    public getOrderConfirmationMail_args deepCopy() {
22893
      return new getOrderConfirmationMail_args(this);
22894
    }
22895
 
22896
    @Override
22897
    public void clear() {
22898
      setOrderIdIsSet(false);
22899
      this.orderId = 0;
22900
    }
22901
 
22902
    public long getOrderId() {
22903
      return this.orderId;
22904
    }
22905
 
22906
    public void setOrderId(long orderId) {
22907
      this.orderId = orderId;
22908
      setOrderIdIsSet(true);
22909
    }
22910
 
22911
    public void unsetOrderId() {
22912
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22913
    }
22914
 
22915
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22916
    public boolean isSetOrderId() {
22917
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22918
    }
22919
 
22920
    public void setOrderIdIsSet(boolean value) {
22921
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22922
    }
22923
 
22924
    public void setFieldValue(_Fields field, Object value) {
22925
      switch (field) {
22926
      case ORDER_ID:
22927
        if (value == null) {
22928
          unsetOrderId();
22929
        } else {
22930
          setOrderId((Long)value);
22931
        }
22932
        break;
22933
 
22934
      }
22935
    }
22936
 
22937
    public Object getFieldValue(_Fields field) {
22938
      switch (field) {
22939
      case ORDER_ID:
22940
        return Long.valueOf(getOrderId());
22941
 
22942
      }
22943
      throw new IllegalStateException();
22944
    }
22945
 
22946
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22947
    public boolean isSet(_Fields field) {
22948
      if (field == null) {
22949
        throw new IllegalArgumentException();
22950
      }
22951
 
22952
      switch (field) {
22953
      case ORDER_ID:
22954
        return isSetOrderId();
22955
      }
22956
      throw new IllegalStateException();
22957
    }
22958
 
22959
    @Override
22960
    public boolean equals(Object that) {
22961
      if (that == null)
22962
        return false;
22963
      if (that instanceof getOrderConfirmationMail_args)
22964
        return this.equals((getOrderConfirmationMail_args)that);
22965
      return false;
22966
    }
22967
 
22968
    public boolean equals(getOrderConfirmationMail_args that) {
22969
      if (that == null)
22970
        return false;
22971
 
22972
      boolean this_present_orderId = true;
22973
      boolean that_present_orderId = true;
22974
      if (this_present_orderId || that_present_orderId) {
22975
        if (!(this_present_orderId && that_present_orderId))
22976
          return false;
22977
        if (this.orderId != that.orderId)
22978
          return false;
22979
      }
22980
 
22981
      return true;
22982
    }
22983
 
22984
    @Override
22985
    public int hashCode() {
22986
      return 0;
22987
    }
22988
 
22989
    public int compareTo(getOrderConfirmationMail_args other) {
22990
      if (!getClass().equals(other.getClass())) {
22991
        return getClass().getName().compareTo(other.getClass().getName());
22992
      }
22993
 
22994
      int lastComparison = 0;
22995
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22996
 
22997
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22998
      if (lastComparison != 0) {
22999
        return lastComparison;
23000
      }
23001
      if (isSetOrderId()) {
23002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23003
        if (lastComparison != 0) {
23004
          return lastComparison;
23005
        }
23006
      }
23007
      return 0;
23008
    }
23009
 
23010
    public _Fields fieldForId(int fieldId) {
23011
      return _Fields.findByThriftId(fieldId);
23012
    }
23013
 
23014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23015
      org.apache.thrift.protocol.TField field;
23016
      iprot.readStructBegin();
23017
      while (true)
23018
      {
23019
        field = iprot.readFieldBegin();
23020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23021
          break;
23022
        }
23023
        switch (field.id) {
23024
          case 1: // ORDER_ID
23025
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23026
              this.orderId = iprot.readI64();
23027
              setOrderIdIsSet(true);
23028
            } else { 
23029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23030
            }
23031
            break;
23032
          default:
23033
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23034
        }
23035
        iprot.readFieldEnd();
23036
      }
23037
      iprot.readStructEnd();
23038
      validate();
23039
    }
23040
 
23041
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23042
      validate();
23043
 
23044
      oprot.writeStructBegin(STRUCT_DESC);
23045
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23046
      oprot.writeI64(this.orderId);
23047
      oprot.writeFieldEnd();
23048
      oprot.writeFieldStop();
23049
      oprot.writeStructEnd();
23050
    }
23051
 
23052
    @Override
23053
    public String toString() {
23054
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
23055
      boolean first = true;
23056
 
23057
      sb.append("orderId:");
23058
      sb.append(this.orderId);
23059
      first = false;
23060
      sb.append(")");
23061
      return sb.toString();
23062
    }
23063
 
23064
    public void validate() throws org.apache.thrift.TException {
23065
      // check for required fields
23066
    }
23067
 
23068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23069
      try {
23070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23071
      } catch (org.apache.thrift.TException te) {
23072
        throw new java.io.IOException(te);
23073
      }
23074
    }
23075
 
23076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23077
      try {
23078
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23079
        __isset_bit_vector = new BitSet(1);
23080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23081
      } catch (org.apache.thrift.TException te) {
23082
        throw new java.io.IOException(te);
23083
      }
23084
    }
23085
 
23086
  }
23087
 
23088
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
23089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
23090
 
23091
    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);
23092
 
23093
    private String success; // required
23094
 
23095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23097
      SUCCESS((short)0, "success");
23098
 
23099
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23100
 
23101
      static {
23102
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23103
          byName.put(field.getFieldName(), field);
23104
        }
23105
      }
23106
 
23107
      /**
23108
       * Find the _Fields constant that matches fieldId, or null if its not found.
23109
       */
23110
      public static _Fields findByThriftId(int fieldId) {
23111
        switch(fieldId) {
23112
          case 0: // SUCCESS
23113
            return SUCCESS;
23114
          default:
23115
            return null;
23116
        }
23117
      }
23118
 
23119
      /**
23120
       * Find the _Fields constant that matches fieldId, throwing an exception
23121
       * if it is not found.
23122
       */
23123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23124
        _Fields fields = findByThriftId(fieldId);
23125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23126
        return fields;
23127
      }
23128
 
23129
      /**
23130
       * Find the _Fields constant that matches name, or null if its not found.
23131
       */
23132
      public static _Fields findByName(String name) {
23133
        return byName.get(name);
23134
      }
23135
 
23136
      private final short _thriftId;
23137
      private final String _fieldName;
23138
 
23139
      _Fields(short thriftId, String fieldName) {
23140
        _thriftId = thriftId;
23141
        _fieldName = fieldName;
23142
      }
23143
 
23144
      public short getThriftFieldId() {
23145
        return _thriftId;
23146
      }
23147
 
23148
      public String getFieldName() {
23149
        return _fieldName;
23150
      }
23151
    }
23152
 
23153
    // isset id assignments
23154
 
23155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23156
    static {
23157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23158
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23160
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23161
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
23162
    }
23163
 
23164
    public getOrderConfirmationMail_result() {
23165
    }
23166
 
23167
    public getOrderConfirmationMail_result(
23168
      String success)
23169
    {
23170
      this();
23171
      this.success = success;
23172
    }
23173
 
23174
    /**
23175
     * Performs a deep copy on <i>other</i>.
23176
     */
23177
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
23178
      if (other.isSetSuccess()) {
23179
        this.success = other.success;
23180
      }
23181
    }
23182
 
23183
    public getOrderConfirmationMail_result deepCopy() {
23184
      return new getOrderConfirmationMail_result(this);
23185
    }
23186
 
23187
    @Override
23188
    public void clear() {
23189
      this.success = null;
23190
    }
23191
 
23192
    public String getSuccess() {
23193
      return this.success;
23194
    }
23195
 
23196
    public void setSuccess(String success) {
23197
      this.success = success;
23198
    }
23199
 
23200
    public void unsetSuccess() {
23201
      this.success = null;
23202
    }
23203
 
23204
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23205
    public boolean isSetSuccess() {
23206
      return this.success != null;
23207
    }
23208
 
23209
    public void setSuccessIsSet(boolean value) {
23210
      if (!value) {
23211
        this.success = null;
23212
      }
23213
    }
23214
 
23215
    public void setFieldValue(_Fields field, Object value) {
23216
      switch (field) {
23217
      case SUCCESS:
23218
        if (value == null) {
23219
          unsetSuccess();
23220
        } else {
23221
          setSuccess((String)value);
23222
        }
23223
        break;
23224
 
23225
      }
23226
    }
23227
 
23228
    public Object getFieldValue(_Fields field) {
23229
      switch (field) {
23230
      case SUCCESS:
23231
        return getSuccess();
23232
 
23233
      }
23234
      throw new IllegalStateException();
23235
    }
23236
 
23237
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23238
    public boolean isSet(_Fields field) {
23239
      if (field == null) {
23240
        throw new IllegalArgumentException();
23241
      }
23242
 
23243
      switch (field) {
23244
      case SUCCESS:
23245
        return isSetSuccess();
23246
      }
23247
      throw new IllegalStateException();
23248
    }
23249
 
23250
    @Override
23251
    public boolean equals(Object that) {
23252
      if (that == null)
23253
        return false;
23254
      if (that instanceof getOrderConfirmationMail_result)
23255
        return this.equals((getOrderConfirmationMail_result)that);
23256
      return false;
23257
    }
23258
 
23259
    public boolean equals(getOrderConfirmationMail_result that) {
23260
      if (that == null)
23261
        return false;
23262
 
23263
      boolean this_present_success = true && this.isSetSuccess();
23264
      boolean that_present_success = true && that.isSetSuccess();
23265
      if (this_present_success || that_present_success) {
23266
        if (!(this_present_success && that_present_success))
23267
          return false;
23268
        if (!this.success.equals(that.success))
23269
          return false;
23270
      }
23271
 
23272
      return true;
23273
    }
23274
 
23275
    @Override
23276
    public int hashCode() {
23277
      return 0;
23278
    }
23279
 
23280
    public int compareTo(getOrderConfirmationMail_result other) {
23281
      if (!getClass().equals(other.getClass())) {
23282
        return getClass().getName().compareTo(other.getClass().getName());
23283
      }
23284
 
23285
      int lastComparison = 0;
23286
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23287
 
23288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23289
      if (lastComparison != 0) {
23290
        return lastComparison;
23291
      }
23292
      if (isSetSuccess()) {
23293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23294
        if (lastComparison != 0) {
23295
          return lastComparison;
23296
        }
23297
      }
23298
      return 0;
23299
    }
23300
 
23301
    public _Fields fieldForId(int fieldId) {
23302
      return _Fields.findByThriftId(fieldId);
23303
    }
23304
 
23305
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23306
      org.apache.thrift.protocol.TField field;
23307
      iprot.readStructBegin();
23308
      while (true)
23309
      {
23310
        field = iprot.readFieldBegin();
23311
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23312
          break;
23313
        }
23314
        switch (field.id) {
23315
          case 0: // SUCCESS
23316
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23317
              this.success = iprot.readString();
23318
            } else { 
23319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23320
            }
23321
            break;
23322
          default:
23323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23324
        }
23325
        iprot.readFieldEnd();
23326
      }
23327
      iprot.readStructEnd();
23328
      validate();
23329
    }
23330
 
23331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23332
      oprot.writeStructBegin(STRUCT_DESC);
23333
 
23334
      if (this.isSetSuccess()) {
23335
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23336
        oprot.writeString(this.success);
23337
        oprot.writeFieldEnd();
23338
      }
23339
      oprot.writeFieldStop();
23340
      oprot.writeStructEnd();
23341
    }
23342
 
23343
    @Override
23344
    public String toString() {
23345
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23346
      boolean first = true;
23347
 
23348
      sb.append("success:");
23349
      if (this.success == null) {
23350
        sb.append("null");
23351
      } else {
23352
        sb.append(this.success);
23353
      }
23354
      first = false;
23355
      sb.append(")");
23356
      return sb.toString();
23357
    }
23358
 
23359
    public void validate() throws org.apache.thrift.TException {
23360
      // check for required fields
23361
    }
23362
 
23363
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23364
      try {
23365
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23366
      } catch (org.apache.thrift.TException te) {
23367
        throw new java.io.IOException(te);
23368
      }
23369
    }
23370
 
23371
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23372
      try {
23373
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23374
      } catch (org.apache.thrift.TException te) {
23375
        throw new java.io.IOException(te);
23376
      }
23377
    }
23378
 
23379
  }
23380
 
7221 kshitij.so 23381
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
23382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
23383
 
23384
    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);
23385
 
23386
    private long orderId; // required
23387
 
23388
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23389
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23390
      ORDER_ID((short)1, "orderId");
23391
 
23392
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23393
 
23394
      static {
23395
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23396
          byName.put(field.getFieldName(), field);
23397
        }
23398
      }
23399
 
23400
      /**
23401
       * Find the _Fields constant that matches fieldId, or null if its not found.
23402
       */
23403
      public static _Fields findByThriftId(int fieldId) {
23404
        switch(fieldId) {
23405
          case 1: // ORDER_ID
23406
            return ORDER_ID;
23407
          default:
23408
            return null;
23409
        }
23410
      }
23411
 
23412
      /**
23413
       * Find the _Fields constant that matches fieldId, throwing an exception
23414
       * if it is not found.
23415
       */
23416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23417
        _Fields fields = findByThriftId(fieldId);
23418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23419
        return fields;
23420
      }
23421
 
23422
      /**
23423
       * Find the _Fields constant that matches name, or null if its not found.
23424
       */
23425
      public static _Fields findByName(String name) {
23426
        return byName.get(name);
23427
      }
23428
 
23429
      private final short _thriftId;
23430
      private final String _fieldName;
23431
 
23432
      _Fields(short thriftId, String fieldName) {
23433
        _thriftId = thriftId;
23434
        _fieldName = fieldName;
23435
      }
23436
 
23437
      public short getThriftFieldId() {
23438
        return _thriftId;
23439
      }
23440
 
23441
      public String getFieldName() {
23442
        return _fieldName;
23443
      }
23444
    }
23445
 
23446
    // isset id assignments
23447
    private static final int __ORDERID_ISSET_ID = 0;
23448
    private BitSet __isset_bit_vector = new BitSet(1);
23449
 
23450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23451
    static {
23452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23453
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
23457
    }
23458
 
23459
    public getOrderDeliveryMail_args() {
23460
    }
23461
 
23462
    public getOrderDeliveryMail_args(
23463
      long orderId)
23464
    {
23465
      this();
23466
      this.orderId = orderId;
23467
      setOrderIdIsSet(true);
23468
    }
23469
 
23470
    /**
23471
     * Performs a deep copy on <i>other</i>.
23472
     */
23473
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
23474
      __isset_bit_vector.clear();
23475
      __isset_bit_vector.or(other.__isset_bit_vector);
23476
      this.orderId = other.orderId;
23477
    }
23478
 
23479
    public getOrderDeliveryMail_args deepCopy() {
23480
      return new getOrderDeliveryMail_args(this);
23481
    }
23482
 
23483
    @Override
23484
    public void clear() {
23485
      setOrderIdIsSet(false);
23486
      this.orderId = 0;
23487
    }
23488
 
23489
    public long getOrderId() {
23490
      return this.orderId;
23491
    }
23492
 
23493
    public void setOrderId(long orderId) {
23494
      this.orderId = orderId;
23495
      setOrderIdIsSet(true);
23496
    }
23497
 
23498
    public void unsetOrderId() {
23499
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23500
    }
23501
 
23502
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23503
    public boolean isSetOrderId() {
23504
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23505
    }
23506
 
23507
    public void setOrderIdIsSet(boolean value) {
23508
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23509
    }
23510
 
23511
    public void setFieldValue(_Fields field, Object value) {
23512
      switch (field) {
23513
      case ORDER_ID:
23514
        if (value == null) {
23515
          unsetOrderId();
23516
        } else {
23517
          setOrderId((Long)value);
23518
        }
23519
        break;
23520
 
23521
      }
23522
    }
23523
 
23524
    public Object getFieldValue(_Fields field) {
23525
      switch (field) {
23526
      case ORDER_ID:
23527
        return Long.valueOf(getOrderId());
23528
 
23529
      }
23530
      throw new IllegalStateException();
23531
    }
23532
 
23533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23534
    public boolean isSet(_Fields field) {
23535
      if (field == null) {
23536
        throw new IllegalArgumentException();
23537
      }
23538
 
23539
      switch (field) {
23540
      case ORDER_ID:
23541
        return isSetOrderId();
23542
      }
23543
      throw new IllegalStateException();
23544
    }
23545
 
23546
    @Override
23547
    public boolean equals(Object that) {
23548
      if (that == null)
23549
        return false;
23550
      if (that instanceof getOrderDeliveryMail_args)
23551
        return this.equals((getOrderDeliveryMail_args)that);
23552
      return false;
23553
    }
23554
 
23555
    public boolean equals(getOrderDeliveryMail_args that) {
23556
      if (that == null)
23557
        return false;
23558
 
23559
      boolean this_present_orderId = true;
23560
      boolean that_present_orderId = true;
23561
      if (this_present_orderId || that_present_orderId) {
23562
        if (!(this_present_orderId && that_present_orderId))
23563
          return false;
23564
        if (this.orderId != that.orderId)
23565
          return false;
23566
      }
23567
 
23568
      return true;
23569
    }
23570
 
23571
    @Override
23572
    public int hashCode() {
23573
      return 0;
23574
    }
23575
 
23576
    public int compareTo(getOrderDeliveryMail_args other) {
23577
      if (!getClass().equals(other.getClass())) {
23578
        return getClass().getName().compareTo(other.getClass().getName());
23579
      }
23580
 
23581
      int lastComparison = 0;
23582
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
23583
 
23584
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23585
      if (lastComparison != 0) {
23586
        return lastComparison;
23587
      }
23588
      if (isSetOrderId()) {
23589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23590
        if (lastComparison != 0) {
23591
          return lastComparison;
23592
        }
23593
      }
23594
      return 0;
23595
    }
23596
 
23597
    public _Fields fieldForId(int fieldId) {
23598
      return _Fields.findByThriftId(fieldId);
23599
    }
23600
 
23601
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23602
      org.apache.thrift.protocol.TField field;
23603
      iprot.readStructBegin();
23604
      while (true)
23605
      {
23606
        field = iprot.readFieldBegin();
23607
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23608
          break;
23609
        }
23610
        switch (field.id) {
23611
          case 1: // ORDER_ID
23612
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23613
              this.orderId = iprot.readI64();
23614
              setOrderIdIsSet(true);
23615
            } else { 
23616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23617
            }
23618
            break;
23619
          default:
23620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23621
        }
23622
        iprot.readFieldEnd();
23623
      }
23624
      iprot.readStructEnd();
23625
      validate();
23626
    }
23627
 
23628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23629
      validate();
23630
 
23631
      oprot.writeStructBegin(STRUCT_DESC);
23632
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23633
      oprot.writeI64(this.orderId);
23634
      oprot.writeFieldEnd();
23635
      oprot.writeFieldStop();
23636
      oprot.writeStructEnd();
23637
    }
23638
 
23639
    @Override
23640
    public String toString() {
23641
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
23642
      boolean first = true;
23643
 
23644
      sb.append("orderId:");
23645
      sb.append(this.orderId);
23646
      first = false;
23647
      sb.append(")");
23648
      return sb.toString();
23649
    }
23650
 
23651
    public void validate() throws org.apache.thrift.TException {
23652
      // check for required fields
23653
    }
23654
 
23655
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23656
      try {
23657
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23658
      } catch (org.apache.thrift.TException te) {
23659
        throw new java.io.IOException(te);
23660
      }
23661
    }
23662
 
23663
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23664
      try {
23665
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23666
        __isset_bit_vector = new BitSet(1);
23667
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23668
      } catch (org.apache.thrift.TException te) {
23669
        throw new java.io.IOException(te);
23670
      }
23671
    }
23672
 
23673
  }
23674
 
23675
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
23676
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
23677
 
23678
    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);
23679
 
23680
    private String success; // required
23681
 
23682
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23683
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23684
      SUCCESS((short)0, "success");
23685
 
23686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23687
 
23688
      static {
23689
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23690
          byName.put(field.getFieldName(), field);
23691
        }
23692
      }
23693
 
23694
      /**
23695
       * Find the _Fields constant that matches fieldId, or null if its not found.
23696
       */
23697
      public static _Fields findByThriftId(int fieldId) {
23698
        switch(fieldId) {
23699
          case 0: // SUCCESS
23700
            return SUCCESS;
23701
          default:
23702
            return null;
23703
        }
23704
      }
23705
 
23706
      /**
23707
       * Find the _Fields constant that matches fieldId, throwing an exception
23708
       * if it is not found.
23709
       */
23710
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23711
        _Fields fields = findByThriftId(fieldId);
23712
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23713
        return fields;
23714
      }
23715
 
23716
      /**
23717
       * Find the _Fields constant that matches name, or null if its not found.
23718
       */
23719
      public static _Fields findByName(String name) {
23720
        return byName.get(name);
23721
      }
23722
 
23723
      private final short _thriftId;
23724
      private final String _fieldName;
23725
 
23726
      _Fields(short thriftId, String fieldName) {
23727
        _thriftId = thriftId;
23728
        _fieldName = fieldName;
23729
      }
23730
 
23731
      public short getThriftFieldId() {
23732
        return _thriftId;
23733
      }
23734
 
23735
      public String getFieldName() {
23736
        return _fieldName;
23737
      }
23738
    }
23739
 
23740
    // isset id assignments
23741
 
23742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23743
    static {
23744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23745
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23746
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23747
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23748
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
23749
    }
23750
 
23751
    public getOrderDeliveryMail_result() {
23752
    }
23753
 
23754
    public getOrderDeliveryMail_result(
23755
      String success)
23756
    {
23757
      this();
23758
      this.success = success;
23759
    }
23760
 
23761
    /**
23762
     * Performs a deep copy on <i>other</i>.
23763
     */
23764
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
23765
      if (other.isSetSuccess()) {
23766
        this.success = other.success;
23767
      }
23768
    }
23769
 
23770
    public getOrderDeliveryMail_result deepCopy() {
23771
      return new getOrderDeliveryMail_result(this);
23772
    }
23773
 
23774
    @Override
23775
    public void clear() {
23776
      this.success = null;
23777
    }
23778
 
23779
    public String getSuccess() {
23780
      return this.success;
23781
    }
23782
 
23783
    public void setSuccess(String success) {
23784
      this.success = success;
23785
    }
23786
 
23787
    public void unsetSuccess() {
23788
      this.success = null;
23789
    }
23790
 
23791
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23792
    public boolean isSetSuccess() {
23793
      return this.success != null;
23794
    }
23795
 
23796
    public void setSuccessIsSet(boolean value) {
23797
      if (!value) {
23798
        this.success = null;
23799
      }
23800
    }
23801
 
23802
    public void setFieldValue(_Fields field, Object value) {
23803
      switch (field) {
23804
      case SUCCESS:
23805
        if (value == null) {
23806
          unsetSuccess();
23807
        } else {
23808
          setSuccess((String)value);
23809
        }
23810
        break;
23811
 
23812
      }
23813
    }
23814
 
23815
    public Object getFieldValue(_Fields field) {
23816
      switch (field) {
23817
      case SUCCESS:
23818
        return getSuccess();
23819
 
23820
      }
23821
      throw new IllegalStateException();
23822
    }
23823
 
23824
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23825
    public boolean isSet(_Fields field) {
23826
      if (field == null) {
23827
        throw new IllegalArgumentException();
23828
      }
23829
 
23830
      switch (field) {
23831
      case SUCCESS:
23832
        return isSetSuccess();
23833
      }
23834
      throw new IllegalStateException();
23835
    }
23836
 
23837
    @Override
23838
    public boolean equals(Object that) {
23839
      if (that == null)
23840
        return false;
23841
      if (that instanceof getOrderDeliveryMail_result)
23842
        return this.equals((getOrderDeliveryMail_result)that);
23843
      return false;
23844
    }
23845
 
23846
    public boolean equals(getOrderDeliveryMail_result that) {
23847
      if (that == null)
23848
        return false;
23849
 
23850
      boolean this_present_success = true && this.isSetSuccess();
23851
      boolean that_present_success = true && that.isSetSuccess();
23852
      if (this_present_success || that_present_success) {
23853
        if (!(this_present_success && that_present_success))
23854
          return false;
23855
        if (!this.success.equals(that.success))
23856
          return false;
23857
      }
23858
 
23859
      return true;
23860
    }
23861
 
23862
    @Override
23863
    public int hashCode() {
23864
      return 0;
23865
    }
23866
 
23867
    public int compareTo(getOrderDeliveryMail_result other) {
23868
      if (!getClass().equals(other.getClass())) {
23869
        return getClass().getName().compareTo(other.getClass().getName());
23870
      }
23871
 
23872
      int lastComparison = 0;
23873
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
23874
 
23875
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23876
      if (lastComparison != 0) {
23877
        return lastComparison;
23878
      }
23879
      if (isSetSuccess()) {
23880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23881
        if (lastComparison != 0) {
23882
          return lastComparison;
23883
        }
23884
      }
23885
      return 0;
23886
    }
23887
 
23888
    public _Fields fieldForId(int fieldId) {
23889
      return _Fields.findByThriftId(fieldId);
23890
    }
23891
 
23892
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23893
      org.apache.thrift.protocol.TField field;
23894
      iprot.readStructBegin();
23895
      while (true)
23896
      {
23897
        field = iprot.readFieldBegin();
23898
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23899
          break;
23900
        }
23901
        switch (field.id) {
23902
          case 0: // SUCCESS
23903
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23904
              this.success = iprot.readString();
23905
            } else { 
23906
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23907
            }
23908
            break;
23909
          default:
23910
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23911
        }
23912
        iprot.readFieldEnd();
23913
      }
23914
      iprot.readStructEnd();
23915
      validate();
23916
    }
23917
 
23918
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23919
      oprot.writeStructBegin(STRUCT_DESC);
23920
 
23921
      if (this.isSetSuccess()) {
23922
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23923
        oprot.writeString(this.success);
23924
        oprot.writeFieldEnd();
23925
      }
23926
      oprot.writeFieldStop();
23927
      oprot.writeStructEnd();
23928
    }
23929
 
23930
    @Override
23931
    public String toString() {
23932
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
23933
      boolean first = true;
23934
 
23935
      sb.append("success:");
23936
      if (this.success == null) {
23937
        sb.append("null");
23938
      } else {
23939
        sb.append(this.success);
23940
      }
23941
      first = false;
23942
      sb.append(")");
23943
      return sb.toString();
23944
    }
23945
 
23946
    public void validate() throws org.apache.thrift.TException {
23947
      // check for required fields
23948
    }
23949
 
23950
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23951
      try {
23952
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23953
      } catch (org.apache.thrift.TException te) {
23954
        throw new java.io.IOException(te);
23955
      }
23956
    }
23957
 
23958
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23959
      try {
23960
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23961
      } catch (org.apache.thrift.TException te) {
23962
        throw new java.io.IOException(te);
23963
      }
23964
    }
23965
 
23966
  }
23967
 
7410 amar.kumar 23968
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
23969
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
23970
 
23971
    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);
23972
 
23973
    private String agentEmailId; // required
23974
 
23975
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23976
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23977
      AGENT_EMAIL_ID((short)1, "agentEmailId");
23978
 
23979
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23980
 
23981
      static {
23982
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23983
          byName.put(field.getFieldName(), field);
23984
        }
23985
      }
23986
 
23987
      /**
23988
       * Find the _Fields constant that matches fieldId, or null if its not found.
23989
       */
23990
      public static _Fields findByThriftId(int fieldId) {
23991
        switch(fieldId) {
23992
          case 1: // AGENT_EMAIL_ID
23993
            return AGENT_EMAIL_ID;
23994
          default:
23995
            return null;
23996
        }
23997
      }
23998
 
23999
      /**
24000
       * Find the _Fields constant that matches fieldId, throwing an exception
24001
       * if it is not found.
24002
       */
24003
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24004
        _Fields fields = findByThriftId(fieldId);
24005
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24006
        return fields;
24007
      }
24008
 
24009
      /**
24010
       * Find the _Fields constant that matches name, or null if its not found.
24011
       */
24012
      public static _Fields findByName(String name) {
24013
        return byName.get(name);
24014
      }
24015
 
24016
      private final short _thriftId;
24017
      private final String _fieldName;
24018
 
24019
      _Fields(short thriftId, String fieldName) {
24020
        _thriftId = thriftId;
24021
        _fieldName = fieldName;
24022
      }
24023
 
24024
      public short getThriftFieldId() {
24025
        return _thriftId;
24026
      }
24027
 
24028
      public String getFieldName() {
24029
        return _fieldName;
24030
      }
24031
    }
24032
 
24033
    // isset id assignments
24034
 
24035
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24036
    static {
24037
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24038
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24039
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24040
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24041
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
24042
    }
24043
 
24044
    public getWarehouseIdsForAgent_args() {
24045
    }
24046
 
24047
    public getWarehouseIdsForAgent_args(
24048
      String agentEmailId)
24049
    {
24050
      this();
24051
      this.agentEmailId = agentEmailId;
24052
    }
24053
 
24054
    /**
24055
     * Performs a deep copy on <i>other</i>.
24056
     */
24057
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
24058
      if (other.isSetAgentEmailId()) {
24059
        this.agentEmailId = other.agentEmailId;
24060
      }
24061
    }
24062
 
24063
    public getWarehouseIdsForAgent_args deepCopy() {
24064
      return new getWarehouseIdsForAgent_args(this);
24065
    }
24066
 
24067
    @Override
24068
    public void clear() {
24069
      this.agentEmailId = null;
24070
    }
24071
 
24072
    public String getAgentEmailId() {
24073
      return this.agentEmailId;
24074
    }
24075
 
24076
    public void setAgentEmailId(String agentEmailId) {
24077
      this.agentEmailId = agentEmailId;
24078
    }
24079
 
24080
    public void unsetAgentEmailId() {
24081
      this.agentEmailId = null;
24082
    }
24083
 
24084
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
24085
    public boolean isSetAgentEmailId() {
24086
      return this.agentEmailId != null;
24087
    }
24088
 
24089
    public void setAgentEmailIdIsSet(boolean value) {
24090
      if (!value) {
24091
        this.agentEmailId = null;
24092
      }
24093
    }
24094
 
24095
    public void setFieldValue(_Fields field, Object value) {
24096
      switch (field) {
24097
      case AGENT_EMAIL_ID:
24098
        if (value == null) {
24099
          unsetAgentEmailId();
24100
        } else {
24101
          setAgentEmailId((String)value);
24102
        }
24103
        break;
24104
 
24105
      }
24106
    }
24107
 
24108
    public Object getFieldValue(_Fields field) {
24109
      switch (field) {
24110
      case AGENT_EMAIL_ID:
24111
        return getAgentEmailId();
24112
 
24113
      }
24114
      throw new IllegalStateException();
24115
    }
24116
 
24117
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24118
    public boolean isSet(_Fields field) {
24119
      if (field == null) {
24120
        throw new IllegalArgumentException();
24121
      }
24122
 
24123
      switch (field) {
24124
      case AGENT_EMAIL_ID:
24125
        return isSetAgentEmailId();
24126
      }
24127
      throw new IllegalStateException();
24128
    }
24129
 
24130
    @Override
24131
    public boolean equals(Object that) {
24132
      if (that == null)
24133
        return false;
24134
      if (that instanceof getWarehouseIdsForAgent_args)
24135
        return this.equals((getWarehouseIdsForAgent_args)that);
24136
      return false;
24137
    }
24138
 
24139
    public boolean equals(getWarehouseIdsForAgent_args that) {
24140
      if (that == null)
24141
        return false;
24142
 
24143
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
24144
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
24145
      if (this_present_agentEmailId || that_present_agentEmailId) {
24146
        if (!(this_present_agentEmailId && that_present_agentEmailId))
24147
          return false;
24148
        if (!this.agentEmailId.equals(that.agentEmailId))
24149
          return false;
24150
      }
24151
 
24152
      return true;
24153
    }
24154
 
24155
    @Override
24156
    public int hashCode() {
24157
      return 0;
24158
    }
24159
 
24160
    public int compareTo(getWarehouseIdsForAgent_args other) {
24161
      if (!getClass().equals(other.getClass())) {
24162
        return getClass().getName().compareTo(other.getClass().getName());
24163
      }
24164
 
24165
      int lastComparison = 0;
24166
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
24167
 
24168
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
24169
      if (lastComparison != 0) {
24170
        return lastComparison;
24171
      }
24172
      if (isSetAgentEmailId()) {
24173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
24174
        if (lastComparison != 0) {
24175
          return lastComparison;
24176
        }
24177
      }
24178
      return 0;
24179
    }
24180
 
24181
    public _Fields fieldForId(int fieldId) {
24182
      return _Fields.findByThriftId(fieldId);
24183
    }
24184
 
24185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24186
      org.apache.thrift.protocol.TField field;
24187
      iprot.readStructBegin();
24188
      while (true)
24189
      {
24190
        field = iprot.readFieldBegin();
24191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24192
          break;
24193
        }
24194
        switch (field.id) {
24195
          case 1: // AGENT_EMAIL_ID
24196
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24197
              this.agentEmailId = iprot.readString();
24198
            } else { 
24199
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24200
            }
24201
            break;
24202
          default:
24203
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24204
        }
24205
        iprot.readFieldEnd();
24206
      }
24207
      iprot.readStructEnd();
24208
      validate();
24209
    }
24210
 
24211
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24212
      validate();
24213
 
24214
      oprot.writeStructBegin(STRUCT_DESC);
24215
      if (this.agentEmailId != null) {
24216
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
24217
        oprot.writeString(this.agentEmailId);
24218
        oprot.writeFieldEnd();
24219
      }
24220
      oprot.writeFieldStop();
24221
      oprot.writeStructEnd();
24222
    }
24223
 
24224
    @Override
24225
    public String toString() {
24226
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
24227
      boolean first = true;
24228
 
24229
      sb.append("agentEmailId:");
24230
      if (this.agentEmailId == null) {
24231
        sb.append("null");
24232
      } else {
24233
        sb.append(this.agentEmailId);
24234
      }
24235
      first = false;
24236
      sb.append(")");
24237
      return sb.toString();
24238
    }
24239
 
24240
    public void validate() throws org.apache.thrift.TException {
24241
      // check for required fields
24242
    }
24243
 
24244
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24245
      try {
24246
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24247
      } catch (org.apache.thrift.TException te) {
24248
        throw new java.io.IOException(te);
24249
      }
24250
    }
24251
 
24252
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24253
      try {
24254
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24255
      } catch (org.apache.thrift.TException te) {
24256
        throw new java.io.IOException(te);
24257
      }
24258
    }
24259
 
24260
  }
24261
 
24262
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
24263
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
24264
 
24265
    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);
24266
 
24267
    private List<Long> success; // required
24268
 
24269
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24270
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24271
      SUCCESS((short)0, "success");
24272
 
24273
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24274
 
24275
      static {
24276
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24277
          byName.put(field.getFieldName(), field);
24278
        }
24279
      }
24280
 
24281
      /**
24282
       * Find the _Fields constant that matches fieldId, or null if its not found.
24283
       */
24284
      public static _Fields findByThriftId(int fieldId) {
24285
        switch(fieldId) {
24286
          case 0: // SUCCESS
24287
            return SUCCESS;
24288
          default:
24289
            return null;
24290
        }
24291
      }
24292
 
24293
      /**
24294
       * Find the _Fields constant that matches fieldId, throwing an exception
24295
       * if it is not found.
24296
       */
24297
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24298
        _Fields fields = findByThriftId(fieldId);
24299
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24300
        return fields;
24301
      }
24302
 
24303
      /**
24304
       * Find the _Fields constant that matches name, or null if its not found.
24305
       */
24306
      public static _Fields findByName(String name) {
24307
        return byName.get(name);
24308
      }
24309
 
24310
      private final short _thriftId;
24311
      private final String _fieldName;
24312
 
24313
      _Fields(short thriftId, String fieldName) {
24314
        _thriftId = thriftId;
24315
        _fieldName = fieldName;
24316
      }
24317
 
24318
      public short getThriftFieldId() {
24319
        return _thriftId;
24320
      }
24321
 
24322
      public String getFieldName() {
24323
        return _fieldName;
24324
      }
24325
    }
24326
 
24327
    // isset id assignments
24328
 
24329
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24330
    static {
24331
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24332
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24333
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24334
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
24335
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24336
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
24337
    }
24338
 
24339
    public getWarehouseIdsForAgent_result() {
24340
    }
24341
 
24342
    public getWarehouseIdsForAgent_result(
24343
      List<Long> success)
24344
    {
24345
      this();
24346
      this.success = success;
24347
    }
24348
 
24349
    /**
24350
     * Performs a deep copy on <i>other</i>.
24351
     */
24352
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
24353
      if (other.isSetSuccess()) {
24354
        List<Long> __this__success = new ArrayList<Long>();
24355
        for (Long other_element : other.success) {
24356
          __this__success.add(other_element);
24357
        }
24358
        this.success = __this__success;
24359
      }
24360
    }
24361
 
24362
    public getWarehouseIdsForAgent_result deepCopy() {
24363
      return new getWarehouseIdsForAgent_result(this);
24364
    }
24365
 
24366
    @Override
24367
    public void clear() {
24368
      this.success = null;
24369
    }
24370
 
24371
    public int getSuccessSize() {
24372
      return (this.success == null) ? 0 : this.success.size();
24373
    }
24374
 
24375
    public java.util.Iterator<Long> getSuccessIterator() {
24376
      return (this.success == null) ? null : this.success.iterator();
24377
    }
24378
 
24379
    public void addToSuccess(long elem) {
24380
      if (this.success == null) {
24381
        this.success = new ArrayList<Long>();
24382
      }
24383
      this.success.add(elem);
24384
    }
24385
 
24386
    public List<Long> getSuccess() {
24387
      return this.success;
24388
    }
24389
 
24390
    public void setSuccess(List<Long> success) {
24391
      this.success = success;
24392
    }
24393
 
24394
    public void unsetSuccess() {
24395
      this.success = null;
24396
    }
24397
 
24398
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24399
    public boolean isSetSuccess() {
24400
      return this.success != null;
24401
    }
24402
 
24403
    public void setSuccessIsSet(boolean value) {
24404
      if (!value) {
24405
        this.success = null;
24406
      }
24407
    }
24408
 
24409
    public void setFieldValue(_Fields field, Object value) {
24410
      switch (field) {
24411
      case SUCCESS:
24412
        if (value == null) {
24413
          unsetSuccess();
24414
        } else {
24415
          setSuccess((List<Long>)value);
24416
        }
24417
        break;
24418
 
24419
      }
24420
    }
24421
 
24422
    public Object getFieldValue(_Fields field) {
24423
      switch (field) {
24424
      case SUCCESS:
24425
        return getSuccess();
24426
 
24427
      }
24428
      throw new IllegalStateException();
24429
    }
24430
 
24431
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24432
    public boolean isSet(_Fields field) {
24433
      if (field == null) {
24434
        throw new IllegalArgumentException();
24435
      }
24436
 
24437
      switch (field) {
24438
      case SUCCESS:
24439
        return isSetSuccess();
24440
      }
24441
      throw new IllegalStateException();
24442
    }
24443
 
24444
    @Override
24445
    public boolean equals(Object that) {
24446
      if (that == null)
24447
        return false;
24448
      if (that instanceof getWarehouseIdsForAgent_result)
24449
        return this.equals((getWarehouseIdsForAgent_result)that);
24450
      return false;
24451
    }
24452
 
24453
    public boolean equals(getWarehouseIdsForAgent_result that) {
24454
      if (that == null)
24455
        return false;
24456
 
24457
      boolean this_present_success = true && this.isSetSuccess();
24458
      boolean that_present_success = true && that.isSetSuccess();
24459
      if (this_present_success || that_present_success) {
24460
        if (!(this_present_success && that_present_success))
24461
          return false;
24462
        if (!this.success.equals(that.success))
24463
          return false;
24464
      }
24465
 
24466
      return true;
24467
    }
24468
 
24469
    @Override
24470
    public int hashCode() {
24471
      return 0;
24472
    }
24473
 
24474
    public int compareTo(getWarehouseIdsForAgent_result other) {
24475
      if (!getClass().equals(other.getClass())) {
24476
        return getClass().getName().compareTo(other.getClass().getName());
24477
      }
24478
 
24479
      int lastComparison = 0;
24480
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
24481
 
24482
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24483
      if (lastComparison != 0) {
24484
        return lastComparison;
24485
      }
24486
      if (isSetSuccess()) {
24487
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24488
        if (lastComparison != 0) {
24489
          return lastComparison;
24490
        }
24491
      }
24492
      return 0;
24493
    }
24494
 
24495
    public _Fields fieldForId(int fieldId) {
24496
      return _Fields.findByThriftId(fieldId);
24497
    }
24498
 
24499
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24500
      org.apache.thrift.protocol.TField field;
24501
      iprot.readStructBegin();
24502
      while (true)
24503
      {
24504
        field = iprot.readFieldBegin();
24505
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24506
          break;
24507
        }
24508
        switch (field.id) {
24509
          case 0: // SUCCESS
24510
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24511
              {
24512
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
24513
                this.success = new ArrayList<Long>(_list69.size);
24514
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
24515
                {
24516
                  long _elem71; // required
24517
                  _elem71 = iprot.readI64();
24518
                  this.success.add(_elem71);
24519
                }
24520
                iprot.readListEnd();
24521
              }
24522
            } else { 
24523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24524
            }
24525
            break;
24526
          default:
24527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24528
        }
24529
        iprot.readFieldEnd();
24530
      }
24531
      iprot.readStructEnd();
24532
      validate();
24533
    }
24534
 
24535
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24536
      oprot.writeStructBegin(STRUCT_DESC);
24537
 
24538
      if (this.isSetSuccess()) {
24539
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24540
        {
24541
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
24542
          for (long _iter72 : this.success)
24543
          {
24544
            oprot.writeI64(_iter72);
24545
          }
24546
          oprot.writeListEnd();
24547
        }
24548
        oprot.writeFieldEnd();
24549
      }
24550
      oprot.writeFieldStop();
24551
      oprot.writeStructEnd();
24552
    }
24553
 
24554
    @Override
24555
    public String toString() {
24556
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
24557
      boolean first = true;
24558
 
24559
      sb.append("success:");
24560
      if (this.success == null) {
24561
        sb.append("null");
24562
      } else {
24563
        sb.append(this.success);
24564
      }
24565
      first = false;
24566
      sb.append(")");
24567
      return sb.toString();
24568
    }
24569
 
24570
    public void validate() throws org.apache.thrift.TException {
24571
      // check for required fields
24572
    }
24573
 
24574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24575
      try {
24576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24577
      } catch (org.apache.thrift.TException te) {
24578
        throw new java.io.IOException(te);
24579
      }
24580
    }
24581
 
24582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24583
      try {
24584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24585
      } catch (org.apache.thrift.TException te) {
24586
        throw new java.io.IOException(te);
24587
      }
24588
    }
24589
 
24590
  }
24591
 
352 ashish 24592
}